You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



 

Packaging Your Work

newsgroup discussion
mailing list
Tao Cheng

 
[project main page]
[how to]
[Ongoing Localization Projects]

 
Contents
 

There are a few ways to package localization results into:

  1. An installable language pack (*.xpi).
  2. An installable complete build.
See details below.
 
An installlable language pack
 
Assuming the language code for your locale is "ab-CD" and your Seamonkey install directory, "C:\seamonkey\", looks like this:
C:\seamonkey\chrome\en-US.jar        <-- the original English files
C:\seamonkey\chrome\en-mac.jar        <-- the original English files for MacOS.
C:\seamonkey\chrome\en-unix.jar        <-- the original English files for UNIX.
C:\seamonkey\chrome\en-win.jar        <-- the original English files for Windows.
C:\seamonkey\chrome\US.jar        <-- the original US regional files
C:\seamonkey\defaults\profile\US\*        <-- the original US files
C:\seamonkey\chrome\ab-CD\locale\ab-CD\*    <-- localized UI language files.
C:\seamonkey\chrome\ab-mac\locale\ab-CD\*    <-- localized UI language files for MacOS.
C:\seamonkey\chrome\ab-unix\locale\ab-CD\*    <-- localized UI language files for UNIX.
C:\seamonkey\chrome\ab-win\locale\ab-CD\*    <-- localized UI language files for Windows.
C:\seamonkey\chrome\CD\locale\CD\*    <-- localized regional content files
C:\seamonkey\defaults\profile\CD\*    <-- localized default files
Do the following:
  1. Making "ab-CD.jar", "ab-win.jar", ("ab-mac.jar", "ab-unix.jar",) and "CD.jar".

    1. Under "[install-dir]/chrome", use "zip ab-CD.jar -r" to package

        ab-CD/locale/ab-CD/communicator/*
        ab-CD/locale/ab-CD/editor/*
        ab-CD/locale/ab-CD/global/*
        ab-CD/locale/ab-CD/messenger/*
        ab-CD/locale/ab-CD/navigator/*
        ab-CD/locale/ab-CD/necko/*

      into "ab-CD.jar".

    2. Under "[install-dir]/chrome", use "zip ab-win.jar -r" to package

        ab-win/locale/ab-CD/*-platform/*

      into "ab-win.jar". Repeat the steps to "en-mac.jar" and "en-unix.jar".

    3. Under "[install-dir]/chrome", use "zip CD.jar -r" to package

        CD/locale/CD/communicator-region/*
        CD/locale/CD/editor-region/*
        CD/locale/CD/global-region/*
        CD/locale/CD/messenger-region/*
        CD/locale/CD/navigator-region/*

      into "CD.jar".

  2. UI language - "langabcd.xpi"

    1. download this install.js , localize the strings, "English (US) Language Pack", "en", and "-US", to fit your locale.
    2. create a new directory, "C:\package-ui\bin", and copy the localized install.js and other files into this directory so the directory structure looks like this:
      • C:\package-ui\install.js
      • C:\package-ui\bin\chrome\ab-CD.jar
      • C:\package-ui\bin\chrome\ab-mac.jar
      • C:\package-ui\bin\chrome\ab-unix.jar
      • C:\package-ui\bin\chrome\ab-win.jar
    3. use pkzip or winzip to package all files/directories under "C:\package\*" into langabcd.zip so "install.js" and "bin" are at the top level of the zip archive.
    4. rename "langabcd.zip" to "langabcd.xpi".
  3. Regional Contents, "regcd.xpi":

    1. download this install.js , localize the string, "US Region", and all "US" to fit your locale.
    2. create a new directory, "C:\package-reg\bin", and copy the localized install.js and other files into this directory so the directory structure looks like this:
      • C:\package-reg\install.js
      • C:\package-reg\bin\chrome\regcd.jar
      • C:\package-reg\bin\defaults\profile\CD\*
      • C:\package-reg\bin\searchplugins\*
    3. use pkzip or winzip to package all files/directories under "C:\package-reg\*" into regcd.zip so "install.js" and "bin" are at the top level of the zip archive.
    4. rename "regcd.zip" to "regcd.xpi".
  4. submit "langabcd.xpi" and "regcd.xpi" to MLP Staff.
An installable build
 
(under construction)