Search code examples
androidresourceslocalizationadt

Adding new String resource to multiple (localized) strings.xml files in Android app


I have an app with support for several different languages.
Now lets say I want to add a new feature, which will usually will require new string resources to be added.

What is the (Or is there) way to add new string resources that will be added automatically to all the localization strings files? (Means i'll just need to translate the content of the string and not to create new one with the same key for each localization file) Because it dosen't make any sense to copy-paste it manually when you have a lot of localization files...


Solution

  • If you follow Android localization rules, there isin't any other way other than manually adding to each language strings.xml file. You can script this but then you will have to write the script. So, my suggestion is to bite the bullet and do it.

    As you said if there are a lot of files, then scripting it is best way, even then you may have to manually add the localized string values to each file.