Multiple Language versions of a site
- Started
- Last post
- 5 Responses
- johnnnnyh
I need to create a site with a couple of language options. I'm thinking of using CMS Made Simple.
Has anyone any experience of creating the structure for a multi-lang site? Will I need to run two versions of the CMS or is there a way of separating one language content from another within a single install of a CMS?
Is CMS Made Simple the right product for the job or is there something designed to do this?
I could create this without CMS but I suspect somewhere down the line the client will want to update. Any thoughts appreciated.
- billl0
drupal has a multi-language module
http://drupal.org/node/290
- johnnnnyh0
OK thanks, billl, I'll look at this too.
- flavorful0
For multiple language sites I create teh base content in English and then use NLS tables with Locale Codes for every other language.
So as an example...
t_Content = English
t_Content_NLS = Same table w/ added "cde_Locale" field.cde_Locale = 1033, for EN-US (English, US)
cde_Locale = 1034, for FR-FR (French, France)
cde_Locale = 3084, for FR-CA (French, Canada)Only the NLS tables are displayed based on language choice of the user but the base table can be used to figure out what is being displayed if you can't speak German for example.
Also, you can use XML files to be swapped based on this same principle.
- uan0
(no idea about cms', but some exp. in multilang pages)
- use utf-8 encoding.
- separate function from content in your code.
- I use a variable lang to let the code know what content to load.
- sometimes it makes more sense to separate the diff lang contents in subdirectories i.e. lang1/image.jpg , lang2/image.jpg, ... and in smaller sites i think its better to add the lang-var in the contentfile names i.e. image_lang1.jpg, image_lang2.jpg and have all content in 1 directory.
- johnnnnyh0
Thanks guys, I assumed it was going to be complex which it looks like it will be. I'm inclined since there are not too many pages to simply create the eng site and then clone it and create the *Russian* site.