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

Globalization and Localization

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 1501
kenobewan
4,871 Expert 4TB
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
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
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...
1
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....
1
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...
2
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...
0
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...
1
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...
5
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...
1
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....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.