User Tools

Site Tools


l10n:langpack

Langpack structure

2 or 5 characters based on IETF language tag : fr for French, en-US for American English etc.

XPI file eg. : langpack-fr-1.12.xpi

  • |_ chrome
    • |_ fr.jar zipped file with Mozilla strings
  • |_ chrome.manifest manifest file to handle paths
  • |_ install.rdf install file
  • |_ songbird.jar zipped file with Nightingale strings
    • |_ help.dtd strings for help page (xul/xhtml)
    • |_ preferences.dtd strings for preferences (xul)
    • |_ songbird.dtd strings for Nightingale (xul)
    • |_ songbird.properties strings for Nightingale (js)

chrome.manifest file :

# Nightingale strings:
locale songbird  fr  jar:songbird.jar!/
# Mozilla strings:
locale browser-region fr jar:chrome/fr.jar!/  locale/browser-region/
locale pipnss fr jar:chrome/fr.jar!/  locale/fr/pipnss/
locale cookie fr jar:chrome/fr.jar!/  locale/fr/cookie/
locale reporter fr jar:chrome/fr.jar!/  locale/fr/reporter/
locale necko fr jar:chrome/fr.jar!/  locale/fr/necko/
locale global fr jar:chrome/fr.jar!/  locale/fr/global/
locale mozapps fr jar:chrome/fr.jar!/  locale/fr/mozapps/
locale browser fr jar:chrome/fr.jar!/  locale/browser/
locale global-platform fr jar:chrome/fr.jar!/  locale/fr/global-platform/
locale pippki fr jar:chrome/fr.jar!/  locale/fr/pippki/
locale passwordmgr fr jar:chrome/fr.jar!/  locale/fr/passwordmgr/
locale places fr jar:chrome/fr.jar!/  locale/fr/places/
locale global-region fr jar:chrome/fr.jar!/  locale/fr/global-region/
locale alerts fr jar:chrome/fr.jar!/  locale/fr/alerts/
locale autoconfig fr jar:chrome/fr.jar!/  locale/fr/autoconfig/

install.rdf file :

<?xml version="1.0"?>
<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="langpack-fr@getnightingale.com"
                   em:name="French (fr) Language Pack"
                   em:version="1.12.1"
                   em:type="8"
                   em:creator="Songbird Translators">
    <!-- Nightingale -->
    <em:targetApplication>
      <Description>
        <em:id>nightingale@getnightingale.com</em:id>
        <em:minVersion>1.11.0</em:minVersion>
        <em:maxVersion>1.13.0</em:maxVersion>
      </Description>
    </em:targetApplication>
  </Description>
</RDF>
l10n/langpack.txt · Last modified: 2013/08/06 04:30 by geekshadow