Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020856Openbravo ERPE. Translationpublic2012-06-25 13:452022-02-01 08:09
CZDave 
Triage Platform Base 
normalminoralways
acknowledgedopen 
107 x64
3.0MP10.1 
 
Mozilla Firefox
Core
No
0020856: Module cannot add working Translation tab to different module
When creating a Translation tab for client data, associated translation DB table must have the exact same name as original data table with the _TRL suffix. However a module can't create a table with the same prefix as another module's table, so their names will always differ in prefix and the translation table is not recognized, giving a warning in generate.entities.quick build task, eg:
WARN org.openbravo.base.model.Property - M_Product_Category.Name is not translatable: null translationProperty
For example, trying to add a Translation tab to Product Category:

1. Create a module with DB prefix ATRL
2. Create a template including that module
3. Create a table in database similar to M_PRODUCT_TRL named ATRL_PRODUCT_CATEGORY_TRL, with standard columns and: M_PRODUCT_CATEGORY_ID, AD_LANGUAGE, NAME, DOCUMENTNOTE, ISTRANSLATED (with foreign keys and constraints)
4. Register this table in Tables and Columns window
5. Create a new tab named Translation for the Product Category window and set its Translation tab property
6. Set the Translation property of the column Name for M_PRODUCT_CATEGORY tab

When running ant smartbuild you'll get a warning:
WARN org.openbravo.base.model.Property - M_Product_Category.Name is not translatable: null translationProperty
and although you can create translations, they won't be displayed anywhere when switching to different language
Generally there could be a field for Table in Tables and Columns to select which table it translates and DAL should take this into account.
Or at least all meaningful tables in Core should contain the Translation tab.
No tags attached.
has duplicate design defect 0013055 closed alostale it is not posible create a new translation tab 
Issue History
2012-06-25 13:45CZDaveNew Issue
2012-06-25 13:45CZDaveAssigned To => alostale
2012-06-25 13:45CZDaveWeb browser => Mozilla Firefox
2012-06-25 13:45CZDaveModules => Core
2012-09-10 15:08alostaleRelationship addedhas duplicate 0013055
2012-09-24 12:34AugustoMauchWeb browserMozilla Firefox => Mozilla Firefox
2012-09-24 12:34AugustoMauchNote Added: 0052321
2012-09-24 12:34AugustoMauchStatusnew => scheduled
2017-03-31 14:36alostaleStatusscheduled => acknowledged
2017-04-10 14:33alostaleAssigned Toalostale => platform
2022-02-01 08:09alostaleAssigned Toplatform => Triage Platform Base

Notes
(0052321)
AugustoMauch   
2012-09-24 12:34   
Effort: 10
Impact: mid
Plan: mid