Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 1.32 KB

LANGUAGES.md

File metadata and controls

32 lines (26 loc) · 1.32 KB

Adding Language

Generating Translations

Refer the following Google Sheet (might be out of date) to get a list of all strings which require translations. https://docs.google.com/spreadsheets/d/1NAl8xWGDRj6MmLHKyESONAAyudOHdFnSbaqF1Pr28sE/edit?usp=sharing

Use the Sheet and create a xml file for a particular column and corresponding keys.

Adding Support for New Language

  1. In strings.xml (en), add entries for the new language. For example, for Hindi, add the following lines
<string>
    <string name="language_hi">Hindi</string>
    <string name="language_hi_key" translatable="false">hi</string>
</string>
  1. Add language_hi key in every strings file, translated into their respective language. For Example, in strings.xml (hi) add <string name="language_hi">हिंदी </string
  2. Add the new language to the strings array in strings.xml (en). This step has to be performed in the English file only.
<string>
    <string-array name="preference_entries_language" translatable="false">
        <item>@string/language_hi</item>
    </string-array>

    <string-array name="preference_entries_keys_language" translatable="false">
        <item>@string/language_hi_key</item>
    </string-array>
</string>
  1. Create a PR with a reference to the Issue #548