details: https://code.openbravo.com/erp/devel/pi/rev/f4bf0f0adf19 changeset: 16788:f4bf0f0adf19 user: Asier Lostalé <asier.lostale <at> openbravo.com> date: Fri Jun 08 08:23:17 2012 +0200 summary: fixed bug 20668: Translate xmlEngine docuemnts without parameters
diffstat: src-core/src/org/openbravo/xmlEngine/XmlDocument.java | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diffs (28 lines): diff -r 2990b9682aee -r f4bf0f0adf19 src-core/src/org/openbravo/xmlEngine/XmlDocument.java --- a/src-core/src/org/openbravo/xmlEngine/XmlDocument.java Thu Jun 07 22:48:47 2012 +0200 +++ b/src-core/src/org/openbravo/xmlEngine/XmlDocument.java Fri Jun 08 08:23:17 2012 +0200 @@ -1,6 +1,6 @@ /* ************************************************************************************ - * Copyright (C) 2001-2011 Openbravo S.L.U. + * Copyright (C) 2001-2012 Openbravo S.L.U. * Licensed under the Apache Software License version 2.0 * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software distributed @@ -273,6 +273,16 @@ xmlVectorValue.handler = handler; } else { log4jXmlDocument.debug("print(String strBlank) - properties file not found"); + try { + handler.setLanguage(xmlTemplate.xmlEngine.sessionLanguage); + handler.generateTranslations(); + if (!ignoreTranslation && handler.getFormLabels() != null + && !handler.getFormLabels().isEmpty()) { + xmlVectorValue.setTextMap(handler.getFormLabels()); + } + } catch (Exception e) { + log4jXmlDocument.error("Error translating", e); + } } } else { log4jXmlDocument.debug("print(String strBlank) - hasParameterValue is null"); ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Openbravo-commits mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openbravo-commits
