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

Sort a table with UTF-8 encoded values alphabetically

I am storing dictionary entries in a Lua table, using it as an array. I want to sort the entries from Lua, so that I can add new ones without having to move to the correct position myself (which gets quite tedious soon). However, I am facing several…
djsp
  • 2,174
  • 2
  • 19
  • 40
3
votes
2 answers

How do I set the locale for an ASP.NET 5 application?

I’m trying to do a blanket override of the host locale for an ASP.NET 5 web application. Most solutions refer to the web.config element, but this is IIS-specific and doesn't seem to fit the new ASP.NET model. I tried: app.Use(next…
Sam
  • 4,694
  • 2
  • 36
  • 47
3
votes
2 answers

How to display checkbox on the left when change language of Android app to Arabic?

In Settings of my Android app, I use many of checkboxPreferences. When the locale selected is English, text appears at the Left side and Check box at the right side. Text ------------------Checkbox When I change locale to Arabic, I want to get this…
TOP
  • 2,574
  • 5
  • 35
  • 60
3
votes
1 answer

Swift ISO-8601 date formatting with iOS7

I really need your help guys. The following piece of code works fine in a Swift Playgound and with any iOS8 or 8.1 simulator. But with iOS7 and 7.1, the NSDate object is always set to nil. The object dateString contains a JSON string (ISO 8601…
Roccapina
  • 87
  • 1
  • 7
3
votes
0 answers

Android programmatically change language on rooted phone

I know that there are a few question already answered on this topic but i have a more specific problem. I have tried to implement Android - change device system locale programmatically , with no success (simply it doesn't change the language, don't…
Marco Maisto
  • 91
  • 2
  • 11
3
votes
1 answer

Convert .NET locale to jQuery locale - when a national variety (eg. "-US" or "-MX") is not present in local resources

I noticed jQuery has one locale for Spanish which is es. When you change your browser to a spanish locale which can be es, es-US, es-MX, etc, since there is only one jQuery spanish file, it only loads the file if the locale is es. Is there a way…
xaisoft
  • 3,343
  • 8
  • 44
  • 72
3
votes
2 answers

Effect of Locale on Android Geocoder

I'm trying to remotely troubleshoot an app for a client. The app creates its Geocoder and looks up addresses like this: Geocoder gc = new Geocoder(context, Locale.getDefault()); List
addresses = gc.getFromLocationName(nextWaypoint,…
Kevin Krumwiede
  • 9,868
  • 4
  • 34
  • 82
3
votes
0 answers

Bamboo build server incorrect log encoding

Bamboo build server creates logs using wrong encoding. First part of log (which written by bamboo) is in windows-1251 (system locale) second part of log is written from script inside a build task. but when bamboo shows log in the "Build results"…
Evil Beaver
  • 379
  • 3
  • 12
3
votes
1 answer

How to change the library locale as well when I change the app locale in android

I created an app that utilize the google map , and I use the google play service library in android. The problem is the library does not change the locale when I change the locale in my app. But it use the locale of the phone device. Here is how I…
3
votes
2 answers

How to set a Locale in Java Web application?

I am passing language code and country code from UI to create Locale object. How to set this Locale object in HttpServletRequest, so that any where in the web application I can this Locale object by using HttpServletRequest.getLocale()?
Mayank Gupta
  • 31
  • 1
  • 2
3
votes
3 answers

How to get ISO currency code by country code in rails?

In my rails app I want to use country-code, currency-code, ISO locale code to fetch some data from API. How can I get this information dynamically when user visit my site from anywhere? I have used geocoder gem so by request.location I will get…
Gagan Gami
  • 10,121
  • 1
  • 29
  • 55
3
votes
2 answers

C++ What is the correct use of LCID in COleDateTime for American Date

I need to parse an american date string to extract the date. COleDateTime dData; LCID lcid = 0x409; // 0x409 is the locale ID for English US CString strDate; dData.ParseDateTime("10/1/2014 9:43:00 AM", VAR_DATEVALUEONLY); strDate =…
AnR
  • 1,809
  • 3
  • 26
  • 45
3
votes
4 answers

_configthreadlocale and localeconv

As we all know, global data, like the locale settings affecting the numeric decimal point printf() and strtod() are using, is evil. Fortunately, MSVC++ 9 allows to use per-thread locales by a _configthreadlocale(_ENABLE_PER_THREAD_LOCALE) call.…
paavo256
  • 181
  • 3
3
votes
1 answer

quickly change Android system language

I'm studying mandarin and want to change the language of my Android smartphone (Sony Xperia) between english/mandarin (or english/mandarin/portuguese/spanish) faster than using the default system settings. The way it is, I have to enter settings,…
Rodrigo
  • 4,706
  • 6
  • 51
  • 94
3
votes
3 answers

Windows Python: Changing encoding using the locale module

Using Python 2.7 I am writing an abstract web scraper and am having problems when displaying (printing) certain characters. I get the trace-back error: UnicodeEncodeError: 'ascii' codec can't encode character u'\u2606' in position 5: ordinal not in…
Brandon Nadeau
  • 3,568
  • 13
  • 42
  • 65