Lock Android: Internationalization
By default, Lock.Android displays all text in English. If you wish to display text in another language, you may provide a
strings.xml file and define values to be used for the various text items that Lock might display.
Android asks the device what locale was configured by the user and tries to fetch the list of localized texts for that language. For this to work, the developer needs to add each translation file into the app by using a special folder naming convention as per Android standards. More information can be found in the Android developer docs.
Some of the default values provided by Lock include:
<resources> <string name="sms_login_btn_text">Login SMS</string> <string name="no_login_text">Login not found</string> ... </resources>
By providing your own
strings.xml file, these values can be adjusted as such:
<resources> <string name="sms_login_btn_text">Login with SMS</string> <string name="no_login_text">This user was not found!</string> ... </resources>
Lock String Values
For a full list of the names used by Lock, see the default strings.xml file in the Lock.Android repository.