ứng dụng của tôi hỗ trợ 4 ngôn ngữ. người dùng chọn ngôn ngữ của anh ấy/cô ấy. Nhưng tôi không thể làm taht cho tiếng Nga.Nội địa hóa cho tiếng Nga trong Android
if (dil.equals("eng")){
Configuration c = new Configuration(context.getResources().getConfiguration());
c.locale = Locale.ENGLISH;
context.getResources().updateConfiguration(c,context.getResources().getDisplayMetrics());
}
else if (dil.equals("ger")){
Configuration c = new Configuration(context.getResources().getConfiguration());
c.locale = Locale.GERMAN;
context.getResources().updateConfiguration(c,context.getResources().getDisplayMetrics());
}
else if (dil.equals("rus")){
Configuration c = new Configuration(context.getResources().getConfiguration());
c.locale = Locale.????????;
context.getResources().updateConfiguration(c,context.getResources().getDisplayMetrics());
}
else
{
Configuration c = new Configuration(context.getResources().getConfiguration());
c.locale = Locale.getDefault();
context.getResources().updateConfiguration(c,context.getResources().getDisplayMetrics());
}
Tôi không biết tiền đồng cho tiếng Nga;
c.locale = Locale.????????;
Nó làm việc. Cảm ơn bạn rất nhiều! – enginar