Lange support for Gujrati and Hindi in android

Hi, any body knows how we can support the support of Hindi and Gujrati Languge in android. I used the code below, but it is not supported, I see only the field.

I put the string file in the res/values-hi/string.xml . There is some key meaning for the Hindi language. It is used for Hindi language:

 Locale locale = new Locale("hi"); Locale.setDefault(locale); Configuration config = new Configuration(); config.locale = locale; getBaseContext().getResources() .updateConfiguration(config,getBaseContext().getResources().getDisplayMetrics()); 

Does anyone know what please give me a solution.

+4
source share
4 answers

Since the gujarati and hindi languages ​​are not supported by Android, you can still provide this support for your application.

For Gujarati, copy the file C:\WINDOWS\Fonts\Shruti.TTF to your resource folder. then use the following code.

 TextView text_view = new TextView(this); Typeface font = Typeface.createFromAsset(getAssets(), "Shruti.TTF"); text_view.setTypeface(font); text_view.setText("ગુજરાતી"); 

Shruti.TTF File is for Gujarati font. Similarly, you can add hindi file support.

+7
source

Hindi and many other Indian langy = uages ​​are not supported on Android. Although HTC plans to support some Indian languages. Read here.

Now the code that you used to place the Hindi text in your application will work only if the Android phone supports Hindi.

You need to embed Hindi fonts in your application, as Cree said.

+2
source

Hindi reading method in opera mini 1 - First install the latest version of “Opera Mini” on your tablet or Android phone, which is available on the Android Market. Otherwise, go to the official website of the opera. (Read about Opera Mini and download). 2 - After that, go to the address bar and enter opera: config and nothing should be www or http: //. 3. Then go to the menu and at the end you will see "use bitmap fonts for complex scripts". Before recording will not be written. You change it to Yes. 4. Save it. Now open any Hindi website and see the Hindi font on your mobile / tablet instead of the square font.

You can also try the following: set the Hindi font (including the whole Indian language) as the system font - follow this link: - http://android-bucket.blogspot.com/2011/07/hindi-font-installation-for- advance.html (Advance Users Only)

0
source

His late reply, considering that he was still not recognized. I wrote an entire article to support the Gujarati font on android with source code. But since I think you're talking about localization, you need to use a different mechanism for support, because Local does not support Gujarati. Here you can reference how to maintain Gujarati font inside Android with source code ?

0
source

Source: https://habr.com/ru/post/1388028/


All Articles