Firefox add-on description localization -
i've created simple restartless firefox add-on , trying localize it. can not localize add-on name , description. i'm trying descriped here localizing extension descriptions
below install.rdf file , package.json
package.json
{ "name": "find_in_files", "title": "find in files", "id": "{7de613b7-54d9-4899-a018-861472402b2e}", "description": "search substring in files", "author": "vitaly shulgin", "license": "mpl 2.0", "version": "1.1", "unpack": "true", "preferences": [ { "name": "searchdirectory", "title": "search directory", "description": "you must specify before search. please, patient - may takes time index documents before search return correct result.", "type": "directory", "value": "" }, { "name": "defaultlocale", "title": "default language", "description": "default language use when searching in non-unicode documents", "type": "menulist", "value": "ru-ru", "options": [ { "value": "en-us", "label": "english" }, { "value": "ru-ru", "label": "russian" } ] }, { "name": "outputfilename", "title": "temporary output file name", "description": "temporary output file name", "type": "string", "value": "fif-result.html", "hidden": true } ] }
install.rdf
<?xml version="1.0" encoding="utf-8" ?> <rdf xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> <description about="urn:mozilla:install-manifest"> <em:id>{7de613b7-54d9-4899-a018-861472402b2e}</em:id> <!-- begin localizaation --> <em:localized> <description> <em:locale>ru-ru</em:locale> <em:name>Поиск в файлах</em:name> <em:description>Поиск выделенного текста в файлах</em:description> </description> </em:localized> <em:localized> <description> <em:locale>en-us</em:locale> <em:name>find in files</em:name> <em:description>search selected text in files</em:description> </description> </em:localized> <!-- em:name>find in files</em:name --> <!-- em:description>search selected text in files</em:description --> <!-- end localizaation --> <em:version>1.1</em:version> <em:type>2</em:type> <em:targetapplication> <description> <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> <!--firefox--> <em:minversion>1.5</em:minversion> <em:maxversion>3.0.*</em:maxversion> </description> </em:targetapplication> <em:unpack>true</em:unpack> <em:creator>vitaly a. shulgin</em:creator> <em:targetplatform>winnt</em:targetplatform> </description> </rdf>
what doing wrong?
the answer - command "cfx xpi" mozilla add-on sdk overwrite install.rdf if have in project folder. so, things work - create xpi package, unpack (unzip) - , find auto-generate install.rdf inside (!!!), substitute install.rdf own , re-pack xpi zip command.
that's all, folks!
Comments
Post a Comment