Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to localize Firefox SDK Add-on name and description?

I'm developing an add-on for Firefox and I now wish to localize the name and description of the add-on itself, as visible to the user in the Add-ons Manager menu.

However, the guides I've seen online only seem to mention preferences in package.json and nothing about the name of the add-on or its description. I have tried to apply the suggestions for preferences to the name/description fields and haven't had any success - it will always appear in English.

Is localization of these fields even possible?

like image 326
BeneGal Avatar asked Dec 03 '13 13:12

BeneGal


1 Answers

There is currently no way to do this from package.json. Read bug 661083 for more details.

However, there is a workaround: Manually edit install.rdf to add em:localized properties.

To do this you'll need to use the SDK to package your app into an xpi file. Then open the xpi (it is a zip file) and you'll see install.rdf in the root of the directory.

The MDN article Localizing extension descriptions describes what structure the em:localized properties needs to have.

like image 127
christi3k Avatar answered Nov 11 '22 04:11

christi3k