473,395 Members | 2,006 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,395 software developers and data experts.

Bilingual Site. Best practices

I have an English site I need to make available in Spanish. Ideally
there will be a preset switch in the users profile to indicate they
would like to see the site in Spanish.

My first inclination is to make a copy of the site redirect them after
the login.

Outside of doing it this way, or purchasing/using third party
products or controls that deal with localization and maybe use xml to
drive those controls dynamically. Is their an easy way to handle this
in native asp.net 2.0?

As a simple example, say I have a bunch of asp:Labels with hard coded
text= properties in my markup. Is the technique to basically set these
in the codebhind based on the selected language? Is that the typical
and expected route? If so, sound kinda painful and I'd almost rather
maintain a separate site.

Thanks for any help or information.

Nov 10 '07 #1
3 4450
"jobs" <jo**@webdos.comwrote in message
news:11*********************@50g2000hsm.googlegrou ps.com...
Thanks for any help or information.
The usual method for this is to use resource files:
http://www.google.co.uk/search?sourc...resource+files
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 10 '07 #2
Nice! I just did a simple vb.net asp.net project to test it. And do
see it using the generated resx file over fixed values on my markup.
Dumb question, I made a copy of the that as resx file .. called it
NEW.aspx.resx file under the App_LocalResources folder. Now how do I
get my site to use the alternative resx file? I won't be using the
browser setting to drive which language will be used. I will want to
control that from a setting in the users profile.

Also, where would be a place to make that switch? any chance I could
make it only once and it would stay set for the duration of the
session for all pages called by that session? or will each page's
codebehind have to check for that and set it?
Thanks in advance!
Nov 10 '07 #3
re:
!how do I get my site to use the alternative resx file?

http://www.codeproject.com/useritems...balization.asp

!I won't be using the browser setting to drive which language will be used.
!I will want to control that from a setting in the users profile.

Globalization natively uses the browser setting to determine which resx file to use.

To do it the way you want to, you'll need to use a different method.

Many people save the language translations in different database columns,
and have the user select ( or make it a profile option ) the language desired.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"jobs" <jo**@webdos.comwrote in message news:11**********************@c30g2000hsa.googlegr oups.com...
Nice! I just did a simple vb.net asp.net project to test it. And do
see it using the generated resx file over fixed values on my markup.
Dumb question, I made a copy of the that as resx file .. called it
NEW.aspx.resx file under the App_LocalResources folder. Now how do I
get my site to use the alternative resx file? I won't be using the
browser setting to drive which language will be used. I will want to
control that from a setting in the users profile.

Also, where would be a place to make that switch? any chance I could
make it only once and it would stay set for the duration of the
session for all pages called by that session? or will each page's
codebehind have to check for that and set it?
Thanks in advance!


Nov 10 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

30
by: Gustaf Liljegren | last post by:
I'm working with some semi-advanced tables with lots of decimal numbers in, and I can't get the alignment to work. http://www.algonet.se/~gustafl/temp/output_ib.html I want numbers aligned to...
6
by: Tim | last post by:
I am in the process of moving a site from one hosting company to another. This site is fairly large, with hundreds of asp files, each with multiple "include" statements. The new host has a...
2
by: Tim | last post by:
I am doing a small asp webshop and want to make it atleast bi-lingual. I have thought of a few ways to do this but would like to have a second opinion on what you think is the best way. I have...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
9
by: dale zhang | last post by:
Hi, Anybody here has experience to build a english/chinese web? The chap 15 in Developing Web Applications tells sth about how to do this, but I want to know more details. It seems detect...
2
by: Carl Gilbert | last post by:
Hi I was looking to build an E-Commerce web site using ASP.NET. I work with VB.NET and know some HTML so I imagine the learning curve for ASP.NET shouldn't be too steep. I was looking for...
5
by: will | last post by:
I have a php/mysql site and I am wondering if anyone has suggestions about strategies for making it bilingual or resources on how to do this. I thought of one way which would be to replace the text...
5
by: JT | last post by:
Hi, I think I need a "best practices" lesson on web sites and web services. In order to conform to the restraints of my web host, my web services seem to need to be in a subfolder of my web...
5
Jacotheron
by: Jacotheron | last post by:
I have a problem again. I have a 2 sites for one of my customers. The site is English and Afrikaans. The English site is parked on the Afrikaans site. The script should check to see if the page...
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: 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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...

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.