diff options
author | Thomas Citharel <tcit@tcit.fr> | 2017-07-05 17:36:43 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2018-06-27 13:15:19 +0200 |
commit | d8921ccd85f3414c1f3e13b23b6da735bf9b69b8 (patch) | |
tree | 69bd3669e1e1dec46030200d2991c77f20392b1c /settings/templates | |
parent | 221f558f6609cdfcb9e0bf9e89e398f5940254fe (diff) | |
download | nextcloud-server-d8921ccd85f3414c1f3e13b23b6da735bf9b69b8.tar.gz nextcloud-server-d8921ccd85f3414c1f3e13b23b6da735bf9b69b8.zip |
Allow user to choose locale
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'settings/templates')
-rw-r--r-- | settings/templates/settings/personal/personal.info.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/settings/templates/settings/personal/personal.info.php b/settings/templates/settings/personal/personal.info.php index f8268e199ee..959650cf2f9 100644 --- a/settings/templates/settings/personal/personal.info.php +++ b/settings/templates/settings/personal/personal.info.php @@ -3,6 +3,7 @@ * @copyright Copyright (c) 2017 Arthur Schiwon <blizzz@arthur-schiwon.de> * * @author Arthur Schiwon <blizzz@arthur-schiwon.de> + * @author Thomas Citharel <tcit@tcit.fr> * * @license GNU AGPL version 3 or any later version * @@ -379,3 +380,29 @@ vendor_style('jcrop/css/jquery.Jcrop'); </div> </div> + +<form id="locale" class="section"> + <h2> + <label for="localeinput"><?php p($l->t('Locale'));?></label> + </h2> + <select id="localeinput" name="lang" data-placeholder="<?php p($l->t('Locale'));?>"> + <option value="<?php p($_['activelocale']['code']);?>"> + <?php p($_['activelocale']['name']);?> + </option> + <optgroup label="––––––––––"></optgroup> + <?php foreach($_['localesforlanguage'] as $locale):?> + <option value="<?php p($locale['code']);?>"> + <?php p($locale['name']);?> + </option> + <?php endforeach;?> + <optgroup label="––––––––––"></optgroup> + <option value="<?php p($_['activelocale']['code']);?>"> + <?php p($_['activelocale']['name']);?> + </option> + <?php foreach($_['locales'] as $locale):?> + <option value="<?php p($locale['code']);?>"> + <?php p($locale['name']);?> + </option> + <?php endforeach;?> + </select> +</form> |