From 7098c2fb6ebd824cf2292d27d32e7a191500cccf Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Mon, 27 Apr 2015 22:36:20 -0500
Subject: [PATCH] i18n: No language preference for single lang systems

---
 include/client/profile.inc.php | 4 +++-
 include/staff/profile.inc.php  | 2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/client/profile.inc.php b/include/client/profile.inc.php
index 13062962e..713551110 100644
--- a/include/client/profile.inc.php
+++ b/include/client/profile.inc.php
@@ -32,6 +32,7 @@ if ($acct = $thisclient->getAccount()) {
             <div class="error"><?php echo $errors['timezone']; ?></div>
         </td>
     </tr>
+<?php if ($cfg->getSecondaryLanguages()) { ?>
     <tr>
         <td width="180">
             <?php echo __('Preferred Language'); ?>:
@@ -50,7 +51,8 @@ $selected = ($info['lang'] == $l['code']) ? 'selected="selected"' : ''; ?>
             <span class="error">&nbsp;<?php echo $errors['lang']; ?></span>
         </td>
     </tr>
-<?php if ($acct->isPasswdResetEnabled()) { ?>
+<?php }
+      if ($acct->isPasswdResetEnabled()) { ?>
 <tr>
     <td colspan=2">
         <div><hr><h3><?php echo __('Access Credentials'); ?></h3></div>
diff --git a/include/staff/profile.inc.php b/include/staff/profile.inc.php
index ea0317d61..a8ba88a3e 100644
--- a/include/staff/profile.inc.php
+++ b/include/staff/profile.inc.php
@@ -92,6 +92,7 @@ $info['id']=$staff->getId();
                 <div class="error"><?php echo $errors['timezone']; ?></div>
             </td>
         </tr>
+<?php if ($cfg->getSecondaryLanguages()) { ?>
         <tr>
             <td width="180">
                 <?php echo __('Preferred Language'); ?>:
@@ -110,6 +111,7 @@ $info['id']=$staff->getId();
                 <span class="error">&nbsp;<?php echo $errors['lang']; ?></span>
             </td>
         </tr>
+<?php } ?>
         <tr><td width="220"><?php echo __('Preferred Locale');?>:</td>
             <td>
                 <select name="locale">
-- 
GitLab