473,804 Members | 4,066 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Globalization and Localization

1 New Member
Hi Friends,

I am new to .NET and need your help to sort out one issue. I want to change the language of my program using following code:

Expand|Select|Wrap|Line Numbers
  1.  
  2.          System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("en-US");
  3.  
  4.             System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");
  5.  
  6.  
I have written above code before initialization component() function. I am working on German Operating system.

If I change the cultureinfo code to de-DE then it works fine. But if i change the cultureinfo code to en-US, it gives error "Target invocation exception unhandled" and inner exception is "cannot locate resouce app.xaml".

Any feedback is appreciated.

Thanks and regards,
DS
Feb 4 '08 #1
1 1564
kenobewan
4,871 Recognized Expert Specialist
Sounds like you may be having a framework problem, check msdn for support. Globalization can also be set application wide in the config file. HTH.
Feb 5 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1637
by: enahar | last post by:
Dear Sir/Madam We are going to do the Localization/Globalisation for our product which has nearly got 284 forms using satellite Assemblies. I have got 2 questions 1. How to handle Substrings. 2.What issues can you think could come across during Globalization/Localisation. 3. How to develop an utility(can anybody share the code) which will display the only the text values from the resource files and allow to enter new
2
6031
by: fadi | last post by:
Hello, I have never implemented Globalization and Localization before, but I am trying to plan for it before starting to implement it in new application. From what I am finding is that there are a lot of considerations that could save time if planned up front, so anyone found or knows of good resource(s) to look at to save the pain of figuring it out the hard way? Books, whitepapers, samples, or articles. Thanks
1
2703
by: enahar | last post by:
Dear Sir/Madam We are going to do the Localization/Globalisation for our product which has nearly got 284 forms using satellite Assemblies. I have got 2 questions 1. How to handle Substrings. 2.What issues can you think could come across during Globalization/Localisation. 3. How to develop an utility(can anybody share the code) which will display the only the text values from the resource files and allow to enter new
1
907
by: Steve B. | last post by:
Hello I begin building a web site that must be globalized. I've read about some technics, but I wonder which is the rigth one regarding performances. The web site will display near 20 pages where all UI need to be localized (Ie: login button should display "Login" "Se connecter", etc... according the language). These pages have some picture button that requires to be translated. Moreover, the web site will display content that will be...
2
2085
by: Eric | last post by:
I use the the calendar in VB.NET and then the days are displayed in Dutch. When I run in IE5 , days are in English. I changed the preferred language in IE, no change. I do not understand why VB.NET shows the days in the calendar control in dutch anyway. I set the language option in VB.NET (Tools/Options/InternationalSettings to Same as MS Office. which is English in my case. Appreciate any advice where to look for the logic to get this...
0
1149
by: leodippolito | last post by:
Hello sirs, In my business layer classes I need to throw exceptions with error messages that will be caught by the web pages and shown to the user. Is there any way to enable globalization/localization for these messages with ASP.NET 2.0? Or the built-in mechanism only works for resources in the web pages? Thanks.
1
1285
by: prabhupr | last post by:
Hi All Is there any easy way to validate if my current code base fully support Localization + Globalization? 1. Any tool to scan all my code base files (aspx. cs,...) and identify if there are any hard-coded messages, which needs to be localized 2. The Text/Value property for ASP UI Controls are read from Resource file rather than hard-coded
5
3597
by: Sajit | last post by:
Hi, Could anyone provide any suggestions on how to implement localization features for a multilingual website. Before you jump the guns, let me define the site structure a little more. We have a global site and around 40 country sites. Each of these country sites have localised information both in the native language (fr,de,de-at,it,ar,ar-ae etc). Also, each of these local country sites would have an english counterpart (fr-en,de-en etc)....
1
1172
by: archu007 | last post by:
Hi everyone I want to implement localization and globalization in my web application. my requirement is i wan t my page contents should be changed dynamically according to the selected culture. Is there any way to achieve this? for example if we select chineese then we have to write the related code ie in chineese in resource files.Without writing any thing(code related to chineese) in resource file, or in xml file i want to change...
0
9710
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9589
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10340
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10085
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9163
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7626
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5527
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5663
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3830
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.