I have an application translated into 3 languages: English, German, Polish
So, I have three folders for languages in the project:
values
strings.xml
values-en
strings.xml
values-de
strings.xml
values-pl
strings.xml
I realized that if I put all the lines in the values folder and you still have some lines in the Polish version that the application crashes when accessing the missing lines in the Polish version.
I would suggest that the system simply gets a string from the default values folder if it does not find it in the -pl values folder.
Is there a way to catch these potential string flaws? EVen, if I can get a warning in the compiler that there is no line in any language, will it be OK?
EDIT AND ADD
Actually another line was missing by default ... so thanks for the answer / comments!
, strings.xml , . - .
, , de, en, pl, , , ( , , ).
, , . :
context.getString(R.string.MYTRING_abc),