Skip to content
Snippets Groups Projects
Commit 7098c2fb authored by Jared Hancock's avatar Jared Hancock
Browse files

i18n: No language preference for single lang systems

parent 77e59482
No related branches found
No related tags found
No related merge requests found
...@@ -32,6 +32,7 @@ if ($acct = $thisclient->getAccount()) { ...@@ -32,6 +32,7 @@ if ($acct = $thisclient->getAccount()) {
<div class="error"><?php echo $errors['timezone']; ?></div> <div class="error"><?php echo $errors['timezone']; ?></div>
</td> </td>
</tr> </tr>
<?php if ($cfg->getSecondaryLanguages()) { ?>
<tr> <tr>
<td width="180"> <td width="180">
<?php echo __('Preferred Language'); ?>: <?php echo __('Preferred Language'); ?>:
...@@ -50,7 +51,8 @@ $selected = ($info['lang'] == $l['code']) ? 'selected="selected"' : ''; ?> ...@@ -50,7 +51,8 @@ $selected = ($info['lang'] == $l['code']) ? 'selected="selected"' : ''; ?>
<span class="error">&nbsp;<?php echo $errors['lang']; ?></span> <span class="error">&nbsp;<?php echo $errors['lang']; ?></span>
</td> </td>
</tr> </tr>
<?php if ($acct->isPasswdResetEnabled()) { ?> <?php }
if ($acct->isPasswdResetEnabled()) { ?>
<tr> <tr>
<td colspan=2"> <td colspan=2">
<div><hr><h3><?php echo __('Access Credentials'); ?></h3></div> <div><hr><h3><?php echo __('Access Credentials'); ?></h3></div>
......
...@@ -92,6 +92,7 @@ $info['id']=$staff->getId(); ...@@ -92,6 +92,7 @@ $info['id']=$staff->getId();
<div class="error"><?php echo $errors['timezone']; ?></div> <div class="error"><?php echo $errors['timezone']; ?></div>
</td> </td>
</tr> </tr>
<?php if ($cfg->getSecondaryLanguages()) { ?>
<tr> <tr>
<td width="180"> <td width="180">
<?php echo __('Preferred Language'); ?>: <?php echo __('Preferred Language'); ?>:
...@@ -110,6 +111,7 @@ $info['id']=$staff->getId(); ...@@ -110,6 +111,7 @@ $info['id']=$staff->getId();
<span class="error">&nbsp;<?php echo $errors['lang']; ?></span> <span class="error">&nbsp;<?php echo $errors['lang']; ?></span>
</td> </td>
</tr> </tr>
<?php } ?>
<tr><td width="220"><?php echo __('Preferred Locale');?>:</td> <tr><td width="220"><?php echo __('Preferred Locale');?>:</td>
<td> <td>
<select name="locale"> <select name="locale">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment