|
Previous
·
Next
|
Klaus
|
Date: 5/14/2008 1:29 pm · Subject: Re: Bilingualism · Rating: 0
You can create that tree and edit templates but you can't switch the WebGUI interface language, like other CMSs that truly support multiple languages let you do.
The problem is, as already said, you can set only one visitor language. A needed feature is to be able to change this on the fly like www.mywebguisite.com/?langid=2 or even better for search engines www.mywebguisite.com/?lang=german
I've also to manage multilingual sites (english/german, some with more languages).
I made a REF some times ago, but it was rejected.
I prefer a switch in the Display tab to set a specific language for an asset that does overwritte the user/visitor setting:
http://www.plainblack.com/rfe/request-for-enhancement/add-language-selection-to-display-tab
Perhaps an idea for the next WebGUI version 8 to implement and integrate better handling of multilingual sites and the WebGUI internationalization system.
Klau
--- (Edited on 14-May-2008 20:29 [GMT+0200] by Klaus) ---
|
| Back to Top |
Rate [ | ]
|
| |
fathertorque
|
Date: 5/15/2008 5:58 am · Subject: Re: Bilingualism · Rating: 0
Indeed, if you setup a multi-language site, when you display a content in a given language you need to display the user interface in the same language.
This is really basic usability and common sense, every CMS out there that is said to support i8n has this option. How hard can it be?
--- (Edited on 5/15/2008 5:58 am [GMT-0500] by fathertorque) ---
|
| Back to Top |
Rate [ | ]
|
| |
bepo
|
Date: 5/16/2008 6:00 am · Subject: Re: Bilingualism · Rating: 0
Well, so do I understand it right? There is no way to chnage language as a visitor? I have contents in german and english and I need the possibility for the user on this site to change the language. Or at least to choose if I want to read the site in german or in english. How can I realize it.
I am really hopeless about that. Please help!!!
--- (Edited on 5/16/2008 13:00 [GMT+0200] by bepo) ---
|
| Back to Top |
Rate [ | ]
|
| |
Klaus
|
Date: 5/16/2008 7:34 am · Subject: Re: Bilingualism · Rating: 0
Well, so do I understand it right? There is no way to chnage language as a visitor? I have contents in german and english and I need the possibility for the user on this site to change the language. Or at least to choose if I want to read the site in german or in english. How can I realize it.
Don't use the template variables from the i18n system like "tmpl_var readmore.label".
Create an english tempalte for an english page and a germantemplate for a german page.
For exampel, if your template contains "tmpl_var readmore.label" this varibable shows text depending on the user profile language. But the visitor user has only one language. If it's English "readmore.label" becomes "read more", if it's German the label becomes e.g. "weiter..."
So create two templates without use of "tmpl_var readmore.label". An English template with "read more" instead of "tmpl_var readmore.label" and an German tempalte with "weiter..." instead of "tmpl_var readmore.label" an assign these language specific templates to the corresponding pages.
But some things still could not or not easy changed like date and time variables.
Klaus
--- (Edited on 16-May-2008 14:34 [GMT+0200] by Klaus) ---
|
| Back to Top |
Rate [ | ]
|
| |
bepo
|
Date: 5/23/2008 5:44 am · Subject: Re: Bilingualism · Rating: 0
Well, I have a solution for me now. It looks like this.
I have two pagelayouts with the same name (in my case CRIP). As URL I gave it "de" for the german content and "en" for the english content. With this way I get two navigations, too. One english and one german. It works quite okay.
The next interesting question I am looking for is, how can I change now between the languages. Someone said something about variables. But how do I implement it? Do I need JavaScript?
--- (Edited on 5/23/2008 12:44 [GMT+0200] by bepo) ---
|
| Back to Top |
Rate [ | ]
|
| |
bartjol
|
Date: 5/23/2008 6:32 am · Subject: Re: Bilingualism · Rating: 0
Do you wanna switch between page layouts or the language that is normally set in the user profile?
In the first case you can do it with javascript to cut out the de or en
<script type="text/javascript">
function setPage(page) { var place = page.lastIndexOf("de"); var width = page.length; var newLoc = '/'+page.substr(place + 3 ,width); location.href = newLoc; } </script> <div id="flag"><a href="javascript:setPage('')">some link obeject text</a>
I'm horrible at javascript, so I don't exactly know what's going on here, but the result is that "de" is stripped from the URL.
On the second question I need more information: do you want that to happen for the visitor user or also when a registered user is logged in?
I can imagine that you can override the user setting with a macro, but I want to know for sure what you want, before I go program something like that.
--- (Edited on 5/23/2008 1:32 pm [GMT+0200] by bartjol) ---
|
| Back to Top |
Rate [ | ]
|
| |
bepo
|
Date: 5/23/2008 7:00 am · Subject: Re: Bilingualism · Rating: 0
I want to switch between pagelayouts and language, indepentend from the point if one is registered/logged in or just a visitor. so your first advice is what I need. :-)
So we will have to change the JavaScript to our needs. Thanks for the moment.
--- (Edited on 5/23/2008 14:00 [GMT+0200] by bepo) ---
|
| Back to Top |
Rate [ | ]
|
| |
bartjol
|
Date: 5/23/2008 7:30 am · Subject: Re: Bilingualism · Rating: 0
the second option should also be possible, in a macro you can make another session and give the user a language to your choice.
Are you interested if I put some effort into that? Just costs you some beers when I happen to visit you or you here at the famous Dutch WebGUI society :) I need to practise my programming skills, that's all.
--- (Edited on 5/23/2008 2:30 pm [GMT+0200] by bartjol) ---
|
| Back to Top |
Rate [ | ]
|
| |
bepo
|
Date: 5/23/2008 7:54 am · Subject: Re: Bilingualism · Rating: 0
the second option should also be possible, in a macro you can make another session and give the user a language to your choice.
Are you interested if I put some effort into that? Just costs you some beers when I happen to visit you or you here at the famous Dutch WebGUI society :) I need to practise my programming skills, that's all.
Funny, you get every beer you want. ;-) I will post a picture of the site, so you see the thing I need help for. The first page ("Welcome") has both languages and also the possibility to change between englisch and german. When I chose a language the navigation changes its language too and I get only the other language. so if I am in the german version there is English and the other way around. You see? I want to have the possibility to switch on every site from one language to the other.
Here the pictures. Welcome page Siteoverview_German Siteoverview_English
I hope it helps to understand what I want. 
--- (Edited on 5/23/2008 14:54 [GMT+0200] by bepo) ---
|
| Back to Top |
Rate [ | ]
|
| |
bartjol
|
Date: 5/23/2008 7:59 am · Subject: Re: Bilingualism · Rating: 0
If you have time this weekend, just join the webgui irc channel (or you can do it know), that talks easier
--- (Edited on 5/23/2008 2:59 pm [GMT+0200] by bartjol) ---
|
| Back to Top |
Rate [ | ]
|
| |