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.

0
votes
0answers
12 views

Date is wrongly converted when imported into RStudio from Oracle

I'm working with an Oracle database and have a connection in RStudio using the ROracle package. For some reason some dates are converted when imported into R through either dplyr or dbGetQuery. A ...
0
votes
0answers
25 views

Can't change locale

I'm experiencing the following problem. I want to allow user to change the app's language by choosing among a list of available languages. It usually works exception made for some devices where it ...
0
votes
1answer
24 views

SimpleDateFormat from UTC Calendar Error when Locale is Arabic

I am attempting to convert a timestamp into a date, which I am then putting into the query parameters of a request. Here is the function that converts a timestamp into a date: override fun ...
1
vote
1answer
33 views

Excel VBA .Value2 Number as string

I've encountered some strange behavior. I often have to pass Double values as a string because I need to differ between "0" and "". Look at this easy example: (I'm on a German locale, so my ...
0
votes
0answers
23 views

Polish Date Format in rich:calendar results in error

I have a standard JSF richfaces calendar (using JSF 2.2.18 and richfaces 4.5.16) where the default datePattern is "MMM dd, yyyy" <rich:calendar id="startDate" value="#{startDate}" popup="...
6
votes
3answers
154 views
+50

does a C++ locale have an associated timezone? And if yes, how do you access it?

I've done a little research on this, and I have pretty convincing evidence for the answer YES, and the answer NO. I'm not sure which side to believe. First, the documentation I've found on ...
-1
votes
2answers
37 views

Is it possible to convert locale string to decimal number with thousand separators in JS?

I'm trying to find a way to convert a string which has been outputted by Number.toLocaleString() to a float with thousand and decimal separators. The problem is that I can't find a way to do it for ...
1
vote
1answer
55 views
+50

How to correctly build an Angular 6 app with i18n into “locale directories” with baseHref?

I'm trying to make my app available in multiple languages and I'm following Angular's i18n guide. The default locale is en-US and there is also a French fr and a Spanish es translation. This works ...
0
votes
0answers
25 views

Angular matDatepicker locale fail typing in input box

If I use a datepicker as in <mat-form-field> <input matInput [matDatepicker]="picker" placeholder="Choose a date"> <mat-datepicker-toggle matSuffix [for]="picker"></mat-...
0
votes
1answer
21 views

Rails: Locales using form_with?

How do I use locales and form_with? By locale I mean /en instead of /?locale=en. This is part of my view file: <%= form_with(model: @model, local: true, locale: I18n.locale) do |form| %> ...
-1
votes
0answers
15 views

I build vscode from source, can't set locale to “zh-CN”

version 1.29.0 zh-CN.pak can find in 'locales'
1
vote
1answer
20 views

Fetching currency name for a provided Locale (Python)

I'm looking for a way to fetch a Currency name for a provided Locale. For example: currency_name = get_currency_name(locale ="en_US") print(currency_name) --> "US Dollar" Been scanning the ...
0
votes
0answers
20 views

NumberFormatter whitespace character is not a space - tests fail because of this

I was writing some tests for some help functions for our currency handling code, and specifically the formatting of the different currency formats for the locales that relates to us. This is a ...
0
votes
0answers
7 views

Eclipse support English only

I am using Eclipse Mars on CentOS 7, but It supports English only. I can not switch key board input from English to my language.(ko_kr) I installed a few Korean fonts. Terminal and other program ...
1
vote
1answer
23 views

Get weekdays in order by locale

I'm trying to see if we can get the weekdays in order by locale. For example in US locale, we'll start with Sunday, while FR will start with Monday (in the terms of Calendar). To make sense out of it, ...
0
votes
1answer
27 views

Sequence of Locales

What exactly is the sequence in which the Locales are used? I have 3 properties file: Dolphins.properties name=The Dolphin age=0 Dolphins_en.properties name=Dolly age=4 Dolphins_fr.properties ...
0
votes
2answers
28 views

Android App Bundle with in-app locale change

I've a problem with AAB when I need to change the app locale from within the app itself(i.e. have the language change setting inside the app), the issue is that the AAB gives me only my device ...
1
vote
0answers
21 views

Can we check if the locale output from boost::locale::generator::generate is invalid?

