multilingual pages in asp.net
-
i have to make multilingual pages in asp.net.i made one pg in english and then copied its resource file to make another resource file for urdu.in the Initilize culture method it gives me this exception: System.NotSupportedException: Culture 'ur' is a neutral culture. It cannot be used in formatting and parsing and therefore cannot be set as the thread's current culture Any suggestions / ideas would be greatly appreciated.
-
i have to make multilingual pages in asp.net.i made one pg in english and then copied its resource file to make another resource file for urdu.in the Initilize culture method it gives me this exception: System.NotSupportedException: Culture 'ur' is a neutral culture. It cannot be used in formatting and parsing and therefore cannot be set as the thread's current culture Any suggestions / ideas would be greatly appreciated.
I'm not familiar to ASP.NET but i guess the problem is similar to a Standard WindowsApplication. The cultureInfo is devided in three groups: invariant languages, neutral languages and specific languages. Invariant languages and neutral languages can not be used as a language in a thread. You always need to define a specific language (in your case it should be "ur-PK"). The three groups of languages are build up like a tree.
invariant--- neutral A -- specific AA
| |-------- specific AB
|
|------ neutral B -- specific BA
|-------- specific BBIn case that the system can not find a "specific AA"-ResX it will fallback to a "neutral A"-ResX. If it doesn't find a "neutral A"-ResX it will fallback to the "invariant"-ResX. The specific languages are like dialects. Localization is quite a complex theme and should be handled carfully. You can find a lot of articles in the internet and the MSDN. Take your time to read a few of them. --good luck-- greets snowprog