Click here to register.
      
Sprechen Sie WebGUI? Parlez vous WebGUI? Se habla WebGUI? Spreekt u WebGUI?

Do you speak WebGUI? Please help us translate WebGUI into your language.



     Web Design, Templates, and Themes > Bilingualism

Bilingualism

User bepo
Date 5/6/2008 3:28 am
Views 334
Rating 0    Rate [
|
]
Previous · Next
User Message
bepo

Where do I put questions about bilingualism? Well, I just put here then.


I have to put our WebGUI into 2 languages (german and english) but I don't know if there is an internal possibilty to have two languages within WebGUI? Or is there any other way to do so?


Thanks for help.

me <-- Newbie with all the stupid but interesting questions...

--- (Edited on 5/6/2008 11:03 [GMT+0200] by bepo) ---



Back to Top
Rate [
|
]
 
 
roryzweistra

As far as I know there's no option to use multiple languages in one website.

However, you could make different "trees" in WebGUI. So you have different trees for the different languages. 
Biggest problem is that you have to keep all of your trees up to date.

We did the following: under the root page we created two page layouts. One for Dutch and another one for English.

Hope this helps! 

--- (Edited on 5/6/2008 11:18 [GMT+0200] by roryzweistra) ---

--- (Edited on 5/6/2008 11:28 [GMT+0200] by roryzweistra) ---



Back to Top
Rate [
|
]
 
 
bartjol

The way Rory describes is the best to do it for bilingual content, but think before you start setting it up, so everything (especially url's and folder paths) is nice and neat so it might even be easy to add a third languages.

Furthermore, you can install all language (from i18n.webgui.org and if your language is not complete, feel free to help it make complete :) ) packs for the WebGUI itself, so every user can set his own language for all automatically generated links and text. But there is only one default, which is the visitors language.

--- (Edited on 5/6/2008 3:11 pm [GMT+0200] by bartjol) ---

--- (Edited on 5/6/2008 3:12 pm [GMT+0200] by bartjol) ---



Back to Top
Rate [
|
]
 
 
bepo

Well, it helped in that way, that know there is no easy possibility like postnuke or other cms'.

Maybe I should describe a bit more in detail what I want to do.

I am working in a research project and the content we offer our research partner are in german and english. I want to have a possibility to switch the languages / decide if I want to read the german or the englisch text.

The problem is that I want to group all the german content in one separate folder and all the english in a separate one. But I don't know how to do so. I created a folder named English and put an article there, but it doesn't take it to show it on the website. There I see only a big header "English" and the file as in an data-list.

Where is the problem?
Do you need pictures to understand my question?

--- (Edited on 5/9/2008 12:28 [GMT+0200] by bepo) ---



Back to Top
Rate [
|
]
 
 
roryzweistra

Well in fact there is no problem.
When you place your content in a folder and use the standard folder template, then it will display a list of all items inside that folder.

You can make a new folder template and edit it so it will fit your needs. In the help file in the admin console you can find all the template variables that you can use in the folder template.

--- (Edited on 5/9/2008 12:43 [GMT+0200] by roryzweistra) ---



Back to Top
Rate [
|
]
 
 
bepo

What do you mean with folder template?
I believe I need a "for dummies" tutorial. Wink

Our project name is CRIP, so I created a folder "CRIP". Under that folder I created two more folders named "English" and "Deutsch". So now I have the structure. What do I need now?

I created a central template, how the site shall look like. In that template I have pictures and snippets (contact, searchtool, footer). Do I take this template on all sites? Or do I have to create another template in this "CRIP"-folder?


I have still more questions. But I think it is better I ask one after another ... and not all together.

The system is really a mystery for me.
Thanks for all your help, keep helping.

--- (Edited on 5/9/2008 13:50 [GMT+0200] by bepo) ---



Back to Top
Rate [
|
]
 
 
roryzweistra

Ok, so you made a structure in the WebGUI admin console solely using folders?

We use folders only as containers for holding files. So for example all PDF files go in one folder and all templates go in another one.

To give your website a structure you use page layouts. To add content to the page layout you use articles etc.
All these different functions (page layout, folder, artice) are called assets in the WebGUI tree. These assets can contain one or more templates which, amongst other things, describe the looks of that asset. Depending on the asset you are using there are different variables that you can use (like I said in my other post, you can find them in the help file). These variables can add URL or markup and more of this stuff to your asset.

For example, when you want to show all files in a folder and make a link of the titles your template can look something like this:

<tmpl_loop file_loop>
<a href="<tmpl_var url>"><tmpl_var title></a><br />
</tmpl_loop>

The best way to learn how to use the templates is to start working with them. Copy an existing template and alter it to fit your needs.

One last thing: be carefull not to edit the system templates. If you want to use a different template just make a new one.

--- (Edited on 5/9/2008 21:10 [GMT+0200] by roryzweistra) ---

--- (Edited on 5/9/2008 21:16 [GMT+0200] by roryzweistra) ---



Back to Top
Rate [
|
]
 
 

reCaptcha for WebGUI by fathertorque - Tue @ 01:49pm

Re: webgui.log path change by colink - Tue @ 12:06pm

webgui.log path change by topsub - Tue @ 11:18am

Re: Creating new theme using YAML by bartjol - Tue @ 07:22am

Creating new theme using YAML by neild - Tue @ 06:44am

Automating database maintenance tasks by knowmad - Tue @ 05:58am

Smoketest For nightly_2008-05-13 by Visitor - Tue @ 12:52am

Re: Accessing attachments from within articles by bernd - Tue @ 12:50am

Smoke Test for SVN (2008-05-13) by botaction - Mon @ 11:48pm

Re: encrypt login by ekennedy - Mon @ 10:05pm

Re: encrypt login by patspam - Mon @ 06:45pm

Re: New default WebGUI templates by arjan - Mon @ 05:50pm