Add text to help translators.

This commit is contained in:
Laurent Destailleur 2010-09-15 18:07:53 +00:00
parent af6e976a6e
commit 0823ac428f
5 changed files with 27 additions and 12 deletions

File diff suppressed because one or more lines are too long

View File

@ -66,8 +66,9 @@ class FormAdmin
* @param showauto Affiche choix auto
* @param filter Array of keys to exclude in list
* @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;
@ -91,8 +92,13 @@ class FormAdmin
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)
{
if ($showwarning && in_array($key,$uncompletelanguages))
{
//$value.=' - '.$langs->trans("TranslationUncomplete",$key);
}
if ($filter && is_array($filter))
{
if ( ! array_key_exists($key, $filter))
@ -115,16 +121,16 @@ class FormAdmin
}
/**
* \brief Retourne la liste deroulante des menus disponibles (eldy_backoffice, ...)
* \param selected Menu pre-selectionnee
* \param htmlname Nom de la zone select
* \param dirmenu Repertoire a scanner
* Return list of available menus (eldy_backoffice, ...)
* @param selected Preselected menu value
* @param htmlname Name of html select
* @param dirmenu Directory to scan
*/
function select_menu($selected='',$htmlname,$dirmenu)
{
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();
$handle=opendir($dirmenu);

View File

@ -58,12 +58,17 @@ print '</center>';
// Ask installation language
print '<br><br><center>';
print '<table><tr>';
print '<td>'.$langs->trans("DefaultLanguage").' : </td><td align="left">';
print $formadmin->select_language('auto','selectlang',1);
print '</td>';
print '</tr></table></center>';
print '<table>';
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
if ($err == 0) pFooter(0);

View File

@ -782,6 +782,8 @@ ListOfEntities=List of entities
AddEntity=Add entity
EditEntity=Edit entity
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
PasswordGenerationStandard=Return a password generated according to internal Dolibarr algorithm: 8 characters containing shared numbers and characters in lowercase.

View File

@ -793,6 +793,8 @@ ListOfEntities=Liste des entités
AddEntity=Ajouter entité
EditEntity=Editer entité
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
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.