Editpanel confirm dialogs (del/hide) don't display umlauts/etc
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)
#1 Updated by Ernesto Baschny over 14 years ago
The updated patch changes this.
#3 Updated by Bernhard Kraft over 14 years ago
The actual patch:
fixes following problems:
Mailform goodMess, badMess, emailMess with utf-8 entities. (No bug #)
FE-User admin/Direct Mail subscription utf-8 entities in values (Bug #14264)
JSMENU with utf8 (Bug #14264)
Editpanel confirm dialogs with utf8 (Bug #14264)
please try it out and write me back if you had a negative or positive experience:
If this works fine and no problems come up it will get added to the core and be contained in T3 4.0.0
#4 Updated by Ernesto Baschny over 14 years ago
I've just tested the patches on a plain 3.8.0 setup (should work the same in 3.8.1) and it worked. In "native" iso-latin-1 mode and also with forceCharSet set to utf-8. At least the dialogs from the editpanels work nicely with the last patch from Bernhard.