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.
You are not logged in.
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
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
In Deutsch:
Ich habe das nicht programmiert sondern über die Menuefunktion erstellt.
Untermenues erstellt und sonst nichts gemacht. Keine Ahnung-
Rainer
Offline
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
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
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
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>
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
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
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.
Offline
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
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
Do you mean the problem in the menu bar from my first post? Yes, only in Safari MacOS, High Sierra.
Rainer
Offline
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
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
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
@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.
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
@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
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
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
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
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
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
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
@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
Placing the world icon in your menu bar actually looks pretty good. And those drop-downs seem to work fine.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline