diff --git a/htdocs/admin/dict.php b/htdocs/admin/dict.php
index fe3179babd8..95692672523 100644
--- a/htdocs/admin/dict.php
+++ b/htdocs/admin/dict.php
@@ -998,10 +998,12 @@ if ($id)
if ($fieldlist[$field]=='code') { $valuetoshow=$langs->trans("Code"); $class='width100'; }
if ($fieldlist[$field]=='libelle' || $fieldlist[$field]=='label')
{
- $valuetoshow=$langs->trans("Label");
- if ($id != 25) $valuetoshow.="*";
+ if ($id != 25) $valuetoshow=$form->textwithtooltip($langs->trans("Label"), $langs->trans("LabelUsedByDefault"),2,1,img_help(1,''));
+ else $valuetoshow=$langs->trans("Label");
+ }
+ if ($fieldlist[$field]=='libelle_facture') {
+ $valuetoshow=$form->textwithtooltip($langs->trans("LabelOnDocuments"), $langs->trans("LabelUsedByDefault"),2,1,img_help(1,''));
}
- if ($fieldlist[$field]=='libelle_facture') { $valuetoshow=$langs->trans("LabelOnDocuments")."*"; }
if ($fieldlist[$field]=='country') {
if (in_array('region_id',$fieldlist)) { print '
'; continue; } // For region page, we do not show the country input
$valuetoshow=$langs->trans("Country");
@@ -1106,10 +1108,10 @@ if ($id)
print '';
- if (! empty($alabelisused) && $id != 25) // If there is one label among fields, we show legend of *
+ /*if (! empty($alabelisused) && $id != 25) // If there is one label among fields, we show legend of *
{
print '* '.$langs->trans("LabelUsedByDefault").'. ';
- }
+ }*/
}
print '';
@@ -1223,10 +1225,14 @@ if ($id)
if ($fieldlist[$field]=='code') { $valuetoshow=$langs->trans("Code"); }
if ($fieldlist[$field]=='libelle' || $fieldlist[$field]=='label')
{
- $valuetoshow=$langs->trans("Label");
- if ($id != 25) $valuetoshow.="*";
+ //if ($id != 25) $valuetoshow=$form->textwithtooltip($langs->trans("Label"), $langs->trans("LabelUsedByDefault"),2,1,img_help(1,''));
+ //else $valuetoshow=$langs->trans("Label");
+ $valuetoshow=$langs->trans("Label");
+ }
+ if ($fieldlist[$field]=='libelle_facture') {
+ //$valuetoshow=$form->textwithtooltip($langs->trans("LabelOnDocuments"), $langs->trans("LabelUsedByDefault"),2,1,img_help(1,''));
+ $valuetoshow=$langs->trans("LabelOnDocuments");
}
- if ($fieldlist[$field]=='libelle_facture') { $valuetoshow=$langs->trans("LabelOnDocuments")."*"; }
if ($fieldlist[$field]=='country') { $valuetoshow=$langs->trans("Country"); }
if ($fieldlist[$field]=='recuperableonly') { $valuetoshow=$langs->trans("NPR"); $align="center"; }
if ($fieldlist[$field]=='nbjour') { $valuetoshow=$langs->trans("NbOfDays"); }
@@ -1739,7 +1745,23 @@ function fieldList($fieldlist, $obj='', $tabname='', $context='')
print '';
}
elseif (in_array($fieldlist[$field], array('libelle_facture'))) {
- print '
';
+ print '
';
+ $transfound=0;
+ // Special case for labels
+ if ($tabname == MAIN_DB_PREFIX.'c_payment_term') {
+ $langs->load("bills");
+ $transkey="PaymentCondition".strtoupper($obj->code);
+ }
+ if ($langs->trans($transkey) != $transkey)
+ {
+ $transfound=1;
+ print $form->textwithpicto($langs->trans($transkey), $langs->trans("GoIntoTranslationMenuToChangeThis"));
+ }
+ if (! $transfound)
+ {
+ print '';
+ }
+ print '
';
@@ -1792,7 +1814,27 @@ function fieldList($fieldlist, $obj='', $tabname='', $context='')
if ($fieldlist[$field]=='tracking') $class='quatrevingtpercent';
if ($fieldlist[$field]=='sortorder' || $fieldlist[$field]=='sens' || $fieldlist[$field]=='category_type') $class='maxwidth50';
print '
';
- print '';
+ $transfound=0;
+ if (in_array($fieldlist[$field], array('label','libelle')))
+ {
+ // Special case for labels
+ if ($tabname == MAIN_DB_PREFIX.'c_civility') {
+ $transkey="Civility".strtoupper($obj->code);
+ }
+ if ($tabname == MAIN_DB_PREFIX.'c_payment_term') {
+ $langs->load("bills");
+ $transkey="PaymentCondition".strtoupper($obj->code);
+ }
+ if ($langs->trans($transkey) != $transkey)
+ {
+ $transfound=1;
+ print $form->textwithpicto($langs->trans($transkey), $langs->trans("GoIntoTranslationMenuToChangeThis"));
+ }
+ }
+ if (! $transfound)
+ {
+ print '';
+ }
print '
';
}
}
diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang
index f9f69ce2548..4653a22d814 100644
--- a/htdocs/langs/en_US/admin.lang
+++ b/htdocs/langs/en_US/admin.lang
@@ -431,7 +431,7 @@ TheKeyIsTheNameOfHtmlField=The key is the name of the html field. This need to h
PageUrlForDefaultValues=You must enter here the relative url of the page. Examples:
PageUrlForDefaultValuesCreate= For form to create a new thirdparty, it is %s
PageUrlForDefaultValuesList= For page that list thirdparties, it is %s
-
+GoIntoTranslationMenuToChangeThis=A translation has been found for the key with this code, so to change this value, you must edit it fom Home-Setup-translation.
# Modules
Module0Name=Users & groups
Module0Desc=Users / Employees and Groups management