diff -ru typo3_src-4.2.0.2/t3lib/class.t3lib_treeview.php typo3_src-4.2.0/t3lib/class.t3lib_treeview.php
--- typo3_src-4.2.0.2/t3lib/class.t3lib_treeview.php 2008-04-23 06:15:20.000000000 -0400
+++ typo3_src-4.2.0/t3lib/class.t3lib_treeview.php 2008-06-10 15:31:27.000000000 -0400
@@ -675,6 +675,14 @@
* @return string The title.
*/
function getTitleStr($row,$titleLen=30) {
+ //when an assosiation between the frontend and the backend language is found, look for a traduction title for the page in the page tree
+ if($GLOBALS['LANG']->sys_language_uid){
+ $rowoverlay= t3lib_BEfunc::getRecordRaw('pages_language_overlay','pid="'.$row['uid'].'" and sys_language_uid='.$GLOBALS['LANG']->sys_language_uid);
+
+ if($rowoverlay){
+ $row= $rowoverlay;
+ }
+ }
if ($this->ext_showNavTitle && strlen(trim($row['nav_title'])) > 0) {
$title = ''.htmlspecialchars(t3lib_div::fixed_lgd_cs($row['nav_title'],$titleLen)).'';
} else {
Seulement dans typo3_src-4.2.0/t3lib: class.t3lib_treeview.php~
diff -ru typo3_src-4.2.0.2/typo3/class.webpagetree.php typo3_src-4.2.0/typo3/class.webpagetree.php
--- typo3_src-4.2.0.2/typo3/class.webpagetree.php 2008-04-23 06:15:54.000000000 -0400
+++ typo3_src-4.2.0/typo3/class.webpagetree.php 2008-06-10 15:34:07.000000000 -0400
@@ -168,6 +168,17 @@
return ''.$thePageTitle.'';
}
+ /**
+ * Create an assosiation between the frontend and the backend language and store it in $GLOBALS['LANG']->sys_language_uid
+ *
+ */
+ function SetSys_Language_uid(){
+ $rowStatic= t3lib_BEfunc::getRecordRaw('static_languages','lg_typo3="'.$GLOBALS['LANG']->lang.'"');
+ if($rowStatic){
+ $row= t3lib_BEfunc::getRecordRaw('sys_language','static_lang_isocode="'.$rowStatic['uid'].'"');
+ $GLOBALS['LANG']->sys_language_uid=$row['uid'];
+ }
+ }
/**
* Compiles the HTML code for displaying the structure found inside the ->tree array
@@ -176,6 +187,7 @@
* @return string The HTML code for the tree
*/
function printTree($treeArr = '') {
+ $this->SetSys_Language_uid();
$titleLen = intval($this->BE_USER->uc['titleLen']);
if (!is_array($treeArr)) {
$treeArr = $this->tree;
Seulement dans typo3_src-4.2.0/typo3: class.webpagetree.php~