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.

#26 2020-05-15 00:54:28

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

Re: multi language support

aebolzan wrote:
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

I see that it is working now for you, Agustin smile


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

Offline

#27 2020-05-15 01:00:18

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

Re: multi language support

The captions under the video clips are coded this way:

<div data-lang="fr"> 
<center>HISTOIRE À FAIRE PEUR<br>Long métrage de Shawn Linden </center></div>

<div data-lang="en"> 
<center>A GOOD LIE<br>Feature film by Shawn Linden </center></div>

as seen here: https://pideja.ca/marco/productions/01-histoire/

Notice that the French version is off to the right but should be centred, like the English text.

Same code, different result.

UPDATE: I just noticed that if I put the English code over the French, it is this text that will skew to the right. Am I making sense here?

Last edited by pideja (2020-05-15 01:22:06)

Offline

#28 2020-05-15 01:06:02

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

Re: multi language support

Daniel Leu wrote:

I see that it is working now for you, Agustin smile

seems that I am in another channel smile  I don't see any change in my PC, still the globe!

Agustin

UPDATE!!:  I see the change in my IPad but not in my Windows PC!, or the Android mobile...so there is some kind of issue related to the operating system

Last edited by aebolzan (2020-05-15 01:12:11)

Offline

#29 2020-05-15 01:41:18

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

Re: multi language support

aebolzan wrote:
Daniel Leu wrote:

I see that it is working now for you, Agustin smile

seems that I am in another channel smile  I don't see any change in my PC, still the globe!

Agustin

UPDATE!!:  I see the change in my IPad but not in my Windows PC!, or the Android mobile...so there is some kind of issue related to the operating system

I think it is just a caching issue where the browser hasn't updated your latest CSS changes yet.


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

Offline

#30 2020-05-15 02:14:12

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

Re: multi language support

Daniel Leu wrote:

I think it is just a caching issue where the browser hasn't updated your latest CSS changes yet.


YOU ARE RIGHT!...I was using Opera....now I changed to Chrome and everything goes fine (although Opera still shows  the globe!) ...thanks!

Agustin

Update...Opera is OK now, I cleaned the cache....

Last edited by aebolzan (2020-05-15 02:20:59)

Offline

#31 2020-05-15 02:41:23

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

Re: multi language support

smile


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

Offline

#32 2020-05-15 03:05:29

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

Re: multi language support

pideja wrote:

The captions under the video clips are coded this way:

<div data-lang="fr"> 
<center>HISTOIRE À FAIRE PEUR<br>Long métrage de Shawn Linden </center></div>

<div data-lang="en"> 
<center>A GOOD LIE<br>Feature film by Shawn Linden </center></div>

as seen here: https://pideja.ca/marco/productions/01-histoire/

Notice that the French version is off to the right but should be centred, like the English text.

Same code, different result.

UPDATE: I just noticed that if I put the English code over the French, it is this text that will skew to the right. Am I making sense here?

<center> is deprecated html5. Instead, use inline styling:
<div style=“text-align:center:” data-lang=“en”......

not sure if using deprecated html is causing the problem but it would be best to eliminate that first


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

Offline

#33 2020-05-15 03:16:05

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

Re: multi language support

I changed the code to

<div style=“text-align:center:” data-lang=“fr”> 
HISTOIRE À FAIRE PEUR<br>Long métrage de Shawn Linden </div>

<div style=“text-align:center:” data-lang=“en”> 
A GOOD LIE<br>Feature film by Shawn Linden </div>

Now I have no text under the video!

Offline

#34 2020-05-15 03:24:30

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

Re: multi language support

Here is a strange one. I tried the code suggested, but no text appeared. Then desperate, I reverted to the previous code but removed the offending <center></center>

<div data-lang="fr"> HISTOIRE À FAIRE PEUR<br>Long métrage de Shawn Linden</div>

<div data-lang="en"> A GOOD LIE<br>Feature film by Shawn Linden </div>

. You would think that both Fr and En text would be aligned the same. But no: the Fr side is to the right and the En side to the left!

Offline

#35 2020-05-15 03:24:40

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

Re: multi language support

Look at the quotes you were using! You need a plain text editor!


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

Offline

#36 2020-05-15 03:51:55

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

Re: multi language support

your inline styling is a bit messy:

<div style=“text-align:center: data-lang="fr"> HISTOIRE À FAIRE PEUR<br>Long métrage de Shawn Linden</div>
<div style=“text-align:center: data-lang="en"> A GOOD LIE<br>Feature film by Shawn Linden </div>

You've still got the wrong style quote mark (slanted) and the css is written wrong, it should end with semi-colon followed by another quote mark:

<div style="text-align:center;" data-lang="fr"> HISTOIRE À FAIRE PEUR<br>Long métrage de Shawn Linden</div>
<div style="text-align:center;" data-lang="en"> A GOOD LIE<br>Feature film by Shawn Linden </div>

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

Offline

#37 2020-05-15 04:03:06

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

