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
0 answers

How to query language name string from given LANGID properly?

On input I have a language ID. On output I do expect full localized name of the language. I use GetLocaleInfo(..., LOCALE_SLANGUAGE, ... ) to populate the string. Everyting worked fine until I received 0 on input and GetLocaleInfo filled the string…
OnTheFly
  • 2,059
  • 5
  • 26
  • 61
3
votes
3 answers

Why is the thousands separator called the "grouping separator"?

In many programming languages, the thousands separator (e.g., the "," in the American string "1,000") is called the "grouping separator". Why is this? Are there any real-world locales that separate written integers on some other boundary? Do people…
Mason
  • 5,071
  • 4
  • 25
  • 24
3
votes
3 answers

Assigning non-ASCII characters to wide char and printing with printf

How can I assign non-ASCII characters to a wide char and print it to the console? This code down doesn't work: #include int main(void) { wchar_t wc = L'ć'; printf("%lc\n", wc); printf("%ld\n", wc); return…
balky
  • 371
  • 4
  • 11
3
votes
1 answer

Implementing user defined Native locale in Java

As a part of localization I am now trying to implement locale strings for Native languages(India). While searching I found an solution on Stack overflow that we can create user defined locales. How to extend the list of available Java Locales I…
Suresh Atta
  • 120,458
  • 37
  • 198
  • 307
3
votes
1 answer

locale for Chinese Language as per I18n standards

I would like to know the standard code for Chinese language in the available locales of I18n standards. For example :en for English. Also tell me how to name the yml file for chinese langauge (en.yml for English). adding zh.yml into…
Rajesh Omanakuttan
  • 6,788
  • 7
  • 47
  • 85
3
votes
1 answer

Websphere 8.5 Liberty Profile - Servlet API setLocale

I'm using the Websphere 8.5 Liberty Profile with Fixpack 1 and encountered the following problem that seems to violate the Servlet API. The Content-Language response header is not set after response.setLocale(), if the response body is being written…
ahu
  • 1,492
  • 12
  • 11
3
votes
1 answer

htmldoc ignoring LC_TIME for date format

I'm running the following Perl code to create a PDF file. { local $ENV{LC_TIME} = 'de_DE.utf8'; system qw(htmldoc --quiet --webpage -t pdf --jpeg --no-link --header .D. --footer .D/ --outfile), "$filename.pdf", $filename; } It works on my…
seepheart
  • 33
  • 3
3
votes
2 answers

What's the meaning of "conv" in the function name "localeconv()"?

What's the meaning of "conv" in the function name localeconv() in header ?
Yishu Fang
  • 9,448
  • 21
  • 65
  • 102
3
votes
1 answer

Android application with ActionBar NullPointerException with non default locale

I created pretty basic Android application with ActionBar and 2 tabs. It worked OK. Then I added locale resource directory res/values-de and inside it strings.xml with strings translated in German language. I changed language on my Nexus7 to German…
3
votes
3 answers

symfony2 detect locale based on domain name

i want to setup a new website with 2 locales and the locale should detected by the domain name that's used. Any idea how to do this? for example locales: nl and fr when www.somenldomainname.be is used then the nl locale should be detected when…
Daan Poron
  • 2,708
  • 5
  • 29
  • 33
3
votes
1 answer

Making a different app by country in Play Store

I would like my app to appear under different names and appareance in the Play Store depending on the country. Let's talk about Belgium and France for instance where we both speak french. In my apk, that's really easy to localize the app with…
Waza_Be
  • 39,407
  • 49
  • 186
  • 260
3
votes
1 answer

Which standard language codes should I use for multilingual software?

I often see the abbreviation "en-US", which corresponds with the 2-character language codes standardized in ISO639-1. I also understand that the format of language tags generally consists of a primary language (subtag) code, followed by a series of…
Triynko
  • 18,766
  • 21
  • 107
  • 173
3
votes
2 answers

How do I create a custom locale in Magento?

The locale I need is not included in the standard Magento language extensions, so I need to create my own. It will be es-us - Spanish language for the US. I found this article:…
3
votes
3 answers

java.util.Locale has an empty first item

I am trying to get all the locales from the JVM to populate a Country drop down. The first item is an empty not null object. It isn't null because I am using a TreeMap Collection to add the country Abbreviations and (Displayable) Names. Look below…
Mukus
  • 4,870
  • 2
  • 43
  • 56
3
votes
1 answer

Using locale.setlocale in embedded Python without breaking file parsing in C thread

We're using a third-party middleware product that allows us to write code in an embedded Python interpreter, and which exposes an API that we can call into. Some of these API calls allow us to load various kinds of file, and the loading code is…
kranzky
  • 1,328
  • 11
  • 16