aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-26 18:42:00 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-26 18:42:00 +0000
commit2d560e5f9e95f7fd71e1490cd13a0ae947d81c9b (patch)
treeb60c89a613c8457c81416877bdec2b8fd1a1676f /views/default
parent2e42219f0ee4bc07f8f3c262242e06ad4f92023e (diff)
downloadelgg-2d560e5f9e95f7fd71e1490cd13a0ae947d81c9b.tar.gz
elgg-2d560e5f9e95f7fd71e1490cd13a0ae947d81c9b.tar.bz2
Closes #98
git-svn-id: https://code.elgg.org/elgg/trunk@1157 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r--views/default/notifications/settings/usersettings.php4
-rw-r--r--views/default/settings/system.php11
-rw-r--r--views/default/user/settings/language.php15
3 files changed, 22 insertions, 8 deletions
diff --git a/views/default/notifications/settings/usersettings.php b/views/default/notifications/settings/usersettings.php
index af7c6cf54..edbaf5584 100644
--- a/views/default/notifications/settings/usersettings.php
+++ b/views/default/notifications/settings/usersettings.php
@@ -27,8 +27,8 @@
<td><?php echo $k; ?>: </td>
<td>
- <input type="radio" name="method[<?php echo $k; ?>]" value="yes" <?php if ($notification_settings->$k) echo "checked=\"yes\" "; ?>/><?php echo elgg_echo("yes"); ?><br />
- <input type="radio" name="method[<?php echo $k; ?>]" value="no" <?php if (!$notification_settings->$k) echo "checked=\"yes\" "; ?>/><?php echo elgg_echo("no"); ?>
+ <input type="radio" name="method[<?php echo $k; ?>]" value="yes" <?php if ($notification_settings->$k) echo "checked=\"yes\" "; ?>/><?php echo elgg_echo("option:yes"); ?><br />
+ <input type="radio" name="method[<?php echo $k; ?>]" value="no" <?php if (!$notification_settings->$k) echo "checked=\"yes\" "; ?>/><?php echo elgg_echo("option:no"); ?>
</td>
</tr>
<?php
diff --git a/views/default/settings/system.php b/views/default/settings/system.php
index 7fba20947..ad509724a 100644
--- a/views/default/settings/system.php
+++ b/views/default/settings/system.php
@@ -27,7 +27,7 @@
<?php
- foreach(array('sitename','wwwroot','path','dataroot', 'language', 'view') as $field) {
+ foreach(array('sitename','wwwroot','path','dataroot', 'view') as $field) {
?>
<p>
@@ -43,6 +43,15 @@
?>
<p>
+ <?php echo elgg_echo('language'); ?>
+ <?php
+ $languages = get_installed_translations();
+
+ echo elgg_view("input/pulldown", array('internalname' => 'language', 'value' => $vars['config']->language, 'options_values' => $languages));
+ ?>
+ </p>
+
+ <p>
<?php echo elgg_echo('debug'); ?><br />
<?php
echo elgg_view("input/checkboxes", array('options' => array(elgg_echo('debug:label')), 'internalname' => 'debug', 'value' => ($vars['config']->debug ? elgg_echo('debug:label') : "") ));
diff --git a/views/default/user/settings/language.php b/views/default/user/settings/language.php
index dcc20e8ef..0d478ac95 100644
--- a/views/default/user/settings/language.php
+++ b/views/default/user/settings/language.php
@@ -17,12 +17,17 @@
?>
<h2><?php echo elgg_echo('user:set:language'); ?></h2>
<p>
- <?php echo elgg_echo('user:language:label'); ?> : <input type="text" name="language" value="<?php
+
+ <?php echo elgg_echo('user:language:label'); ?> : <?php
+
+ $value = $CONFIG->language;
if ($user->language)
- echo $user->language;
- else
- echo $CONFIG->language;
- ?>" />
+ $value = $user->language;
+
+ echo elgg_view("input/pulldown", array('internalname' => 'language', 'value' => $value, 'options_values' => get_installed_translations()));
+
+ ?>
+
</p>
<?php } ?> \ No newline at end of file