diff --git a/htdocs/admin/system/dolibarr.php b/htdocs/admin/system/dolibarr.php index 6311eea0abe..2477021e86a 100644 --- a/htdocs/admin/system/dolibarr.php +++ b/htdocs/admin/system/dolibarr.php @@ -18,10 +18,10 @@ */ /** - \file htdocs/admin/system/dolibarr.php - \brief Fichier page info systemes Dolibarr - \version $Id$ -*/ + * \file htdocs/admin/system/dolibarr.php + * \brief Fichier page info systemes Dolibarr + * \version $Id$ + */ require("./pre.inc.php"); @@ -31,7 +31,11 @@ $langs->load("install"); if (!$user->admin) accessforbidden(); - + +/* + * View + */ + llxHeader(); print_fiche_titre("Dolibarr",'','setup'); @@ -83,7 +87,7 @@ print "".$langs->trans("CurrentTopMenuHandle $var=!$var; print "".$langs->trans("CurrentLeftMenuHandler")."".$conf->left_menu."\n"; $var=!$var; -print "".$langs->trans("CurrentDolibarrLanguage")."".$langs->getDefaultLang()."\n"; +print "".$langs->trans("CurrentUserLanguage")."".$langs->getDefaultLang()."\n"; print ''; print '
'; diff --git a/htdocs/conf/conf.class.php b/htdocs/conf/conf.class.php index 78241010031..11c3c6f0fad 100644 --- a/htdocs/conf/conf.class.php +++ b/htdocs/conf/conf.class.php @@ -135,7 +135,7 @@ class Conf /* * Charge l'objet de traduction et positionne langage courant global */ - if (empty($this->global->MAIN_LANG_DEFAULT)) $this->global->MAIN_LANG_DEFAULT="fr_FR"; + if (empty($this->global->MAIN_LANG_DEFAULT)) $this->global->MAIN_LANG_DEFAULT="en_US"; /* * Autres parametres globaux de configurations diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index 14e2d01e61c..30e672f7722 100644 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -69,7 +69,7 @@ ParameterInDolibarr=Parameter %s LanguageParameter=Language parameter %s LanguageBrowserParameter=Parameter %s LocalisationDolibarrParameters=Localisation parameters -CurrentDolibarrLanguage=Dolibarr current language +CurrentUserLanguage=Current language DolibarrTZ=Time Zone ServerTZ=Time Zone Server PHPTZ=Time Zone PHP diff --git a/htdocs/langs/es_ES/admin.lang b/htdocs/langs/es_ES/admin.lang index b9edfdb8e92..88e2e866986 100644 --- a/htdocs/langs/es_ES/admin.lang +++ b/htdocs/langs/es_ES/admin.lang @@ -71,7 +71,7 @@ ParameterInDolibarr=Variable %s LanguageParameter=Variable idioma %s LanguageBrowserParameter=Variable %s LocalisationDolibarrParameters=Parámetros de localización -CurrentDolibarrLanguage=Idioma actual Dolibarr +CurrentUserLanguage=Idioma actual DolibarrTZ=Zona hoaria ServerTZ=Zona hoaria PHPServerOffsetWithGreenwich=Offset con Greenwich (segundos) diff --git a/htdocs/langs/fr_BE/admin.lang b/htdocs/langs/fr_BE/admin.lang index af1661016b6..f210c38562b 100644 --- a/htdocs/langs/fr_BE/admin.lang +++ b/htdocs/langs/fr_BE/admin.lang @@ -38,7 +38,7 @@ ParameterInDolibarr=Param LanguageParameter=Paramètre linguistique %s LanguageBrowserParameter=Paramètre linguistique %s du navigateur LanguageDolibarrParameter=Paramètre linguistique de Dolibarr -CurrentDolibarrLanguage=Langue courante de Dolibarr +CurrentUserLanguage=Langue utilisateur actuelle CurrentDolibarrTZ=Time Zone Dolibarr courante OSEnv=Environnement du système d'exploitation Box=Boîte diff --git a/htdocs/langs/fr_FR/admin.lang b/htdocs/langs/fr_FR/admin.lang index 37492082856..cd7caa71a8b 100644 --- a/htdocs/langs/fr_FR/admin.lang +++ b/htdocs/langs/fr_FR/admin.lang @@ -69,7 +69,7 @@ ParameterInDolibarr=Variable %s LanguageParameter=Variable langue %s LanguageBrowserParameter=Variable %s LocalisationDolibarrParameters=Paramètres de localisation -CurrentDolibarrLanguage=Langue Dolibarr courante +CurrentUserLanguage=Langue utilisateur actuelle DolibarrTZ=Time Zone ServerTZ=Time Zone Serveur PHPTZ=Time Zone PHP diff --git a/htdocs/lib/doleditor.class.php b/htdocs/lib/doleditor.class.php index 82b40659fc4..4b00c8034c8 100644 --- a/htdocs/lib/doleditor.class.php +++ b/htdocs/lib/doleditor.class.php @@ -18,19 +18,18 @@ */ /** - \file htdocs/lib/doleditor.class.php - \brief Classe permettant de gérer FCKEditor - \version $Id$ + * \file htdocs/lib/doleditor.class.php + * \brief Classe permettant de gérer FCKEditor + * \version $Id$ */ /** - \class DolEditor - \brief Classe de gestion de FCKEditor - \remarks Usage: - \remarks $doleditor=new DolEditor('body',$message,320,'toolbar_mailing'); - \remarks $doleditor->Create(); -*/ - + * \class DolEditor + * \brief Classe de gestion de FCKEditor + * \remarks Usage: + * \remarks $doleditor=new DolEditor('body',$message,320,'toolbar_mailing'); + * \remarks $doleditor->Create(); + */ class DolEditor { var $editor; @@ -81,22 +80,13 @@ class DolEditor { $this->editor->Config['CustomConfigurationsPath'] = DOL_URL_ROOT.'/theme/'.$conf->theme.'/fckeditor/fckconfig.js'; $this->editor->Config['SkinPath'] = DOL_URL_ROOT.'/theme/'.$conf->theme.'/fckeditor/'; -// if ($langs->origlang!='auto') -// { -// } - } - else - { -// if ($langs->origlang!='auto') -// { -// } - } + } } /** - \brief Affiche zone édition - */ + * \brief Show edit area + */ function Create() { $this->editor->Create(); diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 0b5b3e95c3c..98db1f3ebc0 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -948,7 +948,9 @@ function top_menu($head, $title="", $target="") $htmltext.='
'.$langs->trans("ConnectedSince").': '.dolibarr_print_date($user->datelastlogin,"dayhour"); $htmltext.='
'.$langs->trans("PreviousConnexion").': '.dolibarr_print_date($user->datepreviouslogin,"dayhour"); $htmltext.='
'.$langs->trans("AuthenticationMode").': '.$_SESSION["dol_authmode"]; - + $htmltext.='
'.$langs->trans("CurrentTheme").': '.$conf->theme; + $htmltext.='
'.$langs->trans("CurrentUserLanguage").': '.$langs->getDefaultLang(); + $html=new Form($db); print $html->textwithtooltip('',$htmltext,2,1,$text); diff --git a/htdocs/translate.class.php b/htdocs/translate.class.php index 69af6967bcf..ac49c4aa9f9 100644 --- a/htdocs/translate.class.php +++ b/htdocs/translate.class.php @@ -19,24 +19,23 @@ * ************************************************************************* */ /** - \file htdocs/translate.class.php - \brief Fichier de la classe de traduction - \author Eric Seigne - \author Laurent Destailleur - \version $Id$ -*/ + * \file htdocs/translate.class.php + * \brief File for tanslation class + * \author Eric Seigne + * \author Laurent Destailleur + * \version $Id$ + */ /** - \class Translate - \brief Class to manage translations -*/ + * \class Translate + * \brief Class to manage translations + */ class Translate { var $dir; // Directory with translation files var $dir_bis; // Second directory with translation files (for development on two workspaces) - var $origlang; // Langue origine var $defaultlang; // Langue courante en vigueur de l'utilisateur var $tab_loaded=array(); // Tableau pour signaler les fichiers deja charges @@ -123,8 +122,9 @@ class Translate { /** - * \brief Get accessor for this->defaultlang - * \return string Language used + * \brief Return active language code for current user + * \remarks Accessor for this->defaultlang + * \return string Language code used (en_US, en_AU, fr_FR, ...) */ function getDefaultLang() {