Skip to content

Commit

Permalink
New Countries Localizations (#1475)
Browse files Browse the repository at this point in the history
replacement of PR #1462
This change keep country name stored in english, but user will see
country in you own language.
Countries Names need to be added to POEditor.com.
  • Loading branch information
saulowulhynek authored and DawoudIO committed Nov 28, 2016
1 parent 055e52d commit b7a9047
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Include/CountryDropDown.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
<option value=""><?= gettext("Unassigned") ?></option>
<option value="" disabled>--------------------</option>
<?php foreach (Countries::getNames() as $county) { ?>
<option value="<?= $county ?>" <?php if ($sCountry == $county) { echo "selected"; } ?>><?= $county ?>
<option value="<?= $county ?>" <?php if ($sCountry == $county) { echo "selected"; } ?>><?= gettext($county) ?>
<?php } ?>
</select>
2 changes: 1 addition & 1 deletion src/SystemSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
<select name='new_value[<?= $setting->getId() ?>]' class="choiceSelectBox" style="width: 100%">
<?php
foreach (Countries::getNames() as $country) {
echo "<option value = '" . $country . "'' " . ($setting->getValue() == $country ? "selected" : "") . ">" . $country . "</option>";
echo "<option value = '" . $country . "'' " . ($setting->getValue() == $country ? "selected" : "") . ">" . gettext($country) . "</option>";
}
?>
</select>
Expand Down
2 changes: 1 addition & 1 deletion src/external/templates/registration/family-register.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<div class="col-lg-9">
<select name="familyCountry" class="form-control">
<?php foreach (Countries::getNames() as $county) { ?>
<option value="<?= $county ?>" <?php if (SystemConfig::getValue("sDefaultCountry") == $county) { echo "selected"; } ?>><?= $county ?>
<option value="<?= $county ?>" <?php if (SystemConfig::getValue("sDefaultCountry") == $county) { echo "selected"; } ?>><?= gettext($county) ?>
<?php } ?>
</select>

Expand Down

0 comments on commit b7a9047

Please sign in to comment.