Fixed bug #5061: Message in Web > List isnt localized (thanks to Christopher Stelmaszyk)
authorChristian Kuhn <lolli@schwarzbu.ch>
Sat, 27 Jun 2009 00:39:31 +0000 (00:39 +0000)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 27 Jun 2009 00:39:31 +0000 (00:39 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5642 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/class.db_list_extra.inc
typo3/sysext/lang/locallang_core.xml

index a54d6a1..bff3319 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-06-27  Christian Kuhn  <lolli@schwarzbu.ch>
+
+       * Fixed bug #5061: Message in Web > List isn't localized (thanks to Christopher Stelmaszyk)
+
 2009-06-26  Benjamin Mack  <benni@typo3.org>
 
        * Fixed Bug #9415 - "Do" Dropdown in Workspace module doesn't respect users rights (Thanks to Franz Koch)
index 6f38d93..8659317 100644 (file)
@@ -1212,7 +1212,7 @@ class localRecordList extends recordList {
                                        $titleOrig = t3lib_BEfunc::getRecordTitle($table,$row,FALSE,TRUE);
                                        $title = t3lib_div::slashJS(t3lib_div::fixed_lgd_cs($titleOrig, $this->fixedL), 1);
                                        $params = '&cmd['.$table.']['.$row['uid'].'][delete]=1';
-                                       $cells['delete']='<a href="#" onclick="'.htmlspecialchars('if (confirm('.$LANG->JScharCode($LANG->getLL('deleteWarning').' "'. $title.'" '.t3lib_BEfunc::referenceCount($table,$row['uid'],' (There are %s reference(s) to this record!)')).')) {jumpToUrl(\''.$SOBE->doc->issueCommand($params,-1).'\');} return false;').'">'.
+                                       $cells['delete']='<a href="#" onclick="'.htmlspecialchars('if (confirm('.$LANG->JScharCode($LANG->getLL('deleteWarning').' "'. $title.'" '.t3lib_BEfunc::referenceCount($table,$row['uid'],' ' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:labels.referencesToRecord'))).')) {jumpToUrl(\''.$SOBE->doc->issueCommand($params,-1).'\');} return false;').'">'.
                                                        '<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/garbage.gif','width="11" height="12"').' title="'.$LANG->getLL('delete',1).'" alt="" />'.
                                                        '</a>';
                                } elseif(!$this->table) {
index ca804e8..b9bd047 100755 (executable)
@@ -107,6 +107,7 @@ Do you want to continue WITHOUT saving?</label>
                        <label index="ver.swap">Swap/Publish</label>
                        <label index="ver.swapPage">Publish this version of the page including content</label>
                        <label index="TYPO3_Element_Browser">TYPO3 Element Browser</label>
+                       <label index="labels.referencesToRecord">(There are %s reference(s) to this record!)</label>
                        <label index="show_item.php.viewItem">View Item</label>
                        <label index="show_item.php.referencesToThisItem">References to this item:</label>
                        <label index="show_item.php.referencesFromThisItem">References from this item:</label>