Directory structure for a language "localized" site

Hi there,
I have been asked to change our web site to be multilingual.

Through investigation I have found that .NET provides a nice way of doing this using it's Globalization and Localization feature.

I'm picking that the best way to do this is to use URL rewriting and have the language specified as part of the URL.  This way a link can be given to someone and they will end up seeing the correct language e.g.

www.mysite.com/en/     <-- english
www.mysite.com/ja/      <-- japanese

My question is, how would I best lay out my directory structure for localization and URL rewriting?

My initial thoughs are to create a sinlge english directory and URL rewrite all of the other languages to this directory.

Has anyone else done this?  What is the best way to do this?
/Default.aspx    <-- redirects to appropriate language depending on the users browser language settings
/images/         <-- images common to all languages
/en/             <-- requests for all languages are URL rewritten to the files in this directory
/en/images_en/   <-- images just for the english site
/en/images_ja/   <-- images just for the japanese site

Open in new window

LVL 5
SoLostAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

drypzCommented:
Hi! There's a built-in asp.net folder (App_GlobalResources and App_LocalResources) for you to use. Take a look at this video, it show you how you can use localization.

http://www.asp.net/learn/videos/video-40.aspx
0
SoLostAuthor Commented:
Hi, thanks for that but I already have a basic understanding of localization.  I'm more interested in the best way to lay out my site from a directory point of view.  For example, where should I put the images for the different languages to make URL rewriting simple.  All of the examples that I have seen are basic single page examples and don't really cover how I should implement the entire site.
0
drypzCommented:
Hi! You may organize your localize resources like this,

For images

Image -> Common - use by all language
          -> en - for english use only
          -> ja - for jap use only
          -> gb - ...
          -> etc - ...
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.