Click here to register.
      
IRC banner


     Change site language on-the-fly? > Re: how to set meta tags ? Re: Change site language on-the-fly? Goto page «Previous Page   1 2    Next Page»

Change site language on-the-fly?

User monkiki5
Date 8/12/2005 2:51 pm
Views 625
Rating 0    Rate [
|
]
Previous · Next
User Message
koen
Len wrote:
"Koen if you're willing to implement this, we  will be very grateful ;)"

I bet you would :), but....

You've just proved that the 'same site' approach is not always the best solution, and that it will turn out to be a lot of work to get it right. I think it's for the best to see what WebGUI 6 provides to solve this issue.


Back to Top
Rate [
|
]
 
 
Gabor
I am a bit late to this thread but I have just recently started to evaluate WebGUI.
I visted this site as pointed out by Len. There are a couple of strange things here like the fact that clicking on the British flag shows you a different page than clicking on the 'Home' link in the top navigation bar.
At least from the main page.

Another issue is that "Site Map" shows only the English pages (probably because they are under the main root).

My real issue is character sets. How do you convince WebGUI to set the character set differently for some of the pages ? I am currently building a site in English/Hebrew and my clients will need English/Hebrew/Russian/Arabic site.

I'll probably will build a separate subtree for each language like this
/en/home
/he/home

and will have one page in the root
/home

I'll have to make sure that the character class for all pages unde /he will be set to to the appropriate class.

How do I do this ?

Gabor
PTI



Back to Top
Rate [
|
]
 
 
len

The two issues you've pointed out are fixed. The Site Map showing only English pages was a configuration mistake, and the top navigation thing was because I had patched the ^t; (t_topMenuHorizontal.pm) macro to start in current root instead of site root, but that macro was overwritten last upgrade.

I should have put that topMenu patch in cvs

The charset to use is connected to the language. So if your page language is set to hebrew, you'll get a hebrew charset. 
Setting your /he/home (and all underlying pages) to language "hebrew" will also set the charset to use.

I don't know if hebrew is already part of the WebGUI translations, but if not and you're going to translate messages, I suggest you use utf-8 as charset. I believe it's part of the 6.x road map to convert all existing messages to utf-8.

Len Kranendonk
www.primaat.com



Back to Top
Rate [
|
]
 
 
Gabor
>I had patched the ^t; (t_topMenuHorizontal.pm) macro >to start in current root instead of site root, but >that macro was overwritten last upgrade.

Would you post that patch or the whole macro or send it directly to me to gabor@pti.co.il ?

>The charset to use is connected to the language. So if >your page language is set to hebrew, you'll get a >hebrew charset.
>Setting your /he/home (and all underlying pages) to >language "hebrew" will also set the charset to use.

Ok, after searching for about an hour[1] finally I found where can I add an entry to the HTML header to say that this page is utf-8. How can I remove the other default headers ? Or where can I set the default headers.

Gabor

[1] It was in the most obvious place and I skipped it at least 3 times...

PTI

Back to Top
Rate [
|
]
 
 
len

I've just put the patch in cvs.

The charset to use is set both in the http and in the html header.
You can change it under "Manage translations".

I've posted a script to the dev list that converts all WebGUI international messages to utf-8.

Len Kranendonk
www.primaat.com



Back to Top
Rate [
|
]
 
 
elnino

Hey Len, I know this post is a bit old, but where is this "Manage translations" area? was it dropped in the 7.x versions? Or do I need to enable something to see this? I had to hack my way around this...

I've just put the patch in cvs.

The charset to use is set both in the http and in the html header.
You can change it under "Manage translations".

I've posted a script to the dev list that converts all WebGUI international messages to utf-8.

Len Kranendonk
www.primaat.com

--- (Edited on 10/6/2008 1:25 pm [GMT-0500] by elnino) ---



Back to Top
Rate [
|
]
 
 

Recent Discussions Color Key

Design:

Development:

Et Cetera:

Install/Upgrade:  

Smoketest:

Template Group:


Re: Übersetzungen vor dem nächsten Treffen - Translations to be done before the next meeting will take place. by koen - Mon @ 05:17pm

Übersetzungen vor dem nächsten Treffen by bernd - Mon @ 03:09pm

Re: Auth memcookie by JohnRestrepo - Mon @ 12:57pm

Re: Auth memcookie by JT - Mon @ 11:31am

Auth memcookie by JohnRestrepo - Mon @ 10:40am

Re: Patch for wremonitor by JT - Mon @ 10:36am

Patch for wremonitor by knowmad - Mon @ 10:26am

Re: Synopsis search results by knowmad - Mon @ 10:19am

Synopsis search results by marieken - Mon @ 05:49am

Re: Question concerning approval workflows by preaction - Mon @ 02:05am

Re: Question concerning approval workflows by perlDreamer - Sun @ 08:03pm

Re: Help With Octal Math by perlDreamer - Sun @ 07:43pm