Re: multi language support

Maybe the quotes are slanted because my system is French. I tried using ATOM, SUBLIME TEXT and BRACKETS as well as writing directly in Backlight.
So, I copied the code Rod sent and...the French text is to the right but the good news is, the English text is centred.

Last edited by pideja (2020-05-15 04:03:21)

Offline

#38 2020-05-15 04:09:00

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

Re: multi language support

if you copy slanted quotes into a text editor, they will remain slanted. you need to delete slanted quotes and just type in new quotes. Those should be straight.


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

Offline

#39 2020-05-15 04:16:44

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

Re: multi language support

the reason that the FR text is floating to the right is lower is because of this rule in your custom css:

/* contact page */
.the__copy > .content > :first-child {
    float: right;
    margin-top: 40px;
}

which is apparently just for your contact page.

I'd suggest making that rule specific to the contact page so it doesn't affect other pages:

.slug-contact .the__copy > .content > :first-child {
    float: right;
    margin-top: 40px;
}

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

Offline

#40 2020-05-15 04:22:11

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

Re: multi language support

Re-wrote the code in Visual Studio Code. I inspected the quote marks with a loupe and they are as straight as they can be and yet, still the French text is to the right and the English text is centred!
As a matter of fact, the French code is above the English code.
But reversing this order, the English code line on top will generate English text to the right and, you guessed it, the French text dead center.

So, it's gotta be something else.

Last edited by pideja (2020-05-15 04:22:50)

Offline

#41 2020-05-15 04:23:12

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

Re: multi language support

see my post above.


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

Offline

#42 2020-05-15 04:54:34

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

Re: multi language support

I had not seen your previous post, sorry. I also had seen that bit of CSS but did not know how to make it specific.
I guess it's part of learning as you go, or as the French would say "sur le tas"!

It works fine now. Thanks

Offline

#43 2020-05-15 05:41:09

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

Re: multi language support

As for the album titles, I placed this code in the Album Title box of the Album:

<div data-lang="fr">UNE HISTOIRE À FAIRE PEUR</div> <div data-lang="en">A GOOD LIE</div>

All the code shows up in the title.

Offline

#44 2020-05-15 05:41:35

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

Re: multi language support

That feature has been a part of Backlight for a while now. I just wrote a post about it, in fact
https://ttg-tips-and-tricks.barbeephoto … -your-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

#45 2020-05-15 06:18:29

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

Re: multi language support

I think I correctly identified the album set template but I'm not too sure how to use this. My album-set identifier is
marcogalleryset. I want to keep the thumbnail images, of course. So, for now all I have is

.album-set-template-identifier-marcogalleryset #albums

but of course, it doesn't do anything yet.
How can I apply this with the multi-language album titles?

Offline

#46 2020-05-15 07:02:09

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

Re: multi language support

Pierre, you have the labels reversed. When the page is in english mode, you really want to show 'EN' and not 'FR':

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

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

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

Offline

#47 2020-05-15 07:09:28

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

Re: multi language support

pideja wrote:

How can I apply this with the multi-language album titles?

As far as I can tell, you can't

I don't think the album title fields can take html


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

Offline

#48 2020-05-15 07:12:52

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

Re: multi language support

pideja wrote:

I think I correctly identified the album set template but I'm not too sure how to use this. My album-set identifier is
marcogalleryset. I want to keep the thumbnail images, of course. So, for now all I have is

.album-set-template-identifier-marcogalleryset #albums

but of course, it doesn't do anything yet.

this is your css:

	/* Album titles */
	.album-set-template-identifier-marcogalleryset #album-title
	<div data-lang="en"></div>
      <div data-lang="fr"></div>

first, there is no bracket after the selector
Second, you have html after the selector, not css.

what are you trying to do?


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

Offline

#49 2020-05-15 08:09:50

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

Re: multi language support

- Daniel, I'm trying to get this language switch to be somewhat more direct. As it is, when showing "Fr" it's because you are on the English side and, I suppose, you want to go on the French side. I too think it's a bit convoluted. This method would work better if by clicking the FR or EN button, you could land on the corresponding language page directly. As it is, whatever language symbol appears on the button, you still have to select from a drop-down menu. So, I think I'll look for a suitable icon that would just say "language switch".

- Rod, I think you are right again about the album-titles. Not only the boxes are very small, but Backlight does not seem to take well to the HTML code. It takes it for part of the title. And that code you corrected was to be used to try to get the multi-language effect for the titles but sadly, it does not work.

Last edited by pideja (2020-05-15 08:10:16)

Offline

#50 2020-05-15 08:18:45

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

Re: multi language support

pideja wrote:

- Rod, I think you are right again about the album-titles. Not only the boxes are very small, but Backlight does not seem to take well to the HTML code. It takes it for part of the title. And that code you corrected was to be used to try to get the multi-language effect for the titles but sadly, it does not work.

Yep, you can't use html markup in 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

Board footer

Powered by FluxBB