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

Perl fails to set locale even though it is installed

I am having trouble running Perl on a Linux system (Ubuntu): user@Box:~$ perl -e exit perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en", LC_ALL = (unset), LC_CTYPE =…
Nuvanda
  • 474
  • 4
  • 14
3
votes
2 answers

Locale: App's Current Language

How to programatically find the language the app is using. For example the device Locale is set to es_MX but my app supports only en_US and hence the app displays text only in English. How to programatically find that app is using English and not…
3
votes
2 answers

Why is wget printing all messages in Russian when run from the terminal in PyCharm?

For some reason, wget has started printing all of its messages in Russian, but only when run from within PyCharm's terminal. Why is this happening and how can I change it back to English? I am on OSX 10.13, and am using wget 1.19.4_1 installed…
lowtex
  • 707
  • 4
  • 22
3
votes
2 answers

how to add language in Locale.class

i can't find Indonesia language in Locale.class, how can i add that language? so my code bellow showing red text because can't find that language. public static Locale getUserLocale() { int currentLanguage =…
asqa
  • 199
  • 3
  • 17
3
votes
2 answers

An equivalent for Locale.forLanguageTag for minSdk less than 21?

I want to use the Locale method forLanguageTag(). However, the device minSdk that is required for using it is 21. Since I want my app to be compatible with as many devices as possible, I need an equivalent for lower minSdk. Is anybody familiar with…
Lior L
  • 49
  • 1
  • 1
  • 7
3
votes
1 answer

Different output in terminal in Ubuntu 14 and Ubuntu 16

I hope you can help me with my problem: CONTEXT I'm working on a Java application. Following java, instruction works properly in in Ubuntu 16, but It fails when deploying on an Ubuntu 14. String test = "Für test with and without…
Fran Roa Prieto
  • 385
  • 1
  • 3
  • 12
3
votes
1 answer

Django Internationalization---compilemessages error:AttributeError: module 'locale' has no attribute 'normalize'

I am just before finishing line and feel that i don't finish yet! I created and compiled all of the messages in order to have a site with 2 languages and i received this error when running the server: AttributeError: module 'locale' has no attribute…
Cohen
  • 944
  • 3
  • 13
  • 40
3
votes
0 answers

NSLocale.currentLocale returning wrong locale, Canada (English) instead of Canada (French)

A user reported some internalization problems with my app when it came to using periods vs commas for the decimal separator. When I test it with US Region (periods) and with Germany Region (commas) everything works fine. I got him to send me a…
Kenny Wyland
  • 20,844
  • 26
  • 117
  • 229
3
votes
0 answers

Where is the en_US_POSIX locale constant defined?

To use an invariant NSLocale in iOS we create a locale object using the LocaleID "en_US_POSIX". Where is this string constant defined in the iOS Cocoa or Foundation libraries? Would like to stop defining it myself in apps
stonedauwg
  • 1,328
  • 1
  • 14
  • 35
3
votes
1 answer

How to ensure english error messages in testthat unit tests

I have a lot of unit tests using the testthat package that expect english error messages. If other developer run the tests on a computer configured for a non-english locale the error message are emitted in a different language and my tests fail. How…
R Yoda
  • 8,358
  • 2
  • 50
  • 87
3
votes
0 answers

Unicode doesn't work correct in Debian Stretch

I have a problem with some unicode symbols, such as "U+1F5D8". When I visit https://unicode-table.com/en/1F5D8/ in Chrome or Firefox I see square with code ("Your browser" section). I'm using Debian Stretch (stable). I think it might be important,…
3
votes
1 answer

fgets isn't using the set up locale

Considering the following code: #include #include int main() { char test[100]; printf("WITHOUT LOCALE: á, é, í, ó, ú, ü, ñ, ¿, ¡\n"); setlocale(LC_CTYPE, "Spanish"); printf("WITH LOCALE: á, é, í, ó, ú, ü, ñ,…
Kurolox
  • 147
  • 8
3
votes
1 answer

How do I change the english weekday abbreviation?

I have a Problem with setting the abbreviation of weekdays in some time Data. What I need are the abbreviations "Mon, Tues, Wed, Thurs, Fri, Sat, Sun". The lubridate::wday() function I work with gives the values "Mon, Tue, Wed, Thu, Fri, Sat, Sun".…
MichiSmith
  • 317
  • 1
  • 7
3
votes
1 answer

Can I tell my browser to render a page as if I were in another locale?

I am in the US and have Irish client. I need to ensure that all of the date/times are rendering properly in the European fashion. I am using JQuery's datepicker and full calendar. Can anyone help?
bnieland
  • 6,047
  • 4
  • 40
  • 66
3
votes
2 answers

Fetch the locale of laravel app

I can fetch the locale app in blade like this {{ config('app.locale') }}, however, I want to be able to fetch the locale in javascript, specifically in Vue in order to pass it to moment().locale() I tried the following on the view home.blade.php it…
Mike
  • 111
  • 1
  • 10