CultureInfo

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

If I create a CultureInfo object passing LCID 1034 into the constructor, the
ThreeLetterWindowsLanguageName property returns ESN. I get the same
ThreeLetterWIndowsLangiageName of ESN if I use the LCID of 3082. I expected
that LCID 1034 would return ESP as the ThreeLetterWindowsLanguageName. What
have I missed?
 
Hi James,

Welcome to MSDN newsgroup.
Regarding on the cultureInfo for 1034 and 3082 you mentioned, based on my
research, in the current .net framework's implementation, the es-ES
(Spanish/spain) culture is only directly mapped to the 3082 LCID. When we
supply the 1034 as the LCID, the internal code will also assign it the
"es-ES" culture name and duplicated the es-ES's setting. That's why we get
the same value when using 1034 and 3082. So currently for Spanish/Spain
culture, we should use the 3082 lcid (or just use the es-ES lang-REGION
name). Also, you can find that 1034(0x40A) is not existed in the
CultureInfo's lookup table below:

#CultureInfo Class
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemGlobalizationC
ultureInfoClassTopic.asp?frame=true

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| Thread-Topic: CultureInfo
| thread-index: AcXYuAvZkx3ksrPATkOScbdeU1yOCA==
| X-WBNR-Posting-Host: 65.204.235.34
| From: "=?Utf-8?B?SmFtZXM=?=" <[email protected]>
| Subject: CultureInfo
| Date: Mon, 24 Oct 2005 09:29:03 -0700
| Lines: 8
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.framework:34939
| X-Tomcat-NG: microsoft.public.dotnet.framework
|
| If I create a CultureInfo object passing LCID 1034 into the constructor,
the
| ThreeLetterWindowsLanguageName property returns ESN. I get the same
| ThreeLetterWIndowsLangiageName of ESN if I use the LCID of 3082. I
expected
| that LCID 1034 would return ESP as the ThreeLetterWindowsLanguageName.
What
| have I missed?
| --
| James
|
|
 
Hi James,

How are you doing on this issue, does the things in my last reply helps a
little? If there're anything else we can help, please feel free to post
here. Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)





--------------------
| X-Tomcat-ID: 151377552
| References: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: (e-mail address removed) (Steven Cheng[MSFT])
| Organization: Microsoft
| Date: Tue, 25 Oct 2005 08:31:03 GMT
| Subject: RE: CultureInfo
| X-Tomcat-NG: microsoft.public.dotnet.framework
| Message-ID: <by#[email protected]>
| Newsgroups: microsoft.public.dotnet.framework
| Lines: 58
| Path: TK2MSFTNGXA01.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.framework:34990
| NNTP-Posting-Host: tomcatimport2.phx.gbl 10.201.218.182
|
| Hi James,
|
| Welcome to MSDN newsgroup.
| Regarding on the cultureInfo for 1034 and 3082 you mentioned, based on
my
| research, in the current .net framework's implementation, the es-ES
| (Spanish/spain) culture is only directly mapped to the 3082 LCID. When
we
| supply the 1034 as the LCID, the internal code will also assign it the
| "es-ES" culture name and duplicated the es-ES's setting. That's why we
get
| the same value when using 1034 and 3082. So currently for Spanish/Spain
| culture, we should use the 3082 lcid (or just use the es-ES lang-REGION
| name). Also, you can find that 1034(0x40A) is not existed in the
| CultureInfo's lookup table below:
|
| #CultureInfo Class
|
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemGlobalizationC
| ultureInfoClassTopic.asp?frame=true
|
| Thanks,
|
| Steven Cheng
| Microsoft Online Support
|
| Get Secure! www.microsoft.com/security
| (This posting is provided "AS IS", with no warranties, and confers no
| rights.)
|
|
| --------------------
| | Thread-Topic: CultureInfo
| | thread-index: AcXYuAvZkx3ksrPATkOScbdeU1yOCA==
| | X-WBNR-Posting-Host: 65.204.235.34
| | From: "=?Utf-8?B?SmFtZXM=?=" <[email protected]>
| | Subject: CultureInfo
| | Date: Mon, 24 Oct 2005 09:29:03 -0700
| | Lines: 8
| | Message-ID: <[email protected]>
| | MIME-Version: 1.0
| | Content-Type: text/plain;
| | charset="Utf-8"
| | Content-Transfer-Encoding: 7bit
| | X-Newsreader: Microsoft CDO for Windows 2000
| | Content-Class: urn:content-classes:message
| | Importance: normal
| | Priority: normal
| | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| | Newsgroups: microsoft.public.dotnet.framework
| | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
| | Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.framework:34939
| | X-Tomcat-NG: microsoft.public.dotnet.framework
| |
| | If I create a CultureInfo object passing LCID 1034 into the
constructor,
| the
| | ThreeLetterWindowsLanguageName property returns ESN. I get the same
| | ThreeLetterWIndowsLangiageName of ESN if I use the LCID of 3082. I
| expected
| | that LCID 1034 would return ESP as the ThreeLetterWindowsLanguageName.
| What
| | have I missed?
| | --
| | James
| |
| |
|
|
 
Back
Top