WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Droplets & Snippets »
  • Snippet: Easy Multilanguage Link
  • Print
Pages: 1 [2] 3   Go Down

Author Topic: Snippet: Easy Multilanguage Link  (Read 58763 times)

renjithtk07

  • Guest
Re: Snippet: Easy Multilanguage Link
« Reply #25 on: November 10, 2009, 10:00:00 AM »
Hi,

I am trying to add the multilanguage to my site. I have installed the multilanguage module. I have added the code to display the multilanguage icons to the index.php page.

My site have 4 pages in english. Now do I need to create another four pages for spanish? I am not getting a clear idea about how I need to set it. Could you please provide a basic documentation by which a user who is not so much familiar with website baker and multilanguage can get a better idea to use it.

Thanking you..
Logged

Offline crnogorac081

  • Posts: 2161
  • Gender: Male
Re: Snippet: Easy Multilanguage Link
« Reply #26 on: November 10, 2009, 03:32:52 PM »
Hi,

First - Just dont forget to install the patch files..

No, as it is mentioned in first post, you do not need to have same pages on different languages.

For example:

EN                                ES
Home    <home>           Home es
Page 1    <page1>         Pagina 1
Page 2     <seccond>     Paggina 2
Page 3

In <> is page code which needs to be inpuded in page settings. In this example, you see that Page 3 has no match page on spanish. When you click on flag image while you are on that page, you will be redirected to page where you set "home" page code.

Cheers

Logged
Web developer

susigross

  • Guest
Re: Snippet: Easy Multilanguage Link
« Reply #27 on: November 10, 2009, 05:31:58 PM »
Quote from: crnogorac081 on November 09, 2009, 08:53:07 PM

I understand that it is a little non usual, but is it possible, if you would do any further development for this module, that flags (like on my screenshoot ) use order from menu tree ?

2. My defult language in backend is set to ME, so I would like first flag to be ME, and not EN (like on my screenshoot ) , is it possible ? Does the snippet use alphabet order to set order for flags ?


Hi Ivan,

Sure it is possible, but needs some work, I assume. Currently I am finnishing the mpform help project with 40 pages of documentation, afterwards there is already another large task, so I won't have time during the next months for this snippet.

Regarding the last question: I think currently we have an unsorted list, but better look into the source code.
Logged

Offline babsy

  • Posts: 337
Re: Snippet: Easy Multilanguage Link
« Reply #28 on: February 10, 2010, 10:59:37 AM »
sorry, but where do you mean that we should copy the files to:

from /modules/easymultilang/patch2.8.0
to the directory with the same name under your WB path ??

i don´t know where you mean, when you say:
to the directory with the same name under your WB path ??
 ?

i have installed it, and now all the pages show up, both english and swedish? but i gues thats because im not finished with this moving/deleting files! :)
Logged

susigross

  • Guest
Re: Snippet: Easy Multilanguage Link
« Reply #29 on: November 16, 2010, 05:03:59 PM »
Before writing, you should have took a look into the directory /modules/easymultilang/patch2.8.0
May be this directory contains subdirectories with names, which are already there under your WB installation?
So what is your problem?
Logged

Offline pivey

  • Posts: 34
Re: Snippet: Easy Multilanguage Link
« Reply #30 on: December 16, 2010, 10:00:22 AM »
Nice module.. thx

Have installed it as instructed, (tested with 2 languages EN + DE)
Now.. Only English flag shows up with text "English", not clickable at all.

Any thoughts?

Note: I have made the structure of the website with default multilanguage functionality of WB

Version 2.8.1
Revision 1287
Logged

Offline crnogorac081

  • Posts: 2161
  • Gender: Male
Re: Snippet: Easy Multilanguage Link
« Reply #31 on: December 17, 2010, 12:45:46 AM »
Maybe all your pages are on english, check page language on page settings. Also check fill in page code , for example:

startsite => fill in "home"
start      => also fill in "home"

if it doesnt work, you can  send me a link to your site so I can take a look

Logged
Web developer

snark

  • Guest
Re: Snippet: Easy Multilanguage Link
« Reply #32 on: December 18, 2010, 12:08:52 AM »
Is it possible to make this menu do clever things like showmenu2 can, i mean fi:

- start at x steps down the root
- only show up till x levels
- automaticallcy add à character to THE menu title.   ( > [MENU_TITLE] )

Etc
Logged

Offline crnogorac081

  • Posts: 2161
  • Gender: Male
Re: Snippet: Easy Multilanguage Link
« Reply #33 on: December 18, 2010, 01:16:08 AM »
This snippet doesnt to that. It can only transfer you to the page you select with another language.

I am not sure what are you trying to do. Can you describe on an example ?
Logged
Web developer

Offline pivey

  • Posts: 34
Re: Snippet: Easy Multilanguage Link
« Reply #34 on: December 20, 2010, 12:06:22 PM »
thx crnogorac081,

of course.. i had all pages in English language. It works fine now.
Thx again.
Logged

Offline crnogorac081

  • Posts: 2161
  • Gender: Male
Re: Snippet: Easy Multilanguage Link
« Reply #35 on: December 20, 2010, 01:17:31 PM »
Quote from: pivey on December 20, 2010, 12:06:22 PM
thx crnogorac081,

of course.. i had all pages in English language. It works fine now.
Thx again.

Note that you can set page code = home    for default page when no page on different language is selected via page code.
Logged
Web developer

