Project

General

Profile

Actions

Bug #17541

closed

File locallang.php used in static template instead of locallang.xml

Added by Sylvia-Kathrin Tanneberger almost 17 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Content Rendering
Target version:
-
Start date:
2007-08-18
Due date:
% Done:

0%

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

Description

I have found a difference between the template and the installed files. In the box with the addditional information I have given a part of the template of css_styled_content. You find there references to locallang.php. In the installation of the extension I found in the Folder pi1 the langage-file named locallang.xml (!!!).

My TYPO3-version is 4.1.2 from 27th July 2007.

What can I do as a work around for this problem?

Please check it.

Thank you

layout = COA
layout {
wrap = <table border="0" cellspacing="0" cellpadding="2" class="csc-searchResultInfo"><tr> | </tr></table> ###RESULT###

10 = TEXT
10.data = LLL:EXT:css_styled_content/pi1/locallang.php:search.resultRange
10.wrap = <td class="csc-searchResultRange"><p>|</p></td>

20 = TEXT
20.value = ###PREV###   ###NEXT###
20.wrap = <td class="csc-searchResultPrevNext"><p>|</p></td>
}

noResultObj = COA
noResultObj {
10 = TEXT
10.data = LLL:EXT:css_styled_content/pi1/locallang.php:search.emptySearch
10.wrap = <h3 class="csc-noSearchResultMsg">|</h3>
}

next = TEXT
next.data = LLL:EXT:css_styled_content/pi1/locallang.php:search.searchResultNext

prev = TEXT
prev.data = LLL:EXT:css_styled_content/pi1/locallang.php:search.searchResultPrev

target = {$styles.content.searchresult.target}
range = 20

stdWrap.prefixComment = 2 | Search result:
}
(issue imported from #M6170)


Files

0006170.patch (14 KB) 0006170.patch Administrator Admin, 2007-08-19 14:43
Actions #1

Updated by Oliver Hader almost 17 years ago

There is a function t3lib_div::readLLfile() that takes care about this. If a file like "locallang.php" should be included, the suffix "php" is cut off and it's searched for "locallang.xml". If the XML file wasn't found the "locallang.php" is used.

But you're right, the locallang.php is wrong if the existing file has the name locallang.xml.

Actions #2

Updated by Oliver Hader almost 17 years ago

Committed to SVN Trunk (rev. 2451) for TYPO3 4.2.

Actions

Also available in: Atom PDF