Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you manage translations for your Android app? [duplicate]

Lint tool tells you about hardcoded strings or missing translations, but how about if you want to update an existing string?

How do you keep track of which strings need to be translated again when you update an existing string?

One solution is to use a new key in strings.xml if you want to change a string, however this requires updating all references in code that used the old key.

like image 561
Sarp Centel Avatar asked Oct 09 '22 19:10

Sarp Centel


2 Answers

If you do not have translation for a language Android OS will choose your default values that are stored in the value folder.

To work with localisations you can also use Sequoyah Android Localization Editor. Using it you can see all the string keys and assigned values. Here is a snapshot of it: Android Localization Editor

So for each localization you will have a separate column.

like image 125
Yury Avatar answered Oct 12 '22 12:10

Yury


Another solution is to use your version control software to retrieve the list of strings that have changed since the previous version of your project.

like image 25
Frank Harper Avatar answered Oct 12 '22 11:10

Frank Harper