aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/templates
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2022-08-11 05:54:08 +0000
committerChristopher Ng <chrng8@gmail.com>2022-09-16 19:02:18 +0000
commitf922b2fd7072ace8211467e3627f2a44a5c09fe3 (patch)
treed218fb323c4445659576a70a5cfc8ea7af149a79 /apps/settings/templates
parentb9c002df0a3ab80c1612206cfb1f724d90e0da3a (diff)
downloadnextcloud-server-f922b2fd7072ace8211467e3627f2a44a5c09fe3.tar.gz
nextcloud-server-f922b2fd7072ace8211467e3627f2a44a5c09fe3.zip
Remake locale saving with Vue
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/settings/templates')
-rw-r--r--apps/settings/templates/settings/personal/personal.info.php34
1 files changed, 1 insertions, 33 deletions
diff --git a/apps/settings/templates/settings/personal/personal.info.php b/apps/settings/templates/settings/personal/personal.info.php
index 085eb1bc0f5..3426cf4ebeb 100644
--- a/apps/settings/templates/settings/personal/personal.info.php
+++ b/apps/settings/templates/settings/personal/personal.info.php
@@ -98,39 +98,7 @@ script('settings', [
<div id="vue-language-section"></div>
</div>
<div class="personal-settings-setting-box personal-settings-locale-box">
- <?php if (isset($_['activelocale'])) { ?>
- <form id="locale" class="section">
- <h3>
- <label for="localeinput"><?php p($l->t('Locale')); ?></label>
- </h3>
- <select id="localeinput" name="lang" data-placeholder="<?php p($l->t('Locale')); ?>">
- <option value="<?php p($_['activelocale']['code']); ?>">
- <?php p($l->t($_['activelocale']['name'])); ?>
- </option>
- <optgroup label="––––––––––"></optgroup>
- <?php foreach ($_['localesForLanguage'] as $locale) : ?>
- <option value="<?php p($locale['code']); ?>">
- <?php p($l->t($locale['name'])); ?>
- </option>
- <?php endforeach; ?>
- <optgroup label="––––––––––"></optgroup>
- <option value="<?php p($_['activelocale']['code']); ?>">
- <?php p($l->t($_['activelocale']['name'])); ?>
- </option>
- <?php foreach ($_['locales'] as $locale) : ?>
- <option value="<?php p($locale['code']); ?>">
- <?php p($l->t($locale['name'])); ?>
- </option>
- <?php endforeach; ?>
- </select>
- <div id="localeexample" class="personal-info icon-timezone">
- <p>
- <span id="localeexample-date"></span> <span id="localeexample-time"></span>
- </p>
- <p id="localeexample-fdow"></p>
- </div>
- </form>
- <?php } ?>
+ <div id="vue-locale-section"></div>
</div>
<span class="msg"></span>
</div>