FireFoxThunderBirdNLS

Most recent edit on 2011-06-24 10:01:48 by AlexTaylor [Fixed a couple of wrong paths; minor formatting improvements]

Additions:
This page is a work in progress !!
Remarks:
What you need:
Steps to take:
  1. Copy {program}.zip and the .xpi files to an empty directory; e.g. ?:\mztemp (where '?' is a local drive on your PC)
  2. Extract install.rdf from {langpack}.xpi; i.e., type 'unzip {langpack}.xpi install.rdf'. It should look like:
        [more blah blah blah]

  3. Copy the package id (between the quotes in em:id="..."). (You can then delete the extracted copy of install.rdf.)
  4. Unpack {program}\omni.jar in another directory; e.g. from ?:\mztemp type 'unzip {program}\omni.jar -d omni'
  5. Edit ?:\mztemp\omni\defaults\pref\{something}-l10n.js, ({something} = suite for SeaMonkey, or = firefox, etc.), and change changing "en-US" to the new language for the program UI and for the spellchecking too, if you have installed the dictionary.

    Deletions:
    This page is work in progress !!
Remarks:
What you need:
steps to take:
  1. Copy {program}.zip and the .xpi files to an empty directory; f.e. ?:\mztemp (where '?' is a local drive on your PC)
  2. Extract install.rdf from {langpack}.xpi; i.e., type 'unzip {langpack}.xpi install.rdf'. It should look like [more blah blah blah]
  3. Copy the package id (between the quotes in em:id="...").
  4. Unpack {program}\omni.jar in another directory; f.ex. from ?:\mztemp type 'unzip {program}\omni.jar -d omni'
  5. Edit ?:\mztemp\omni\defaults\{something}-l10n.js, ({something} = suite for SeaMonkey, or = firefox, etc.), and change changing "en-US" to the new language for the program UI and for the spellchecking too, if you have installed the dictionary.



    Edited on 2011-06-17 11:57:12 by AlfredoFernandezDiaz

    Additions:
    ~-This method works for FireFox 4.0.1 (officially included with eCS 2.1 I think), ThunderBird 2.0 (but ThunderBird has no official OS/2 version as of June, 2011, so I don't think it will be included with eCS) and SeaMonkey 2.1 (a suitable substitute including an email client).
  6. For the old methods, please refer to the Wiki archive.
  7. This method might stop working in the future, just as the -install-global-extension one, so be careful.
  8. Language Packs are considered "special" inside Mozilla apps, but they are installed the same way as everything else. This allows us to pack and deploy Mozilla applications along any global extensions we may want; for example, language pack or spelling dictionary switchers.
  9. Any applications being packed aren't run anymore, so no cautions with running Mozilla applications are needed.
    Quick Locale Switcher (looks like a mix of the other two, plus more options): https://addons.mozilla.org/en-US/firefox/addon/quick-locale-switcher/

    Deletions:
    -This method works for FireFox 4.0.1 (officially included with eCS 2.1 I think), ThunderBird 2.0 (but ThunderBird has no official OS/2 version as of June, 2011, so I don't think it will be included with eCS) and SeaMonkey 2.1 (a suitable substitute including an email client).
-For the old methods, please refer to the Wiki archive.
-This method might stop working in the future, just as the -install-global-extension one, so be careful.
-Language Packs are considered "special" inside Mozilla apps, but they are installed the same way as everything else. This allows us to pack and deploy Mozilla applications along any global extensions we may want; for example, language pack or spelling dictionary switchers.
-Any applications being packed aren't run anymore, so no cautions with running Mozilla applications are needed.
Quick Locale Switcher (looks like a mix of the other two): https://addons.mozilla.org/en-US/firefox/addon/quick-locale-switcher/



Edited on 2011-06-17 11:53:37 by AlfredoFernandezDiaz

Additions:
Packaging Mozilla FireFox 4.0+ and newer Geckos in NLS version
As of June 2011, there is no alternate way, there is only XUL -- er... one way to repackage Mozilla applications with any add-ons, because -install-global-extension has been removed from Gecko 1.9.2, as has been reported in https://developer.mozilla.org/En/Command_Line_Options#Add-ons
Remarks:
-This method works for FireFox 4.0.1 (officially included with eCS 2.1 I think), ThunderBird 2.0 (but ThunderBird has no official OS/2 version as of June, 2011, so I don't think it will be included with eCS) and SeaMonkey 2.1 (a suitable substitute including an email client).
-For the old methods, please refer to the Wiki archive.
-This method might stop working in the future, just as the -install-global-extension one, so be careful.
-Language Packs are considered "special" inside Mozilla apps, but they are installed the same way as everything else. This allows us to pack and deploy Mozilla applications along any global extensions we may want; for example, language pack or spelling dictionary switchers.
-Any applications being packed aren't run anymore, so no cautions with running Mozilla applications are needed.
What you need:
This is the old technique. See "Alternate method" (at the end of this page) instead – it really is much better!
what you need:
Firefox
This is the old technique. See "Alternate method" (at the end of this page) instead – it really is much better!
what you need:


Alternate (better!) method by Alfredo

-Method tested and working with ThunderBird 1.5.0.10 and 2.0.0.0, FireFox 1.5.0.11 and 2.0.0.3, both official and PW versions, and several earlier releases.
Requirements
Mandatory steps
  1. Unzip FireFox/ThunderBird to a temporary directory. Let's say you call it D:\MozTemp. A subdirectory called thunderbird or firefox (from now on we'll call it <product>) containing all of the program files should appear there.
  2. Unpack the .xpi (it is a regular ZIP file) or the localized release (use tar+gzip) somewhere else, say D:\MozLang
  3. Under D:\MozLang, find a file called <langcode>.jar (and <langcode>.manifest if unpacking a complete release), where <langcode> is the the two-letter ISO language code or the four-letter ISO country-and-language combo descriptor, like "es-ES" for Spanish Spanish or "en-US" for American English, or simply "ja" for Japanese. Copy said file(s) to D:\MozTemp\<product>\chrome
  4. Edit D:\MozTemp\<product>\defaults\pref\<whatever>-l10n.js with a text editor and change "en-US" to "es-ES" or whatever in the line "pref("general.useragent.locale", "es-ES");
Now, we're ready to re-zip and commit to CVS the contents of D:\MozTemp. Everything, starting with the mail and preferences migration screen, should appear in your language.
Try it after packing the new localized build! (and only then mind about running programs and environment variables ;)
Optional steps (obviously, do this before re-packing)
  1. Get the localized search plugins from D:\MozLang and copy them to D:\MozTemp\<product>\searchplugins. They're .gif/.png + .src pairs in the 1.5 branch and single .xml files in the 2.0 branch.
  2. Get the dictionary files (<yourlang>.aff and <yourlang>.dic pairs) and put them under D:\MozTemp\thunderbird\components\myspell for ThunderBird 1.5.x or under D:\MozTemp\<product>\dictionaries for the 2.0 branch products.
  3. Get rid of the English files if you're not using them - or if you leave them in place and want to be really really nice, get the latest Language Switcher extension .xpi, and unpack it under D:\MozTemp\<product>\extensions\{338e0b96-2285-4424-b4c8-e25560750fa3}.
  4. We're ready. When the program is launched, a nice menu to switch languages will be readily available under the equivalent of 'Tools -> Languages -> English/Russian/...' ;)
Remarks:

Alternate (better!) method by Alfredo





Edited on 2008-09-22 11:34:35 by AlexTaylor [Clarified location of full release files (use Linux packages)]

Additions:

Old Method (deprecated!)

This is the old technique. See "Alternate method" (at the end of this page) instead – it really is much better!


Alternate (better!) method by Alfredo

set mozilla_home=?:\moztemp
~3) from the temporary thunderbird program directory run: 
thunderbird -install-global-extension <yourlang.xpi>%%


Deletions:
~- thunderb.zip from ecsinst1_2\en_us\cid\server\mozilla
Now, we're ready to re-zip and commit to CVS the contents of D:\MozTemp. Everything, starting with the mail and preferences migration screen, should appear in your language.
Remarks:
Remarks:
Different Language Switcher .xpis are needed for the 1.5 and 2.0 branches.
As of 2007/06/01, the Language Switcher for 2.0.x versions has to be slightly 'hacked' to support non-beta releases. Edit the file install.rdf XML file and change the line <em:maxVersion>2.whatever</em:maxVersion> to match the release you're repackaging.



Edited on 2007-06-01 16:26:57 by AlfredoFernandezDiaz [Some spellchecking, and new, alternate, method]

Additions:
~-Optionally: get the dictionary from the dictionary pages.
  • Optionally from the temporary thunderbird program directory run:
    thunderbird -install-global-extension <yourdictionary>
  • it will still start in the old language, but we delete the profile anyway now, empty out the moztemp directory.
  • Optionally: get the dictionary from the dictionary pages. ( its the same for both products ! )
  • Optionally from the temporary firefox program directory run:
    firefox -install-global-extension <yourdictionary>
  • it will still start in the old language, but we delete the profile anyway now, empty out the moztemp directory.
  • Alternate (better!) method by Alfredo

    -Method tested and working with ThunderBird 1.5.0.10 and 2.0.0.0, FireFox 1.5.0.11 and 2.0.0.3, both official and PW versions, and several earlier releases.
    Requirements
    Mandatory steps
    1. Unzip FireFox/ThunderBird to a temporary directory. Let's say you call it D:\MozTemp. A directory called thunderbird or firefox (from now on we'll call it <product>) containing all of the program files should appear there.
    2. Unpack the .xpi (it is a regular ZIP file) or the localized release somewhere else, say D:\MozLang
    3. Under D:\MozLang, find a file called <langcode>.jar (and <langcode>.manifest if unpacking a complete release), where <langcode> is the the two-letter ISO language code or the four-letter ISO country-and-language combo descriptor, like "es-ES" for Spanish Spanish or "en-US" for American English, or simply "ja" for Japanese. Copy said file(s) to D:\MopzTemp\<product>\chrome
    4. Edit D:\MopzTemp\<product>\defaults\pref\<product>-l10n.js with a text editor and change "en-US" to "es-ES" or whatever in the line "pref("general.useragent.locale", "es-ES");
    5. We're ready to re-zip and commit to CVS the contents of D:\MozTemp. Everything, starting with the mail and preferences migration screen, should appear in your language.
    Try it after packing the new localized build! (and only then mind about running programs and environment variables ;)
    Optional steps (obviously, do this before re-packing)
    1. Get the localized search plugins from D:\MozLang and copy them to D:\MozTemp\<product>\searchplugins. They're .gif/.png + .src pairs in the 1.5 branch and single .xml files in the 2.0 branch.
    2. Get the dictionary files (<yourlang>.aff and <yourlang>.dic pairs) and put them under D:\MozTemp\thunderbird\components\myspell for ThunderBird 1.5.x or under D:\MozTemp\<product>\dictionaries for the 2.0 branch products.
    3. Get rid of the English files if you're not using them - or if you leave them in place and want to be really really nice, get the latest Language Switcher extension .xpi, and unpack it under D:\MozTemp\<product>\extensions\{338e0b96-2285-4424-b4c8-e25560750fa3}.
    4. We're ready. When the program is launched, a nice menu to switch languages will be readily available under the equivalent of 'Tools -> Languages -> English/Russian/...' ;)
    Remarks:
    Different Language Switcher .xpis are needed for the 1.5 and 2.0 branches.
    As of 2007/06/01, the Language Switcher for 2.0.x versions has to be slightly 'hacked' to support non-beta releases. Edit the file install.rdf XML file and change the line <em:maxVersion>2.whatever</em:maxVersion> to match the release you're repackaging.

    Deletions:
    ~-Optionaly: get the dictionary from the dictionary pages.
  • Optionaly from the temporary thunderbird program directory run:
    thunderbird -install-global-extension <yourdictionary>
  • it will stil start in the old language, but we delete the profile anyway now, empty out the moztemp directory.
  • Optionaly: get the dictionary from the dictionary pages. ( its the same for both products ! )
  • Optionaly from the temporary firefox program directory run:
    firefox -install-global-extension <yourdictionary>
  • it will stil start in the old language, but we delete the profile anyway now, empty out the moztemp directory.



    Edited on 2007-05-11 16:52:11 by JaquesVanLeeuwen

    Additions:
    ~1) although you might have the same version on your system already, please unpack the thunderbird.zip in an empty directory just to be save: %%md c:\tbtemp



    Edited on 2007-04-19 22:16:23 by BartVanLeeuwen [firefox adition]

    Additions:
    ~- thunderb.zip from ecsinst1_2\en_us\cid\server\mozilla
  • Optionaly: get the dictionary from the dictionary pages.
  • cd tbtemp
    unzip thunderb.zip
    ~3) Optionaly from the temporary thunderbird program directory run: 
    thunderbird -install-global-extension <yourdictionary>
    ~- firefox.zip from ecsinst1_2\en_us\cid\server\mozilla
    ~- <yourlang>.xpi from ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/<our release>/win32/xpi
    ~-Optionaly: get the dictionary from the dictionary pages.  ( its the same for both products ! )
    ~3) from the temporary firefox program directory run: 
    firefox -install-global-extension <yourlangxpi>
    ~3) Optionaly from the temporary firefox program directory run: 
    firefox -install-global-extension <yourdictionary>
    ~5) edit in the firefox application directory defaults\profile\prefs.js, and add the following line: 
    user_pref("general.useragent.locale", "<yourlang>");%%in which <yourlang> is in the format en-US, e.g. nl-NL.
    1. now start firefox without parameters, it should create a new profile with the correct language set.
    2. Zip up the firefox program directory, and commit it to CVS.

      Deletions:
      ~- thunderbird.zip from ecsinst1_2\en_us\cid\server\mozilla
    might work the same, need to test




    Edited on 2007-04-19 21:11:29 by BartVanLeeuwen

    Additions:
    ~1) although you might have the same version on your system already, please unpack the thunderbird.zip in an empty directory just to be save:
    md c:\fftemp
    cd fftemp
    unzip firefox.zip

    1. make a temporary directory e.g.: MOZTEMP and point MOZILLA_HOME to it:
      md c:\moztemp
      set mozilla_home=c:\moztemp
    2. MAKE SURE NO OTHER MOZILLA APP IS RUNNING !!!

      Deletions:
      ~1) although you might have the same version on your system already, please unpack the thunderbird.zip in an empty directory just to be save.
    3. make a temporary directory e.g.: MOZTEMP and point MOZILLA_HOME to it:
      set mozilla_home=c:\moztemp




      Edited on 2007-04-14 20:07:05 by JanVanDerHeide

      Additions:
      ~5) edit in the thunderbird application directory defaults\profile\prefs.js, and add the following line:
      user_pref("general.useragent.locale", "<yourlang>");
      in which <yourlang> is in the format en-US, e.g. nl-NL.


      Deletions:
      ~5) edit in the thunderbird application directory defaults\profile\prefs.js, and add the following line:
      user_pref("general.useragent.locale", "<yourlang>");




      Edited on 2007-04-14 19:59:52 by JanVanDerHeide

      Additions:
      ~1) although you might have the same version on your system already, please unpack the thunderbird.zip in an empty directory just to be save.

      Deletions:
      ~1) although you might the same version on your system already, please unpack the thunderbird.zip in a empty directory just to be save.



      Edited on 2007-04-13 23:51:11 by BartVanLeeuwen [initial creation]

      Additions:
      ~4) it will stil start in the old language, but we delete the profile anyway now, empty out the moztemp directory.
    4. edit in the thunderbird application directory defaults\profile\prefs.js, and add the following line:
      user_pref("general.useragent.locale", "<yourlang>");
    5. now start thunderbird without parameters, it should create a new profile with the correct language set.
    6. Only the migration screen will show in english, the rest is now in your own language.
    7. Zip up the thunderbird program directory, and commit it to CVS.
    Firefox
    might work the same, need to test




    Oldest known version of this page was edited on 2007-04-13 23:46:32 by BartVanLeeuwen []
    Page view:
    This page is work in progress !!

    Packaging Thunderbird in NLS version

    what you need:


    steps to take:
    1. although you might the same version on your system already, please unpack the thunderbird.zip in a empty directory just to be save.
    2. make a temporary directory e.g.: MOZTEMP and point MOZILLA_HOME to it:
      set mozilla_home=c:\moztemp
    3. from the temporary thunderbird program directory run:
      thunderbird -install-global-extension <yourlangxpi>
    Powered by eComStation Get Firefox! This page has been accessed 12120 times :: Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.0
    Page was generated in 0.4739 seconds