aboutsummaryrefslogtreecommitdiff
path: root/views/default/user
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-26 12:44:22 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-26 12:44:22 +0000
commitf750cdf33e7717fdb4fc6caf72361e76385fd6ae (patch)
tree9dc0fd85e1fc9e89ab9fe65060fe76a8378cf164 /views/default/user
parent890f6ac71bb19a9693b92584f4c3989303769785 (diff)
downloadelgg-f750cdf33e7717fdb4fc6caf72361e76385fd6ae.tar.gz
elgg-f750cdf33e7717fdb4fc6caf72361e76385fd6ae.tar.bz2
Closes #92: Settings: Set user language
http://trac.elgg.org/elgg/ticket/92 git-svn-id: https://code.elgg.org/elgg/trunk@1145 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/user')
-rw-r--r--views/default/user/settings/language.php38
1 files changed, 38 insertions, 0 deletions
diff --git a/views/default/user/settings/language.php b/views/default/user/settings/language.php
new file mode 100644
index 000000000..476f21924
--- /dev/null
+++ b/views/default/user/settings/language.php
@@ -0,0 +1,38 @@
+<?php
+ /**
+ * Provide a way of setting your language prefs
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Marcus Povey
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ */
+
+ global $CONFIG;
+ $user = $_SESSION['user'];
+
+ if ($user) {
+?>
+ <h2><?php echo elgg_echo('user:set:language'); ?></h2>
+ <form action="<?php echo $vars['url']; ?>action/user/language" method="post">
+ <p>
+ <?php echo elgg_echo('user:language:label'); ?> : <input type="text" name="language" value="<?php
+ if ($user->language)
+ echo $user->language;
+ else
+ echo $CONFIG->language;
+ ?>" />
+ </p>
+
+ <p>
+ <input type="submit" value="<?php
+
+ echo elgg_echo('save');
+
+ ?>" />
+ </p>
+ </form>
+
+<?php } ?> \ No newline at end of file