Questions tagged [locale]

In computing, locale is a set of parameters that defines the user's language, country and any special variant preferences that the user wants to see in their user interface. Usually a locale identifier consists of at least a language identifier and a region identifier.

Examples of variable output controlled by a locale is whether a date is displayed as 25/12/2012 or 12/25/2012 or some other format, and whether a decimal number is displayed as 123,456.78 or 123.456,78

5203 questions
3
votes
1 answer

How to get the LCID from std::locale

In windows how to get the LCID from the std::locale locale l1(".OCP");//get the default system locale cout<
ahmedsafan86
  • 1,776
  • 1
  • 26
  • 49
3
votes
1 answer

How to create app Localization in android?

I want to create a application support multi-language, Now I just know translate string file. I want to ask everybody about another solution or 3rdParty for Localization. Please help me!
Luc Le
  • 379
  • 1
  • 5
  • 13
3
votes
1 answer

Javascript equilent of Java's Locale package, or client side approach to rendering lang/script/country codes

Doing server side rendering of HTML templates I find myself using Java's Locale class (via various helper functions) to render language codes (ISO 639-1), script codes (ISO 15294), and country codes (ISO 3166) as their name (i.e. "en" -> "English")…
Mikesname
  • 8,781
  • 2
  • 44
  • 57
3
votes
1 answer

Liferay - Get default language (locale) for a site

I need to programmatically get the default locale for a site. So I: creata a new site with default language set to english (en_us) create a second site with default languge set to german (de_DE) In my code I've tried to do the…
FeinesFabi
  • 1,147
  • 2
  • 12
  • 25
3
votes
3 answers

Internationalization (i18n) working, but accented characters aren't accented

I have a Spring MVC J2EE application that leverages Spring's localeChangeInterceptor and CookieLocaleResolver to render locale-driven support. This is working, however when I try to encode letters with accent marks, the front-end fails to render…
Fast Old Man
  • 95
  • 3
  • 13
3
votes
0 answers

Supporting deprecated language codes in Android locale

Per Android Locale documentation: Note that Java uses several deprecated two-letter codes. The Hebrew ("he") language code is rewritten as "iw", Indonesian ("id") as "in", and Yiddish ("yi") as "ji". This rewriting happens even if you construct…
levengli
  • 1,091
  • 7
  • 18
3
votes
1 answer

Error pages Symfony2 with locale

I'm trying to translate 404 pages on Symfony2, but it's not working. With 500 error pages it works great. For example, when i try to access the page: /es/not-found it shows the 404 page, but when i access /en/not-found, it gives me the SAME page,…
Magd Kudama
  • 3,229
  • 2
  • 21
  • 25
3
votes
2 answers

Error: "unsupported locale setting" on Python / OSX

I've got the following error trying to run a local Python scriot on OSX Lion 10.7: You are using the base settings file. You are advised to create a local.py file (based on local_sample.py) with your personal settings. Traceback (most recent call…
MaiaVictor
  • 51,090
  • 44
  • 144
  • 286
3
votes
3 answers

Getting Client's Timezone in GWT

My application is hosted at one place whose Timezone is "A". And user can login from anywhere. Let's say he/she logged in from place whose timezone "B". I want the timezone of User from where he/she get logged in. So I can display him dates in…
Rajnikant Patel
  • 561
  • 3
  • 19
3
votes
2 answers

Error creating jtds connection

Using jtds 1.2.5 I have this error when I stablish a connection: "No message resource found for message property prop.sokeepalive" At first, I was using 1.2.2 version but I have this error message. "Error getting jdbc connection: The USE database…
3
votes
0 answers

Building libboost_locale-vc110-mt-sgd-1_53.lib with ICU

I'm trying tu build libboost_locale-vc110-mt-sgd-1_53.lib with the latest ICU (51.2) using this: b2.exe -q -sHAVE_ICU=1 -sICU_PATH="D:\Projects\icu" toolset=msvc-11.0\ variant=debug,release runtime-link=static link=static --with-locale But I…
Vyktor
  • 20,559
  • 6
  • 64
  • 96
3
votes
1 answer

Unable to change the Locale on a Glassfish v3 J2EE app

My Dev server my glassfish web app reports that it has a local of en_US. This is causing the dates to be displayed in US format. I want us use locale en_GB for the dates. My Dev server is a virtual box configured as follows: Ubuntu Ubuntu 12.04.2…
SteveGreenslade
  • 190
  • 2
  • 8
3
votes
2 answers

Spring Framework only reads from English (en) locale file

So I've been following a mix of the following tutorials .... http://viralpatel.net/blogs/spring-3-mvc-internationalization-i18n-localization-tutorial-example/ http://www.mkyong.com/spring-mvc/spring-mvc-internationalization-example/ THE IDEA! Make…
FriedSaucePots
  • 1,342
  • 10
  • 16
3
votes
2 answers

Explain the Need for Mutexes in Locales, Please

Reading the question Why doesn’t C++ STL support atoi(const string& ) like functions?, I encountered a comment which warned that GCC (at least) has a bug that can slow down multi-threaded applications which use ostringstream frequently. This is…
Don Wakefield
  • 8,693
  • 3
  • 36
  • 54
3
votes
1 answer

How to map Java's locales and Lucene's analyzers?

I would like to find the Lucene analyzer corresponding to the language of a Java locale. For instance, Locale.ENGLISH would be mapped to org.apache.lucene.analysis.en.EnglishAnalyzer. Is there an automated mapping somewhere?
Martin Monperrus
  • 1,845
  • 2
  • 19
  • 28