title: How to load string.xml for indian languages in android?
body: <p>I am trying to load strings.xml files for following Indian languages: </p>
  
  <ol>
  <li>Oriya (values-or)</li>
  <li>Bengali (values-bn)</li>
  <li>Punjabi (values-pa)</li>
  <li>Gujarati (values-gu)</li>
  <li>Marathi (values-mr)</li>
  <li>Malayalam (values-ml)</li>
  <li>Telugu (values-te)</li>
  <li>Tamil (values-ta)</li>
  <li>Kannada (values-kn)</li>
  </ol>
  
  <p>and tried with <code>values-or-rIN,..etc</code> as well. and using following code to load locale:</p>
  
  <pre><code>public void changeLang(String lang) {
          Configuration config = getBaseContext().getResources().getConfiguration();
          if (!"".equals(lang) &amp;&amp; !config.locale.getLanguage().equals(lang)) {
  
              SharedPreferences.Editor ed = PreferenceManager.getDefaultSharedPreferences(this).edit();
              ed.putString(getString(R.string.locale_lang), lang);
              ed.commit();
  
              locale = new Locale(lang);
              Locale.setDefault(locale);
              Configuration conf = new Configuration(config);
              conf.locale = locale;
              getBaseContext().getResources().updateConfiguration(conf, getBaseContext().getResources().getDisplayMetrics());
              SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
              SharedPreferences.Editor editor = prefs.edit();
              editor.putString(this.getString(R.string.locale_lang), lang);
              editor.commit();
          }
      }
  </code></pre>
  
  <p>Above code is working for all international languages. but not for above-mentioned languages. I saw many answers, as per them we need to load fonts ttf files of the corresponding language. But I don't want to load fonts (TypeFace). I want to load strings.xml.</p>
  
  <p>Could anyone suggest how to load strings.xml of Indian languages? Is it possible? or Should I go for fonts ttf for above-mentioned languages??</p>