details:   http://code.openbravo.com/erp/devel/pi/rev/8a542bbbc43e
changeset: 3346:8a542bbbc43e
user:      Phil Heenan <phillip.heenan <at> openbravo.com>
date:      Mon Mar 09 12:59:27 2009 +0100
summary:   _TRL suffix being incorrectly applied when exporting languages.

diffstat:

1 file changed, 3 insertions(+), 3 deletions(-)
src/org/openbravo/erpCommon/ad_forms/Translation.java |    6 +++---

diffs (30 lines):

diff -r 320cac706beb -r 8a542bbbc43e 
src/org/openbravo/erpCommon/ad_forms/Translation.java
--- a/src/org/openbravo/erpCommon/ad_forms/Translation.java     Mon Mar 09 
10:10:07 2009 +0100
+++ b/src/org/openbravo/erpCommon/ad_forms/Translation.java     Mon Mar 09 
12:59:27 2009 +0100
@@ -381,7 +381,7 @@
     Statement st = null;
     try {
       String trlTable = table;
-      if (trl)
+      if (trl && !table.endsWith("_TRL"))
         trlTable = table + "_TRL";
       final TranslationData[] trlColumns = getTrlColumns(table);
       final String keyColumn = table + "_ID";
@@ -493,7 +493,7 @@
       if (!new File(directory).exists())
         (new File(directory)).mkdir();
 
-      String fileName = directory + trlTable + "_TRL" + "_" + AD_Language + 
".xml";
+      String fileName = directory + trlTable + "_" + AD_Language + ".xml";
       log4j.info("exportTrl - " + fileName);
       out = new File(fileName);
 
@@ -521,7 +521,7 @@
           if (!new File(directory).exists())
             (new File(directory)).mkdir();
 
-          fileName = directory + trlTable + "_TRL" + "_" + AD_Language + 
".xml";
+          fileName = directory + trlTable + "_" + AD_Language + ".xml";
           log4j.info("exportTrl - " + fileName);
           out = new File(fileName);
         }

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to