From bd965b02203b23b29af01e686a5286232a70693a Mon Sep 17 00:00:00 2001 From: liedekef <liedekef> Date: Sat, 6 Jan 2007 14:51:18 +0000 Subject: [PATCH] translation of the country the user is in --- htdocs/contact.class.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/htdocs/contact.class.php b/htdocs/contact.class.php index 7d2b428b8c2..c491905ef2c 100644 --- a/htdocs/contact.class.php +++ b/htdocs/contact.class.php @@ -354,6 +354,7 @@ class Contact */ function fetch($id, $user=0) { + global $langs; $sql = "SELECT c.idp, c.fk_soc, c.civilite civilite_id, c.name, c.firstname,"; $sql.= " c.address, c.cp, c.ville,"; $sql.= " c.fk_pays, p.libelle as pays, p.code as pays_code,"; @@ -383,9 +384,10 @@ class Contact $this->address = $obj->address; $this->cp = $obj->cp; $this->ville = $obj->ville; - $this->fk_pays = $obj->fk_pays; - $this->pays_code = $obj->fk_pays?$obj->pays_code:''; - $this->pays = $obj->fk_pays?$obj->pays:''; + $this->fk_pays = $obj->fk_pays; + $this->pays_code = $obj->fk_pays?$obj->pays_code:''; + //$this->pays = $obj->fk_pays?$obj->pays:''; + $this->pays = $langs->trans("Country".$obj->pays_code)?$langs->trans("Country".$obj->pays_code):''; $this->societeid = $obj->fk_soc; $this->socid = $obj->fk_soc; -- GitLab