is there any way to use different string files? I know that I can create files for another languages, but I want to load different files for English, depending on some initial value. It will be good if I could have one more file with default value. It is possible?
Asked
Active
Viewed 39 times
0
-
may be you can use different region codes.[http://stackoverflow.com/questions/20527164/setting-application-locale-to-pt-br-programmatically] – Developer So far Jun 03 '15 at 09:27
-
I tried. It will be fine if I could create my own regions. – maatik5 Jun 03 '15 at 10:13
-
what I meant is to change the region fakely depend on your initial values. – Developer So far Jun 03 '15 at 11:41
1 Answers
1
Android string resources are optimized for supporting different locales and you can force app to use particular locale. If you want use custom dictionaries for one language I would recommend to use custom class that will read string-array resources. Imho nice example is: Dirty Phrasebook

3mpty
- 1,354
- 8
- 16
-
It's ok, but it isn't comfortable option in my project, but...I think It is the only way to do this. – maatik5 Jun 24 '15 at 06:56
-
It's Android :P. Allows many things apart from standard ones but it doesn't mean that will help with those :) – 3mpty Jun 24 '15 at 11:28