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 @@
*/
/**
\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");
......@@ -32,6 +32,10 @@ if (!$user->admin)
accessforbidden();
/*
* View
*/
llxHeader();
print_fiche_titre("Dolibarr",'','setup');
......@@ -83,7 +87,7 @@ print "<tr ".$bc[$var]."><td width=\"300\">".$langs->trans("CurrentTopMenuHandle
$var=!$var;
print "<tr ".$bc[$var]."><td width=\"300\">".$langs->trans("CurrentLeftMenuHandler")."</td><td>".$conf->left_menu."</td></tr>\n";
$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 '<br>';
......
......@@ -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
......
......@@ -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
......
......@@ -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)
......
......@@ -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
......
......@@ -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
......
......@@ -18,19 +18,18 @@
*/
/**
\file htdocs/lib/doleditor.class.php
\brief Classe permettant de grer FCKEditor
\version $Id$
* \file htdocs/lib/doleditor.class.php
* \brief Classe permettant de grer 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,21 +80,12 @@ 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()
{
......
......@@ -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("PreviousConnexion").'</b>: '.dolibarr_print_date($user->datepreviouslogin,"dayhour");
$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);
print $html->textwithtooltip('',$htmltext,2,1,$text);
......
......@@ -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()
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment