Home arrow Help - Q & A arrow How to test my locale once translation is done?
Monday, 24 September 2018
 
 
How to test my locale once translation is done? Print
Written by Goofy   
Saturday, 18 February 2006

 
Important: in order to avoid conflicts with other extensions, for the testing phase of your localization you should test whichever extension by using a clean profile!
(Then, if you want to help the author for the debugging phase, of course you can also install the extension in an old profile)

There is no possibility to rebuild automatically the xpi with your locale throughout the WTS, up to now. So if you want to test your locale you can do this :

1. Download the extension (link in the WTS or in the forum topic)

2. Download your locale folder (zipped in tar.gz) from your language page (link at the top). If your translation is still in progress choose "missing strings: filled with en-US" for testing purpose

3. Unzip* the xpi and add one locale line in the install.rdf and/or chrome.manifest file.
[*Appropriate applications] Win/Linux: 7zip, Mac: Stuffit Expander, ***:***

Add one locale line in the install.rdf and/or chrome.manifest file.
You have just to copy-paste the en-US line and modify the letters according to your own language

4. Insert your xx-XX locale folder in the "general" locale folder

5. Re-zip everything in proper order

... and now you can test the repackaged extension!

If one of these steps is difficult for you, just ask on Help section


For more information, please see the other Questions & Answers

 

This is a guide with screenshots.

I used 7zip to archive (zip/unzip) and PsPad as text editor

Image

Right-click and Extract the files from the xpi

Image

Here is what you can see inside. Now open the chrome folder

Image

Inside you find a .jar file which is another archive file from which to extract files

Image

You find 3 folders, select the locale and open it

Image

Here you can paste your own locale subfolder (e.g el-GR)

Image

Now go back a level and select all folders, right-click and choose "Add to archive..."

Image

You must select a .jar name, but of course you must give the same original name to overwrite it 

Image

Browse

Image


Select the original jar


Image

and validate OK to save and overwrite  :)
Image

Go back one level again and delete the 3 folders, don't be afraid, they are now archived in the .jar

Image

Now it is time to go to the chrome.manifest

Image

Edit it (you need a text editor, sticking to utf-8) and add the locale path for your locale

Image

Now the final archive process, save your test build with a .xpi extension 

Image 

 

 

Last Updated ( Tuesday, 14 July 2009 )
 
< Prev   Next >
 
Top! Top!