![]() |
|
How to force internationalization i18 to reload the page when changing language? - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: How to force internationalization i18 to reload the page when changing language? (/thread-13183.html) |
How to force internationalization i18 to reload the page when changing language? - oinkoink - 2018-11-30 Hello all, How to force internationalization i18 to reload the page when changing language? - acrylian - 2018-11-30
No, translation is using PHP gettext, therefore server side and the language selector does reload the page to switch. Sorry, can't help with that script but perhaps browser caches are playing tricks on you. If the slider disappears you should review the browser console to see if there are any JS errors occurring. How to force internationalization i18 to reload the page when changing language? - oinkoink - 2018-11-30 Thank you very much for your quick answer! How to force internationalization i18 to reload the page when changing language? - acrylian - 2018-11-30 This actually sounds like a browser cache issue to me. I recently had a lot of fun with the browser cache of Safari for example. It is sometimes so persistent that even force clearing several times does not change anything. It is really annoying. Firefox and Chrome don't show this annoying behaviour. How to force internationalization i18 to reload the page when changing language? - oinkoink - 2018-11-30 Could be, browser caches can be quite tricky. But I tried Safari, Firefox and Chrome, clearing all cache and stored data before selecting another language, and onload event is not triggered. It's enough to go to a gallery page and click "home" back to index, and then it is triggered and everything works fine... wouldn't make much sense for a browser cache, would it? How to force internationalization i18 to reload the page when changing language? - oinkoink - 2018-11-30 But I just found a bxslider plugin in Zenphoto. I guess I will give it a try instead of trying to integrate a third party slider How to force internationalization i18 to reload the page when changing language? - acrylian - 2018-11-30 I did encounter browsers behave differently if you reload or really reload the page freshliy (like hitting enter in the address bar). Especially js and css are quite persistently cached. Have you tried disabling the cache? In FIrefox at least that is easily possible. How to force internationalization i18 to reload the page when changing language? - acrylian - 2018-11-30 You can also use the slideshow2 plugin, both include slider scripts. Still the reason might be how your slider script does things that interferes somehow… How to force internationalization i18 to reload the page when changing language? - oinkoink - 2018-11-30 Tried with cache disabled, no difference. I'll try slideshow2. How to force internationalization i18 to reload the page when changing language? - acrylian - 2018-11-30 The slideshow itself is currently built into every official theme so you don't need to do much. Otherrwise take a look here: (Same info to be found within the plugin file itself). How to force internationalization i18 to reload the page when changing language? - oinkoink - 2018-11-30 Thanks! |