Thursday, March 22, 2012

Supporting Languages - Welsh ?

How do I add the Welsh language to IE6 ?
And what would the ISO code be for it ?
I've tried using the User Defined cy as some sites say, but the following
code just uses the catch block as it's not found.
Try
Thread.CurrentThread.CurrentCulture =
CultureInfo.CreateSpecificCulture(Request.UserLanguages(0))
ls_language = Thread.CurrentThread.CurrentCulture.Name
Catch
Thread.CurrentThread.CurrentCulture =
CultureInfo.CreateSpecificCulture("en-gb")
ls_language = Thread.CurrentThread.CurrentCulture.Name
End Try
HttpContext.Current.Response.Cookies.Add(New HttpCookie("Cul", ls_language))
Adrian Parker
Ingenuity At Work LtdHi Adrian,
Welcome to the MSDN newsgroup.
As for the "Welsh", it is still not included in the .net framework (both
1.1 and 2.0)'s predefined cultureInfo list:
#CultureInfo Class
http://msdn2.microsoft.com/en-us/li...cultureinfo.as
px
So even if we add a custom language header(for Welsh) in the http message
through IE's languages setting, the server-side ASP.NET application can not
find the direct mapped culture for it.
BTW, currently for windows XP(>SP2), if you're using .net framework 2.0,
there is a "Welsh" culture available in the OS's regional setting. And in
the .net framework 2.0 code, we can use the "cy-GB" to create the
CultureInfo specific to that setting.'
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Hi Steven,
So if we use cy-GB as our language, it would work, but only using net2.0 on
XPsp2 ?
Is this currently supported on windows 2003 ? and if not now, when will it b
e ?
Thanks
--
Adrian Parker
Ingenuity At Work Ltd
"Steven Cheng[MSFT]" <stcheng@.online.microsoft.com> wrote in message news:%23QOiBxPPGHA.2972@.TK2M
SFTNGXA03.phx.gbl...
> Hi Adrian,
> Welcome to the MSDN newsgroup.
> As for the "Welsh", it is still not included in the .net framework (both
> 1.1 and 2.0)'s predefined cultureInfo list:
> #CultureInfo Class
> [url]http://msdn2.microsoft.com/en-us/library/system.globalization.cultureinfo.as[/ur
l]
> px
> So even if we add a custom language header(for Welsh) in the http message
> through IE's languages setting, the server-side ASP.NET application can no
t
> find the direct mapped culture for it.
> BTW, currently for windows XP(>SP2), if you're using .net framework 2.0,
> there is a "Welsh" culture available in the OS's regional setting. And in
> the .net framework 2.0 code, we can use the "cy-GB" to create the
> CultureInfo specific to that setting.'
> Regards,
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
>
Thanks for your response Adrian,
So far it is limited on other OS version and I haven't got any definite
info on when it'll also be upgrated to windows 2k3. However, for .net
framework 2.0, it doest provide some new features on extending the exiting
culture set regarding on the lack of some built-in or predefined culture in
framework or on windows OS.
#Extend Your Code's Global Reach With New Features In The .NET Framework 2.0
http://msdn.microsoft.com/msdnmag/i...on/default.aspx
Though it is still quite limited, we can use it to do handle some
additional conditions in .net 2.0 applications.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

0 comments:

Post a Comment