strange issue with multilanguage skin

Q&A about the latest versions
Post Reply
TSokolowski
Posts: 1
Joined: Thu Apr 20, 2017 5:06 pm

hi
I'm working on a project which has few custom features enabled :
- multilanguage skin - using well known method of loading variable 'lang' ie pl / en / de / ro / bg / lt and different texts values driven by the value of variable
- external value loaded using ExtValue from the end of URL as per instructions from forum - ExtValue gets then picked up and modifies lang variable
- also using script which updates URL every 1 second while browsing the tour and it adds #node31,176.26,-0.62,76.35,4,lang

on top of this project is using some custom JS + CSS which I've inherited by the previous developer

skin has some static buttons and also a menu which is hidden on startup and can be opened by clicking on it

static buttons look like this :

Image

underneath in the skin, button changes its name using standard logic of text field + lang variable :

Image

menu with products looks like this :

Image

underneath in the skin it looks like this :

Image

language changes are driven by this logic :

Image

main problem - this video should explain it well :
- tour is loaded with ExtValue = en
- this then changes lang variable = en
- buttons and menu items are displayed OK in english - last 3 entries in the menu are displayed in english as well
- while changing the language using little interface from the corner of the screen - static buttons from top left corner + top right corner get updated OK
- BUT the last 3 lines in the menu don't change at all - only those last 3 lines contain word 'door' which should be translated / should change to whatever is set up in the skin/text field logic

pano2vr_CsJNDf2zFp.mp4
(5.9 MiB) Downloaded 277 times
can anyone suggest what might be going on here and why part of the tour (static buttons) gets translated no bother while other part (3 lines from the menu container) doesn't change at all despite using same method of changing the language

here's live URL with the project : http://194.140.214.106/spacer/output_mu ... 93.16,4,en
Post Reply