Fixed bug #11603: BE-Log: "Changes in fields" and "Show history" are not translatable...
authorSteffen Kamper <info@sk-typo3.de>
Thu, 30 Jul 2009 16:45:04 +0000 (16:45 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Thu, 30 Jul 2009 16:45:04 +0000 (16:45 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5736 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_bedisplaylog.php
typo3/sysext/belog/mod/locallang.xml

index 1f5db04..7597901 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-07-30  Steffen Kamper  <info@sk-typo3.de>
+
+       * Fixed bug #11603: BE-Log: "Changes in fields" and "Show history" are not translatable (Thanx to Christopher Stelmaszyk)
+
 2009-07-27  Oliver Hader  <oliver@typo3.org>
 
        * Cleanup: Updated t3lib/core_autoload.php
index f199ec3..eadd833 100644 (file)
@@ -209,9 +209,11 @@ class t3lib_BEDisplayLog {
                $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('uid,fieldlist', 'sys_history', 'sys_log_uid='.intval($sys_log_uid));
                $newRow = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res);
                if (is_array($newRow))  {
-                       $text.=' Changes in fields: <em>'.$newRow['fieldlist'].'</em>.';
-                       $text.=' <a href="'.htmlspecialchars($GLOBALS['BACK_PATH'].'show_rechis.php?sh_uid='.$newRow['uid'].'&returnUrl='.rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI'))).'">'.
-                                       '<img'.t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'],'gfx/history2.gif','width="13" height="12"').' title="Show History" alt="" />'.
+                       $text .= ' ' . sprintf($GLOBALS['LANG']->getLL('changesInFields'), '<em>' . $newRow['fieldlist'] . '</em>');
+                       $text .= ' <a href="' . htmlspecialchars($GLOBALS['BACK_PATH'] . 'show_rechis.php?sh_uid=' . $newRow['uid'] .
+                                       '&returnUrl=' . rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI'))) . '">' .
+                                       '<img' . t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'], 'gfx/history2.gif', 'width="13" height="12"') .
+                                       ' title="' . $GLOBALS['LANG']->getLL('showHistory') . '" alt="" />' .
                                        '</a>';
                }
 
index c2041b5..eacc09a 100755 (executable)
@@ -35,6 +35,8 @@
                        <label index="users">Users:</label>
                        <label index="time">Time:</label>
                        <label index="max">Max:</label>
+                       <label index="changesInFields">Changes in fields: %s.</label>
+                       <label index="showHistory">Show History</label>
                        <label index="action">Action:</label>
                        <label index="type_1">DB</label>
                        <label index="action_1_1">Insert</label>