473,396 Members | 1,843 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,396 software developers and data experts.

How to display/set the language in Windows XP?

Hi

I am trying to display and set the language in XP,
therefore I wrote the following program:
using System;
using System.Globalization;
using System.Security.Permissions;
using System.Threading;

[assembly:SecurityPermission(
SecurityAction.RequestMinimum, ControlThread = true )]
public class SamplesCultureInfo
{

public static void Main()
{

// Displays the name of the
CurrentUICulture of the current thread.
Console.WriteLine( "CurrentUICulture is
{0}.", CultureInfo.CurrentUICulture.Name );

// Changes the CurrentUICulture of the
current thread to chinese
Thread.CurrentThread.CurrentUICulture =
new CultureInfo( "zh-CHS");
Console.WriteLine( "CurrentUICulture is
now {0}.", CultureInfo.CurrentUICulture.Name );

}

}

//end program

The languagebar is not updated. So the question is:
How to display/set the language in Windows XP with a C#
program?
Thanks for any help!!

Cheers E.
Nov 15 '05 #1
1 1736
You use CurrentUICulture in combination with localized resources, like
satellite resource files (used to change text on buttons, labels, etc).

You need a resource manager and resources for individual languages for this
to work.

Use CurrentCulture (no UI) to change the culture/language of the program,
though I think this only works within the app and as long as the app runs.

If you are trying to set the language for the whole system, then I don't
know how. You may need to import win32 methods and use those.

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 15 '05 #2

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

Similar topics

4
by: Scott Vercuski | last post by:
Hello All, I'm having a problem saving/displaying multiple lanaguages on an ASP page. Here's the general problem I'm having. I have an admin area of a website that allows a user to enter items...
5
by: David Greenwood | last post by:
I posted this under 'microsoft.public.sqlserver.client' but got no reply. Any help with this problem would be greatly appreciated --------------------- I developed a database under SQL Server...
4
by: SB | last post by:
Hi, I'd like to display some non-ascii characters in a DOS window. I'm getting the characters from Windows Character Map, such as the Spade (U+2660) and a few others. However, I can't get it to...
1
by: Jethro | last post by:
This may be an easy question for you experienced guys, but not for me. I have written lots of code in C, but not C++ and not in windows (old fart). I'm working on a simple program to learn the...
2
by: Jack | last post by:
To whom may concern: In Asp.Net Calender control, how to display week days, like Wednesday as "Wed", Monday as "Mon", even my windows' region is set to Chinese? Thanks in advance! Jack...
11
by: Laurent Compere | last post by:
Hi, I'm trying to do something I thought easy. Explanation : I've recently bought a Multimedia Player DVX-500E. This player is connected via ethernet on my local network et allows among other...
9
by: mukeshhtrivedi | last post by:
We have MS Access 2000 Application (on Network- file server) and it workd fine as intended. However in one of our Windows XP computer (workstation) in bookd jobs module 10 digit field shows 8...
9
by: tshad | last post by:
This was posted before but the message got messed up (all NLs were stripped out for some reason). I have 2 labels that hold the name of different images on my .aspx page. <asp:Label ID="Logo"...
4
by: Pseudonyme | last post by:
Hi all, Ever had an ASP website where you cannot display webpages ? O.S. I am using MSFT Windows Vista Pro (6000) updated with MSFT windows update today + MSFT Office 2007. Browser I am...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.