Mozillaxpi
From LocalizationWiki
Requirements:
1.en-US.xpi file 2.translate-toolkit
Procedure:
1.create a directory,say makexpi ... $mkdir makexpi
2.copy en-US.xpi file to makexpi directory ... $cp en-US.xpi makexpi
3.run moz2po on en-US.xpi ... $moz2po -i en-US.xpi -o locale
This creates a tree of localizable files (.dtd.po and .properties.po) and folders under the directory named
locale inside makexpi directory.
The directory structure created are:
locale/reg
-contains the po files,originally in the US.jar file inside en-US.xpi
locale/lang-reg
-contains the po files,originally in the en-US.jar file inside en-US.xpi
locale/unix
-conatins the po files,orginally in the en-unix.jar file inside the en-US.xpi
locale/mac
-conatins the po files,orginally in the en-mac.jar file inside the en-US.xpi
locale/win
-conatins the po files,orginally in the en-win.jar file inside the en-US.xpi
locale/pacage
-contains the install.js files
change
langcode to dz
regioncode to BT
prettyName to Dzongkha(BT)
Apart from the po files, every directory has a file named contents.rdf in which every occurance of en-US
needs to be changed to dz-BT, US to BT and also change chrome:displayName to "dzongkha(BT)"
4.Once all the po files are translated, use po2moz to create the dz-BT.xpi dzongkha langpack. po2moz -i locale -o dz-BT.xpi -t en-US.xpi -l dz-BT The above command creates dz-BT.xpi using the original en-US.xpi file as the template.
5.Installing the dzongkha xpi : Open your mozilla browser, go to files=>open file, select the dz-BT.xpi file and click open and then click install.A dialog box appears saying that the installation is successful.
6.Using dzongkha xpi : In the mozilla browser, go to edit=>preferences=>appearence=>language/content. In the Installed Language Packs, select dzongkha(BT) and click OK. Restart mozilla to see the UI in dzongkha.
