1
0

Make everything translatable.

This commit is contained in:
rWatcher 2011-07-21 13:40:17 -04:00
parent 7b18a6590c
commit e442267188
6 changed files with 8 additions and 8 deletions

View File

@ -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;

View File

@ -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>";

View File

@ -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>

View File

@ -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;

View File

@ -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>";

View File

@ -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>