Karnak
Karnak

Reputation: 113

Android Localization structure of values folder

I`m still learning android development and come with one app which I want to localize to multiple languages.

But please help me a little bit with values folder structure. I have main values folder and in it I have analytics.xml, strings.xml,styles.xml,mraid_attr.xml and colors.xml.

When I make new folder for localization, eg: values-fr I must put all of these files in it or just string.xml where I have translated strings?

Upvotes: 0

Views: 343

Answers (1)

Alexis Burgos
Alexis Burgos

Reputation: 124

You can just put your translated strings in your localization folder, but Lint will warn you about non-translated strings.

So if you have configuration strings (i.e no translation needed), create a separate XMl (like config.xml) and let only your translated strings on your localization folders.

Upvotes: 1

Related Questions