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

Flutter - Nullability problem with Locale

Below code has no compiler warnings or errors. Running it results in: lib/main.dart:26:51: Error: The argument type 'Locale?' can't be assigned to the parameter type 'Locale' because 'Locale?' is nullable and 'Locale' isn't. - 'Locale' is from…
Jemolah
  • 1,962
  • 3
  • 24
  • 41
3
votes
2 answers

Enumerate Windows Paper Sizes

I can get the current Locale paper size using GetLocaleStr(LCID,LOCALE_IPAPERSIZE,IntToStr(DMPAPER_A4)) where LOCALE_IPAPERSIZE = $100A but is there a way to enumerate all paper sizes with their names?
James
  • 9,774
  • 5
  • 34
  • 58
3
votes
2 answers

How to implement localization from fragment?

I am switching application language English to Arabic and vice versa from a fragment. The code below works, it loads the values-ar\strings.xml and the language is changed from english to arabic. The app's UI elements doesn't change immediately based…
3
votes
2 answers

Set locale(Language support) in java

The inbuilt java supports only for few languages.I want to use Sinhala language as locale in my jTextPane in java programme.How can i do this ?.Pls help me...
Thusitha
  • 3,393
  • 3
  • 21
  • 33
3
votes
0 answers

Which characters are transformed by toupper() in the default C++ locale?

With the default "C" locale only a-z get transformed by std::toupper() as is documented for example here. Which characters exactly get transformed by std::ctype::toupper() with the default C++ locale? I'm asking because std::toupper(L'ω',…
Daniel Eiband
  • 73
  • 1
  • 5
3
votes
2 answers

Reading a Hebrew string into VB6 from a DLL res file

I created a String Resource .RES file in Visual Studio 2019 with various string tables for multiple languages, then I compiled the .RES into a VB6 DLL (no code, the VB6 project is just a compiled VB6 DLL). Here is the no-code VB6 project that…
JeffR
  • 765
  • 2
  • 8
  • 23
3
votes
0 answers

How do you make a full stack app multi language? Especially the backend/database etc

I found a million answers for how to add multi language support to a website/frontend. I can not find anyone talking about how to make the backend or API support multi language. Simple example from my current project: Nextjs React server for the…
3
votes
2 answers

why do I get a locale error even though it is set?

When I run bitbake, I'm getting the following: $ bitbake core-image-base Please use a locale setting which supports utf-8. Python can't change the filesystem locale after loading so we need a utf-8 when python starts or things won't work. even…
stdcerr
  • 13,725
  • 25
  • 71
  • 128
3
votes
3 answers

Getting default language from country code in Java

I need to find the language based on country code. For country code "US", it should return "en" or "CN" should return "zh". I went through java.util.Locale, it works on LanguageCode rather than countryCode. Also, Locale.getAvailableLocales is not…
Amit Kumar
  • 377
  • 4
  • 17
3
votes
1 answer

C application special characters Äöü not showing up correctly in MySQL and terminal

I'm trying to set up my C application so it supports special characters such as ÄÖÜ. However, in the terminal and in my MySQL database they do not show up and are replaced with an " ?". I'm using UTF-8 for the entire db and also set the locale in my…
Frank Vilea
  • 8,323
  • 20
  • 65
  • 86
3
votes
3 answers

What is the locale of UTF-8?

I am getting an XML file from the Facebook API with the data:
chacham15
  • 13,719
  • 26
  • 104
  • 207
3
votes
0 answers

C++ standard library character conversion from utf-8 to cp1251 FreeBSD

I try to convert sentence from utf-8 encoding into CP1251 in FreeBSD (in Windows it works fine). Conversion from utf-8 to German ISO8859-1 also works in FreeBSD, but to any Russian encoding does not. Here is the code: #include #include…
Stepan Pavlov
  • 119
  • 2
  • 3
  • 7
3
votes
1 answer

changes in locale does work when add many modules

The Locale does work when have many modules. Context: We use Crowdin (this lib apply a wrapper above context) The app works perfectly when only is a single module Use Appcompat:1.2 When Change the locale works but, when i add a new module in…
David Hackro
  • 3,652
  • 6
  • 41
  • 61
3
votes
1 answer

Determining if an Android preference was set previously

I have an app which will have the UI text in different languages. I do not want to save this in the strings.xml, because I want the user to be able to change them (and not be dependant on the phone's locale). I've setup a preference to read this. By…
Sandy
  • 2,572
  • 7
  • 40
  • 61
3
votes
3 answers

What is the best practice to setup multilanguage store (any sql upgrades)?

It's boring to add store views manually, especially when your store has many languages. Does anyone use sql upgrade script for adding store views and assigning appropriate locale? How can I do this via sql upgrade script?
Snowcore
  • 996
  • 2
  • 9
  • 20