wb website in 6 languages (also japanese)

carfreak

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

sandra

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
Sandra van Zanten
[url="http://www.sandwebdesign.nl"]http://www.sandwebdesign.nl[/url]

carfreak

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.

carfreak

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

sandra

Hello carfreak,

These are the links in the flags:
<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:
      <?php 
    
//sand multilingual
                
    // default language , the defaultlanguage is considered the language of the first page
    //$defaultlanguage = '/nl';
    
$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['language'];
      
$defaultlanguage '/'.$defaultlanguage ;
     }
     
    
// Get language page link
    
$parse_wb_url parse_url(WB_URL);
    
$set $parse_wb_url['path'];
    
$actual $_SERVER['REQUEST_URI'];
    
$pageslen strlen(PAGES_DIRECTORY);
    
$language_link substr(str_replace($set''$actual), $pageslen3);
    
    
//if the visitor enters the site, no pages directory is visible in url; set language_link to defaultlanguage
    
$p substr(str_replace($set''$actual), 15);
    if (
$p!='pages'){$language_link=$defaultlanguage ;}
    

    
// Get language page id
    
$result $database->query("SELECT page_id FROM ".TABLE_PREFIX."pages WHERE link = '$language_link' LIMIT 0,1");
    if(
$result->numRows() > 0) {
      
$page $result->fetchRow();
      
$parent $page['page_id'];
      
        
show_menu2(0$parentSM2_ALLSM2_ALLfalse"\n</li>"falsefalsefalse'<ul id="header_menu" class="menu">');
    } else {
      
// Can'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, '<ul id="header_menu" class="menu">');
      //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'<ul id="header_menu" class="menu">');
    }
    
?>



code for vertical menu:
<?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]
Sandra van Zanten
[url="http://www.sandwebdesign.nl"]http://www.sandwebdesign.nl[/url]

carfreak

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

Boudi

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.


...:: Bake the Unbakable ::...

sandra

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.
Sandra van Zanten
[url="http://www.sandwebdesign.nl"]http://www.sandwebdesign.nl[/url]

brent

Nice job on the submenus. Will you share the template with us?

Brent

GRID8400

#7
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)
Our WB websites: KEY2DESIGN & KEY2PICTURE

Lotus

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.

Bramus

pressed download and getting an error in the bottom:


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!
BRAMUS Internet Services

Eki

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

sandra

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?
Sandra van Zanten
[url="http://www.sandwebdesign.nl"]http://www.sandwebdesign.nl[/url]

Eki

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

sandra

www.trekwerk.com
Multi langual website baker site with horizontal en vertical menu.
Sandra van Zanten
[url="http://www.sandwebdesign.nl"]http://www.sandwebdesign.nl[/url]