Languages
21 posts by 8 authors in: Forums > CMS Builder
Last Post: September 7, 2011 (RSS)
By jimbly2 - September 9, 2008
in your experience, what is the best way to approach the multi language issue? I am shortly going to be re-developing a site that I built with CMS Builder, that will now have localised versions in Russian and Chinese - is it best to store these as seperate elements - or can this be translated on the fly?
Thanks for any / all advice! [:)]
Jim
Re: [jimbly2] Languages
By Dave - September 9, 2008
To do it in CMS Builder there's two main methods:
1) You can create a duplicate of each field for the different language (Title (en), Title (ru), etc) and then have a different viewer for each page that only shows the fields for that language.
This works well if you can count on everything being translated.
2) You can have a dropdown field for "language" and then separate records for the different languages. Then multiple viewers on the website that filter the results to only show english records for the english section, etc.
Hope that helps!
interactivetools.com
Re: [Dave] Languages
By jimbly2 - September 9, 2008
hope you're well - I'm being a bit slow here - not sure I understand the difference between the two methods? If I've understood it right, you have a different 'table' or section in the database for each language and filter the page to show either russian or english... or do you mean from a drop down you go to a comletely different page?
thanks
Jim
Re: [jimbly2] Languages
By Dave - September 9, 2008
With method 1 your edit page might look like this:
Title (en) [______________________________]
Title (ru) [______________________________]
Content (en) [______________________________]
Content (ru) [______________________________]
And with method 2 your edit page might look like this:
Language [English, Russian | V ]
Title [______________________________]
Content [______________________________]
So that way you have all the content in the database. You'd have to create a second set of all your viewer pages for each language though, or have some other means of determining which fields or records to show.
So there's actually two issues, the first is how you store it all in the database, and the second is how you setup your website to show the right language.
Hope that helps!
interactivetools.com
Re: [Dave] Languages
ok - I think I understand! But I don't really see how you would ony need one section for two languages? [unsure]
thanks
Jim
Re: [jimbly2] Languages
By Dave - September 10, 2008
I guess a 3rd way would be to do it with multiple sections. It really depends on what makes the most sense for the site and the translators.
Probably the best way would be to experiment with a small part of the site setting it up a few different ways and see what made the most sense.
interactivetools.com
Re: [Dave] Languages
By simonwh - October 19, 2008
I have just built a site with CMSB and the client now wants to offer the content in 5 languages. So how do I go about implementing option 2 as detailed above?
Re: [simonwh] Languages
By Dave - October 20, 2008
Start by adding a pulldown field called "Language" with the names of all your language.
Then add a few test records for each language (the content doesn't matter).
The on your viewer list page add something like this to only list records of a certain language:
'where' => " language = 'spanish' ",
Hope that helps!
interactivetools.com
Re: [Dave] Languages
By simonwh - October 20, 2008
Re: [Dave] Languages
By Maurice - December 30, 2010
these tips are verry helpful thnx
Do you have a idea how to handle multi language voor SEO.
is better to use the multiple field option or to make mutliple sections?
Greetz Maurice
Dropmonkey.nl