Changing the locale
-
I’m now using WP Photo Album Plus with qTranslate for a site in English, Dutch, German and French. I’m extremely impressed with the amount of thought and effort you have put into this plugin.
I use the qTranslate dropdown control to switch languages, so that for example the url of
https://mysite/info
will automatically change tohttps://mysite/nl/info
when I switch from English to Dutch.If I run WP Photo Album Plus without subsequently changing languages it’s fine – it detects the locale and uses that to display text in the correct language.
The problem is that if I then change the locale with qTranslate’s dropdown control WP Photo Album Plus doesn’t detect the change and stays in the same language that applied when it was started.
So if I’m displaying the photo gallery page in Dutch the url is
https://mysite/nl/photo-gallery/
and if I then start a slideshow from that page the url becomeshttps://mysite/nl/photo-gallery/?locale=nl_NL&wppa-album=3&wppa-slide&wppa-occur=2&wppa-photo=20
and the slideshow starts with Dutch text displayed correctly.If during the slideshow I change the locale, say from Dutch to German, the url changes to
https://mysite/de/photo-gallery/?locale=nl_NL&wppa-album=3&wppa-slide&wppa-occur=2&wppa-photo=20
so that the rest of the page is in German but the slideshow text is still in Dutch.Is there any way I can make WP Photo Album Plus dynamically change its locale while a slide show is running?
I have tried both the old and new shortcode / script alternatives without success. I was hoping there might be a locale attribute to set the locale but I couldn’t see anything in the reference pages. Is there perhaps some php I could run in a foreign shortcode to change the locale?
https://www.ads-software.com/extend/plugins/wp-photo-album-plus/
- The topic ‘Changing the locale’ is closed to new replies.