From 35270b1040487c7bef291cc7e10e6851633bd080 Mon Sep 17 00:00:00 2001
From: Regis Houssin <regis@dolibarr.fr>
Date: Fri, 29 Jan 2010 08:05:20 +0000
Subject: [PATCH] Fix: translation

---
 htdocs/compta/facture.php | 2 +-
 htdocs/facture.class.php  | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php
index 92f203a35a0..8b108aa8885 100644
--- a/htdocs/compta/facture.php
+++ b/htdocs/compta/facture.php
@@ -1623,7 +1623,7 @@ if ($_GET['action'] == 'create')
 		print '<tr height="18"><td width="16px" valign="middle">';
 		print '<input type="radio" name="type" value="4"'.($_POST['type']==4?' checked="true"':'').'>';
 		print '</td><td valign="middle">';
-		$desc=$html->textwithpicto($langs->trans("InvoiceProformat"),$langs->transnoentities("InvoiceProformatDesc"),1);
+		$desc=$html->textwithpicto($langs->trans("InvoiceProFormat"),$langs->transnoentities("InvoiceProFormatDesc"),1);
 		print $desc;
 		print '</td></tr>'."\n";
 	}
diff --git a/htdocs/facture.class.php b/htdocs/facture.class.php
index 713f27740a6..786b3e656d5 100644
--- a/htdocs/facture.class.php
+++ b/htdocs/facture.class.php
@@ -2021,6 +2021,7 @@ class Facture extends CommonObject
 		if ($this->type == 1) return $langs->trans("InvoiceReplacement");
 		if ($this->type == 2) return $langs->trans("InvoiceAvoir");
 		if ($this->type == 3) return $langs->trans("InvoiceDeposit");
+		if ($this->type == 4) return $langs->trans("InvoiceProFormat");
 		return $langs->trans("Unknown");
 	}
 
-- 
GitLab