Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0007791Openbravo ERPE. Translationpublic2009-02-24 10:502009-04-22 00:00
alostale 
alostale 
normalmajoralways
closedfixed 
5
pi 
pi2.50 
Core
No
0007791: Not translatable modules are tried to be translated
Although a module is not set as "Translation Required" it is parsed during the translate process. A module that have UI should alway be checked as translation required but it could not be checked by mistake.

As the module doesn't have any language defined the translation process cannot determine correctly if there's an entry for the text so it is always inserted a new one each time the process is run.
-Create a new module and don't set it as translation requiered.
-Create a HTML file in it including translateable tags.
-Run translate. -> Notice the tag will not be found, so a new entry will be craeted
-Run translate again -> Notice that the tag although it has been inserted cannot be found and as result a new entry will be created.
Two possible approaches:
1. Do not parse at all not translatable modules.
2. Parse them and in case they have any translatable tag throw an error message asking the user to set it as translatable and to check a language.
Modularity
Issue History
2009-02-24 10:50alostaleNew Issue
2009-02-24 10:50alostaleAssigned To => alostale
2009-02-24 10:50alostaleRegression testing => No
2009-02-24 10:50alostaleSteps to Reproduce Updated
2009-02-24 10:50alostaleTag Attached: Modularity
2009-02-24 12:29rafarodaversion => trunk
2009-02-27 12:26alostaleSeverityminor => major
2009-02-27 12:26alostaleNote Added: 0014140
2009-02-27 12:26hgbotCheckin
2009-02-27 12:26hgbotNote Added: 0014141
2009-02-27 12:26hgbotStatusnew => resolved
2009-02-27 12:26hgbotResolutionopen => fixed
2009-02-27 12:26hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/466caf0c73501ad0225f4b6004ee648ce999501c [^]
2009-04-21 10:54psarobeStatusresolved => closed
2009-04-22 00:00anonymoussf_bug_id0 => 2778001

Notes
(0014140)
alostale   
2009-02-27 12:26   
Implemented 2nd approach.
(0014141)
hgbot   
2009-02-27 12:26   
Repository: erp/devel/pi
Changeset: 466caf0c73501ad0225f4b6004ee648ce999501c
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Feb 27 12:26:33 2009 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/466caf0c73501ad0225f4b6004ee648ce999501c [^]

fixed bug 0007791: Not translatable modules are tried to be translated

---
M src-trl/src/org/openbravo/translate/Translate.java
---