我的申请支持4种语言.用户选择他/她的语言.但我不能为俄罗斯做什么.
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());
}
我不懂俄语;
c.locale = Locale.????????;