Fix translation of country

This commit is contained in:
Laurent Destailleur 2019-05-22 16:12:29 +02:00
parent 2b90df6f80
commit 20caf641bf

View File

@ -1094,7 +1094,7 @@ while ($i < min($num, $limit))
if (! empty($arrayfields['country.code_iso']['checked']))
{
print '<td class="center">';
$labelcountry=($obj->code && ($langs->trans("Country".$obj->code)!="Country".$obj->code))?$langs->trans("Country".$obj->code):$obj->country_label;
$labelcountry=($obj->country_code && ($langs->trans("Country".$obj->country_code)!="Country".$obj->country_code))?$langs->trans("Country".$obj->country_code):$obj->country_label;
print $labelcountry;
print '</td>';
if (! $i) $totalarray['nbfield']++;