WonderCMS/wondercms

Default language of site

joho1968 opened this issue ยท 7 comments

It'd be nice if there was a config (or database) option for "siteLanguage", which is output in the tag at the top of pages. I don't know if this is managed "automagically" by translations, but I may want to use the English (default) interface, but output most of my pages in Swedish, in which case it'd be nice if I could put "sv" as the "siteLanguage".

Same here, I also prefer to use the default admin interface in english but my website content in german - so I'm happy to agree with @joho1968 suggestion.

Kind regards and thanks,

Andreas ;)

robiso commented

This will be available with the next update 3.4.3, which should be published within the next few days.
You will be able to set the html lang parameter to anything (configurable for admins and visitors seperately) in the Settings - Security. :)

robiso commented

To take into effect, please change the following in your theme (after we release WonderCMS 3.4.3)
<html lang="<?= $Wcms->getSiteLanguage() ?>">

What is the "following" I can not see anything :)

robiso commented

Forgot the code block so it didnโ€™t show the code, donโ€™t use this yet until we release the new version :)

Ok thanks you very much :)

robiso commented

Closing issue, since this was release with 3.4.3 moments ago. :) Feel free to use this new functionality.