Project

General

Profile

Actions

Bug #14984

closed

Editpanel confirm dialogs (del/hide) don't display umlauts/etc

Added by Ernesto Baschny about 19 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2005-09-21
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.8.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

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


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #14264: getUpdateJS: broken when using UTF-8 and IEClosedBernhard Kraft2004-08-05

Actions
Actions

Also available in: Atom PDF