Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.
Please upgrade here. These earlier versions are no longer being updated and have security issues.

Breadcrumb and HTML-entities such as "shy;" don't mix well

mtschirsmtschirs ✭✭✭
edited July 2015 in Vanilla 2.0 - 2.8

While using the German locale "vf_de", I noticed that e.g. the english 'Notification Preferences' translates to the very long 'Benachrichtigungseinstellungen'. The general problem here is that German word agglutination produces very long words without any space that would allow for a word-break.

Unfortunately, the translation of 'Notification Preferences' is not only used in the breadcrumb (profile / notification preferences), but also in the sidepanel where a word-break is absolutely necessary (otherwise it would break the design).

To allow for word-breaks, I inserted ­ into the translation of 'Notification Preferences':
$Definition['Notification Preferences'] = 'Benach­rich­ti­gungs­ein­stellungen';:

The sidepanel then renders perfeclty as:

However, the breadcrumb then renders as:

This is due to the 'formatString'-function in 'library/core/functions.general.php' replacing all htmlspecialchars.

The question is: can this be fixed without touching the vanilla core? If yes, how?

-

peregrine

Comments

Sign In or Register to comment.