Translated menu items are check_plained once in i18n_string_translate, and another time when the link is created. This causes apostrophes (') to appear as ' in the translated menu.
How to reproduce:
- Create a menu item
- Translate the menu item. Use a ' in the item title.

Expected behaviour: A ' is shown in the menu item title.
Resulting behaviour: ' is shown instead.

CommentFileSizeAuthor
#1 1592946-menu-encoding.patch620 bytesStevel

Comments

Stevel’s picture

Status: Active » Needs review
StatusFileSize
new620 bytes

Attached patch adds the sanitize parameter to the i18n_string_translate call.

jose reyero’s picture

Status: Needs review » Fixed

Committed, thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.