hyphenation and language setting in concrete 5

for automatic hyphenation in a text paragraph i use:

.text {
-webkit-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;

in a wordprocessor or indesign the hyphenation table changes to the desired language setting, because hyphenation in english and italian are different.

when i set the concrete 5 language to italian, i still get hyphenation in english.

how do i get this right, -do i have to set a @hyphenation-resource?

thanks in advance for hints.

View Replies:
mlocati replied on at Permalink Reply
Did you try to set the "lang" attribute of the html element?

<html lang="it">

PS: ciao!
blinkdesign replied on at Permalink Reply
"lang" attr. is set in the header like:
<html lang="<?php echo Localization::activeLanguage() ?>">

italian hyphenation seems to be OK, although i'm not a grammar specialist in italian.

but we have a site with weird hyphenations in german, this is for sure.
that site is localized in german, - would it make a difference to force "lang" to "de" instead of <html lang="<?php echo Localization::activeLanguage() ?>"> ?

saluti da zurigo.
mlocati replied on at Permalink Reply
It the site is in German only, hardcoding "de" won't hurt