1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 18:14:26 +02:00

Multi-language for Custom Pages

This commit is contained in:
Veselin Totev
2015-06-19 11:26:01 +03:00
parent 7e4c26e458
commit 93d3a35153
4 changed files with 74 additions and 40 deletions

View File

@@ -263,14 +263,14 @@ class pageClass
if(e107::getPref('listPages',false))
{
$text .= "<h3>Other Articles</h3>"; // Book Title.
$text .= "<h3>".LAN_PAGE_14."</h3>"; // Book Title.
$tmp = $this->listPages(0);
$text .= $tmp['text']; // Pages unassigned to Book/Chapters.
} //
if($text)
{
$caption = varset($template['caption'], "Articles");
$caption = varset($template['caption'], LAN_PAGE_15);
$this->pageOutput = array('caption'=>$caption, 'text'=>$text);
//e107::getRender()->tablerender($caption, $text, "cpage_list");
}
@@ -376,7 +376,7 @@ class pageClass
}
else
{
$text = e107::getMessage()->addInfo("There are no chapters in this book")->render();
$text = e107::getMessage()->addInfo(LAN_PAGE_16)->render();
}
#return array('caption'=>$caption, 'text'=>$text);