diff --git a/htdocs/core/lib/company.lib.php b/htdocs/core/lib/company.lib.php
index 7e65d711f0b..73b58d7fb37 100644
--- a/htdocs/core/lib/company.lib.php
+++ b/htdocs/core/lib/company.lib.php
@@ -655,7 +655,8 @@ function show_addresses($conf,$langs,$db,$object,$backtopage='')
print '
'.$address->town.' | ';
- print ''.$address->country.' | ';
+ $img=picto_from_langcode($address->country_code);
+ print ''.($img?$img.' ':'').$address->country.' | ';
// Lien click to dial
print '';
diff --git a/htdocs/societe/class/address.class.php b/htdocs/societe/class/address.class.php
index bf6cceabab0..e8fad145610 100644
--- a/htdocs/societe/class/address.class.php
+++ b/htdocs/societe/class/address.class.php
@@ -296,7 +296,7 @@ class Address
$line->town = $objp->town;
$line->country_id = $objp->country_id;
$line->country_code = $objp->country_id?$objp->country_code:'';
- $line->country = $objp->country_id?($langs->trans('Country'.$objp->country_code)!='Country'.$objp->country_code?strtoupper($langs->trans('Country'.$objp->country_code)):$objp->country):'';
+ $line->country = $objp->country_id?($langs->trans('Country'.$objp->country_code)!='Country'.$objp->country_code?$langs->trans('Country'.$objp->country_code):$objp->country):'';
$line->phone = $objp->tel;
$line->fax = $objp->fax;
$line->note = $objp->note;
diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php
index 602f467b3ba..0190a4c8a49 100644
--- a/htdocs/societe/soc.php
+++ b/htdocs/societe/soc.php
@@ -1646,12 +1646,12 @@ else
print ' | ';
// VAT Code
- print ''.$langs->trans('VATIntra').' | ';
+ print ' | '.$langs->trans('VATIntra').' | ';
if ($object->tva_intra)
{
$s='';
$s.=$object->tva_intra;
- $s.='';
+ $s.='';
if (empty($conf->global->MAIN_DISABLEVATCHECK))
{
@@ -1666,7 +1666,7 @@ else
print "}\n";
print '';
print "\n";
- $s.=''.$langs->trans("VATIntraCheck").'';
+ $s.=''.$langs->trans("VATIntraCheck").'';
$s = $form->textwithpicto($s,$langs->trans("VATIntraCheckDesc",$langs->trans("VATIntraCheck")),1);
}
else
|