Merge pull request #14853 from nextcloud/fix/14822/make-regions-translatable

Make regions translatable
This commit is contained in:
Morris Jobke 2019-03-26 12:08:40 +01:00 committed by GitHub
commit fce1ddc04e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -346,21 +346,21 @@ script('settings', [
</h3>
<select id="localeinput" name="lang" data-placeholder="<?php p($l->t('Locale'));?>">
<option value="<?php p($_['activelocale']['code']);?>">
<?php p($_['activelocale']['name']);?>
<?php p($l->t($_['activelocale']['name']));?>
</option>
<optgroup label=""></optgroup>
<?php foreach($_['localesForLanguage'] as $locale):?>
<option value="<?php p($locale['code']);?>">
<?php p($locale['name']);?>
<?php p($l->t($locale['name']));?>
</option>
<?php endforeach;?>
<optgroup label=""></optgroup>
<option value="<?php p($_['activelocale']['code']);?>">
<?php p($_['activelocale']['name']);?>
<?php p($l->t($_['activelocale']['name']));?>
</option>
<?php foreach($_['locales'] as $locale):?>
<option value="<?php p($locale['code']);?>">
<?php p($locale['name']);?>
<?php p($l->t($locale['name']));?>
</option>
<?php endforeach;?>
</select>