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

Does Microsoft SQL Server support localized name sorting?

I'm wondering if Microsoft SQL Server supports sorting based on localization preferences. I see they have a page at https://technet.microsoft.com/en-us/library/cc835499(v=sql.110).aspx which lists how strings are compared based on the norms of the…
work_account
  • 75
  • 1
  • 1
  • 4
3
votes
1 answer

What's the locale for Bahasa / Indonesia and Tagalog / Philippines? Is it id_ID and tl_PH?

What's the locale for Bahasa / Indonesia and Tagalog / Philippines? Is it id_ID and tl_PH? I saw that some sites mention in_ID but I believe "in" for locales is India.
chi11ax
  • 541
  • 1
  • 6
  • 17
3
votes
2 answers

Spanish java.time.format.DateTimeParseException on time String

I am attempting to use the Java 8 DateTimeFormatter class to parse a time string that is in Spanish. After several hours of searching, I cannot find any hints. The error being returned is: java.time.format.DateTimeParseException: Text '905 PM AST…
Matt Davis
  • 31
  • 2
3
votes
0 answers

Why rz of lrzsz package upload file failed with char disordered

I always upload to remote server use rz of lrzsz package like this rz -bey. But it's failed randomly with character gibberish(fill the screen with unknown character), not every time. And the upload is terminated. I must close the XShell Session and…
Adooo
  • 640
  • 6
  • 22
3
votes
2 answers

Laravel redirect to route on locale change

I'm trying to implement easy multi-language routing based on locale in Laravel 5.6.28, but have stuck with redirect after language change. I would like to immediately redirect users to proper route based on changed locale whenever they changing it…
Khasky
  • 139
  • 5
  • 11
3
votes
1 answer

How can I specify the number of decimal places with NumberFormat in Java?

Let's run this code : double number = 12345.678888; String str1 = String.format(Locale.FRANCE, "%.10f", number); String str2 = NumberFormat.getInstance(Locale.FRANCE).format(number); System.out.println(str1); System.out.println(str2); The outputs…
Jenix
  • 2,996
  • 2
  • 29
  • 58
3
votes
0 answers

How to Predict Failure of Google Text-to-Speech?

On Android, when using a TextToSpeech instance that uses the Google text to speech engine, it seems as though the method isLanguageAvailable() is unreliable. I say this because there are many instances where this method will return "success" (0,1,or…
Nerdy Bunz
  • 6,040
  • 10
  • 41
  • 100
3
votes
3 answers

remove KDE notifications on "Language support is incomplete"

I'm continuously getting notification "Language support is incomplete, additional packages are required." in KDE system tray, with only option to obey it and install a hundred of packages. It is happening from a long time ago, I have seen this…
Igor A
  • 311
  • 3
  • 10
3
votes
0 answers

Is using locales like "de-US" or "fr-US" acceptable/valid?

In my application I would allow users in the United States to see pages in German or French when they switch the language. So the region is US and the language is de or fr, what should lead to a constructed locale of de-US or fr-US. That means,…
robsch
  • 9,358
  • 9
  • 63
  • 104
3
votes
1 answer

How do I set locale information for all user accounts (including system user & network service user) in windows 2016

I am currently working on building an AWS AMI for a Windows 2016 base image. I'm doing this by creating a template for packer and I'm having issues getting the system and default user accounts to have their Locale set properly. I need to get the…
3
votes
1 answer

Correctly formatting currencies to more decimal places than the Locale specifies

In France and other countries, the currency symbol is after a monetary amount while in others it is before, plus, the decimal separator is a comma rather than a point (£0.00 vs 0,00 €). If I use the following Java code (from memory, may not compile)…
Rich
  • 15,602
  • 15
  • 79
  • 126
3
votes
2 answers

lon,lat to timezone

Does anyone know if there is any existing solution for determining a timezone from a point (lon, lat)? i could hard code the few i need for this project but it'd be better to use a pre-built solution. thanks.
pstanton
  • 35,033
  • 24
  • 126
  • 168
3
votes
1 answer

How to handle multiple locales for ifstream, cout, etc, in c++

I am trying to read and process multiple files that are in different encoding. I am supposed to only use STL for this. Suppose that we have iso-8859-15 and UTF-8 files. In this SO answer it states: In a nutshell the more interesting part for…
BugShotGG
  • 5,008
  • 8
  • 47
  • 63
3
votes
1 answer

React-Native release crash because of unkown module (momentjs locale)

I'm creating an React-Native App, which is working fine on the emulator on DEBUG mode. However, when I tried on on RELEASE mode, it crashes because of a failing module. The ADB Logcat points to this message as a cause of the exception: …
Fernando Vieira
  • 3,177
  • 29
  • 26
3
votes
1 answer

change decimal point to comma in matplotlib plot

I'm using python 2.7.13 with matplotlib 2.0.0 on Debian. I want to change the decimal marker to a comma in my matplotlib plot on both axes and annotations. However the solution posted here does not work for me. The locale option changes successfully…
Lukas
  • 73
  • 1
  • 10