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 2020-05-14 05:53:42

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

multi language support

Does multi-language support the menu items? And how about separate mastheads.

Just asking.

Offline

#2 2020-05-14 06:00:50

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

Re: multi language support

yes on menu items, no on masthead images (as far as I know--there may be a phplugins way of feeding an image based on user choice of language). But if you use text in the masthead (company name and tagline), then yes.

For menu items, you'll need to edit the menu set and add the multi language html.

I've not tested the language code in album and album set titles to know if those fields can take the code so that gallery submenu items will be translated.


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

Offline

#3 2020-05-14 06:32:53

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: multi language support

This is a fairly straightforward site: the Home page shows thumbnails that are buttons that lead to video clips. All the data will be written in both languages using the method suggested earlier.
As for the menu items, I still have to discover where to edit these.
As for the button, I succeeded in placing on the left and changing the "Fr" by "Français". But now I'm wondering about that globe icon. Not sure everyone will "get it". Looking for another icon or a way to have some kind of indicator to switch language.
For the masthead, I'll just design a bilingual one, until I find a way to have separate Mastheads, switchable.

As Walter Cronkite used to say: "that's the way it is", for now.

Offline

#4 2020-05-14 07:13:10

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

Re: multi language support

Edit your main menu items in the Menu Set

Albums and albums sets that automatically appear beneath the Galleries item (descendants) cannot be edited. You could instead create the lower levels manually.

You can change the globe icon with custom css. Either swapping it for another icon or using text.

You could use a text based masthead with the tagline like I've done on my demo page. These can be styled separately with custom css.


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

Offline

#5 2020-05-14 07:46:27

aebolzan
Member
From: City Bell, Argentina
Registered: 2013-04-12
Posts: 124
Website

Re: multi language support

rod barbee wrote:

You can change the globe icon with custom css. Either swapping it for another icon or using text.

it would be interesting to know how....I was thinking also that perhaps the globe is not directly understood by some people and inserting something like " EN | ES" for English/Spanish would be better....

Agustin

Offline

#6 2020-05-14 08:41:38

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

Re: multi language support

aebolzan wrote:
rod barbee wrote:

You can change the globe icon with custom css. Either swapping it for another icon or using text.

it would be interesting to know how....I was thinking also that perhaps the globe is not directly understood by some people and inserting something like " EN | ES" for English/Spanish would be better....

Agustin

Yes, a few lines of CSS code can do this. Please have a look at: http://lab.danielleu.com/blog/customizi … -selector/


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

Offline

#7 2020-05-14 10:05:04

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

Re: multi language support

Daniel Leu wrote:
aebolzan wrote:
rod barbee wrote:

You can change the globe icon with custom css. Either swapping it for another icon or using text.

it would be interesting to know how....I was thinking also that perhaps the globe is not directly understood by some people and inserting something like " EN | ES" for English/Spanish would be better....

Agustin

Yes, a few lines of CSS code can do this. Please have a look at: http://lab.danielleu.com/blog/customizi … -selector/


Nice!


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

Offline

#8 2020-05-14 10:10:14

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

Re: multi language support

rod barbee wrote:
Daniel Leu wrote:
aebolzan wrote:

it would be interesting to know how....I was thinking also that perhaps the globe is not directly understood by some people and inserting something like " EN | ES" for English/Spanish would be better....

Agustin

Yes, a few lines of CSS code can do this. Please have a look at: http://lab.danielleu.com/blog/customizi … -selector/


Nice!

smile


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

Offline

#9 2020-05-14 10:16:55

aebolzan
Member
From: City Bell, Argentina
Registered: 2013-04-12
Posts: 124
Website

Re: multi language support

Daniel,

I have no knowledge about CSS, but I copied and pasted your code into my custom.css file and nothing happened...the Home page shows as usual...maybe I did not understand what to do with your code...

Agustin

P.D. this is what my css file contains:

.nav.nav_h ul.primary-menu ul.sub-menu {
        width: 400px;

/* Language switching */

html .fa-globe:before{
   font-family: Arial;
   font-weight: 700;
   font-size: 0.875em;
}   

html[lang="es"].fa-globe:before{
   content: "ES";
}

html[lang="en"].fa-globe:before{
   content: "EN";
}


#language-selector ul {
   width: 75px;
}

Last edited by aebolzan (2020-05-14 10:18:34)

Offline

#10 2020-05-14 10:26:29

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: multi language support

I’ll be moving this into Backlight 3 Customisation

Offline

#11 2020-05-14 10:58:35

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

Re: multi language support

aebolzan wrote:

Daniel,

I have no knowledge about CSS, but I copied and pasted your code into my custom.css file and nothing happened...the Home page shows as usual...maybe I did not understand what to do with your code...

Agustin

P.D. this is what my css file contains:

