Packaging Your Work |
||
mailing list Tao Cheng |
[project main page] |
[how to] |
[Ongoing Localization Projects] |
Contents |
There are a few ways to package localization results into:
- An installable language pack (*.xpi).
- An installable complete build.
An installlable language pack |
C:\seamonkey\chrome\en-US.jar <-- the original English filesDo the following:
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
- Making "ab-CD.jar", "ab-win.jar", ("ab-mac.jar", "ab-unix.jar",) and "CD.jar".
- 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".
- 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".
- 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".
- Under "[install-dir]/chrome", use "zip ab-CD.jar -r" to package
- UI language - "langabcd.xpi"
- download this install.js , localize the strings, "English (US) Language Pack", "en", and "-US", to fit your locale.
- 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
- 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.
- rename "langabcd.zip" to "langabcd.xpi".
- Regional Contents, "regcd.xpi":
- download this install.js , localize the string, "US Region", and all "US" to fit your locale.
- 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\*
- 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.
- rename "regcd.zip" to "regcd.xpi".
- submit "langabcd.xpi" and "regcd.xpi" to MLP Staff.
An installable build |