Click here to register.
      
irc://irc.freenode.net#webgui

iPhoneGuy: WebGUI is a pile of crap.
rizen: If WebGUI is such a pile of crap, why do you use it?
iPhoneGuy: Because it's the best pile of crap out there.

If this is what people who hate us are saying, imagine what people who love us will say. Come join us on IRC.


     Web Design, Templates, and Themes > Bilingualism Goto page «Previous Page   1 2    Next Page»

Bilingualism

User bepo
Date 5/6/2008 3:28 am
Views 792
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 [
|
]
 
 
bepo

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

Yes, but as I read here, it is not right...

> To give your website a structure you use page layouts.

Ah, okay. Then I have to do the structure in the following way.

CRIP (Pagelayout)
  |
  |_ de (folder)
  |    |
  |    |_ Seitenüberblick (article)
  |    |
  |    |_ ... (article)
  |
  |_ en (folder)
        |
        |_ Site Overview (article)
        |
        |_ ... (article)

Do I need my template in every pagelayout or is one template enough, that lies in the Import Node folder.

Would you advise to buy one of the WebGUI-books?

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

Yes, that is clear. I created a new one.

EDIT: So I try it since hours, but I do not understand the logic of this system. I created two folders under "CRIP" but it is shown as content. I need two languages, but I can't find a possibility to do so...

Please Help!!

--- (Edited on 5/14/2008 14:46 [GMT+0200] by bepo) ---



Back to Top
Rate [
|
]
 
 
bartjol

well, page layouts are better for showing articles, as those are meant to do that. Probably you can manage to do it with folders to, but that will be more complex.

So I would make two page layouts: de and en and copy the articles in the folders de and en to the corresponding page layouts. That also bypasses the folders showing as content.

You can use only one page layout, but maybe there are some links with linktext in the layout, so a german and english page layout probably would be better. But for every german page you only have to have one template (if you want all pages to look the same) and the same goes for english.

And a book can be worth the costs, but I'm not sure which one is best for you, I haven't read them all yet...

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



Back to Top
Rate [
|
]
 
 
fathertorque

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

--- (Edited on 5/14/2008 12:41 pm [GMT-0500] by fathertorque) ---

--- (Edited on 5/14/2008 12:42 pm [GMT-0500] by fathertorque) ---



Back to Top
Rate [
|
]
 
 
     Web Design, Templates, and Themes > Bilingualism Goto page «Previous Page   1 2    Next Page»




Smoketest For nightly_2008-05-17 by Visitor - Sat @ 12:52am

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

shopping cart by pilaf153 - Fri @ 09:18pm

Re: Store Front help by pilaf153 - Fri @ 09:16pm

Extending TinyMCE by philadev - Fri @ 11:31am

Re: Bilingualism by Klaus - Fri @ 07:34am

Re: Bilingualism by bepo - Fri @ 06:00am

Smoketest For nightly_2008-05-16 by Visitor - Fri @ 12:52am

C2: JSON collateral rewrite by colink - Fri @ 12:00am

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

Recommendation for web chat system? by bernd - Thu @ 02:27pm