Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2018-12-13 21:17:18

Rainer Goergen
Member
From: Trier, Germany
Registered: 2016-05-01
Posts: 401
Website

Problem with Menu Bar

Hi, please have a look at this site:

https://www.hotel-deutschherrenhof-trier.de/home.php

If I click on the dropdown field to select  another language, the first entry disappears in Apple Safari on MacPro and Macbook Pro.
In Firefox there is no problem. In all browsers with Parallels (Edge, Firefox, Safari) also no problems.

Please can somebody check this for me?

Rainer

Offline

#2 2018-12-14 02:07:36

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Problem with Menu Bar

Hi Rainer,

Your code only has one sub-item:

<li class="menu-item menu-item-has-children"><a href="/home_e.php">English </a>
   <ul class="sub-menu">
      <li class="menu-item"><a href="/home_f.php">Française</a></li>
   </ul>
</li>

Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#3 2018-12-14 06:03:48

Rainer Goergen
Member
From: Trier, Germany
Registered: 2016-05-01
Posts: 401
Website

Re: Problem with Menu Bar

In Deutsch:

Ich habe das nicht programmiert sondern über die Menuefunktion erstellt.
Untermenues erstellt und sonst nichts gemacht. Keine Ahnung-

Rainer

Offline

#4 2018-12-14 07:19:48

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Problem with Menu Bar

Rainer Goergen wrote:

In Deutsch:

Ich habe das nicht programmiert sondern über die Menuefunktion erstellt.
Untermenues erstellt und sonst nichts gemacht. Keine Ahnung-

Rainer

It behaves the same for Chrome, Safari and Firefox. What is the expected behavior?

BTW, Backlight 2 now support multi language support. This enables one to switch between two versions of the same page. More at http://backlight.theturninggate.net/doc … ge_support


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#5 2018-12-14 17:26:59

Rainer Goergen
Member
From: Trier, Germany
Registered: 2016-05-01
Posts: 401
Website

Re: Problem with Menu Bar

I do not know how the multi language support works. Maybe for images but not for different websites with a lot of text. Do you understand what I mean?

I have maken a website with 3 languages and I want to switch between them. I only found the possibility to switch between over a menu link. This works perfect, but not in Safari MacOS I wrote. Only this is my problem.

Rainer

Last edited by Rainer Goergen (2018-12-14 17:33:32)

Offline

#6 2018-12-15 00:11:57

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Problem with Menu Bar

I can only check on an iOS device. Works fine on my iPad in Safari


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#7 2018-12-15 00:51:07

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Problem with Menu Bar

Rainer Goergen wrote:

I do not know how the multi language support works. Maybe for images but not for different websites with a lot of text. Do you understand what I mean?

Yeah, I do. It is a bit trickier with a lot of text, but if you follow the link I provided, you see the concept.

You can encapsulate entire sections with divs

<div data-lang="en">English content...

</div>

<div data-lang="de">Deutscher Inhalt...

</div>

<div data-lang="fr">Contenu en Francais...

/div>
Rainer Goergen wrote:

This works perfect, but not in Safari MacOS I wrote. Only this is my problem.

I can jump between the different languages using Safari MacOS as I can do with the other browsers. I don't see any difference. This seem to work for me. This is with Safari 12.0.1 on MacOS Mojave.


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#8 2018-12-15 02:10:53

Rainer Goergen
Member
From: Trier, Germany
Registered: 2016-05-01
Posts: 401
Website

Re: Problem with Menu Bar

I will do a screen capture, High Sierra.

——

But I do not understand the concept you mean. For 3 languages I have to programm 3 different sites and I switch to them over the menu bar.

The multi language support how I understand, changes the language only in the contact form, clients, publisher ...
where I can chang the english text to german .....

I donˋt understand this usability without a sample. The documentation is very poor for normal users.

Rainer

Edit:

I think it is so, inserting text in different languages in different <div> in one website. If I then click onto the language selector, only the text for rhe selected language will shown.

This is no option for the site in my link above but I will try it later.

Rainer
----

Edit:

New day - new try.

Made now a multi language testsite (only the link below, no other site), German, English, French. If I click on the top pallet button, only the links to German and English are shown, not the French link. What did I make wrong? All the text of the different languages I have set in div containers.

And how can I change the menu bar to the right language?

https://hotel-deutschherrenhof-trier.de … nguage.php

Last edited by Rainer Goergen (2018-12-15 18:48:09)

Offline

#9 2018-12-16 05:09:53

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Problem with Menu Bar

Rainer, Backlight 2 supports multiple languages in a single site. So you do not need three sites for different languages.

Daniel has linked to docs above, and provided some explanation, so I don't think I need to reiterate what he's explained. I suggest you try the built-in language support, and see whether it suits your needs.


Matt

The Turning Gate, http://theturninggate.net

Offline

#10 2018-12-16 07:48:58

Rainer Goergen
Member
From: Trier, Germany
Registered: 2016-05-01
Posts: 401
Website

Re: Problem with Menu Bar

Matthew, I did it. Read my post completely please.

https://hotel-deutschherrenhof-trier.de … nguage.php

But what is about the menu bar? It is still in German! It will not change! And where is the french site?
Please look with inspector. In this test site there are 3 languages built-in, but one is missing!

One site or three sites - where is the problem? I have always to translate the text. Not much more work, only less of files.

Rainer

Last edited by Rainer Goergen (2018-12-16 07:51:00)

Offline

#11 2018-12-16 07:53:41

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Problem with Menu Bar

