473,387 Members | 1,517 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

UICulture on MUI WindowsXP question

Hi !
I have determined, that
System.Threading.Thread.CurrentThread.CurrentUICul ture is en-US if I
choose english as language for menus and dialogues in a MUI WindowsXP.
If i set the LOC flag on english (US) it is possible to change the
dataset settings, because these are also en-US. But if I choose LOC
en-GB, System.Threading.Thread.CurrentThread.CurrentUICul ture stay in
en-US and it is not possible to set culture changes (NsNSymbol) on the
dataset.

Why does System.Threading.Thread.CurrentThread.CurrentUICul ture not
change to en-GB, if I change the LOC flag to en-GB ? (this happens just
on a MUI XP. On a normal, it works.

Oct 10 '06 #1
4 2080
Hi schaf,

Not sure what you mean by changing LOC flag, but CurrentUICulture changes
the resource file, and affects controls and certain settings, provided
your application is shipping the resource file for the new culture. To
change the culture the code is running under, use CurrentCulture.

I'm not familier with MUI OS, but it appears to sit above the
localization, making it appear localized while actually being only the
english version (en-US I suppose). As far as I know, MUI will select the
proper resource file, but it may not change the CurrentUICulture.

To detect the localization on MUI systems use MUI specific methods

http://www.microsoft.com/globaldev/h...v/newapis.mspx


On Tue, 10 Oct 2006 08:48:06 +0200, schaf <sc***@2wire.chwrote:
Hi !
I have determined, that
System.Threading.Thread.CurrentThread.CurrentUICul ture is en-US if I
choose english as language for menus and dialogues in a MUI WindowsXP.
If i set the LOC flag on english (US) it is possible to change the
dataset settings, because these are also en-US. But if I choose LOC
en-GB, System.Threading.Thread.CurrentThread.CurrentUICul ture stay in
en-US and it is not possible to set culture changes (NsNSymbol) on the
dataset.

Why does System.Threading.Thread.CurrentThread.CurrentUICul ture not
change to en-GB, if I change the LOC flag to en-GB ? (this happens just
on a MUI XP. On a normal, it works.


--
Happy Coding!
Morten Wennevik [C# MVP]
Oct 10 '06 #2
Hi Morton !
I'm sorry about describing so confusing. I did not have enough time.
In the regional settings it is possible to select number and DateTime
format in the RegionalOptions tab. In a MUI OS it is possible to select
the language used for Dialogues and menus (in the languages tab). This
allows french dialogues and menus and en-US dateTime and number format.
The DataSet.Locale is read-only as long as my MUI menu and dialog
settings are different to the settings with the number and datetime.
Sounds OK, but if I choose english as Menu and dialog language and
en-GB as number and dateTime format the dataset.Locale is read-only and
it is not possible to set the NaNSymbole (forInstance)

I have to investigate the MUI settings and the impact on NLS support of
a software.

Regards
Hi schaf,

Not sure what you mean by changing LOC flag, but CurrentUICulture changes
the resource file, and affects controls and certain settings, provided
your application is shipping the resource file for the new culture. To
change the culture the code is running under, use CurrentCulture.

I'm not familier with MUI OS, but it appears to sit above the
localization, making it appear localized while actually being only the
english version (en-US I suppose). As far as I know, MUI will select the
proper resource file, but it may not change the CurrentUICulture.

To detect the localization on MUI systems use MUI specific methods

http://www.microsoft.com/globaldev/h...v/newapis.mspx


On Tue, 10 Oct 2006 08:48:06 +0200, schaf <sc***@2wire.chwrote:
Hi !
I have determined, that
System.Threading.Thread.CurrentThread.CurrentUICul ture is en-US if I
choose english as language for menus and dialogues in a MUI WindowsXP.
If i set the LOC flag on english (US) it is possible to change the
dataset settings, because these are also en-US. But if I choose LOC
en-GB, System.Threading.Thread.CurrentThread.CurrentUICul ture stay in
en-US and it is not possible to set culture changes (NsNSymbol) on the
dataset.

Why does System.Threading.Thread.CurrentThread.CurrentUICul ture not
change to en-GB, if I change the LOC flag to en-GB ? (this happens just
on a MUI XP. On a normal, it works.

--
Happy Coding!
Morten Wennevik [C# MVP]
Oct 10 '06 #3
Try to read this:
http://msdn.microsoft.com/msdnmag/is...asicInstincts/

chanmm

"schaf" <sc***@2wire.chwrote in message
news:11**********************@c28g2000cwb.googlegr oups.com...
Hi !
I have determined, that
System.Threading.Thread.CurrentThread.CurrentUICul ture is en-US if I
choose english as language for menus and dialogues in a MUI WindowsXP.
If i set the LOC flag on english (US) it is possible to change the
dataset settings, because these are also en-US. But if I choose LOC
en-GB, System.Threading.Thread.CurrentThread.CurrentUICul ture stay in
en-US and it is not possible to set culture changes (NsNSymbol) on the
dataset.

Why does System.Threading.Thread.CurrentThread.CurrentUICul ture not
change to en-GB, if I change the LOC flag to en-GB ? (this happens just
on a MUI XP. On a normal, it works.

Oct 10 '06 #4
Hi chanmm!

Thanks for your answer. I have read the BasicInstincts, but I can not
determine why the Dataset.Locale is Read-Only, when I use the Windows
XP MUI and the selected localization (for dateTime and numbers) does
not fit System.Threading.Thread.CurrentThread.CurrentUICul ture and why
this stay in en-US when I change it to en-GB.
Thanks and regards
Marcel
Try to read this:
http://msdn.microsoft.com/msdnmag/is...asicInstincts/

chanmm

"schaf" <sc***@2wire.chwrote in message
news:11**********************@c28g2000cwb.googlegr oups.com...
Hi !
I have determined, that
System.Threading.Thread.CurrentThread.CurrentUICul ture is en-US if I
choose english as language for menus and dialogues in a MUI WindowsXP.
If i set the LOC flag on english (US) it is possible to change the
dataset settings, because these are also en-US. But if I choose LOC
en-GB, System.Threading.Thread.CurrentThread.CurrentUICul ture stay in
en-US and it is not possible to set culture changes (NsNSymbol) on the
dataset.

Why does System.Threading.Thread.CurrentThread.CurrentUICul ture not
change to en-GB, if I change the LOC flag to en-GB ? (this happens just
on a MUI XP. On a normal, it works.
Oct 13 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Kirk Quinbar | last post by:
hi, I have the following sample .NET 1.0 code which converts a metafile to a bitmap: Dim tmpImage As Bitmap 'System.Drawing.Image Dim streamX As New System.IO.MemoryStream() Dim fs As...
2
by: Keyser | last post by:
On most my pages, I use Javascript to play a sound. It works fine in Netscape 4.7, Netscape 7.2, Firefox 1.0, IE5 and IE6 using Windows98 as the operating system. However, using WindowsXP as the...
2
by: Daniel Danilin | last post by:
Hi, is there any plans to make "WindowsXP Peer-To-Peer SDK" for .NET Framework?
5
by: Samuel | last post by:
Hi, I am running into a problem of mixing UICulture = auto and allowing users to select culture using a dropdown list. I am detecting a querystring, "setlang", and when found, setting the...
4
by: Henke | last post by:
Hi I'm building an globalized application (english, swedish and russian languages) and have a few questions: 1. In order to see the russian characters correct I have to set the requestEncoding...
1
by: Roland Müller | last post by:
Hello, we have converted our project to framework 2.0 but we have still some problems, one of it with setting the UICulture for a aspx-site. Example: there is a simple aspx test site in a...
1
by: Klaus Jensen | last post by:
Hi This question relates to ASP.Net 1.1 - NOT 2.0 I want to set a site-wide UIculture from code. I know it can be set in web.config, but can it be set in code? For instance in...
1
by: Alex | last post by:
I have a question about asp.net. I'm trying to create a multilingual site with resources and stuff, it works ok, but what is the difference between using: UICulture = "en" or using...
1
by: Alex | last post by:
I have a question about asp.net. I'm trying to create a multilingual site with resources and stuff, it works ok, but what is the difference between using: UICulture = "en" or using...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.