Making UNIX package for Localization |
||
mailing list Masaki Katakai |
[main page] |
[how to] |
|
Creating base Mozilla package |
- chrome/all-locales.rdf
- chrome/installed-chrome.txt
Creating Mozilla L10N package |
- chrome/ja-JP.jar
- defaults/profile/ja-JP/...
- defaults/isp/ja-JP/..
- defaults/messenger/ja-JP/...
- searchplugins/*
- script for post installation
- script for post un-installation
- chrome/all-locales.rdf
- chrome/installed-chrome.txt
Script for installation of L10N package |
- L10N package will install ja-JP.jar as chrome/ja-JP.ja
After installing of ja-JP.jar, script for installation needs to do the following,
- Add the following lines to chrome/installed-chrome.txt
locale,install,url,jar:resource:/chrome/ja-JP.jar!/locale/ja-JP/necko/
locale,install,url,jar:resource:/chrome/ja-JP.jar!/locale/ja-JP/editor/
locale,install,url,jar:resource:/chrome/ja-JP.jar!/locale/ja-JP/navigator/
locale,install,url,jar:resource:/chrome/ja-JP.jar!/locale/ja-JP/communicator/
locale,install,url,jar:resource:/chrome/ja-JP.jar!/locale/ja-JP/global/
locale,install,url,jar:resource:/chrome/ja-JP.jar!/locale/ja-JP/messenger/ - remove all-locales.rdf file
Due to
http://bugzilla.mozilla.org/show_bug.cgi?id=55276
all-locales.rdf file need to be removed before performing regchrome.
chrome/all-locales.rdf
- run regchrome utility with proper LD_LIBRARY_PATH and MOZILLA_FIVE_HOME
export MOZILLA_FIVE_HOME=/usr/local/...
export LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME:/usr/local/...
$MOZILLA_FIVE_HOME/regchromeThis utility will insert ja-JP entries to chrome/all-locales.rdf.
Script for de-installation of L10N package |
- Remove ja-JP.jar
After removing of ja-JP.jar, script for un-installation needs todo the following,
- Remove the following lines from chrome/installed-chrome.txt
locale,install,url,jar:resource:/chrome/ja-JP.jar!/locale/ja-JP/necko/
locale,install,url,jar:resource:/chrome/ja-JP.jar!/locale/ja-JP/editor/
locale,install,url,jar:resource:/chrome/ja-JP.jar!/locale/ja-JP/navigator/
locale,install,url,jar:resource:/chrome/ja-JP.jar!/locale/ja-JP/communicator/
locale,install,url,jar:resource:/chrome/ja-JP.jar!/locale/ja-JP/global/
locale,install,url,jar:resource:/chrome/ja-JP.jar!/locale/ja-JP/messenger/ - Remove all-locales.rdf file
Due to
http://bugzilla.mozilla.org/show_bug.cgi?id=55276,
all-locales.rdf file need to be removed before performing regchrome.
chrome/all-locales.rdf
- Run regchrome utility with proper LD_LIBRARY_PATH and MOZILLA_FIVE_HOME
export MOZILLA_FIVE_HOME=/usr/local/...
export LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME:/usr/local/...
$MOZILLA_FIVE_HOME/regchromeThis utility will remove ja-JP entries from chrome/all-locales.rdf