.nav.nav_h ul.primary-menu ul.sub-menu {
        width: 400px;

/* Language switching */

html .fa-globe:before{
   font-family: Arial;
   font-weight: 700;
   font-size: 0.875em;
}   

html[lang="es"].fa-globe:before{
   content: "ES";
}

html[lang="en"].fa-globe:before{
   content: "EN";
}


#language-selector ul {
   width: 75px;
}

Do you have a link to your page?


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

Offline

#12 2020-05-14 11:03:02

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

Re: multi language support

Your first statement is not closed. It should be

.nav.nav_h ul.primary-menu ul.sub-menu {
        width: 400px;
}

Do you notice the closing bracket?


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

Offline

#13 2020-05-14 21:27:52

aebolzan
Member
From: City Bell, Argentina
Registered: 2013-04-12
Posts: 124
Website

Re: multi language support

No, I didn't notice!..thanks!...but...the result is the same...I still have the globe....not the letters...  sad

Agustin

Offline

#14 2020-05-14 21:37:19

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

Re: multi language support

can you post a link to the site?


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

Offline

#15 2020-05-14 21:40:16

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: multi language support

Rod suggested:

You could use a text-based masthead with the tagline as I've done on my demo page. These can be styled separately with custom css.

I am playing around with a graphic masthead + a tagline. Works fine. Just have to discover how to align them, probably with CSS.
There is a "twitch" when changing the language but it's no big deal, yet.

Last edited by pideja (2020-05-14 21:40:45)

Offline

#16 2020-05-14 21:47:29

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: multi language support

I found in the Inspector that I can align the graphic masthead with the tagline with

div.masthead:nth-child(1) > div:nth-child(1) > a:nth-child(1) > h1:nth-child(1) > span:nth-child(1) > img:nth-child(1) {
padding-right: 0px;
margin-right: 0px;
right: 15px;
}

Is this usefull ? Is there a more CSS-like way to do this? If not, where do I put this code?

Offline

#17 2020-05-14 22:11:34

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

Re: multi language support

I’ve not probed it to see if there’s a better way.
But what you posted is css. So put it in your custom css file.

This is starting to get a bit off topic. If you need to go further with masthead customization, can you start a new topic?


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 2020-05-14 22:21:02

aebolzan
Member
From: City Bell, Argentina
Registered: 2013-04-12
Posts: 124
Website

Re: multi language support

rod barbee wrote:

can you post a link to the site?


www.agustinbolzan.com.ar


Agustin

Offline

#19 2020-05-14 22:21:13

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: multi language support

Will do!

Offline

#20 2020-05-14 22:50:41

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

Re: multi language support

aebolzan wrote:
rod barbee wrote:

can you post a link to the site?


www.agustinbolzan.com.ar


Agustin

your custom css is not showing Daniel's code. Double check that you added it to your my-custom.css file and that you've uploaded it to the /backlight/custom/css/ folder


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

Offline

#21 2020-05-14 23:08:12

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

Re: multi language support

Agustin,

I see that you've uploaded the css. There's a syntax error. You have:

html[lang="es"].fa-globe:before{
   content: "ES";
}
 
html[lang="en"].fa-globe:before{
   content: "EN";
}

There needs to be a space before .fa-globe. Change the code so it looks like this:

html[lang="es"] .fa-globe:before{
   content: "ES";
}
 
html[lang="en"] .fa-globe:before{
   content: "EN";
}

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 2020-05-14 23:23:42

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: multi language support

aebolzan wrote:
rod barbee wrote:
You can change the globe icon with custom css. Either swapping it for another icon or using text.

it would be interesting to know how....I was thinking also that perhaps the globe is not directly understood by some people and inserting something like " EN | ES" for English/Spanish would be better....

and Daniel wrote:

Yes, a few lines of CSS code can do this. Please have a look at: http://lab.danielleu.com/blog/customizi … -selector/

Well, it works for me. Thanks, Daniel and Rod!

https://pideja.ca/marco

Offline

#23 2020-05-15 00:24:10

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: multi language support

Although Daniel's CSS works fine on my site, the editor I am using warns me to not use "IDs in selectors" as in:

#language-selector ul {
   width: 75px;

Why is this?

Offline

#24 2020-05-15 00:27:08

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

Re: multi language support

ignore that, it's nonsense.

The selector for that element is #language-selector, so that's what you need to use.


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

Offline

#25 2020-05-15 00:48:57

aebolzan
Member
From: City Bell, Argentina
Registered: 2013-04-12
Posts: 124
Website

Re: multi language support

rod barbee wrote:

Agustin,

I see that you've uploaded the css. There's a syntax error. You have:

html[lang="es"].fa-globe:before{
   content: "ES";
}
 
html[lang="en"].fa-globe:before{
   content: "EN";
}

There needs to be a space before .fa-globe. Change the code so it looks like this:

html[lang="es"] .fa-globe:before{
   content: "ES";
}
 
html[lang="en"] .fa-globe:before{
   content: "EN";
}

still not working....any ideas?

Agustin

Offline

Board footer

Powered by FluxBB