Patching a Localization

Say you have found a problem with an existing localization. More specifically, it's a problem with an already released localization. What do you do now? Well, you have come to the right place! This page will walk you through creating a patch for an existing localization. The steps below are fairly generic; for the most part they apply to creating l10n patches for Firefox, Thunderbird, SeaMonkey, or Calendar.

I'll use Firefox in the example below to help you understand the general steps to creating a l10n patch.

Prerequisites

If you are to the point that you are patching existing localizations, we assume that you have the basic set of tools listed on the L10n Prerequisites wiki page. If you do not have these tools, take a few steps back, grab a cookie (because, let's face it, you deserve it for all of your work), and visit the L10n Prerequisites page. There you'll learn what tools you need, where to find them, and how to install them.

Get the source

First, you need to get the source for the localization in question using its two or three character ISO language code. For our example, I'll use gl (Galician). Whenever you see gl in blue text, replace it with the locale code for your language.

Next thing you need to know is which localization version you want to patch. All of our localizations work on the Aurora branch. The repository for this version is releases/l10n/mozilla-aurora. For more information about branches see L10n:Branches.

Now let's get a little more detailed. Start bash and do the following:

Create a clean directory for your work. For example, create a directory like localization-workdir (in this example it is located in your home directory):

mkdir ~/localization-workdir

Navigate to the directory you just created.

cd ~/localization-workdir

Clone the localization repository for your locale and for the version you want to patch: