WebsiteBaker Community Forum

General Community => WebsiteBaker Website Showcase => Topic started by: sandra on March 18, 2008, 11:07:47 AM

Title: wb website in 6 languages (also japanese)
Post by: sandra on March 18, 2008, 11:07:47 AM
www.trekwerk.com (http://www.trekwerk.com)
Multi langual website baker site with horizontal en vertical menu.
Title: Re: wb website in 6 languages (also japanese)
Post by: Eki on March 18, 2008, 12:01:08 PM
Hi Sandra,

Looking good. However...when I select French, then click Register, I get an English page. Also some text is flowing over the page border.

regards,
erik
Title: Re: wb website in 6 languages (also japanese)
Post by: sandra on March 18, 2008, 12:15:57 PM
Hello Eki,
Thanks for the comments. The page is in english because I did not receive a french translation yet.
Where do you see the text flowing over the page border?
Title: Re: wb website in 6 languages (also japanese)
Post by: Eki on March 18, 2008, 12:55:02 PM
Hello Sandra,

That's also on the "Register" page. Actually it is the text being cut at the right side of the page. This is only the case in IE6 (compared it in FF2 and IE6).

regards,
Erik
Title: Re: wb website in 6 languages (also japanese)
Post by: Bramus on March 18, 2008, 01:39:38 PM
pressed download and getting an error in the bottom:

Code: [Select]
Warning: parse_url(/~trekwerk/account/login.php?redirect=http://85.92.129.70/~trekwerk/pages/en/download.php) [function.parse-url]: Unable to parse url in /home/trekwerk/domains/trekwerk.nl/public_html/chCounter3/counter.php on line 326

And i think the footer (design text) is not that good, i can barely read it. Also the image quality isnt that good, but the design looks nice. In the CSS move the "SideColumn" a bit more to the right (in FF2) that menu is showing it dots outside the white part, or fix the container cause this is one isnt starting where it should, the background is not starting on the left, some padding? or...

Looks nice except for some bugs, think if you put a few hours into it you can totally finish it and make it look better.

Good luck and keep going!
Title: Re: wb website in 6 languages (also japanese)
Post by: Lotus on March 19, 2008, 01:29:18 PM
Great job!

In Firefox 2.x the menu shows bullets, dont know if you whant it like that. I think it is confusing althought one knows it is a menu.
(http://www.sfwebb.se/wbforum/bullets.png)
Title: Re: wb website in 6 languages (also japanese)
Post by: GRID8400 on March 19, 2008, 01:32:16 PM
Feedback...

- isnt really firefox compatible..
- pages in dutch link to english (for example "registreren")
- designwise it's not very pro looking (in my opinion / taste)
Title: Re: wb website in 6 languages (also japanese)
Post by: brent on March 19, 2008, 03:08:21 PM
Nice job on the submenus. Will you share the template with us?

Brent
Title: Re: wb website in 6 languages (also japanese)
Post by: sandra on March 19, 2008, 03:25:15 PM
Yes of course I want to share the template but as you can read above it isn't really firefox compatible. And it is not really a new template; I started with the WB template 'All CSS 2 (with drop out menus)' and adapted it a bit. So I don't think it is very useful to share this template. Better use the allcs2 template.
Title: Re: wb website in 6 languages (also japanese)
Post by: Boudi on March 28, 2008, 07:25:35 PM
Hi Sandra,

For days I'm struggling with the ALL Css2 template in combination with multilanguage but I'm completely stucked!

Just recently I created a website with the allcss2 as a basic structure which was fully w3c & firefox compatible. So theoreticly it must be possible to get your template work on Firefox too.

I would highly appreciated it if you would share the allcss2 structure in combination with the multilanguage. First thing I do is to check if it can be Firefoxproof.

Hope you will share it.


Title: Re: wb website in 6 languages (also japanese)
Post by: carfreak on June 03, 2008, 09:59:26 PM
Sandra,

i am struggling for days now and i cant get the second menu switching with the language.

can you share your tamplate with us.
or can you give us an code example of the settings what you used wit show_menu2

i am also intrested in the page structure you used to setup de multilang site.

greetings Carfreak
Title: Re: wb website in 6 languages (also japanese)
Post by: sandra on June 04, 2008, 10:07:06 AM
Hello carfreak,

These are the links in the flags:
Code: [Select]
<map name="Map" id="Map">
      <area shape="rect" coords="178,128,209,148" href="<?php echo WB_URL?>/pages/en.php?lang=EN" alt="english" />
      <area shape="rect" coords="211,128,242,148" href="<?php echo WB_URL?>/pages/de.php?lang=DE" alt="german" />
      <area shape="rect" coords="243,128,274,148" href="<?php echo WB_URL?>/pages/nl.php?lang=NL" alt="dutch" />
      <area shape="rect" coords="274,128,306,148" href="<?php echo WB_URL?>/pages/es.php?lang=ES" alt="spanish" />
      <area shape="rect" coords="308,129,338,148" href="<?php echo WB_URL?>/pages/fr.php?lang=FR" alt="french" />
      <area shape="rect" coords="338,129,368,148" href="<?php echo WB_URL?>/pages/ja.php?lang=JA" alt="japanese" />
    </map>

code for horizontal menu:
Code: [Select]
      <?php 
    
//sand multilingual
                
    // default language , the defaultlanguage is considered the language of the first page
    //$defaultlanguage = &#39;/nl&#39;;
    
$result $database->query("SELECT language FROM ".TABLE_PREFIX."pages WHERE page_id = 1 LIMIT 0,1");
    if(
$result->numRows() > 0) {
      
$language $result->fetchRow();
      
$defaultlanguage $language[&#39;language&#39;];
      
$defaultlanguage = &#39;/&#39;.$defaultlanguage ;
     
}
     
    
// Get language page link
    
$parse_wb_url parse_url(WB_URL);
    
$set $parse_wb_url[&#39;path&#39;];
    
$actual $_SERVER[&#39;REQUEST_URI&#39;];
    
$pageslen strlen(PAGES_DIRECTORY);
    
$language_link substr(str_replace($set, &#39;&#39;, $actual), $pageslen, 3);
    
    //if the visitor enters the site, no pages directory is visible in url; set language_link to defaultlanguage
    
$p substr(str_replace($set, &#39;&#39;, $actual), 1, 5);
    
if ($p!=&#39;pages&#39;){$language_link=$defaultlanguage ;}
    

    // Get language page id
    
$result $database->query("SELECT page_id FROM ".TABLE_PREFIX."pages WHERE link = &#39;$language_link&#39; LIMIT 0,1");
    if(
$result->numRows() > 0) {
      
$page $result->fetchRow();
      
$parent $page[&#39;page_id&#39;];
      
        
show_menu2(0$parentSM2_ALLSM2_ALLfalse"\n</li>"falsefalsefalse, &#39;<ul id="header_menu" class="menu">&#39;);
    
} else {
      
// Can&#39;t figure out the root ID, so just use normal menu
      //show_menu(2);
      //show_menu2(0, 17, SM2_ALL, SM2_ALL, false, "\n</li>", false, false, false, &#39;<ul id="header_menu" class="menu">&#39;);
      //show_menu2(0, SM2_CURR+1, SM2_CURR+1); 
            //SAND for news read more
      
$parent 17//english

      
show_menu2(0$parentSM2_ALLSM2_ALLfalse"\n</li>"falsefalsefalse, &#39;<ul id="header_menu" class="menu">&#39;);
    
}
    
?>


code for vertical menu:
Code: [Select]
<?php if(SHOW_MENU) {    ?>
    <div id="sideColumn"> <br />
      <br />
      <?php //SAND
    
show_menu2(0SM2_ROOT+2SM2_CURR+1);   ?>

I attached an image with part of the page structure.

I hope this will help you.






[gelöscht durch Administrator]
Title: Re: wb website in 6 languages (also japanese)
Post by: carfreak on June 04, 2008, 11:51:29 AM
Hi Sandra,

first of all thanks for de code and site structure.

i do have a question,

how did you setup the initial language pages (wysiwyg,menulink ???)

English and so on.

greetings

Carfreak
Title: Re: wb website in 6 languages (also japanese)
Post by: carfreak on June 04, 2008, 12:02:29 PM
Hi Sandra,

would you be so kind to share de template files ?
So i can take a look at the total setup of the template and menu settings.

geetings

Carfreak.
Title: Re: wb website in 6 languages (also japanese)
Post by: sandra on June 04, 2008, 12:05:32 PM
Hallo,

For the language page, like english.php, I made a WYSWYG page. And in the code view of the page I've put the following javascript code to direct the page to the first page of the website for that language:

<script name="javascript" type="text/javascript">
window.location = 'http://85.92.129.70/~trekwerk/pages/en/trekwerk.php'
</script>

Sandra
Title: Re: wb website in 6 languages (also japanese)
Post by: carfreak on June 05, 2008, 10:31:00 AM
Hello sandra,

that was the sollution.

thank you very much for the sollution of this problem.

i have another nice problem with the show menu thing.

i am trying to use te extra menu under the side menu.
 what it sould do is give extra menu items apart from the main menu items and it sould switch with de different languages.

do you have an sollution for this issue.

down under i have a structure pasted

Dutch (NL)
     Home (wysiwyg) (level 1)
     geschiedenis (wysiwyg) (level 1)
            Hoe het begon (wysiwyg) (level 2)
            De toekomst (wysiwyg) (level 2)
     over ons (wysiwyg) (level 1)

German (DE)
     Startseite (wysiwyg) (level 1)
     Geschichte (wysiwyg) (level 1)
           wie hat es angefangen (wysiwyg) (level 2)
           die zukunft (wysiwyg) (level 2)
     Uber uns (wysiwyg) (level 1)

Dutch_extra
     Wie zijn wij (wysiwyg) (level 1)
     fotoreportage (wysiwyg) (level 1)
            Voor foto´s (wysiwyg) (level 2)
            Na foto´s (wysiwyg) (level 2)

German_extra
     wer sind wir (wysiwyg) (level 1)
     fotoreportage (wysiwyg) (level 1)
            Bild vorher (wysiwyg) (level 2)
            Bild Nachher (wysiwyg) (level 2)


Now an explanation, this is wat i want to happen

first of all there are 3 menu´s on the page
menu1  = Main Menu
menu 2 = Extra Menu
menu 3 = Top Menu


on the topmenu i only want the choice NL and DE

<!-- Navigation Level 1 -->
        <div class="nav1">
            <?php show_menu(1, 0, 1); ?>
        </div>

This works very well

in the middel of the page we have the Main menu that should change with the selection of the language on the topmenu whit the items for NL

     Home (wysiwyg) (level 1)
     geschiedenis (wysiwyg) (level 1)
            Hoe het begon (wysiwyg) (level 2)
            De toekomst (wysiwyg) (level 2)
     over ons (wysiwyg) (level 1)

and if the choice is DE

     Startseite (wysiwyg) (level 1)
     Geschichte (wysiwyg) (level 1)
           wie hat es angefangen (wysiwyg) (level 2)
           die zukunft (wysiwyg) (level 2)
     Uber uns (wysiwyg) (level 1)


there should also change the Extra Menu ( witch is located on the left of the page) to the selected language and the following menu items

if NL is selected

     Wie zijn wij (wysiwyg) (level 1)
     fotoreportage (wysiwyg) (level 1)
            Voor foto´s (wysiwyg) (level 2)
            Na foto´s (wysiwyg) (level 2)

if DE is selected

     wer sind wir (wysiwyg) (level 1)
     fotoreportage (wysiwyg) (level 1)
            Bild vorher (wysiwyg) (level 2)
            Bild Nachher (wysiwyg) (level 2)


Greetings Carfreak