Skip to content
Snippets Groups Projects
Commit be06d546 authored by JediKev's avatar JediKev
Browse files

pages: User Login Page Translation

This addresses issue #3860 where if you add a translation to the Login
Page and view the page in the translated language, the translation does
not show. This adds the correct method to get the translated page.
parent d2ef3b1f
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@ class Page extends VerySimpleModel {
return $this->name;
}
function getLocalName($lang=false) {
return $this->getLocal('name', $lang);
return $this->_getLocal('name', $lang);
}
function getNameAsSlug() {
return urlencode(Format::slugify($this->name));
......
......@@ -8,7 +8,7 @@ $content = Page::lookupByType('banner-client');
if ($content) {
list($title, $body) = $ost->replaceTemplateVariables(
array($content->getName(), $content->getBody()));
array($content->getLocalName(), $content->getLocalBody()));
} else {
$title = __('Sign In');
$body = __('To better serve you, we encourage our clients to register for an account and verify the email address we have on record.');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment