dolibarr-bugtrack
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dolibarr-bugtrack] [Bug #1174] Product translated description not good


From: Doliforge
Subject: [Dolibarr-bugtrack] [Bug #1174] Product translated description not good into PDF
Date: Mon, 02 Dec 2013 09:31:25 +0100

Doliforge
Ce message ne s'affiche pas correctement?
mettez à jour vos préférences utilisateur.

Product translated description not good into PDF

Dernières modifications

02/12/2013 09:31 (Europe/Paris)
Changements :
  • Step to reproduce bug: 
+Activate multilangues feature  
+Set Product/service Description and note WYSIWYG feature to Yes  
+  
+Default lang=FR_fr  
+  
 Create product A  
-Set transaltion for desc in English  
-Add the product to a proposal  
-Generate the proposal in English, Translation is not the good one  
+Set Label in french : "Produit A"  
+Set Description in french : "Super produit avec des éè accentué"  
+Set Label in english : "Product A"  
+Set Translation for desc in English : "Nice product without strange french e accent"  
+  
+Add the product to a proposal for a customer with Enhlish as defaut langauges  
+  
+Check the PDF generated, it's in french.  
   
 It s due to added string (Orign from Country) and test into core/lib/pdf.lib.php line 926  
 if (! empty($prodser->multilangs[$outputlangs->defaultlang]["description"]) && $desc == $prodser->description)  
  $desc == $prodser->description will always be diffrent because Dolibarr add automaticly (Orign from Country)  
- at the end of the line description  
+ at the end of the line description  
+ 

Répondre

État

 Détails
Submitted by:  HENRY Florian (fhenry) Submitted on:  01/12/2013 22:42
Last Modified On:  01/12/2013 22:48 
Summary:  Product translated description not good into PDF
Description:  Product translated description not good into PDF
Step to reproduce bug:  Activate multilangues feature
Set Product/service Description and note WYSIWYG feature to Yes

Default lang=FR_fr

Create product A
Set Label in french : "Produit A"
Set Description in french : "Super produit avec des éè accentué"
Set Label in english : "Product A"
Set Translation for desc in English : "Nice product without strange french e accent"

Add the product to a proposal for a customer with Enhlish as defaut langauges

Check the PDF generated, it's in french.

It s due to added string (Orign from Country) and test into core/lib/pdf.lib.php line 926
if (! empty($prodser->multilangs[$outputlangs->defaultlang]["description"]) && $desc == $prodser->description)
$desc == $prodser->description will always be diffrent because Dolibarr add automaticly (Orign from Country)
at the end of the line description
Detected in version:  3.4.1 Category:  Core Problem
Severity:  5 - Major OS Type/Version:  
PHP version:   Database type and version:  
 Etat
Status:  Open Assigned to:  HENRY Florian (fhenry)
Resolution:  Fixed 

Commentaires

HENRY Florian 01/12/2013 22:48
https://github.com/Dolibarr/dolibarr/pull/1335
https://github.com/FHenry/dolibarr/commit/c6991f97d40a3e710900dcb12bd9e06ef7e3f68c


reply via email to

[Prev in Thread] Current Thread [Next in Thread]