Project

General

Profile

Actions

Feature #19495

closed

memory waste with locallang

Added by Franz Holzinger about 16 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Miscellaneous
Target version:
-
Start date:
2008-10-22
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.3
Tags:
Complexity:
Sprint Focus:

Description

If you load a locallang in an extension into the $LOCAL_LANG, then you can see, when no utf8 is used, that all default texts have been stored twice in memory. The normal texts have wrongly be used also as keys. This is a big waste of memory for big locallang.xml files.

Example:

$LOCAL_LANG Pos2
Array (4) default
String (24) mark_memo_dam_goto Go to the DAM memo list.
String (17) mark_basket_goto Go to the basket.
String (24) Go to the DAM memo list. Go to the DAM memo list.
String (17) Go to the basket. Go to the basket.
Array (2) de
String (24) mark_memo_dam_goto Gehe zur DAM Memo Liste.
String (19) mark_basket_goto Gehe zum Warenkorb.

(issue imported from #M9622)


Files

locallang.diff (886 Bytes) locallang.diff Administrator Admin, 2008-10-22 13:51
9622.patch (1.98 KB) 9622.patch Administrator Admin, 2010-05-06 03:59

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #27529: [TASK] Cleanup foreach() by using referencesClosed2011-06-18

Actions
Actions

Also available in: Atom PDF