From 8f43c5a2ad020556bba6d6e65eed5483c8728a8c Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Thu, 11 Dec 2014 11:13:42 -0600
Subject: [PATCH] i18n: Localize client ticket view

---
 include/class.forms.php     | 4 ++--
 include/client/view.inc.php | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/class.forms.php b/include/class.forms.php
index 02758818d..60aca0e94 100644
--- a/include/class.forms.php
+++ b/include/class.forms.php
@@ -811,8 +811,8 @@ class FormField {
     }
 
     function getTranslateTag($subtag) {
-        return _H(sprintf('field.%s.%s.%s', $subtag, $this->get('id'),
-            $this->get('form_id', '*internal*')));
+        return _H(sprintf('field.%s.%s%s', $subtag, $this->get('id'),
+            $this->get('form_id') ? '' : '*internal*'));
     }
     function getLocal($subtag, $default=false) {
         $tag = $this->getTranslateTag($subtag);
diff --git a/include/client/view.inc.php b/include/client/view.inc.php
index d2f55a008..2a98a5c72 100644
--- a/include/client/view.inc.php
+++ b/include/client/view.inc.php
@@ -51,7 +51,7 @@ if ($thisclient && $thisclient->isGuest()
             <table class="infoTable" cellspacing="1" cellpadding="3" width="100%" border="0">
                 <tr>
                     <th width="100"><?php echo __('Ticket Status');?>:</th>
-                    <td><?php echo $ticket->getStatus(); ?></td>
+                    <td><?php echo ($S = $ticket->getStatus()) ? $S->getLocalName() : ''; ?></td>
                 </tr>
                 <tr>
                     <th><?php echo __('Department');?>:</th>
-- 
GitLab