summaryrefslogtreecommitdiffstats
path: root/settings/templates
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-04-18 14:17:37 +0200
committerkondou <kondou@ts.unde.re>2013-04-18 15:14:42 +0200
commit79218be1d2214095eae1272eac7559a67a55a786 (patch)
tree55d031aea9abf5e987f159222a4dfc72716223c9 /settings/templates
parentcbd8b792d9505f2020aa4a0f54c031f26cb5fe02 (diff)
downloadnextcloud-server-79218be1d2214095eae1272eac7559a67a55a786.tar.gz
nextcloud-server-79218be1d2214095eae1272eac7559a67a55a786.zip
Priorize common languages.
Diffstat (limited to 'settings/templates')
-rw-r--r--settings/templates/personal.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/settings/templates/personal.php b/settings/templates/personal.php
index 03073069ab7..c0fcf5c1bd6 100644
--- a/settings/templates/personal.php
+++ b/settings/templates/personal.php
@@ -78,11 +78,16 @@ if($_['displayNameChangeSupported']) {
<fieldset class="personalblock">
<legend><strong><?php p($l->t('Language'));?></strong></legend>
<select id="languageinput" class="chzen-select" name="lang" data-placeholder="<?php p($l->t('Language'));?>">
+ <option value="<?php p($_['activelanguage']['code']);?>"><?php p($_['activelanguage']['name']);?></option>
+ <?php foreach($_['commonlanguages'] as $language):?>
+ <option value="<?php p($language['code']);?>"><?php p($language['name']);?></option>
+ <?php endforeach;?>
+ <option class="divider">––––––––––</option>
<?php foreach($_['languages'] as $language):?>
<option value="<?php p($language['code']);?>"><?php p($language['name']);?></option>
<?php endforeach;?>
</select>
- <a href="https://www.transifex.net/projects/p/owncloud/team/<?php p($_['languages'][0]['code']);?>/"
+ <a href="https://www.transifex.net/projects/p/owncloud/team/<?php p($_['activelanguage']['code']);?>/"
target="_blank"><em><?php p($l->t('Help translate'));?></em></a>
</fieldset>
</form>