There are two sets of string resources: default (English) and Russian. It is necessary to set the Russian language if the user chooses Belarusian, Ukrainian, etc. First, I find out what language the user has now:
String userLocale = Locale.getDefault().getLanguage(); Then compare with the right languages:
if(userLocale.equals("uk")||userLocale.equals("be")||userLocale.equals("kz")) и т.д. Inside if'a code found here:
Locale locale = new Locale("ru"); Locale.setDefault(locale); Configuration config = new Configuration(); config.locale = locale; getBaseContext().getResources(). updateConfiguration(config, getBaseContext().getResources().getDisplayMetrics()); But when you start the application, the language does not change to Russian, but remains defaulted. What am I doing wrong?