Add text to help translators.
This commit is contained in:
parent
af6e976a6e
commit
0823ac428f
File diff suppressed because one or more lines are too long
@ -66,8 +66,9 @@ class FormAdmin
|
|||||||
* @param showauto Affiche choix auto
|
* @param showauto Affiche choix auto
|
||||||
* @param filter Array of keys to exclude in list
|
* @param filter Array of keys to exclude in list
|
||||||
* @param showempty Add empty value
|
* @param showempty Add empty value
|
||||||
|
* @param showwarning Show a warning if language is not complete
|
||||||
*/
|
*/
|
||||||
function select_language($selected='',$htmlname='lang_id',$showauto=0,$filter=0,$showempty=0)
|
function select_language($selected='',$htmlname='lang_id',$showauto=0,$filter=0,$showempty=0,$showwarning=0)
|
||||||
{
|
{
|
||||||
global $langs;
|
global $langs;
|
||||||
|
|
||||||
@ -91,8 +92,13 @@ class FormAdmin
|
|||||||
|
|
||||||
asort($langs_available);
|
asort($langs_available);
|
||||||
|
|
||||||
|
$uncompletelanguages=array('de_DE','da_DA','fi_FI','hu_HU','is_IS','pl_PL','ro_RO','ru_RU','sv_SV','tr_TR','zh_CN');
|
||||||
foreach ($langs_available as $key => $value)
|
foreach ($langs_available as $key => $value)
|
||||||
{
|
{
|
||||||
|
if ($showwarning && in_array($key,$uncompletelanguages))
|
||||||
|
{
|
||||||
|
//$value.=' - '.$langs->trans("TranslationUncomplete",$key);
|
||||||
|
}
|
||||||
if ($filter && is_array($filter))
|
if ($filter && is_array($filter))
|
||||||
{
|
{
|
||||||
if ( ! array_key_exists($key, $filter))
|
if ( ! array_key_exists($key, $filter))
|
||||||
@ -115,16 +121,16 @@ class FormAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Retourne la liste deroulante des menus disponibles (eldy_backoffice, ...)
|
* Return list of available menus (eldy_backoffice, ...)
|
||||||
* \param selected Menu pre-selectionnee
|
* @param selected Preselected menu value
|
||||||
* \param htmlname Nom de la zone select
|
* @param htmlname Name of html select
|
||||||
* \param dirmenu Repertoire a scanner
|
* @param dirmenu Directory to scan
|
||||||
*/
|
*/
|
||||||
function select_menu($selected='',$htmlname,$dirmenu)
|
function select_menu($selected='',$htmlname,$dirmenu)
|
||||||
{
|
{
|
||||||
global $langs,$conf;
|
global $langs,$conf;
|
||||||
|
|
||||||
if ($selected == 'eldy.php') $selected='eldy_backoffice.php'; // Pour compatibilite
|
if ($selected == 'eldy.php') $selected='eldy_backoffice.php'; // For compatibility
|
||||||
|
|
||||||
$menuarray=array();
|
$menuarray=array();
|
||||||
$handle=opendir($dirmenu);
|
$handle=opendir($dirmenu);
|
||||||
|
|||||||
@ -58,12 +58,17 @@ print '</center>';
|
|||||||
|
|
||||||
// Ask installation language
|
// Ask installation language
|
||||||
print '<br><br><center>';
|
print '<br><br><center>';
|
||||||
print '<table><tr>';
|
print '<table>';
|
||||||
print '<td>'.$langs->trans("DefaultLanguage").' : </td><td align="left">';
|
|
||||||
print $formadmin->select_language('auto','selectlang',1);
|
|
||||||
print '</td>';
|
|
||||||
print '</tr></table></center>';
|
|
||||||
|
|
||||||
|
print '<tr>';
|
||||||
|
print '<td>'.$langs->trans("DefaultLanguage").' : </td><td align="left">';
|
||||||
|
print $formadmin->select_language('auto','selectlang',1,0,0,1);
|
||||||
|
print '</td>';
|
||||||
|
print '</tr>';
|
||||||
|
|
||||||
|
print '</table></center>';
|
||||||
|
|
||||||
|
print '<br><br>'.$langs->trans("SomeTranslationAreUncomplete");
|
||||||
|
|
||||||
// Si pas d'erreur, on affiche le bouton pour passer a l'etape suivante
|
// Si pas d'erreur, on affiche le bouton pour passer a l'etape suivante
|
||||||
if ($err == 0) pFooter(0);
|
if ($err == 0) pFooter(0);
|
||||||
|
|||||||
@ -782,6 +782,8 @@ ListOfEntities=List of entities
|
|||||||
AddEntity=Add entity
|
AddEntity=Add entity
|
||||||
EditEntity=Edit entity
|
EditEntity=Edit entity
|
||||||
ShowProfIdInAddress=Show professionnal id with addresses on documents
|
ShowProfIdInAddress=Show professionnal id with addresses on documents
|
||||||
|
TranslationUncomplete=Partial translation
|
||||||
|
SomeTranslationAreUncomplete=Some languages may be partially translated or may contains errors. If you detect some, you can fix <b>.lang</b> text files into directory <b>htdocs/langs</b> and submit them on the forum at <a href="http://www.dolibarr.org" target="_blank">http://www.dolibarr.org</a>.
|
||||||
|
|
||||||
##### Module password generation
|
##### Module password generation
|
||||||
PasswordGenerationStandard=Return a password generated according to internal Dolibarr algorithm: 8 characters containing shared numbers and characters in lowercase.
|
PasswordGenerationStandard=Return a password generated according to internal Dolibarr algorithm: 8 characters containing shared numbers and characters in lowercase.
|
||||||
|
|||||||
@ -793,6 +793,8 @@ ListOfEntities=Liste des entités
|
|||||||
AddEntity=Ajouter entité
|
AddEntity=Ajouter entité
|
||||||
EditEntity=Editer entité
|
EditEntity=Editer entité
|
||||||
ShowProfIdInAddress=Afficher l'identifiant professionnel dans les adresses sur les documents
|
ShowProfIdInAddress=Afficher l'identifiant professionnel dans les adresses sur les documents
|
||||||
|
TranslationUncomplete=Traduction partielle
|
||||||
|
SomeTranslationAreUncomplete=Certains langages sont traduites partiellement ou peuvent contenir des erreurs. Si vous en détectez, vous pouvez corriger les fichiers textes <b>.lang</b> du répertoire <b>htdocs/langs</b> et les soumettre sur le forum à <a href="http://www.dolibarr.fr" target="_blank">http://www.dolibarr.fr</a>.
|
||||||
|
|
||||||
##### Module password generation= undefined
|
##### Module password generation= undefined
|
||||||
PasswordGenerationStandard= Renvoie un mot de passe généré selon algorithme interne Dolibarr: 8 caractères, chiffres et caractères en minuscules mélangés.
|
PasswordGenerationStandard= Renvoie un mot de passe généré selon algorithme interne Dolibarr: 8 caractères, chiffres et caractères en minuscules mélangés.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user