L10n:MozillaTranslator: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(written "creating a new product")
(some more)
Line 25: Line 25:
Now, from the File menu select Update Product. From the new window, select the product you have just created, and click OK. You will see the Show which columns window. it is best to select Key, Text: Original, Text: Translated, and Keep original. Enter your locale code at the bottom, and click OK. you will see the complete list of strings that need to be translated.
Now, from the File menu select Update Product. From the new window, select the product you have just created, and click OK. You will see the Show which columns window. it is best to select Key, Text: Original, Text: Translated, and Keep original. Enter your locale code at the bottom, and click OK. you will see the complete list of strings that need to be translated.
===Importing Existing Translation===
===Importing Existing Translation===
If you have access to a translation of an earlier version of the program than the one you are working on, you can import it and use the parts of it that are still relevant. Follow these steps:
<ol>
<li> From the Import menu, select Import Translation.
  <ul>
    <li>'''selected''': Select the product and the component that you are importing.</li>
    <li>'''File''': The path to the .jar file than includes the translation of the selected component.</li>
    <li>'''Locale''': Enter your locale, in a ab-CD format.</li></ul></li>
<li>Click OK.</li>
</ol>
===Translating the Strings===
===Translating the Strings===
The translation work is done at the Chrome view. From the Edit menu, select Chrome view. in the Show which columns window, select the columns as above, and click OK.
====Migrating to a Newer Program Version====
====Migrating to a Newer Program Version====
===Colaborating with Other Team Members===
===Colaborating with Other Team Members===

Revision as of 23:20, 9 October 2005

MozillaTranslator is a tool to translate programs in the Mozilla family.

If you are looking for the newest version the MozillaTranslator tool, the latest 5.04 version is available from the following file: mt504.zip. Despite it having written "version 5.03" in several places, this is version 5.04.

MozillaTranslator is written in Java. this means (a) that it will work on any platform that supports Java (Windows/Linux/Mac/Solaris etc.), and (b) that you need to make sure you have Java 1.4 and above Installed on your system.

How to Use

Creating a new Product

The first thing you need to do is to create a new product. First, obtain the .jar files that include the en-US language pack. there are several ways to do that:

  1. If you have an installed copy of the program you want to translate, open the installation directory of the program. under a folder named 'chrome' there, you will find a file named en-US.jar (or something similar), and possibly also en-win.jar, en-mac.jar, en-unix.jar and US.jar.
  2. extract the language pack (normally called langenus.xpi) from the installer, as described here. then use a Zip utility to open it and extract the files mentioned in (1) from it. similarly, extract the region pack (exists in Mozilla Suite) named regus.xpi and extract US.jar from it.

From the File menu select Manage Products, and in the window that opens, press the Add button.

  • Name: Give a meaningfull name to this product.
  • Jar file: Enter the path to the en-US.jar file you extracted earlier.
  • Platforms: Click the Add button to add files for each platform, if applicable.
    • Name: Platform name. Enter a descriptive name.
    • Jar file: Path to the .jar file for this platform.
    • Type: Select the platform for which this .jar file is intended for.
      Repeat theses steps for each supported platform.
  • Jar file (regional): Enter the path to US.jar.
  • Custom Files: You may add additional files to the language pack, such as local search engines or a localized bookmarks file. This part doesn't always work.

Click OK to close the window. You should see the new product in the previous window. Click Exit to close it.

Now, from the File menu select Update Product. From the new window, select the product you have just created, and click OK. You will see the Show which columns window. it is best to select Key, Text: Original, Text: Translated, and Keep original. Enter your locale code at the bottom, and click OK. you will see the complete list of strings that need to be translated.

Importing Existing Translation

If you have access to a translation of an earlier version of the program than the one you are working on, you can import it and use the parts of it that are still relevant. Follow these steps:

  1. From the Import menu, select Import Translation.
    • selected: Select the product and the component that you are importing.
    • File: The path to the .jar file than includes the translation of the selected component.
    • Locale: Enter your locale, in a ab-CD format.
  2. Click OK.

Translating the Strings

The translation work is done at the Chrome view. From the Edit menu, select Chrome view. in the Show which columns window, select the columns as above, and click OK.

Migrating to a Newer Program Version

Colaborating with Other Team Members

Migrating from One Product to Another

Menu Items

File

Import

Export

Edit

Advanced

Help