Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
How to create a language switch button ?
Hi everybody,
I would like to create a button to switch between french and english (two locales). The purpose is to allow all visitors to see the website in their language.
I've tried to overwrite the values of
Is there a plug in to do this ?
Thanks a lot !
I would like to create a button to switch between french and english (two locales). The purpose is to allow all visitors to see the website in their language.
I've tried to overwrite the values of
but it doesn't seems to work correctly...
$Configuration['EnabledLocales']['French']
$Configuration['Garden']['Locale']
Is there a plug in to do this ?
Thanks a lot !
0
Best Answer
-
Linc AdminI'll probably release it officially next week, but you can grab it over here if you want to help test it: https://github.com/vanillaforums/Addons/tree/master/plugins/Multilingual0
Answers
grep is your friend.
some bugs (?) :
?locale= doesn't works ( maybe because of url rewritng)
the method doesn't works either.
I was looking for this add-on all day and finally found .. Thank you very much for your work.
@Lincoln I just downloaded your "Multilingual" plugin but after installing it and enabling it, when I click on a language to switch, it doesn't work - i.e. just reload the same page in the default language.
I'm using "Version 2.0.18.1" of Vanilla Forums.
Concerning the locales, I downloaded them from http://vanillaforums.org/addon
Thanks in advance for a short feedback.
Multilingual may not work in 2.0.18.1. I may have made alterations to core to accomodate it, so you'd need to use an "unstable" version or wait for 2.1.
Hey, as said above your plugin indeed does not work with 2.0.18.1, i installed it (edited the file so it would allow me to install), it successfully installed and enabled plugin and the language switcher appeared on the bottom of the page, however switching languages doesn't work. Just nothing happens. Anyway we can expect a fix soon enough or maybe i am doing something wrong?
For all those experiencing problems, plugin works fine with this version.
Hi @Lincoln,
Could you point me the specified "unstable" version that I could use and maybe improve/fix by myself please? A link to github should be enough ;-)
I really hope to see this plugin either part of the vanilla core, or else released with backward compatibility!
Thanks in advance for a short feedback!