KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
My application supports 4 languages. The user select their language. But this is not working for Russian. 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()); } I don't know what to do for Russian. c.locale = Locale.????????;
Tags (comma-separated)
Save Edits
Cancel