Is this still happening only in Safari? Because it seems to all work fine in Firefox and Chrome


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#12 2018-12-16 07:55:38

Rainer Goergen
Member
From: Trier, Germany
Registered: 2016-05-01
Posts: 401
Website

Re: Problem with Menu Bar

Do you mean the problem in the menu bar from my first post? Yes, only in Safari MacOS, High Sierra.

Rainer

Offline

#13 2018-12-16 09:35:34

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Problem with Menu Bar

yes, the menu bar.

You're using a different page template for each language so I'm at a loss to understand why the menu set for the page template isn't being applied for your version of Safari. I'd think that would be impossible.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#14 2018-12-16 11:37:05

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Problem with Menu Bar

Rainer Goergen wrote:

Do you mean the problem in the menu bar from my first post? Yes, only in Safari MacOS, High Sierra.

Rainer

Do you have a screen capture?


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#15 2018-12-16 11:44:18

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Problem with Menu Bar

Rainer Goergen wrote:

where is the problem? I have always to translate the text. Not much more work, only less of files.

Rainer

Since your site is already up and running, I understand and agree that there is little incentive to change that.


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#16 2018-12-16 15:51:10

Rainer Goergen
Member
From: Trier, Germany
Registered: 2016-05-01
Posts: 401
Website

Re: Problem with Menu Bar

@Rod

I have for each of the 3 languages one different template and for each one different menu bar. This is normal if I don't use multilanguage support. First entry is at the german bar - English (link to english page), second - French - link to french page. I didn't want the non-interactive mode. I try to make a screen capture of it.

menu_bar

This error occurs only, if the first entry in menu bar is a link to a page.

At my multilanguage test site I tried now an entry with non-interactive mode and after this the links to page - this works fine.

https://hotel-deutschherrenhof-trier.de … nguage.php

------------------

But my second question is not answered:

How can I change the language of my menu bars if I use the multilanguage support?

Rainer

Last edited by Rainer Goergen (2018-12-16 16:19:57)

Offline

#17 2018-12-16 16:13:37

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Problem with Menu Bar

Rainer Goergen wrote:

@Rod

But my second question is not answered:

How can I change the language of my menu bars if I use the multilanguage support?

Rainer

I’m guessing the same way as you would do it for the rest of the page.
The Name fields in the menu set can take html.
For the Name field of each link, try putting each link name in its own span element along with the necessary language code.
You’d have three spans in each Name field.

<span data-lang="en">English name</span><span data-lang="de">German name</span><span data-lang="Fr">French name</span>


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#18 2018-12-16 16:19:25

Rainer Goergen
Member
From: Trier, Germany
Registered: 2016-05-01
Posts: 401
Website

Re: Problem with Menu Bar

Rod, this is the information I missed. In my french menu I did this, after I stored it, there was only normal text inside, but not the html code I have inserted. The french entry was correct. So I wasn't sure whether html code works in the menu bar.

Thanks a lot.

Rainer

Edit:

But where is on my test-site the french language in the top pallet language selector ?????????????????????????

Rainer

Last edited by Rainer Goergen (2018-12-16 16:22:44)

Offline

#19 2018-12-16 17:42:31

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Problem with Menu Bar

Rainer Goergen wrote:

But where is on my test-site the french language in the top pallet language selector ?????????????????????????

Rainer

Did you enable it? It works on my test site.


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#20 2018-12-16 18:57:09

Rainer Goergen
Member
From: Trier, Germany
Registered: 2016-05-01
Posts: 401
Website

Re: Problem with Menu Bar

Of course, German and English are shown, but not French:

https://hotel-deutschherrenhof-trier.de … nguage.php

Only try the language selector in top pallet right side, not the menu bar!

There you can see only two languages. In my html code are three. In admin all three are enabled.

Rainer

Offline

#21 2018-12-16 22:41:05

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Problem with Menu Bar

Maybe a dumb question, but have you created a French language in Languages?
(In the menu, hover over Admin > Settings > Languages)


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#22 2018-12-17 01:40:04

Rainer Goergen
Member
From: Trier, Germany
Registered: 2016-05-01
Posts: 401
Website

Re: Problem with Menu Bar

O f   c o u r s e !

If I change the language code from de to fr and fr to de, the German language I select shows the french language. In the top pallet language selector are always only 2 languages shown.

Rainer

Offline

#23 2018-12-17 02:49:14

gengl
Member
From: Lexington, SC
Registered: 2013-11-24
Posts: 80
Website

Re: Problem with Menu Bar

If you are viewing in the English language, German and French appear as your choices. Why would it also display a choice for what you are already viewing?

Switch to German, and the choices are now English and French - because you are already viewing the third language.

Am I missing something?

Offline

#24 2018-12-17 03:10:13

Rainer Goergen
Member
From: Trier, Germany
Registered: 2016-05-01
Posts: 401
Website

Re: Problem with Menu Bar

@gengl
You have to read my post completely. It is a little bit off topic.
Try o n l y my test site with top pallet language selector, not the menu bar, this is an other thing.
Top pallet shows only 2 languages but I have 3 activated and in my html code. Okay?
The problem of my first post makes no difference to me because only I have this problem.

Rainer

Last edited by Rainer Goergen (2018-12-17 03:10:49)

Offline

#25 2018-12-17 03:16:53

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Problem with Menu Bar

Placing the world icon in your menu bar actually looks pretty good. And those drop-downs seem to work fine.
rainer-languages.jpg


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

Board footer

Powered by FluxBB