アプリケーションの 1 つのアクティビティですべてのテキストを変更すると問題が発生します...次のコードを使用して言語を変更しています:
else if (LANGUAGE.equals("Russian"))
{
Resources res = this.getResources();
// Change locale settings in the app.
DisplayMetrics dm = res.getDisplayMetrics();
android.content.res.Configuration conf = res.getConfiguration();
conf.locale = new Locale("ru-rRU");
res.updateConfiguration(conf, dm);
}
AndroidManifest で、次の文字列を追加しました。
<activity
android:name="com.vladimir.expert_suise.ThirdScreen"
android:label="@string/title_activity_third_screen"
android:configChanges="locale">
</activity>
携帯電話でアプリを起動しても、言語は変更されません =( ここにスクリーンショットがあります -
私のコードの何が問題なのですか?(
PS i も values-ru-rRU フォルダーを作成し、そこに翻訳された string.xml ファイルを挿入しました