Comment contribuer

Translating the interface

Actions

Firefox Support locale leaders have the ability to translate items in the Firefox Support web site interface, such as the "Log out" link, and the "edit this page" link.

Table des matières

Interactive Translation

Localizing the Firefox Support interface is done interactively. When you see an item you want to translate, you click on it.

  1. In the Contributor Tools box, click on the link called "Toggle interface translation on", to start translating the web site interface.


  2. With interface translation turned on, you will see a small circle (°) beside every item in the interface that can be translated. To translate an item, click on the small circle.


  3. A pop-up window will appear, telling you what language you are translating for, what text you are translating, and give you a text field to enter the translation of that item.


  4. Enter your translation of the item, then click Submit. You will be given confirmation of the translation. If you are satisfied with your translation, click Close this window to close the Interactive translator window. If you have made a mistake, and would like to go correct it, click on Go Back to go to the previous screen.



    If you have closed the Interface translator, and want to edit a translation, just click on the small circle again to re-open the Interface translator.
  5. When you are done, you can turn off Interface translation, by clicking on "Toggle interface translation off°" in the Contributor Tools box.

Translating other strings

The current method does not cover all strings (e.g. the "Log in" link). For those strings, you can use the Edit Languages page.

  1. On the Edit Languages page, select the language you want to translate a string for.
  2. Choose the Add a new translation (if you cannot find an existing translation to edit) option.
  3. Click on Edit language table.



  4. The Add a translation: section will appear.
    1. Beside Original:, enter the string you want to translate.
    2. Beside Translation:, enter your translation.
  5. Click Add.

Translating all strings in a single text file

If you want, you can translate all strings in a single text file.

  1. Download the file http://svn.mozilla.org/projects/sumo/trunk/language_files/%LOCALE%/language.php (replace %LOCALE% with your locale string) and open it in a text editor of your choice.
  2. Do not translate all strings in the file!! Search for the line including "### start of untranslated words" and start from there. Be sure to remove the // at the end of each line you're translating.
  3. Save and e-mail the file back to djst at mozilla dot com, and it will be uploaded to the server so we can try it out.
Note: You can check syntax of the language.php file with php command:

php -l language.php