Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

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?

Comments

Sign In or Register to comment.