Localization in ASP.NET 3.5 with ISO 639-2 Code

Last post 07-20-2008 9:43 PM by wuz. 2 replies.

Sort Posts:

  • Localization in ASP.NET 3.5 with ISO 639-2 Code

    07-06-2008, 11:06 AM
    • Member
      30 point Member
    • wuz
    • Member since 06-04-2008, 9:07 PM
    • Posts 188

    Hello everybody,

    Does the .net framework find the correct property files when i use 639.2 instead of 639 for example "eng-US" instead of "en-US"?

    greetings

  • Re: Localization in ASP.NET 3.5 with ISO 639-2 Code

    07-10-2008, 11:33 AM
    • All-Star
      17,710 point All-Star
    • vivek_iit
    • Member since 06-18-2006, 6:13 PM
    • New Delhi
    • Posts 3,171
    • TrustedFriends-MVPs

     Yes, the CultureInfo class has a ThreeLetterISOLanguageName property too.

    HTH,

    Vivek 

  • Re: Localization in ASP.NET 3.5 with ISO 639-2 Code

    07-20-2008, 9:43 PM
    • Member
      30 point Member
    • wuz
    • Member since 06-04-2008, 9:07 PM
    • Posts 188

    Thx, alright I wanted to standardize my project on 639-2 and so for example inititate Thread.CurrentThread.CurrentUICulture = new CultureInfo("eng-US") but this leads to an ArgumentException because "eng-US" is not valid. On http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.aspx the Culture identifier are listed, so long story short i have to use 639 and 639-2 only for the cases where the language code is not available with 2 letters (e.g. kok-IN).

    But this is not such a big deal, because i can use  ThreeLetterISOLanguageName property when i wanted to make the connection to a database where i am only working wih 639.2.

    Anyways in my eyes it would have been nicer only to work with 639-2

     

Page 1 of 1 (3 items)