473,661 Members | 2,464 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to make asp.net website multi-lingual from the outset

Before I start creating a new asp.net website, is there a standard way of
making it multi-lingual?

For example, rather than type in body text to a page, should I rather refer
by number code to a row in a language table from which to pull the
appropriate text? Same with menu elements etc? I am thinking of having a
drop-down on the top-right like MS does with Language and country flag too.

Apr 10 '08 #1
1 1205
Start by placing controls on the page that hold anything that has to be in a
specific language. You then create a resource file for your default
language.

For any bits that change regularly, you are better to store in a persistant
store, like a database, than resource files, so it is sometimes useful to
put all text in the database and use a custom resource provider.

For menus, you can set the text with resource pointers and use resource
files.

As far as language shown to user, I would start with their default language
(selected in their browser) and then allow the drop down to set a cookie
that overrides that decision.

Regardless of whether you store in a database, you can use a resource
provider. Michele Leroux Bustamante has an article on MSDN on custom
providers that is a good start.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************** *************** *************** ****
| Think outside the box!
|
*************** *************** *************** ****
"Jonathan" <no**@none.comw rote in message
news:eB******** ******@TK2MSFTN GP02.phx.gbl...
Before I start creating a new asp.net website, is there a standard way of
making it multi-lingual?

For example, rather than type in body text to a page, should I rather
refer
by number code to a row in a language table from which to pull the
appropriate text? Same with menu elements etc? I am thinking of having a
drop-down on the top-right like MS does with Language and country flag
too.

Apr 10 '08 #2

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

Similar topics

0
1409
by: Remi | last post by:
Hello Everybody! I am going to develop a multi-language website which will include Traditional Chinese, Simplified Chinese, Thai, Japanese, etc. (and English as well). I would like to take an advantage of support that ASP.NET has to offer for localizing. Probably I will use resources and to retrieve localized text among with XML serialization of datasets. There is no need to store data in the SQL Server database, since the
3
1679
by: BLob | last post by:
Hi, I am building a multi languages website. To simplify let's say that I need to deal with news, projects, partners, all of them having some information depending on the language (title, introduction, ...) and some not depending on the language (date_online, date_offline, published, ...). The main point is that I don't want to have to touch the structure of the database or to modify my scripts if one or more languages were to be added....
2
990
by: HTML | last post by:
Hi, When I publish a web site with VS.Net 2005 it always asks for the URL under Target Location. Is there a setting I can check to have VS.Net 2005 remember my last entry? Thanks! P.S. The multi post was an accident, I forgot to include this group in my original post.
17
2273
by: stubbsie | last post by:
Hi, I have redesigned our official public government website in .net and it has taken me a few months to redo. I have been the sole designer of the website from its humble beginnning a few years ago when no one wanted to even mess with it. Since then I have been steadily maintaining it and improving it. I am about halfway done, and all of a sudden my supervisor won't let me make the website in .net. Our programmers use .net to make web...
0
1493
by: mistral | last post by:
how to set right encoding for Multi-language website? Site is on php-based CMS. There is language selectors at top of each page, that user can select language. But i dont know where this implemented in php code or other details.. i work with CMS GUI only, there is settings where 'header' template can be configured (headers are dynamically created for all pages). So, its not possible set different headers for specific pages, all headers...
1
1388
by: ganich | last post by:
Hello, i am looking for a Php script which could help me in organising my website. Ok the problem ... i have created index.html and made full layout in it. I use iframe in a table to view the pages which are navigated on the index.html..i hope u understand..its just like a index.html has all the links and those links open in that iframe page.. now i create a page ..contactus.html and only put the contact numbers in this page. now...
1
1422
by: Manaze | last post by:
Hello and good day. I couldnt find anything about this when i searched around and i hope it is ok to ask here. I am looking to set up a multi user/client DIY website/store much like diyestores.com. the problem im running into is trying to figure out how to do it. im familiar with forums and blogs, as ive got those implimented already. i guess im lost at where to start. i know what to do when i get the tools...its just a matter of finding...
1
1312
by: Manaze | last post by:
I feel dumb because i think i just posted this in the wrong area. I couldnt find anything about this when i searched around and i hope it is ok to ask here. I am looking to set up a multi user/client DIY website/store much like diyestores.com. the problem im running into is trying to figure out how to do it. im familiar with forums and blogs, as ive got those implimented already. i guess im lost at where to start. i know what to do when i...
5
7513
by: Max2006 | last post by:
Hi, I have a TreeView and this is my node style: <asp:TreeNodeStyle ForeColor = "#000000" Font-Size="9px" Font-Bold="false" Width="100px" NodeSpacing="3px" /> The problem is the expand button (+) resides right at the middle of multi-line text. Can I make the expand button top align instead of middle align?
1
47445
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click on a link and after a moment or two a file download dialog box pops-up in your web browser and prompts you for some instructions, such as “open” or “save“. I’m going to show you how to do that using a perl script. What You Need Any recent...
0
8855
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8545
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8633
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7364
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6185
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5653
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4179
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4346
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2762
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.