WonderCMS / wondercms

Fast and small flat file CMS (5 files). Built with PHP, JSON database.
https://wondercms.com
MIT License
642 stars 163 forks source link

Default language of site #296

Closed joho1968 closed 8 months ago

joho1968 commented 1 year ago

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".

WebCrew commented 11 months ago

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 8 months ago

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 8 months ago

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

WebCrew commented 8 months ago

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

robiso commented 8 months ago

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

WebCrew commented 8 months ago

Ok thanks you very much :)

robiso commented 8 months ago

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