HighTechTalks DotNet Forums  

Simple question on CUlture

Dotnet Internationalization microsoft.public.dotnet.internationalization


Discuss Simple question on CUlture in the Dotnet Internationalization forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
calderara
 
Posts: n/a

Default Simple question on CUlture - 09-25-2007 , 08:56 AM






Dear all,

I ma building a new applciation under Vista. how compny MSUT deliver this
application to our customer in there own language, the tricky thing all the
time.
For that I was planning to get a table name Language as follow :

Name Id Culture
==== == ==============
en-US 0x0409 English (United States)
en-GB 0x0809 English (United Kingdom)
en 0x0009 English
fr 0x000C French
fi-FI 0x040B Finnish (Finland)
fr-FR 0x040C French (France)

Base on that table I read the current culture of system regional settings
and then colect proper text based on this table if culture has been define
for the selection.

From this, do I have to make difference between neutral culture and not
neutral like:
en-Us and en , both are english text in a way

Thanks for comments
regards
serge

Reply With Quote
  #2  
Old   
Garrett McGowan [MSFT]
 
Posts: n/a

Default RE: Simple question on CUlture - 09-28-2007 , 04:48 PM






Hello Serge. If I understand your scenario correctly, I think it might be
easier to do the following (using command line app for the example):

namespace culturename
{
class Program
{
static void Main(string[] args)
{

System.Globalization.CultureInfo ci =
System.Globalization.CultureInfo.CurrentUICulture;
System.Console.WriteLine(ci.DisplayName); // native culture name
System.Console.WriteLine(ci.EnglishName); // English culture
name
System.Console.ReadLine();
}
}
}

If you plan to load UI resources based on the system UI language, you'll
want to use CurrentUICulture rather than CurrentCulture/user locale.

--------------------

Quote:
From: calderara (AT) discussions (DOT) microsoft.com
Subject: Simple question on CUlture
Date: Tue, 25 Sep 2007 06:56:00 -0700

Dear all,

I ma building a new applciation under Vista. how compny MSUT deliver this
application to our customer in there own language, the tricky thing all
the
time.
For that I was planning to get a table name Language as follow :

Name Id Culture
==== == ==============
en-US 0x0409 English (United States)
en-GB 0x0809 English (United Kingdom)
en 0x0009 English
fr 0x000C French
fi-FI 0x040B Finnish (Finland)
fr-FR 0x040C French (France)

Base on that table I read the current culture of system regional settings
and then colect proper text based on this table if culture has been define
for the selection.

From this, do I have to make difference between neutral culture and not
neutral like:
en-Us and en , both are english text in a way

Thanks for comments
regards
serge

Garrett McGowan [MSFT Developer International]

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.