language selection for self service

This commit is contained in:
Roland Gruber 2014-02-02 16:32:39 +00:00
parent afc9b6e1a5
commit ab2d400b2b
2 changed files with 10 additions and 1 deletions

View File

@ -100,6 +100,8 @@ $helpArray = array (
"Text" => _("This defines the language of the login window and sets this language as the default language. Users can change the language at login.")),
"210" => array ("Headline" => _("Script path"),
"Text" => _("This is the absolute path to an external script for setting quotas and creating home directories.")),
"211" => array ("Headline" => _("Enforce language"),
"Text" => _("If enabled then the default language will be enforced and cannot be chosen by the user.")),
"212" => array ("Headline" => _("Change password"),
"Text" => _("If you want to change the current preferences password, please enter it here.")),
"214" => array ("Headline" => _("Cache timeout"),

View File

@ -3,7 +3,7 @@
$Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2006 - 2013 Roland Gruber
Copyright (C) 2006 - 2014 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -357,6 +357,11 @@ class selfServiceProfile {
/** configuration settings of modules */
public $moduleSettings;
/** language for self service */
public $language = 'en_GB.utf8';
/** disallow user to change language */
public $enforceLanguage = false;
/**
* Constructor
@ -391,6 +396,8 @@ class selfServiceProfile {
$this->readOnlyFields = array();
$this->relabelFields = array();
$this->moduleSettings = array();
$this->language = 'en_GB.utf8';
$this->enforceLanguage = true;
}
}