culture

Java equivalent of Invariant Culture

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-12 06:29:08
问题 I am converting the following C# code to Java. Is there a Java equivalent to the .NET concept of Invariant Culture? string upper = myString.ToUpperInvariant(); Since the Invariant Culture is really just the US culture, I could just do something like this in Java, but I'm wondering if there is a better way: String upper = myString.toUpperCase(Locale.US); 回答1: Update: Java 6 introduced Locale.ROOT which is described as: This is regarded as the base locale of all locales, and is used as the

CultureAndRegionInfoBuilder registration

筅森魡賤 提交于 2020-01-05 10:21:26
问题 I have a web application that is very much driven by culture. I have created some custom cultures and registered them using CultureAndRegionInfoBuilder Once registered do I need to register periodically or is it sufficient to register once and they will be in place on the machine for every more. 回答1: Calling CultureAndRegionInfoBuilder.Register persists the current CultureAndRegionInfoBuilder object as a custom culture on the local computer and makes that culture available to all applications

CultureAndRegionInfoBuilder registration

我的梦境 提交于 2020-01-05 10:21:09
问题 I have a web application that is very much driven by culture. I have created some custom cultures and registered them using CultureAndRegionInfoBuilder Once registered do I need to register periodically or is it sufficient to register once and they will be in place on the machine for every more. 回答1: Calling CultureAndRegionInfoBuilder.Register persists the current CultureAndRegionInfoBuilder object as a custom culture on the local computer and makes that culture available to all applications

CultureAndRegionInfoBuilder registration

旧城冷巷雨未停 提交于 2020-01-05 10:21:05
问题 I have a web application that is very much driven by culture. I have created some custom cultures and registered them using CultureAndRegionInfoBuilder Once registered do I need to register periodically or is it sufficient to register once and they will be in place on the machine for every more. 回答1: Calling CultureAndRegionInfoBuilder.Register persists the current CultureAndRegionInfoBuilder object as a custom culture on the local computer and makes that culture available to all applications

Localize currency values in WPF GridView with different cultures for each row based on XAML bindings to culture name property

可紊 提交于 2020-01-05 07:27:51
问题 First time poster here but have been reading SO for ages and finally have run into a question that I've not been able to answer. I've got a ListView hosting a GridView with multiple columns. One displays a price and another displays a currency code (CAD, USD, GBP, etc). This is all pulled out of SQL server using Entity Framework so the GridView is databound to a IEnumerable which stores the result of my query. The currency code is stored in a separate table with a localization string (en-US,

How can I query the database culture (SQL Server 2005)?

这一生的挚爱 提交于 2020-01-04 02:02:13
问题 How can I query the database culture (SQL Server 2005) ? I have problems inserting and getting dates, because the client's servers don't run on the same culture as my developer server. I can adjust the date, but I need to know the server's culture... 回答1: You can find out about the currently configured language using this: SELECT @@language and you might also want to check out this: EXEC sp_helplanguage It will show the available languages, and what date formats etc. they have. This is

Why is the culture name for English (Caribbean) “en-029”?

吃可爱长大的小学妹 提交于 2020-01-03 07:19:20
问题 Why is the culture name for English (Caribbean) "en-029"? I know "en-CA" is used for English (Canada), but why 029? What does it signify? Why was it chosen? 回答1: Michael Kaplan (aka Microsoft's Unicode guru) just wrote a blog post about that last week. EDIT And actually, if you read the comments you'll see that 029 isn't even an ISO 3166 code because ISO 3166 is only about countries. That's where UN M.49 comes in which defines codes that specify: a wide variety of geographical, political, or

Register custom culture in Windows Azure

情到浓时终转凉″ 提交于 2020-01-01 13:33:41
问题 I am currently developing an ASP.NET MVC 4 app for the African market and was hoping to register a custom culture using the steps detailed in the following link http://msdn.microsoft.com/en-gb/library/system.globalization.cultureandregioninfobuilder.register(v=vs.110).aspx. Most of my target countries are not in the pre-installed cultures so it sounds like I need to register these cultures. Problem is, my console app for doing the registration will need admin previlidges to complete the

Loop through embedded resources of different languages/cultures in C#

早过忘川 提交于 2020-01-01 09:17:09
问题 One level up from this question, what would be the way to store all (and loop through) available resources and associated cultures, to allow user selection of a specific culture? Further explanation: Suppose three resource files: GUILanguage.resx GUILanguage.fr.resx GUILanguage.it.resx I could have a string in each called LanguageName . How would I be able to programmatically loop through the different LanguageName values to list them (in say a list box)? EDIT: WinForms project, embedded

OleDB Read Excel decimal value

廉价感情. 提交于 2019-12-31 06:01:23
问题 I am using OleDB Ace 12 to read an Excel (xslx) sheet containing a column with decimal values. When I open the Excel sheet on my PC a decimal value is correctly formatted as 1.850,50 (NLD culture with comma as decimal separator) When I'm reading out the Excel sheet using OleDB (C#4.0), the string value of this field is always 1,850.50 (US format) I've tried setting the Locale of the DataSet I fill, set the currentthread's culture and more, but the DataSet filled with OleDB adapter always