[TYPO3-core] FYI48: #11838: Hardcoded label "lines" in t3editor

Tobias Liebig mail_typo3 at etobi.de
Wed Nov 4 11:24:41 CET 2009


This is an SVN patch request.

Type:
Cleanup/Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=11838

Branches:
trunk only

Problem:
The t3editor had some hardcoded labels in javascript, so they cannot be translated.

Solution:
Make some labels from locallang.xml available in javascript and use them.

Currently there is no generic API to do this, but the Ext:Recycler follows a nice
approach to solve this.
I copied the methods getJavaScriptLabels and getJavaScriptLabelsFromLocallang to use
them in the t3editor, but i think this should be refactored and go into
the class "language" or an new JS-Language-Helper to provide a nice, easy-to-use API
for other extensions/BE-Moduls too.
As this would be a new feature, i filed a new issue for that:
http://bugs.typo3.org/view.php?id=12462

Note:
i'm going to commit the attached patch in 48 h, if no one complains

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_11838_labels.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20091104/2b6aecec/attachment.txt>


More information about the TYPO3-team-core mailing list