L10n:B2G/Localizers: Difference between revisions

Jump to navigation Jump to search
→‎Enable your locale: settings/index.html works as is, migrate.sh doesn't exist no more
(→‎Enable your locale: settings/index.html works as is, migrate.sh doesn't exist no more)
Line 55: Line 55:


===Enable your locale===
===Enable your locale===
====apps/settings/index.html====
Add your locale to the <code><!-- Personalization :: Language & Region --></code> section of <code>[https://github.com/mozilla-b2g/gaia/blob/master/apps/settings/index.html#L964 apps/settings/index.html]</code>.  Notice the <code>value=</code> part.
    &lt;li>
      &lt;span data-l10n-id="language">Language
        <select name="language.current">
          <option value="ar">العربية</option>
          <option value="en-US">English (US)</option>
          <option value="fr">Français</option>
          '''<option value="pl">Polski</option>'''
          <option value="zh-TW">正體中文</option>
        </select>
      &lt;/span>
    </li>


====apps/settings/resources/languages.json====
====apps/settings/resources/languages.json====
Line 91: Line 75:
     @import url(browser.pl.properties)
     @import url(browser.pl.properties)


Alternatively, you can use my helper script, [https://raw.github.com/stasm/gaia-l10n/master/migrate.sh migrate.sh]:
You may need to do the same in <code>shared/locales</code> for picking up date formats and the like.
 
    cd gaia/locales
    ./migrate.sh ini pl


===Run Gaia===
===Run Gaia===
Confirmed users, Bureaucrats and Sysops emeriti
2,976

edits

Navigation menu