Offline pivey

  • Posts: 34
Re: Snippet: Easy Multilanguage Link
« Reply #36 on: December 22, 2010, 07:57:24 AM »
Yes, did define "home" as default page to show up when no similar page exists.
So i have to asign each page with a unique "Page Code" , same in each language. Right?

That's what i did... and works like a charm.

By the way: what is the languages definition in admin good for by default? Does it handle the encoding?
Logged

Offline crnogorac081

  • Posts: 2161
  • Gender: Male
Re: Snippet: Easy Multilanguage Link
« Reply #37 on: December 22, 2010, 11:00:24 AM »
not sure, never tested that, so I use standard letters :)
Logged
Web developer

Offline pivey

  • Posts: 34
Re: Snippet: Easy Multilanguage Link
« Reply #38 on: July 01, 2011, 11:30:16 AM »
Has anyone manage to change the code of flags order? It would be helpful to order according to backend language tree instead of alphabetical order, like it is now.
Logged

Offline aesteves

  • Posts: 4
Re: Snippet: Easy Multilanguage Link
« Reply #39 on: July 11, 2011, 04:02:41 PM »
For anybody with this problem (ordering the language menu - flags, text, whatever you chose), I've solved it by, in the file "modules/easymultilang/include.php", replacing the line that orders the languages

Code: [Select]
ksort($langarr);
with this one (for my case):

Code: [Select]
$langarr = array('PT'=>$langarr['PT'], 'EN'=>$langarr['EN'], 'ES'=>$langarr['ES'], 'FR'=>$langarr['FR']);
you can change it with different languages or different order.

cheers
Logged

Offline pivey

  • Posts: 34
Re: Snippet: Easy Multilanguage Link
« Reply #40 on: July 13, 2011, 05:14:48 PM »
@aesteves
  thx for the hint!
Logged

Offline xia

  • Posts: 65
Re: Snippet: Easy Multilanguage Link
« Reply #41 on: January 26, 2012, 06:02:03 PM »
I Have a menu:
EN               ES
Home           Home es
Page 1          Pagina 1
Page 2          Paggina 2
Page 3
When I click to ES, open Page2 not home
Logged

Offline crnogorac081

  • Posts: 2161
  • Gender: Male
Re: Snippet: Easy Multilanguage Link
« Reply #42 on: January 27, 2012, 09:22:30 AM »
Hi,

go to Pages -> Settings for ES and set page code same as for Page2

cheers
Logged
Web developer

Offline xia

  • Posts: 65
Re: Snippet: Easy Multilanguage Link
« Reply #43 on: January 27, 2012, 12:31:34 PM »
Thanks!
I don't know what you want say about "set page code"
Logged

Offline crnogorac081

  • Posts: 2161
  • Gender: Male
Re: Snippet: Easy Multilanguage Link
« Reply #44 on: January 27, 2012, 02:22:06 PM »
Go to ES page -> go to settings, then in the list where title, description, language etc.. is , there is a Page Code input field. Type same word on ES and Page 2 and it will work..
Logged
Web developer

Offline xia

  • Posts: 65
Re: Snippet: Easy Multilanguage Link
« Reply #45 on: January 29, 2012, 07:52:40 PM »
I don't have "Page Code"

[gelöscht durch Administrator]
Logged

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4548
  • Gender: Male
Re: Snippet: Easy Multilanguage Link
« Reply #46 on: January 30, 2012, 06:22:59 AM »
try this snippet. This snippet is the same that runs on WebsiteBaker homepage. I hope somebody helps me to write a tutorial in German and English.

Call in Template is

Code: [Select]
<?php if(function_exists('language_menu')){ language_menu('png'); } ?>
Dietmar

[gelöscht durch Administrator]
Logged
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

Offline crnogorac081

  • Posts: 2161
  • Gender: Male
Re: Snippet: Easy Multilanguage Link
« Reply #47 on: January 30, 2012, 09:27:21 AM »
Hi,

if you see Snippets' page at AMASP: http://www.websitebakers.com/pages/code-snippets/various/easy-multilanguage-link.php

You have marked red: Requires:    Requires patch in some kernel files for additional column page_code in the pages table, see HowTo.txt

There are some files (from the patch2.8.0 folder in zipped snippet) which needs to be replaced with core files..

cheers
Logged
Web developer

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4548
  • Gender: Male
Re: Snippet: Easy Multilanguage Link
« Reply #48 on: January 30, 2012, 12:00:42 PM »
Quote
Requires patch in some kernel files for additional column page_code in the pages table,

And all is gone by next Release.

Dietmar
Logged
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

freeSbee

  • Guest
Re: Snippet: Easy Multilanguage Link
« Reply #49 on: March 08, 2014, 03:12:19 PM »
Hi

I have used the WebsiteBaker Multilingual Switcher 1.6.5 and it works perfect.
http://www.WebsiteBaker.org/forum/index.php/topic,14037.msg157022.html#msg157022

I have made the language assignment manually. But the snippet also provides  a link called "Pagecode" (only existing if the snippet has been installed).
Goto: Pages > Page settings > Link "Pagecode"

After klicking the link, the previously done assignment is gone. I do not think this is the originally intended functionality. Does anybody know what this link is intended to do?

Thanks and regards
Christoph
Logged

  • Print
Pages: 1 [2] 3   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Droplets & Snippets »
  • Snippet: Easy Multilanguage Link
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2