Skip to content
Snippets Groups Projects
Commit 34285359 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Lang: Translation more clear

parent d1e66db5
No related branches found
No related tags found
No related merge requests found
...@@ -18,9 +18,9 @@ ...@@ -18,9 +18,9 @@
*/ */
/** /**
\file htdocs/admin/system/dolibarr.php * \file htdocs/admin/system/dolibarr.php
\brief Fichier page info systemes Dolibarr * \brief Fichier page info systemes Dolibarr
\version $Id$ * \version $Id$
*/ */
require("./pre.inc.php"); require("./pre.inc.php");
...@@ -32,6 +32,10 @@ if (!$user->admin) ...@@ -32,6 +32,10 @@ if (!$user->admin)
accessforbidden(); accessforbidden();
/*
* View
*/
llxHeader(); llxHeader();
print_fiche_titre("Dolibarr",'','setup'); print_fiche_titre("Dolibarr",'','setup');
...@@ -83,7 +87,7 @@ print "<tr ".$bc[$var]."><td width=\"300\">".$langs->trans("CurrentTopMenuHandle ...@@ -83,7 +87,7 @@ print "<tr ".$bc[$var]."><td width=\"300\">".$langs->trans("CurrentTopMenuHandle
$var=!$var; $var=!$var;
print "<tr ".$bc[$var]."><td width=\"300\">".$langs->trans("CurrentLeftMenuHandler")."</td><td>".$conf->left_menu."</td></tr>\n"; print "<tr ".$bc[$var]."><td width=\"300\">".$langs->trans("CurrentLeftMenuHandler")."</td><td>".$conf->left_menu."</td></tr>\n";
$var=!$var; $var=!$var;
print "<tr ".$bc[$var]."><td width=\"300\">".$langs->trans("CurrentDolibarrLanguage")."</td><td>".$langs->getDefaultLang()."</td></tr>\n"; print "<tr ".$bc[$var]."><td width=\"300\">".$langs->trans("CurrentUserLanguage")."</td><td>".$langs->getDefaultLang()."</td></tr>\n";
print '</table>'; print '</table>';
print '<br>'; print '<br>';
......
...@@ -135,7 +135,7 @@ class Conf ...@@ -135,7 +135,7 @@ class Conf
/* /*
* Charge l'objet de traduction et positionne langage courant global * 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 * Autres parametres globaux de configurations
......
...@@ -69,7 +69,7 @@ ParameterInDolibarr=Parameter %s ...@@ -69,7 +69,7 @@ ParameterInDolibarr=Parameter %s
LanguageParameter=Language parameter %s LanguageParameter=Language parameter %s
LanguageBrowserParameter=Parameter %s LanguageBrowserParameter=Parameter %s
LocalisationDolibarrParameters=Localisation parameters LocalisationDolibarrParameters=Localisation parameters
CurrentDolibarrLanguage=Dolibarr current language CurrentUserLanguage=Current language
DolibarrTZ=Time Zone DolibarrTZ=Time Zone
ServerTZ=Time Zone Server ServerTZ=Time Zone Server
PHPTZ=Time Zone PHP PHPTZ=Time Zone PHP
......
...@@ -71,7 +71,7 @@ ParameterInDolibarr=Variable %s ...@@ -71,7 +71,7 @@ ParameterInDolibarr=Variable %s
LanguageParameter=Variable idioma %s LanguageParameter=Variable idioma %s
LanguageBrowserParameter=Variable %s LanguageBrowserParameter=Variable %s
LocalisationDolibarrParameters=Parámetros de localización LocalisationDolibarrParameters=Parámetros de localización
CurrentDolibarrLanguage=Idioma actual Dolibarr CurrentUserLanguage=Idioma actual
DolibarrTZ=Zona hoaria DolibarrTZ=Zona hoaria
ServerTZ=Zona hoaria ServerTZ=Zona hoaria
PHPServerOffsetWithGreenwich=Offset con Greenwich (segundos) PHPServerOffsetWithGreenwich=Offset con Greenwich (segundos)
......
...@@ -38,7 +38,7 @@ ParameterInDolibarr=Param ...@@ -38,7 +38,7 @@ ParameterInDolibarr=Param
LanguageParameter=Paramètre linguistique %s LanguageParameter=Paramètre linguistique %s
LanguageBrowserParameter=Paramètre linguistique %s du navigateur LanguageBrowserParameter=Paramètre linguistique %s du navigateur
LanguageDolibarrParameter=Paramètre linguistique de Dolibarr LanguageDolibarrParameter=Paramètre linguistique de Dolibarr
CurrentDolibarrLanguage=Langue courante de Dolibarr CurrentUserLanguage=Langue utilisateur actuelle
CurrentDolibarrTZ=Time Zone Dolibarr courante CurrentDolibarrTZ=Time Zone Dolibarr courante
OSEnv=Environnement du système d'exploitation OSEnv=Environnement du système d'exploitation
Box=Boîte Box=Boîte
......
...@@ -69,7 +69,7 @@ ParameterInDolibarr=Variable %s ...@@ -69,7 +69,7 @@ ParameterInDolibarr=Variable %s
LanguageParameter=Variable langue %s LanguageParameter=Variable langue %s
LanguageBrowserParameter=Variable %s LanguageBrowserParameter=Variable %s
LocalisationDolibarrParameters=Paramètres de localisation LocalisationDolibarrParameters=Paramètres de localisation
CurrentDolibarrLanguage=Langue Dolibarr courante CurrentUserLanguage=Langue utilisateur actuelle
DolibarrTZ=Time Zone DolibarrTZ=Time Zone
ServerTZ=Time Zone Serveur ServerTZ=Time Zone Serveur
PHPTZ=Time Zone PHP PHPTZ=Time Zone PHP
......
...@@ -18,19 +18,18 @@ ...@@ -18,19 +18,18 @@
*/ */
/** /**
\file htdocs/lib/doleditor.class.php * \file htdocs/lib/doleditor.class.php
\brief Classe permettant de grer FCKEditor * \brief Classe permettant de grer FCKEditor
\version $Id$ * \version $Id$
*/ */
/** /**
\class DolEditor * \class DolEditor
\brief Classe de gestion de FCKEditor * \brief Classe de gestion de FCKEditor
\remarks Usage: * \remarks Usage:
\remarks $doleditor=new DolEditor('body',$message,320,'toolbar_mailing'); * \remarks $doleditor=new DolEditor('body',$message,320,'toolbar_mailing');
\remarks $doleditor->Create(); * \remarks $doleditor->Create();
*/ */
class DolEditor class DolEditor
{ {
var $editor; var $editor;
...@@ -81,21 +80,12 @@ class DolEditor ...@@ -81,21 +80,12 @@ class DolEditor
{ {
$this->editor->Config['CustomConfigurationsPath'] = DOL_URL_ROOT.'/theme/'.$conf->theme.'/fckeditor/fckconfig.js'; $this->editor->Config['CustomConfigurationsPath'] = DOL_URL_ROOT.'/theme/'.$conf->theme.'/fckeditor/fckconfig.js';
$this->editor->Config['SkinPath'] = DOL_URL_ROOT.'/theme/'.$conf->theme.'/fckeditor/'; $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() function Create()
{ {
......
...@@ -948,6 +948,8 @@ function top_menu($head, $title="", $target="") ...@@ -948,6 +948,8 @@ function top_menu($head, $title="", $target="")
$htmltext.='<br><b>'.$langs->trans("ConnectedSince").'</b>: '.dolibarr_print_date($user->datelastlogin,"dayhour"); $htmltext.='<br><b>'.$langs->trans("ConnectedSince").'</b>: '.dolibarr_print_date($user->datelastlogin,"dayhour");
$htmltext.='<br><b>'.$langs->trans("PreviousConnexion").'</b>: '.dolibarr_print_date($user->datepreviouslogin,"dayhour"); $htmltext.='<br><b>'.$langs->trans("PreviousConnexion").'</b>: '.dolibarr_print_date($user->datepreviouslogin,"dayhour");
$htmltext.='<br><b>'.$langs->trans("AuthenticationMode").'</b>: '.$_SESSION["dol_authmode"]; $htmltext.='<br><b>'.$langs->trans("AuthenticationMode").'</b>: '.$_SESSION["dol_authmode"];
$htmltext.='<br><b>'.$langs->trans("CurrentTheme").'</b>: '.$conf->theme;
$htmltext.='<br><b>'.$langs->trans("CurrentUserLanguage").'</b>: '.$langs->getDefaultLang();
$html=new Form($db); $html=new Form($db);
print $html->textwithtooltip('',$htmltext,2,1,$text); print $html->textwithtooltip('',$htmltext,2,1,$text);
......
...@@ -19,24 +19,23 @@ ...@@ -19,24 +19,23 @@
* ************************************************************************* */ * ************************************************************************* */
/** /**
\file htdocs/translate.class.php * \file htdocs/translate.class.php
\brief Fichier de la classe de traduction * \brief File for tanslation class
\author Eric Seigne * \author Eric Seigne
\author Laurent Destailleur * \author Laurent Destailleur
\version $Id$ * \version $Id$
*/ */
/** /**
\class Translate * \class Translate
\brief Class to manage translations * \brief Class to manage translations
*/ */
class Translate { class Translate {
var $dir; // Directory with translation files var $dir; // Directory with translation files
var $dir_bis; // Second directory with translation files (for development on two workspaces) 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 $defaultlang; // Langue courante en vigueur de l'utilisateur
var $tab_loaded=array(); // Tableau pour signaler les fichiers deja charges var $tab_loaded=array(); // Tableau pour signaler les fichiers deja charges
...@@ -123,8 +122,9 @@ class Translate { ...@@ -123,8 +122,9 @@ class Translate {
/** /**
* \brief Get accessor for this->defaultlang * \brief Return active language code for current user
* \return string Language used * \remarks Accessor for this->defaultlang
* \return string Language code used (en_US, en_AU, fr_FR, ...)
*/ */
function getDefaultLang() function getDefaultLang()
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment