locale

gnome-terminal doesn't work maybe because of locale setting

ε祈祈猫儿з 提交于 2020-01-13 11:03:28
问题 I installed Antergos (easy version of Arch) with the Japanese environment. But I wanted to chaned the language to English, so I reffer the wiki article then run some commands after uncomment #en_US.UTF-8 UTF-8 in /etc/locale.gen and edit /etc/locale.conf into following: LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 LC_NUMERIC=en_US.UTF-8 LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=en_US.UTF-8 LC_ADDRESS=en_US.UTF-8 LC

gnome-terminal doesn't work maybe because of locale setting

大憨熊 提交于 2020-01-13 11:03:18
问题 I installed Antergos (easy version of Arch) with the Japanese environment. But I wanted to chaned the language to English, so I reffer the wiki article then run some commands after uncomment #en_US.UTF-8 UTF-8 in /etc/locale.gen and edit /etc/locale.conf into following: LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 LC_NUMERIC=en_US.UTF-8 LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=en_US.UTF-8 LC_ADDRESS=en_US.UTF-8 LC

JSpinner and double with dot or comma as separator

你说的曾经没有我的故事 提交于 2020-01-13 10:50:08
问题 I would like to allow both "comma" and "dot" as separator in double. I could use replace method in string to get only one separator, but problem is that double value is value of JSpinner and I was not able to find any method to allow both separators. If I set locale for example to French only one separator is allowed. 回答1: Just use a custom formatter for the JFormattedTextField of the DefaultEditor of the JSpinner , like the code below: import java.text.ParseException; import javax.swing

How to get the currency symbol for particular country using locale?

折月煮酒 提交于 2020-01-13 09:45:08
问题 I have tried this code and it gives me the Country Code for some countries instead of the currency symbol I want the currency symbol not the code The array resourseList contains all the countries with it's code String m= (String) Array.get(recourseList,i); String[] ma=m.split(","); Locale locale=new Locale("en", ma[1]); Currency currency= Currency.getInstance(locale); String symbol = currency.getSymbol(); ( (TextView) finalV.findViewById(R.id.currencySymbolid)).setText(symbol); 回答1: It says

Where are the AngularJS I18n files?

岁酱吖の 提交于 2020-01-13 07:33:45
问题 They talk about locale-specific files here http://docs.angularjs.org/guide/i18n but don't mention where to get them (the official AngularJS repo doesn't contain them). So where does one obtain these locale files? 回答1: You can also get them with bower : bower install angular-i18n It is the official bower distribution that mirrors the files at https://code.angularjs.org/ More info at https://github.com/angular/bower-angular-i18n 回答2: Lastest stable version i18n files at here: http://code

Git GUI: how to change the locale

心已入冬 提交于 2020-01-12 16:28:21
问题 On my German Windows, when launching git gui it occurs in hard-to-understand German. How can I change it to the default English? The Git GUI options menu item does not offer such an option. 回答1: Just set the environment variable LANG to the value en_US . 回答2: Just guessing: if it uses localization files, you can either delete German localization file (it most probably will fallback to English) or create duplicate of English and replace German with it. 回答3: This is a very old question and I am

How to change language in android google maps v2 programmatically

℡╲_俬逩灬. 提交于 2020-01-11 07:38:50
问题 I have an app where you can change the locale from the settings (the purpose is to be able to have a locale inside the app that is different from the system locale) and I would like to be able to set the map's language as well. I could only find answers like "set the system language of your phone", which is not what I am looking for. Is there a way to set the map's language programmatically or from xml? public class LocalizedActivity extends FragmentActivity { private GoogleMap map; protected

How to change language in android google maps v2 programmatically

家住魔仙堡 提交于 2020-01-11 07:38:06
问题 I have an app where you can change the locale from the settings (the purpose is to be able to have a locale inside the app that is different from the system locale) and I would like to be able to set the map's language as well. I could only find answers like "set the system language of your phone", which is not what I am looking for. Is there a way to set the map's language programmatically or from xml? public class LocalizedActivity extends FragmentActivity { private GoogleMap map; protected

Android RTL issue in API 24 and higher on locale change

霸气de小男生 提交于 2020-01-11 03:37:36
问题 I was trying to change locale of app at runtime. It is working fine in Andorid below API level 24. But in API level 24 or greater the layout direction is not changing according to locale. Below is the code to change the locale at runtime. I have used LocaleHelper class as below public class LocaleHelper { private static final String SELECTED_LANGUAGE = "Locale.Helper.Selected.Language"; public static Context onAttach(Context context) { String lang = getPersistedData(context, Locale.getDefault

使用Vagrant建立好虚拟机后,经常会出现

蹲街弑〆低调 提交于 2020-01-09 20:48:55
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 使用Vagrant建立好虚拟机后,经常会出现locale setting failed的问题 perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_PAPER = "en_US.UTF-8", LC_ADDRESS = "en_US.UTF-8", LC_MONETARY = "en_US.UTF-8", LC_NUMERIC = "en_US.UTF-8", LC_TELEPHONE = "en_US.UTF-8", LC_IDENTIFICATION = "en_US.UTF-8", LC_MEASUREMENT = "en_US.UTF-8", LC_CTYPE = "zh_CN.UTF-8", LC_TIME = "en_US.UTF-8", LC_NAME = "en_US.UTF-8", LANG = "en_US" are supported and installed on your system. perl: warning: Falling back to the standard