Questions tagged [locale]

1

votes
1

answer
43

Views

DrawerLayout locale does not change

I am making a multi language application. On click of a button I am restating the app via this code : public void triggerRebirth(Context context) { Utility.setRestart(context,true); homeActivity.stopMediaPlayers(); PackageManager packageManager = context.getPackageManager(); Intent intent = package...
Parth Anjaria
1

votes
0

answer
579

Views

Yocto install glibc-locale components

I need to install the glibc-locale package in my Yocto built Debian image. The final image should have the charmaps installed along with the 'locale' and 'localedef' commands so that 'local -m' creates a list of available charmaps that is similar to that in an Ubuntu distro, and I can use localedef...
jollyGreen
1

votes
0

answer
209

Views

Strange behaviour of locale.setlocale in Python3

I have the same beginning in two Python programs: #!/usr/bin/env python3 # -*- coding: utf-8 -*- from lxml import etree, html from lxml.builder import E import re import sys import locale #locale.setlocale(locale.LC_ALL, 'es_ES.UTF-8') locale.setlocale(locale.LC_ALL, '') In one case, everyth...
Pedro A. Aranda
1

votes
1

answer
58

Views

Windows installation error for postgresql. Error in make command

I am new to postgresql. I want to install postgresql through source code in windows. I am using MinGW and msys for installation. Configure command is working fine with me. When i execute make command I am getting errors. Would any one please help me to rectify these errors. [gcc -Wall -Wmissing-prot...
roopteja
1

votes
0

answer
49

Views

Use Of Different Locale Values for Different Methods

When I use nextDouble() method of Scanner class like try (Scanner input = new Scanner(Paths.get('input.txt'))) { double d = input.nextDouble(); System.out.printf(Locale.getDefault(),'%.2f',d); } catch (NoSuchElementException | IllegalStateException | IOException e) { e.printStackTrace(); } nextDoubl...
Neophyte
1

votes
0

answer
40

Views

AngularJS $locale service doesn't return correctly language

I am trying to get locale from $locale service my current browser using French(Switzerland) but the $locale service doesn't return correctly. I did a try here: Example angularjs $Locale Did I make some mistake here, please guide me on it.
Le Dac Sy
1

votes
2

answer
275

Views

Language on Botframework

Im goind through the bot framwork and Im having trouble fixing the global language. The problem is that I cannot change the backend commands and responses that are built in the framework, they are always in english. For example, in Formflow, I would like to enter 'help' but in other language instead...
JohnSDev
1

votes
3

answer
215

Views

Date Format with Locale

I want to display date according to each country's date format. I have tried many ways finally I found this example http://www.java2s.com/Code/Java/Data-Type/DateFormatwithLocale.htm Which gives the perfect output of what I meant. Some countries like Germany won't use 12hr formats instead they uses...
Adhithya G Nair
1

votes
0

answer
52

Views

Can not change text after Locale has changed

I try to use two languages in my application.I have different string.xml files in my project. I try to change language like this public class LocaleManager { public static final String LANGUAGE_ENGLISH = 'en'; public static final String LANGUAGE_GEORGIAN = 'ka'; private static final String LANGUAG...
BekaKK
1

votes
0

answer
101

Views

Pythonnet output encoding

I want to call Python with C# and My solution is to use Pythonnet lib ( https://github.com/pythonnet/pythonnet ). But I got a problem when testing it with their sample code. My output string becomes garbled. Here is my code and my output string. Does anyone know what the problem is? Thank you in a...
Alexander Huang
1

votes
1

answer
27

Views

Batch: enforce language

Is there any command that says 'Now in english, please' to the computer? I don't want to change the system locale like here, all I need is to change the language temporarily within the code execution. Backstory: I am writing a script to automatically report system informations to feed them into a da...
Crowley
1

votes
0

answer
72

Views

Oracle DB 12r2 java source locale issue

I have issue in Oracle DB 12r2 (win64 with 12.2.0.1.180417 patchset) with locale usage in java source. Action to reproduce: -- Java source create or replace and compile java source named tmp_j as import java.text.DecimalFormat; import java.util.Locale; import java.text.DateFormat; import java.util.C...
Kotodid
1

votes
0

answer
28

Views

How to reorder Android 8.0 language list in Welcome Page

As we all know, google put en_US first in the list, so make it default in android\o-base\build\target\product\full_base.mk file, but I don't want to change this file, and I had found the language list setting in LocalePicker.java the method getAllAssetLocales() to load all kinds of languages. But if...
Huang
1

votes
0

answer
115

Views

Admob ads not showing after change language

Hi my android admob ads is showing in normal way but after i run this code and restart the activity the ads not showing anymore Resources resources = App.getContext().getResources(); DisplayMetrics dm = resources.getDisplayMetrics(); Configuration config = resources.getConfiguration(); if (VersionUt...
Neo
1

votes
1

answer
30

Views

Why do I get different Locale.current in different Apps?

I have two different Apps that I run from XCode on the same device. In AppDelegate application didFinishLaunchingWithOptions I print out the following debugging message: print( Locale.current ) In one App it prints out sv_SE (as I would expect), but on the other App it prints out en_SE !! As a re...
ragnarius
1

votes
1

answer
23

Views

How to format a number string to an appropriately localized display format?

I have this code that calls an API: setInterval(function(){ getPrintCount(); }, 1500); function getPrintCount(){ $.ajax({ url: 'https://data.memopresso.com/api/data/count', dataType: 'json', type: 'get', cache: false, success: function(data){ document.getElementById('printCount').innerHTML = data.co...
Yu En W
1

votes
0

answer
212

Views

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 Locale set to en-AU (the AWS AMIs default to en-US)....
Kris Croaker
1

votes
0

answer
67

Views

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, French gets displayed, but e.g. the format of dates cor...
robsch
1

votes
0

answer
28

Views

PHP - How to make app read beautified locale uri parameter?

So instead of www.example.com?locale=en, I want to have www.example.com/en/ (or any other country code like de, nl...), so that locale part of uri is available in PHP code, so I could use it to determine in what language content should be displayed. Any kind of help would be appreciated. :)
Zoka
1

votes
0

answer
605

Views

Perl failed locales. How do you set it?

I am getting the following whenever I try and run perl on Ubuntu 18.04: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = 'en_GB.UTF-8', LANG = 'en_US.UTF-8' are supported and installed on your system. perl:...
John Crawford
1

votes
0

answer
40

Views

Changing the language of menu items

I'm trying to add a new locale and the language change option to a menu I created. Below you can see the code that I have my progress so far Essentially, I'd like the menu items for 'sports' and 'districts' to change to Chinese after the radio button for '中文“ is clicked. My JavaScript skill...
Brian Hebert
1

votes
0

answer
43

Views

Can std::wofstream << WCHAR and << CHAR at the same time?

How can we write WCHAR and CHAR to a wofstream at the same time?like this: wofstream
Li Da
1

votes
1

answer
32

Views

language specific chars base letter and sorting

I'm trying to print out a sorted list of items and print the first letter as a 'group' headline for each item. The code is used on the client side. . The sorting works just fine, the problem is when language specific chars is sorted in another locale. For example is å treated as ain en-GB and ñ as...
anderssonola
1

votes
0

answer
66

Views

Incomplete UTF8 char for UTF8 imbued std stream

I recently got a weird bugreport. The problem is that the following produces an incomplete UTF8 char on some machines: #include #include int main() { std::cout.imbue(std::locale('fr_FR.UTF-8')); std::cout
Flamefire
1

votes
0

answer
70

Views

Resolving lint's deprecated warnings without using @SuppressWarnings

I have a feeling I can deal with the above warning without forcibly suppressing it. However, this doesn't seems to work: static Context updateResources(Context context) { Resources resources = context.getResources(); Configuration config = new Configuration(resources.getConfiguration()); SharedPrefe...
PIXP
1

votes
0

answer
105

Views

Apache POI: German cell format in concatenated string cell

I've got an Excel-(xlsx-)file with two cells: A1 is numeric with value '5.3' B1 is formula ='Number: '&A1 When I open this Excel-file in German LibreOffice or Excel then both show me cell content with comma-separator: A1: 5,3 B1: Number: 5,3 When I read the contents with Apache POI (version 3.17; ne...
S. Doe
1

votes
1

answer
77

Views

How to correctly localize Android resources to support multiple languages?

I've been working on an Android application that is going to be used throughout different countries. Because of this I have followed the Android Developer Guide to support different languages for an application and used the Translation Editor in Android Studio to specify the resources I want transla...
MasterQueue
1

votes
0

answer
21

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 English Locale settings at work, the dates are changed. (from yyyy/mm/dd to dd/mm/yyyy). This is done a...
LAmaral
1

votes
0

answer
30

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 anything on what happens if we passed in something like test instead of en_CA.UTF-8. I know that no exc...
cechow
1

votes
1

answer
137

Views

Angular matDatepicker locale fail typing in input box

If I use a datepicker as in and set a locale as in providers: [ { provide: LOCALE_ID, useValue: 'it-IT' }, { provide: MAT_DATE_LOCALE, useValue: 'it-IT' }] it works if the user select date from picker, but if he types inside the input box the date is not parsed in the right way. Eg: the Italia...
user2959635
1

votes
0

answer
33

Views

Symfony user sticky locale

In the past two days I've been trying to make my custom LocaleSubscriber, a subscriber which is supposed to set user's locale to user's preference or to default.
GasKa
1

votes
3

answer
344

Views

How to change Locale? Not working on some Devices

I'm writing app that support two language and I'm changing language with Change app Locale here my code : Locale locale = new Locale('fa'); Locale.setDefault(locale); Configuration configs = new Configuration(); configs.locale = locale; getBaseContext().getResources().updateConfiguration(configs,...
The Jake
1

votes
0

answer
26

Views

Changing locale inside package function

I have a function which resides inside a package, assume the function is called foo(). I want it to read an Excel file with Greek letters, so I change the locale to Greek. After reading in the datafile I do something with this data and the Greek characters and after that I want the locale changed ba...
Veerle
1

votes
1

answer
83

Views

Changing input method on the fly

I have a simple form on laravel which will take name and email only and submit it to database. Name will be in Japanese. I can validate it in controller. However, when I am using chrome; after inserting the name in Japanese; I press TAB key and input method automatically changes when cursor is on th...
Nabil Farhan
1

votes
1

answer
131

Views

Display ISO 8601 date string as local date and time based on navigator.language

I've been trying to display the local date and time after parsing ISO string to local timestamp based on navigator.language. let sampleDate = new Date('2018-11-29T09:54:46.863207Z').toLocaleString(navigator.language); So when I change the browser language preferences it reflects the date format in p...
kal93
1

votes
2

answer
62

Views

Locale not available in PostgreSQL 9.6 on Jelastic 5.4

I have an automated deployment procedure, based on bash scripts, that creates a database on a PostgreSQL node on a Jelastic environment. My provider is using version 5.4 of the Jelastic platform. The automated procedure has been used dozens of times successfully, but it refuses to run today. My olde...
Esteban
1

votes
1

answer
80

Views

Invalid unicode character causing MySQL string error

I need to add a record to our MySQL database (via Omeka) that includes an invalid unicode character (this one) The error message I get via Omeka is: Mysqli statement execute error : Incorrect string value: '\xF0\xAA\xA8\xA7\xE7\x94...' for column 'text' at row 1 The database field is longtext with...
Another_Omeka_User
1

votes
1

answer
68

Views

C# DateTime toString behaves differently on windows server 2012 and 2016

I have the same instance of an application on a windows server 2012 and another on a windows server 2016, But in 2012 version, C# toString('yyMMddHHmmss') on DateTime object behave differently than 2016 version ! Here is the log of toString I get in 2012 server: Info Culture is: fa-IR Info UiCultur...
Rathma
1

votes
1

answer
76

Views

Flutter:Equivalent to NSLocale (iOS) & Locale (Android)

I am trying to get ISOCountryCodes(list) from the phone system. I use NSLocale.isoCountryCodes in iOS native and Locale.getISOCountries() in the case of Android native. I am trying to do a new app in Flutter , was looking for the API for ISOCountries, couldnt find any in documentation. Does Flutter...
anoop4real
1

votes
1

answer
315

Views

Angular Material DatePicker's input shifts month and day after typing

I'm developing a app using Ionic 4/Angular 7 and Angular Material 7.2.1. The app uses brazilian date format DD/MM/YYYY. When I select the date with the datepicker itself the text in the input is fine. But, after type the date in the datepicker's (on blur) input, the month and day are switched. For e...
Natanael

View additional questions