简体   繁体   中英

Is Armenian and Somali languages/locales support for android and IOS?

I have requirement in my application for language support of Armenian and Somali both android and IOS , but i can't find any document related to armenian and Somali languages.If anyone know about this please help me.

Thanking in Advance.

 please follow below link it may be use full

http://snowpard-android.blogspot.in/2013/03/programmatically-change-language-in.html

step 1: create value folder for Armenian (values-hy) eg:

 <string name="app_name">Հղրդգրթ</string>
 <string name="hello_world">Պարամետրեր</string>

step 2: based on your requirment u should write below code

eg: mtextView1.setOnClickListener(new OnClickListener() {
        @Override
        public void onClick(View arg0) {
            // TODO Auto-generated method stub
            Locale locale = new Locale("hy");
            Locale.setDefault(locale);
            Configuration config = new Configuration();
            config.locale = locale;
            getBaseContext().getResources().updateConfiguration(config,
  getBaseContext().getResources().getDisplayMetrics());
            updateText();
        }
    });
  public void updateText(){
 mtextView1.setText(R.string.hello_world);
  }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM