Solved

Localization in Visual studio 2.0

Posted on 2006-06-13
4
719 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 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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
need to convert function to c# 5 55
Building an object from several other objects 4 39
What are MicroServices? 4 68
Put File 6 37
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…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

739 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