diff --git a/htdocs/core/modules/dons/html_cerfafr.modules.php b/htdocs/core/modules/dons/html_cerfafr.modules.php
index 8c96087c38d..7893f1de7eb 100644
--- a/htdocs/core/modules/dons/html_cerfafr.modules.php
+++ b/htdocs/core/modules/dons/html_cerfafr.modules.php
@@ -2,6 +2,7 @@
/* Copyright (C) 2003 Rodolphe Quiedeville
* Copyright (C) 2005-2006 Laurent Destailleur
* Copyright (C) 2012 Regis Houssin
+ * Copyright (C) 2012 Marcos GarcĂa
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -118,6 +119,17 @@ class html_cerfafr extends ModeleDon
if (file_exists($dir))
{
+ $formclass = new Form($this->db);
+
+ //This is not the proper way to do it but $formclass->form_modes_reglement
+ //prints the translation instead of returning it
+ if ($don->modepaiementid)
+ {
+ $formclass->load_cache_types_paiements();
+ $paymentmode = $formclass->cache_types_paiements[$don->modepaiementid]['label'];
+ }
+ else $paymentmode = '';
+
// Defini contenu
$donmodel=DOL_DOCUMENT_ROOT ."/core/modules/dons/html_cerfafr.html";
$form = implode('', file($donmodel));
@@ -135,7 +147,7 @@ class html_cerfafr extends ModeleDon
$form = str_replace('__DONATOR_ADDRESS__',$don->adresse,$form);
$form = str_replace('__DONATOR_ZIP__',$don->cp,$form);
$form = str_replace('__DONATOR_TOWN__',$don->ville,$form);
- $form = str_replace('__PAYMENTMODE_LIB__ ',$don->modepaiement,$form);
+ $form = str_replace('__PAYMENTMODE_LIB__ ', $paymentmode,$form);
$form = str_replace('__NOW__',dol_print_date($now,'',false,$outputlangs),$form);
$form = str_replace('__DonationRef__',$outputlangs->trans("DonationRef"),$form);
$form = str_replace('__DonationReceipt__',$outputlangs->trans("DonationReceipt"),$form);