Skip to content

Commit

Permalink
Allow to translate English texts - closes #3599
Browse files Browse the repository at this point in the history
  • Loading branch information
freescout-help-desk committed Dec 13, 2023
1 parent f9a3354 commit 7908da3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ public function getIndex($group = null)
$groups = [''=>'Choose a group'] + $groups;

$selected_locale = request()->input('locale');
if ($selected_locale == 'en') {
$selected_locale = '';
}
// if ($selected_locale == 'en') {
// $selected_locale = '';
// }
if (!$selected_locale) {
foreach ($locales as $locale) {
if ($locale != 'en') {
//if ($locale != 'en') {
$selected_locale = $locale;
break;
}
//}
}
}

Expand Down
4 changes: 2 additions & 2 deletions resources/views/vendor/translation-manager/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@
<p>Language</p>
<select name="locale" id="locale" class="form-control group-locale-select" autocomplete="off">
<?php foreach($locales as $locale): ?>
<?php if ($locale != 'en'): ?>
<?php /*if ($locale != 'en'):*/ ?>
<option value="<?php echo $locale ?>"<?php echo $locale == $selected_locale ? ' selected':'' ?>><?php echo \Helper::getLocaleData($locale, 'name') ?> (<?php echo \Helper::getLocaleData($locale, 'name_en') ?>)</option>
<?php endif ?>
<?php /*endif*/ ?>
<?php endforeach; ?>
</select>
</div>
Expand Down

0 comments on commit 7908da3

Please sign in to comment.