Solved

Localization in Visual studio 2.0

Posted on 2006-06-13
4
716 Views
Last Modified: 2008-01-09
Environment : Visual studio 2005 C#
Topic : Localization, Resource Files

Question:
I have created a web site and added a page "Sample.aspx" which has 4 labels.
I want to change the text of the labels according to the specific Locale at runtime.

Using
.resx files stored in "App_LocalResources"

and

Thread.CurrentThread.CurrentUICulture = new CultureInfo("ar-ae");
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("ar-ae");

the code works fine.

Now I want to put this .resx files in different folders instead of "App_LocalResources"
for e.g. "sample.aspx.en-gb.resx" in "EN" folder
"sample.aspx.ar-ae.resx" in "AR" folder

Also the .resx files should be editable after deployment.

Can anybody help me doing this functionality

0
Comment
Question by:ap_sajith
  • 2
4 Comments
 
LVL 14

Expert Comment

by:existenz2
ID: 16900805
Have a look at: http://aspalliance.com/726

This answers all your questions and gives you a nice and tidy solution.
0
 
LVL 14

Accepted Solution

by:
existenz2 earned 500 total points
ID: 16900810
Sorry wrong url. I meant:
http://www.ondotnet.com/pub/a/dotnet/2005/08/08/localizingaspnet20.html
http://aspalliance.com/426

You can create special resource assemblies. This allows you to edit the files after deployment without have to build the whole solution again.
0
 
LVL 21

Author Comment

by:ap_sajith
ID: 17067746
Apologies... Missed out on closing off the Q.

Cheers!
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now