From 2d560e5f9e95f7fd71e1490cd13a0ae947d81c9b Mon Sep 17 00:00:00 2001 From: marcus Date: Thu, 26 Jun 2008 18:42:00 +0000 Subject: Closes #98 git-svn-id: https://code.elgg.org/elgg/trunk@1157 36083f99-b078-4883-b0ff-0f9b5a30f544 --- languages/en.php | 6 +++--- views/default/notifications/settings/usersettings.php | 4 ++-- views/default/settings/system.php | 11 ++++++++++- views/default/user/settings/language.php | 15 ++++++++++----- 4 files changed, 25 insertions(+), 11 deletions(-) diff --git a/languages/en.php b/languages/en.php index a77dc9d16..13d2ce306 100644 --- a/languages/en.php +++ b/languages/en.php @@ -361,8 +361,8 @@ 'resetpassword' => "Reset password", - 'yes' => "Yes", - 'no' => "No", + 'option:yes' => "Yes", + 'option:no' => "No", /** * Generic data words @@ -451,7 +451,7 @@ Alternatively, you can enter your database settings below and we will try and do 'wwwroot' => "The site URL, followed by a trailing slash:", 'path' => "The full path to your site root on your disk, followed by a trailing slash:", 'dataroot' => "The full path to the directory where uploaded files will be stored, followed by a trailing slash:", - 'language' => "The default language code for your site, e.g. 'en' for English, 'fr' for French, 'ru' for Russian:", + 'language' => "The default language for your site:", 'debug' => "Debug mode provides extra information which can be used to diagnose faults, however it can slow your system down so should only be used if you are having problems:", 'debug:label' => "Turn on debug mode", 'view' => "Enter the view which will be used as the default for your site (e.g. 'mobile') or leave this blank for the default view:", 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 @@ : - $k) echo "checked=\"yes\" "; ?>/>
- $k) echo "checked=\"yes\" "; ?>/> + $k) echo "checked=\"yes\" "; ?>/>
+ $k) echo "checked=\"yes\" "; ?>/>

@@ -42,6 +42,15 @@ } ?> +

+ + 'language', 'value' => $vars['config']->language, 'options_values' => $languages)); + ?> +

+


- : + $value = $user->language; + + echo elgg_view("input/pulldown", array('internalname' => 'language', 'value' => $value, 'options_values' => get_installed_translations())); + + ?> +

\ No newline at end of file -- cgit v1.2.3