WebSite X5Help Center

 
Francois R.
Francois R.
User

Bug in the language choice object  en

Author: Francois R.
Visited 1145, Followers 1, Shared 0  

I have found a bug in the Language Choice object.

If you check https://www.nouvellegalerie.fr

In the header, there is a choice to display a localised version, which I created using the Language Choice object.

Normally, users can choose between FR (default) / EN / ES. Then the website would go to /en or /es.

In the English website, the choice should be EN / ES / FR, and ES / EN / FR when in the Spanish section.

In Preview mode, the selection works, all 3 flags are shown.

Once uploaded to the server, only 2 flags appear, the first two. This is the case with Edge, Firefox and Opera.

I have made sure that, when editing the header in Template mode, the object has been selected as 'Bring to front' to make sure it displays correctly over the rest of the page (several times to make sure).

The enclosed graphic shows the difference between Preview mode (3 flags) and page in Edge/Firefox/Opera (2 flags).

It seems that there is a bug somewhere.

Posted on the
7 ANSWERS - 1 CORRECT
Francois R.
Francois R.
User
Author

The bug could be that the Object is not uploaded to server as 'brought to front', which would explain why it does not display beyond the header, whilst looking fine in Preview mode.

Read more
Posted on the from Francois R.
Paul M.
Paul M.
Moderator

Hello Francois,

The source code actually looks correct...  the link is there, the image is there.

I think you might need to enlarge the container which holds the Language Choice Object, in Step 2 Template Content.

Kind regards,

Paul

Search the WebSite X5 Help Center

Read more
Posted on the from Paul M.
Francois R.
Francois R.
User
Author

Your solution is correct. Thanks Paul.

Read more
Posted on the from Francois R.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

... x base site, FR, icons >> [EN] > [ES]
... x EN site, icons >> [FR] > [ES]
... x ES site, icons >> [FR] > [EN]

... currently icons :
... x FR  >> [FR]! > [EN] > [ES]
... x EN  >> [EN]! > [ES] > [FR]
... x ES  >> [SP]! > [EN] > [FR]

.

Read more
Posted on the from  ‪ KolAsim ‪ ‪
Francois R.
Francois R.
User
Author

Yes! KolAsim, you are right! Thanks for pointing this out.

Read more
Posted on the from Francois R.
Francois R.
Francois R.
User
Author

KolAsim,

Whilst in theory you are right, the popup language flag selection object does not work unless language number 1 is selected as the current language.

In other words, on the French site, I cannot simply use

Lang 1 EN

Lang 2 ES

with the path pointing to the English or Spanish site. If I do this and no 'current language' is selected, the popup does not display. It seems that the flag showing the current language has to be present.

No big deal.

Read more
Posted on the from Francois R.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

... hello, ... OK, it will be as you say, unfortunately I cannot try... ciao

Read more
Posted on the from  ‪ KolAsim ‪ ‪