From be06d54663de4d9e77e0b212ad5b9104cea71e6c Mon Sep 17 00:00:00 2001
From: JediKev <kevin@enhancesoft.com>
Date: Thu, 29 Jun 2017 14:38:32 -0500
Subject: [PATCH] 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.
---
 include/class.page.php       | 2 +-
 include/client/login.inc.php | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/class.page.php b/include/class.page.php
index c296e9fee..3ea5ca0f9 100644
--- a/include/class.page.php
+++ b/include/class.page.php
@@ -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));
diff --git a/include/client/login.inc.php b/include/client/login.inc.php
index d368f5d23..77d9b4148 100644
--- a/include/client/login.inc.php
+++ b/include/client/login.inc.php
@@ -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.');
-- 
GitLab