cluster Posted May 20, 2021 Report Posted May 20, 2021 is there any way to change the language via GET and POST requests from outside and what should the strings look like? Quote
0 cluster Posted May 28, 2021 Author Report Posted May 28, 2021 Is there really no way to switch languages from frontend? Quote
0 Michael Posted May 31, 2021 Report Posted May 31, 2021 You should have a dropdown on show for switching languages. cluster 1 Quote
0 cluster Posted June 1, 2021 Author Report Posted June 1, 2021 yes exactly, I'm looking for the string or a function to trigger that Quote
0 cluster Posted June 5, 2021 Author Report Posted June 5, 2021 I have been using a multilingual whmcs installation (4 languages) for about 10 years, how can I integrate the languages into the Blesta frontend? Do I need to buy the Besta CMS for this or how can I integrate a language switcher in the Blesta frontend? ### edit ### oh, sorry for my impatience ? it seems to work with the BlestaCMS when I add the languages there ... I will pay more attention on it so I can get it work for my needs ### edit ### not really ... it works for own content pages only Quote
0 cluster Posted June 6, 2021 Author Report Posted June 6, 2021 I will try to explain better ... the language switcher does not change the URL which cause penalizing by google ranking due to "duplicate content w/ the same URL" so the point here is to solve an SEO problem (duplicate content) the URL should look like this after switch to another language: default language: https://www.mydomain.tld/ FR should be: https://www.mydomain.tld/fr/ NL should be: https://www.mydomain.tld/nl/ or https://www.mydomain.tld/fr/plugin/support_manager/knowledgebase/ https://www.mydomain.tld/nl/plugin/support_manager/knowledgebase/ that would be feasible via a mod_rewrite rule but only if the language switcher shows the string, i.e. changing the language with a GET string ... is there a possibility to use a function in structure.pdt that adds an iso code (fr) to the redirect_uri? for example ... if language french was selected <input type="hidden" name="redirect_uri" value="/fr/" /> <input type="hidden" name="redirect_uri" value="/fr/plugin/support_manager/knowledgebase/" /> the BlestaCMS plugin is working properly it appends the iso code of the language to the url but Blesta always shows the default URL after switching the language. Quote
0 cluster Posted June 6, 2021 Author Report Posted June 6, 2021 ok i have found the "lang" string which works for all languages incl. plugins, order page etc. https://docs.blesta.com/display/user/Order+System#OrderSystem-LinkingtoanOrderFormtoIncludeaSpecificLanguage https://www.mydomain.tld/?lang=en_us https://www.mydomain.tld/?lang=fr_fr https://www.mydomain.tld/?lang=de_de Quote
0 Blesta Addons Posted June 7, 2021 Report Posted June 7, 2021 we have a plugin that is doing this out of the box, multi-languages plugin. you can check it in live in our website https://blesta-addons.com/ https://blesta-addons.com/fr/ https://blesta-addons.com/es/ cluster 1 Quote
0 cluster Posted June 7, 2021 Author Report Posted June 7, 2021 thanks, this plugin is already on my list ... I thought I have to wait until the updates or does it work with Blesta 5.x? Quote
0 Blesta Addons Posted June 7, 2021 Report Posted June 7, 2021 7 hours ago, cluster said: thanks, this plugin is already on my list ... I thought I have to wait until the updates or does it work with Blesta 5.x? it work with blesta v5, if any trouble just open a ticket we will look and install it for you. cluster 1 Quote
Question
cluster
is there any way to change the language via GET and POST requests from outside and what should the strings look like?
9 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.