public void changeLocale(String language, String country, String variant) {
    Configuration config = getBaseContext().getResources().getConfiguration();
    if (!"".equals(language) && !config.locale.getLanguage().equals(language)) {

      permanentCache.locale_lang = language;
      permanentCache.locale_country = country;
      permanentCache.locale_variant = variant;
      permanentCache.save();

      locale = new Locale(language, country, variant);
      Utils.setLocale(this, locale);
    }
  }