Home
Tuesday, 14 August 2018
 
 
localize the initial description for Moz family extensions Print
Written by Goofy   
Thursday, 29 September 2005

This short tutorial is dedicated to those who already know basics about editing and localizing an extension for Gecko-engined apps : Firefox, Thunderbird, Mozilla. It entirely comes from an article of mozillaZine Knowledge Base.

Here are the steps to localize the description of an extension that we shall call tournicoti

            1)Check that the extension has this tree structure , else create what is
                missing:

 

                            |---install.rdf
                            |

tournicoti.xpi==|---install.js
                            |
                            |---
defaults------preferences-----
prefs.js
                            |                  
                            |---chrome.manifest                   
                            |                                                                
|--content
                            |---chrome---------
tournicoti.jar=====|                                                     
                                                                                              |---skin               
                                                                                              |                               
                                                                                              |---locale--|
                                                                                                                |

                                                                                                        tournicoti
                                                                                                                |
                                                                                                       ---------------.....
                                                                                                      |         |         |
                                                                                                 en-US        (other locales...)
                                                                                                                |
                                                                                                       --------------
                                                                                                       |       |        |
                                                                                     contents.rdf     |    tournicoti.dtd
                                                                                                               |
                                                                                             
tournicoti.properties

= = = = = unzip
folder to create
file to create


2) Write this line in prefs.js file:

pref("extensions.{616f2aa8-9674-4009-90de-94ce4ea9d29a}.description", "chrome://tournicoti/locale/tournicoti.properties"); 
 
...where the red string  is the extension ID number that you can copy/paste from the install.rdf
 
If you used a pseudo-mail address as id for your extension, remove the special brackets, it should be something like:
 
pref("extensions. This e-mail address is being protected from spam bots, you need JavaScript enabled to view it .description", "chrome://tournicoti/locale/tournicoti.properties");  

3) Write this line in tournicoti.properties file:

extensions.{616f2aa8-9674-4009-90de-94ce4ea9d29a}.description = An extension that makes you dizzy.
 
or
 
extensions. This e-mail address is being protected from spam bots, you need JavaScript enabled to view it .description= An extension that makes you dizzy.
 
 Now you have just to re-zip correctly the whole stuff and...
 
That's all !
goofy
Last Updated ( Wednesday, 27 June 2007 )
 
 
Top! Top!