This is a 2-part question that began with me wondering: what happens if the ID input to boost::locale::generator::generate() was some invalid value? I checked the documentation and I couldn't find ...
0
votes
0answers
16 views

Symfony: how to use locale with region and get fallback to short locale

I'm prefixing the URL with the user's locale in my Symfony 3 app. So when I go to fr/my-site the translations contained in messages.fr.yml files are used by Twig. If I add a more specific locale (...
0
votes
0answers
49 views

How do I set language of datetime axis in bokeh?

I have trouble with setting language in which datetime axis is formatted in bokeh. According to documentation, DatetimeTickFormatter produces time ticks 'according to the current locale'. However, ...
4
votes
2answers
121 views

Wrong locale time in Android webview

We have an android app which more or less constists of only a webview, displaying a webapp. At some point, we want to display some timestamp to the user and use the following code let dateString = ...
0
votes
1answer
60 views

List of supported Locale Times

I need to get Locale Time of Nepal but could not get through it. How to get Locale Time for Nepal, which is GMT+5:45? How can I get through it? How to change the Locale, English according to our local ...
1
vote
0answers
21 views

LC_COLLATE (sort-order) differences between Linux and macOS

I have an issue sorting text with accented letters with the sort command on macOS. Here is my locale setup : LANG="fr_FR.UTF-8" LC_COLLATE="fr_FR.UTF-8" LC_CTYPE="fr_FR.UTF-8" LC_MESSAGES="fr_FR.UTF-...
0
votes
0answers
23 views

No message found under code 'null' for locale 'en'?

I am using Jasperserver 6.4. I get the error when creating folder or copy/paste a folder: No message found under code 'null' for locale 'en'. My reports are working well but I can't create any ...
1
vote
1answer
31 views

How to correctly sort accented letters in Python?

I have to no avail, tried to get the Norwegian letters to be sorted in correct order. import locale locale.setlocale(locale.LC_ALL,'no_no') sorted(list('æøå')) # string is already in correct ...
0
votes
0answers
18 views

Kendo UI for Angular: Wrong datetime pattern?

I am looking into kendo UI for Angular and needs to change the the timepicker to match the current culture when it comes to the time section. For instance, if I am using sv locale it should show a 0-...
0
votes
0answers
112 views

Strange locale problems in RStudio after update to OsX Mojave

I'm having strange problems with R after updating to OsX Mojave. When I start up a RStudio project I get: During startup - Warning messages: 1: Setting LC_CTYPE failed, using "C" 2: Setting ...
0
votes
1answer
16 views

Android Configuration Changes lead to change in layout direction

I have an issue with some devices like Note3 designing in portrait mode only I have both RTL and LTR support when I change the language of the App to RTL it is working fine but when I take a photo ...
1
vote
1answer
36 views

How to change Python extension locale in VSCode?

I can't figure out how to install the Python extension in VSCode in another language, specifically - I want it to be in English, but instead it is being installed in the language of my operating ...
0
votes
0answers
34 views

Android ignoring Locale change, using default strings.xml

My app supports two languages, default is English and other one is simplified-chinese. I have created two values folder (values and values-zh-rSG) and have placed strings.xml files that contains ...
0
votes
0answers
24 views

List of JavaSscript Date toLocaleDateString datetime formats

Where can the official list of Date.prototype.toLocaleDateString formats be found? It's not linked from that MDN page, and the accepted answer to this confusingly phrased question lists a different ...
0
votes
0answers
26 views

Should SimpleDateFormat with German Locale be able to parse a String with Timezone CEST?

I have a Java application which basically contains the following code in a test and expects it to throw an Exception: String date ="Fr August 21 16:41:32 CEST 2015"; DateFormat dateFormat = new ...
0
votes
0answers
21 views

R WARNING: You're using a non-UTF8 locale, therefore only ASCII characters will work [duplicate]

After updating my MacOS to Mojave (10.14), the following warnings appear: During startup - Warning messages: 1: Setting LC_CTYPE failed, using "C" 2: Setting LC_COLLATE failed, using "C" 3: ...
-3
votes
1answer
48 views

How to change letters in different locale?

I read HTML text with the following command: text <- read_html("linkoftext") The result is: "Veri analizi, farklı iş, bilim ve sosyal bilim alanlarında çeşitli isimler altında çeşitli teknikleri ...
0
votes
3answers
67 views

SQL changing value to uppercase with specified locale

In SQL, is there any function to uppercase a string with specified locale? Function upper(a_string) takes one parameter which is not enough for characters other than ASCII ones. For example, I want ...
0
votes
1answer
48 views

Issue when changing Locale to ARABIC in Android application

My Android application supports two languages: Arabic and English. Arabic is the default language. Now, to make Arabic as default language, i am changing my app locale to Arabic in Splash Screen. ...
0
votes
1answer
46 views

Get a currency symbol in locale

How to get the correspondent currency symbol by a given currency alpha-3 code name using locale in python? I am doing: import locale, re def get_currency_symbol(alpha_3='USD'): locales_all = ...
1
vote
1answer
25 views

ansible debconf module not working properly to set default locale

- name: Generate required locales locale_gen: name: "{{ item }}" state: present with_items: - "fr_FR" - "fr_FR.UTF-8" - "fr_FR@euro" become: yes - name: rebuild locales database ...
-1
votes
1answer
25 views

Changing Language Settings Resets App or Creates Another Instance of the App

I am having issues with supporting multiple languages. I need help with understanding what is happening. What I am noticing is that whenever I change languages e.g. change language from English to ...
1
vote
0answers
14 views

Excel 2010 - Open file with different locale

I work in a closed Windows environment and I am not able to change the Windows Locale. I am going to receive on a regular basis excel files written in the French Locale and when I open them in my ...
0
votes
0answers
5 views

Twillo QTP message Not sending in English language (locale)

we have integrated twillo for sending OTP code, code QTP code is going properly, but it's going in the Hindi language, I need to send in the English language, please suggest how to send it en English ...
0
votes
2answers
68 views

Convert date format into MM/DD/YYYY

I have dates that are outputted in this format: Thursday, October 11, 2018 I would need to convert it into 10/11/2018 but first I'm struggling with getting rid of the day of the week (Thursday). ...
0
votes
1answer
31 views

Change system locale inside a CentOS/RHEL without using localectl?

I'm trying to build a Docker image based on oracle/database:11.2.0.2-xe (which is based on Oracle Linux based on RHEL) and want to change the system locale in this image (using some RUN command inside ...
-2
votes
2answers
36 views

Time stamp from string issue?

I have two string , date and time . date string has a date in format "MM-dd-yyyy" and time in format "hh:mm a" , I want to create a 10 digit timestamp from the same . I did the following but I am ...
4
votes
2answers
76 views

How to get the first day of week for a certain Locale / Country

I need to get the first day of week for a certain Locale / Country. I tried to find it using this code: final Locale[] locales = new Locale[]{ new Locale("en_GB"), new Locale("ru_RU")...
0
votes
0answers
18 views

Sys.setlocale line has to be run alone in order to work

I have a Shiny app and the csv I am using contains Greek characters. In order to work I have to run this line: Sys.setlocale(category ="LC_ALL", locale ="Greek"). The problem is this line has to ...
1
vote
1answer
63 views

How to change the git command-line language to Dutch?

Running git from my xterm on i3wm on Debian results in English text output. The environment variables LANG and LC_ALL are set to nl_NL.UTF-8 but do not seem to have any effect on this output. The ...
0
votes
0answers
9 views

Spring LocaleChangeInterceptor: how to intercept empty language parameter?

I've got a trivial @Configuration class defining LocaleResolver and LocaleChangeInterceptor beans. The default locale is set to Locale.US. The locale of my computer is de_DE. It works fine as long as ...
0
votes
1answer
20 views

Rails 4 / i18n / can't pass the locales to another page

I'm making a simple website with a home page and a contact form. Now I'm trying to make it into 3 languages using the rails-i18n gem, and it was successful on the home page, but now I'm stuck with how ...
0
votes
1answer
32 views

How to get id number from different locale in model

I have one model (category.rb) in my rails application configured as below: id,name,locale 1,Sociability,en 2,Prudence and Delicacy,en 3,社會性,zh-TW 4,"謹慎性,細膩性",zh-TW I would ...