WebsiteBaker Community Forum

WebsiteBaker Support (2.11.x) => General Help & Support => Topic started by: rumen on April 05, 2018, 10:41:04 AM

Title: Multilanguage menu error
Post by: rumen on April 05, 2018, 10:41:04 AM
I don't know is it a bug or no, I suggest it is ...

The case:

I have a site with 3 languages BG, EN, CN. All works - only when I'm in BG language which is the main language by default and click EN or CN I go to the "Home" (1st page), but if I'm in EN or CN and I click any of the other languages I go to "Contacts" in CN and page which doesn't appear in the menu at all in EN. If I'm in any of other languages EN or CN and I want to back the BG which is the main language by default I go to "Home" (1st page). Here is  the site (http://cnbgforum.eu)


Here is the menu:

(https://preview.ibb.co/k75qex/multilang_error_menu.png) (https://ibb.co/gc17Rc)

Regards,

Rumen

Title: Re: Multilanguage menu error
Post by: dbs on April 05, 2018, 10:52:41 AM
HI, the question is what have you choosed in the page settings pagecode for every page.
Title: Re: Multilanguage menu error
Post by: rumen on April 05, 2018, 11:11:00 AM
No. I'm not for every language is chosen the "Home" (1-st page) see the screenshot below:

(https://preview.ibb.co/hNTXsH/multilang_menu_error2.png) (https://ibb.co/gqtyXH)

For EN the page is:

Code: [Select]
--home
When I'm in BG and click EN it will open - "Home", but if I open CN let's say and click on EN it will not open "Home". In my previous post there is a link try to open the different languages without to click on the menu - just the languages - it should open the 1-st page in any language, right? Try! 
Title: Re: Multilanguage menu error
Post by: rumen on April 05, 2018, 11:16:40 AM
What I mean is:

BG to EN is OK
BG to CN is OK
CN to BG is OK
EN to BG is OK
EN to CN is NOT OK
CN to EN is NOT OK

What's wrong?
Title: Re: Multilanguage menu error
Post by: dbs on April 05, 2018, 11:48:21 AM
What is in the page settings of this page choosed by pagecode:
http://cnbgforum.eu/pages/cn/4e3b9875.php

edit: click on the word "pagecode". this could help.
Title: Re: Multilanguage menu error
Post by: rumen on April 05, 2018, 01:09:40 PM
On Page settings --> Page code   I have

in BG -- 1-st page in BG
in EN  -- 1-st page in BG (because there is no other pages in drop down list in other languages - only in BG)
in CN -- same as EN

(https://preview.ibb.co/cTMVCH/multilang_error3.png) (https://ibb.co/dV5CRc)
Title: Re: Multilanguage menu error
Post by: dbs on April 05, 2018, 01:26:36 PM
Quote
edit: click on the word "pagecode". this could help.
This shoul refresh the pagecodes.
No effect?
Title: Re: Multilanguage menu error
Post by: evaki on April 05, 2018, 01:30:37 PM
Marginal note:
Since March there is probably an error message to another problem
http://cnbgforum.eu/pages/error_log
PHP Warning:  Module 'imagick' already loaded in Unknown on line 0
Regards Evaki
Title: Re: Multilanguage menu error
Post by: evaki on April 05, 2018, 01:48:35 PM
<html lang="cn">  is a country code, not a language code.
https://www.w3schools.com/tags/ref_language_codes.asp
BCP: 47  https://tools.ietf.org/html/bcp47

Chinese   zh
Chinese (Simplified)   zh-Hans
Chinese (Traditional)   zh-Hant

Regards Evaki
Title: Re: Multilanguage menu error
Post by: rumen on April 05, 2018, 03:19:52 PM
So I should change in the menu CN with ZH and that should solve the issue?  Back end the language is set as Zh (including in the ckeditor - config etc .... )  - in the menu as Name is just like the country code - CN ... all china sites have domains *.cn not *.zh  ... that's why in the menu I set as name CN and not ZH. Is that any issue for the WB?
Title: Re: Multilanguage menu error
Post by: evaki on April 05, 2018, 03:33:15 PM
Is that any issue for the WB?
 Good question, I don't know.
 My comment concerned HTML language code
 CN is the country code (WB), that's all right, I guess.
Regards, Evaki
p.s. multilingual menu had to be called multi-state menu?  :-D :-D