Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: Get missing translations for strings-resources

In Android, you can specify the texts in the default locale in res/values/strings.xml. Additional translations can be added for new languages in res/values-it/strings.xml (for Italian for example). If a string is not translated, the fallback-default locale is used.

Currently I can not tell which strings I still need to translate (so are in values/strings.xml, but not in values-$/strings.xml for all $ in languages) and which are translated, although the are obsolte (so are in values-$/strings.xml, but not in values/strings.xml exists $ in languages)

I'm searching for a tool which gives me the translations which are missing and the one which are obsolete.

To be honest, it is not that difficult to write such a tool for the command-line, I can only hardly believe nobody has already done this.

like image 886
theomega Avatar asked Aug 08 '11 16:08

theomega


1 Answers

This isn't automated, but it's very fast. In Eclipse, to go Window->Show View->Other->Android->Resource Explorer.

Now, under the Resource Explorer tab at the bottom (or wherever you've moved it to) look under String. Each string should have the same number of versions if you have a complete translation, so you can scan down the list in just a few seconds.

Do this for each project that has strings.

I didn't know about this until after I localized, but it's still useful (such as when I add a new string).

like image 57
ProjectJourneyman Avatar answered Sep 21 '22 21:09

ProjectJourneyman