In my application, I encountered the i18n problem. When I change the language of the phone, some of the lines used by the application change, but some of them.
Here is what I did:
- Set the language to Chinese.
- Launch the app. Current activity uses Chinese strings.
- Press the HOME button, change the phone language to English.
- Resume the application from the history (press the HOME button).
Result: Most of the lines used by fore Activity are changed to English lines, but there is one line that is text CheckBox, still Chinese.
In another Acitivty, which also contains CheckBox, the text of the CheckBox will also not be changed after changing the language of the phone.
I tried many times, only the text CheckBoxwill not be changed. I am sure that I use <CheckBox android:text="@string/checkbox_text .../>"xml in the layout, and the string checkbox_texthas a Chinese version and an English version.
Can someone please help me? Thanks in advance!
source
share