Make everything translatable.
This commit is contained in:
parent
7b18a6590c
commit
e442267188
|
@ -33,7 +33,7 @@ class Pages_Controller extends Controller {
|
|||
|
||||
// Display the page.
|
||||
$template = new Theme_View("page.html", "other", "Pages");
|
||||
$template->page_title = t("Gallery :: ") . $existing_page[0]->title;
|
||||
$template->page_title = t("Gallery :: ") . t($existing_page[0]->title);
|
||||
$template->content = new View("pages_display.html");
|
||||
$template->content->title = $existing_page[0]->title;
|
||||
$template->content->body = $existing_page[0]->html_code;
|
||||
|
|
|
@ -39,7 +39,7 @@ class pages_block_Core {
|
|||
// Loop through each page and generate an HTML list of their links and titles.
|
||||
$content = "<ul id=\"g-pages-list\">";
|
||||
foreach ($pages as $one_page) {
|
||||
$content .= "<li style=\"clear: both;\"><a href=\"" . url::site("pages/show/" . $one_page->name) . "\">" . $one_page->title . "</a></li>";
|
||||
$content .= "<li style=\"clear: both;\"><a href=\"" . url::site("pages/show/" . $one_page->name) . "\">" . t($one_page->title) . "</a></li>";
|
||||
}
|
||||
$content .= "</ul>";
|
||||
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
</style>
|
||||
<? endif ?>
|
||||
<div class="g-page-block">
|
||||
<h1> <?= $title ?> </h1>
|
||||
<h1> <?= t($title) ?> </h1>
|
||||
<div class="g-page-block-content">
|
||||
<?=$body ?>
|
||||
<?=t($body) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -33,7 +33,7 @@ class Pages_Controller extends Controller {
|
|||
|
||||
// Display the page.
|
||||
$template = new Theme_View("page.html", "other", "Pages");
|
||||
$template->page_title = t("Gallery :: ") . $existing_page[0]->title;
|
||||
$template->page_title = t("Gallery :: ") . t($existing_page[0]->title);
|
||||
$template->content = new View("pages_display.html");
|
||||
$template->content->title = $existing_page[0]->title;
|
||||
$template->content->body = $existing_page[0]->html_code;
|
||||
|
|
|
@ -39,7 +39,7 @@ class pages_block_Core {
|
|||
// Loop through each page and generate an HTML list of their links and titles.
|
||||
$content = "<ul id=\"g-pages-list\">";
|
||||
foreach ($pages as $one_page) {
|
||||
$content .= "<li style=\"clear: both;\"><a href=\"" . url::site("pages/show/" . $one_page->name) . "\">" . $one_page->title . "</a></li>";
|
||||
$content .= "<li style=\"clear: both;\"><a href=\"" . url::site("pages/show/" . $one_page->name) . "\">" . t($one_page->title) . "</a></li>";
|
||||
}
|
||||
$content .= "</ul>";
|
||||
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
</style>
|
||||
<? endif ?>
|
||||
<div class="g-page-block">
|
||||
<h1> <?= $title ?> </h1>
|
||||
<h1> <?= t($title) ?> </h1>
|
||||
<div class="g-page-block-content">
|
||||
<?=$body ?>
|
||||
<?=t($body) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Reference in New Issue
Block a user