Bug #14984
closedEditpanel confirm dialogs (del/hide) don't display umlauts/etc
0%
Description
The edit panel has a hide and delete buttons that open a javascript confirmation dialog. This works nice in englisch, but if the user has set the BE-language to a language that uses non-ascii chars in these strings (e.g. german), the confirmation dialogs appear with these characters displayed as URL-encoded UTF-8 entities.
The problem is that javascript dialogs doesn't support URL-encoded strings and not even UTF-8 entities.
The attached patch solves the problem, and allows us to display the confirmation prompts with umlauts etc. The solution is:
1) t3lib_tsfebeuserauth::extGetLL has a new parameter, allowing us to return the string in the default charset that the BE-user is using (instead of UTF-8 entities)
2) In tslib_content::editPanel we now get the strings for "hideConfirm" and "deleteConfirm" using this new parameter
3) In tslib_content::editPanelLinkWrap the $confirm parameter goes through $GLOBALS['LANG']->JScharCode() to get properly encoded and displayed in the dialog.
The attached patch was created for current CVS-head, but also applies to TYPO3 3.8.0 nicely.
(issue imported from #M1472)
Files