Howto
:
localize the initial description for
Moz family extensions
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
1Check
that the extension has this tree structure , else create what is
missing:
|---intall.rdf
|
tournicoti.xpi=====|---install.js
|
|---defaults------preferences-----prefs.js
|
|---chrome.manifest
| |--content
|---chrome----------tournicoti.jar=====|
|---skin |---locale----|
|
|---locale--|
|
tournicoti
|
---------------.....
| | |
en-US (other locales...)
|
--------------
| | |
contents.rdf | tournicoti.dtd
|
tournicoti.properties
= = = = = unzip
folder to create
file
to create
2Write
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 you can copy/paste from the install.rdf
3Write
this line in tournicoti.properties file:
extensions.{616f2aa8-9674-4009-90de-94ce4ea9d29a}.description = An extension that makes
you dizzy.
Now
you have just to re-zip correctly the whole stuff and...
That's
all !
