cultureinfo Questions
2
Solved
Assuming an invariant culture, is it possible to define a different group separator in the format - than the comma?
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
Console.Writ...
Magnesia asked 24/5, 2011 at 12:1
1
Is it possible to get the unit of distance from a CultureInfo class or any other class in the System.Globalization namespace.
e.g. "en-GB" would be "mile", "en-FR" would be "km"
Philina asked 16/5, 2011 at 16:26
1
Solved
I'm trying to make 2 dropdown lists.
The top one offers all cultures, (but no repeats).
Example: English, Spanish, Filipino
After selecting from the top list the bottom list will show any specif...
Shoreless asked 10/5, 2011 at 21:47
1
I first came across a question similar to mine here at stack overflow: Loop through all Resources in ResourceManager - C#. It only solved part of what I need to do. When you request an entry in a r...
Weizmann asked 25/4, 2011 at 21:15
2
Solved
I have the following code that produces a date string in en-us format. I would like to pass in the LCID (or equivalent value for the localized language) to produce the localized version of the date...
Haws asked 27/4, 2011 at 3:8
2
Solved
I work on a fairly large ASP .NET Web Forms application that is currently used primarily in the United States. We are in the process of rolling it out to other parts of the world, which of course m...
Auster asked 26/4, 2011 at 15:57
1
I have a DateTimePicker on my form. I'd like part of the format to include "today", "tomorrow" etc as appropriate. I've got a simple implementation to work out the value (and there are much better ...
Laudanum asked 26/4, 2011 at 16:10
4
Solved
How can i find the language for a given locale?
Example: input: en_US
output: English
Using the .NET libraries? I tried the CultureInfo class, but i can't find something usefull.
Thanks!
Tedda asked 20/4, 2011 at 12:38
4
Solved
Greetings,
I was wondering why there isn't a pre-set enum for cultures in C#?
Since the cultures never change and are always like "nl-NL, en-GB, en-US".. why not make a enum for it to make things ...
Seclude asked 20/4, 2011 at 7:26
3
Solved
Is there a property in some class that can tell me if the current culture is actually the default culture.
Similar to how localization works with winforms. It states in a form if the language is d...
Bromate asked 28/3, 2011 at 16:24
2
Solved
When my application run with a specified culture. Don't close the application, user changes system's culture, ex: change number decimal separator from "." to ",". How to my application can catch th...
Bonbon asked 17/1, 2011 at 9:17
6
Solved
So, i have this problem where Microsoft actually got the month names wrong for the Greenlandic culture (kl-GL). I also know that i can pass my own array of string to the DateTimeFormatInfo.MonthNam...
Colorfast asked 17/12, 2010 at 19:31
2
Solved
I have simplified in a big way the problem and here is the sample code:
string outputString = string.Empty;
string joinOutputString = string.Empty;
string pathOutputString = string.Empty;
string[...
Syzygy asked 17/12, 2010 at 21:53
3
Solved
I notice that we can set the language for a form by using Xml:lang="en-US". I want to see the named of other languages but not sure where those can be accessed from C#.
Please help.
Edit
I prefe...
Pion asked 19/11, 2010 at 8:24
7
Another simple questions.
I have website with different languages. If I want to access a string from the resource file I would use it like this
Resources.MyResourceFile.MyStringIdentifier
Very ...
Tirado asked 11/10, 2010 at 13:50
4
Solved
It strikes me as an odd design choice that the current culture information (CurrentCulture and/or CurrentUICulture) is a a property of the running thread. At the very least it seems like the scope ...
Eldreeda asked 14/11, 2010 at 3:32
2
Solved
I just noticed that the .NET Framework doesn't include Cuba in the CultureInfo class (format xx-XX). What is the best practice on this case?
Dyslogia asked 14/10, 2010 at 12:18
6
Solved
I am working on a C# application. I want to change number decimal figure with comma(,) where i have dot(.) using regular expression.
For example:
Price= 100,00.56
As this international rule of ...
Macaronic asked 4/8, 2010 at 9:44
3
Solved
I'm having some trouble displaying the time in this format: HH:mm:ss.
No matter what i try, i never get it in that format.
I want the time in the culture of the Netherlands which is "nl-NL".
This...
Abscond asked 1/8, 2010 at 10:39
3
Solved
I am trying to get the users preferred language. I see all kinds of articles on how to set it, but they assume that the user is telling it which language to select (like in a dropdownlist).
In Fir...
Senghor asked 1/7, 2010 at 22:29
5
Solved
I have a multi-threaded application which parses some text and it needs to use English Culture Info for parsing numbers from this text.
So, i do not want to create EngCulture everytime i call the p...
Orlov asked 21/7, 2010 at 11:2
2
Solved
What is the best practice for specifying CurrentCulture or InvariantCulture and not specifying the culture at all?
From what I have read, if you're doing serialization, for instance, you need Inv...
Lickspittle asked 12/7, 2010 at 19:3
2
Solved
In my Jquery script I post two doubles using the browser's CultureInfo (en-UK) that uses the .as a fraction separator. My MVC app is running on a server with locale nl-BE using the , as a fraction ...
Davon asked 2/7, 2010 at 19:39
1
Solved
I need to localize an application and have noticed that several countries don't appear in the list of county codes associated to cultureInfo.
One example is Cyprus, I assume there might be others....
Consider asked 27/5, 2010 at 10:25
6
Solved
This is driving me crazy. I have the following string in a ASP.NET 2.0 WebForm Page
string s = "0.009";
Simple enough. Now, if my culture is Spanish - which is "es-ES" - and I try to convert the...
Eer asked 6/4, 2009 at 15:22
© 2022 - 2024 — McMap. All rights reserved.