Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Localization in Visual studio 2.0

Posted on 2006-06-13
4
Medium Priority
?
723 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

722 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