Page 1 of 1

Hyphenation

Posted: Thu Apr 08, 2021 6:08 pm
by caigner
Hello!

With

Code: Select all

<__html lang="de">
in the HTML header and

Code: Select all

hypens: auto;
in the CSS code hyphenation works like a charm.

Now, I have the problem that CMSms sets the language like so:

Code: Select all

<__html lang="de_DE">
And with that hyphenation doesn't work anymore.

Any solutions to this problem?

Regards,
Christian

Re: Hyphenation

Posted: Fri Apr 09, 2021 12:02 am
by DIGI3
CMSMS doesn't set the lang like that, but your template might. Just change the template so it doesn't.
I've seen some templates come with

Code: Select all

<__html lang="{cms_get_language}">
which will result in the problem you're having, so you could change that to:

Code: Select all

<__html lang="{cms_get_language|truncate:2:"":true}">
or simply

Code: Select all

<__html lang="de">

[SOLVED] Re: Hyphenation

Posted: Sat Apr 10, 2021 7:37 am
by caigner
Brilliant! So simply and elegant!

Thank you so much!