• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Strings of other locale in English

 
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello pals

I have the requirement as follows

I want to use English Language but want to write words for other languages. For instance i want to write "HINDI" .... It is written in English , but the word has significance in HINDI only.

I want to know , how to achieve the same using best practices.

Regards
 
Rancher
Posts: 425
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure I understand what you want to achieve. Can you explain a bit more?
 
Sahil Reddy
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For instance, name of one of month on Farsi is "Farvardin" which is فروردین i Native script ....

Now i know how to take out string values in Native Script by using the Folder name corresponding to it.....i think it is values-fa , and framework will extract it automatically. But this will work when User will change the Locale settings
in the phone.

I want to print "Farvardin" name iff the Locale chosen is "English". How to achieve this.....

In an nutshell...

1. When the Locale is English i want to show "Farvardin"
2. When the Locale is Farsi i want to show فروردین

I know how to achieve the second one, but not the first one.

 
Saloon Keeper
Posts: 6969
164
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Isn't that exactly what http://developer.android.com/guide/topics/resources/localization.htmltalks about? Using different text for different locales?
 
The only thing that kept the leeches off of me was this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic