details: /erp/devel/pi/rev/71ebc702ee0b changeset: 8228:71ebc702ee0b user: Adrián Romero <adrianromero <at> openbravo.com> date: Thu Aug 26 14:49:25 2010 +0200 summary: Fixes issue 0014202: Product Movements Report appears in spanish when it is executed in english Updating properly copyright notice
details: /erp/devel/pi/rev/dd9fdaa8fef6 changeset: 8229:dd9fdaa8fef6 user: Adrián Romero <adrianromero <at> openbravo.com> date: Thu Aug 26 14:51:25 2010 +0200 summary: Fixes issue 0014202: Product Movements Report appears in spanish when it is executed in english Refactoring loop details: /erp/devel/pi/rev/b816f9aa12fe changeset: 8230:b816f9aa12fe user: Adrián Romero <adrianromero <at> openbravo.com> date: Thu Aug 26 14:52:36 2010 +0200 summary: Fixes issue 0014202: Product Movements Report appears in spanish when it is executed in english Removing unused import details: /erp/devel/pi/rev/28ab43581b83 changeset: 8231:28ab43581b83 user: Adrián Romero <adrianromero <at> openbravo.com> date: Thu Aug 26 14:53:25 2010 +0200 summary: Fixes issue 0014202: Product Movements Report appears in spanish when it is executed in english Removing unnecessary assignment details: /erp/devel/pi/rev/d37d5a8b1a59 changeset: 8232:d37d5a8b1a59 user: Adrián Romero <adrianromero <at> openbravo.com> date: Thu Aug 26 14:55:00 2010 +0200 summary: Fixes issue 0014202: Product Movements Report appears in spanish when it is executed in english Renaming properly new internal method. diffstat: src-core/src/org/openbravo/xmlEngine/DataTemplate.java | 2 +- src-core/src/org/openbravo/xmlEngine/DataValue.java | 5 ++--- src-core/src/org/openbravo/xmlEngine/SectionValue.java | 2 +- src-core/src/org/openbravo/xmlEngine/XmlDocument.java | 12 +++++------- 4 files changed, 9 insertions(+), 12 deletions(-) diffs (90 lines): diff -r 0d04ea1a0486 -r d37d5a8b1a59 src-core/src/org/openbravo/xmlEngine/DataTemplate.java --- a/src-core/src/org/openbravo/xmlEngine/DataTemplate.java Thu Aug 26 14:28:00 2010 +0200 +++ b/src-core/src/org/openbravo/xmlEngine/DataTemplate.java Thu Aug 26 14:55:00 2010 +0200 @@ -1,6 +1,6 @@ /* ************************************************************************************ - * Copyright (C) 2001-2006 Openbravo S.L.U. + * Copyright (C) 2001-2010 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 diff -r 0d04ea1a0486 -r d37d5a8b1a59 src-core/src/org/openbravo/xmlEngine/DataValue.java --- a/src-core/src/org/openbravo/xmlEngine/DataValue.java Thu Aug 26 14:28:00 2010 +0200 +++ b/src-core/src/org/openbravo/xmlEngine/DataValue.java Thu Aug 26 14:55:00 2010 +0200 @@ -1,6 +1,6 @@ /* ************************************************************************************ - * Copyright (C) 2001-2006 Openbravo S.L.U. + * Copyright (C) 2001-2010 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 @@ -95,8 +95,7 @@ // vector of Sections log4jDataValue.debug("vector of Sections"); vecSectionValue = new Vector<SectionValue>(); - for (Enumeration<SectionTemplate> e1 = dataTemplate.vecSectionTemplate.elements(); e1.hasMoreElements();) { - SectionTemplate sectionTemplate = (SectionTemplate) e1.nextElement(); + for (SectionTemplate sectionTemplate : dataTemplate.vecSectionTemplate) { SectionValue sectionValue = sectionTemplate.createSectionValue(xmlDocument, this); vecSectionValue.addElement(sectionValue); if (sectionTemplate.name.equals(dataTemplate.firstSectionTemplate.name)) { diff -r 0d04ea1a0486 -r d37d5a8b1a59 src-core/src/org/openbravo/xmlEngine/SectionValue.java --- a/src-core/src/org/openbravo/xmlEngine/SectionValue.java Thu Aug 26 14:28:00 2010 +0200 +++ b/src-core/src/org/openbravo/xmlEngine/SectionValue.java Thu Aug 26 14:55:00 2010 +0200 @@ -1,6 +1,6 @@ /* ************************************************************************************ - * Copyright (C) 2001-2006 Openbravo S.L.U. + * Copyright (C) 2001-2010 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 diff -r 0d04ea1a0486 -r d37d5a8b1a59 src-core/src/org/openbravo/xmlEngine/XmlDocument.java --- a/src-core/src/org/openbravo/xmlEngine/XmlDocument.java Thu Aug 26 14:28:00 2010 +0200 +++ b/src-core/src/org/openbravo/xmlEngine/XmlDocument.java Thu Aug 26 14:55:00 2010 +0200 @@ -1,6 +1,6 @@ /* ************************************************************************************ - * Copyright (C) 2001-2009 Openbravo S.L.U. + * Copyright (C) 2001-2010 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 @@ -13,7 +13,6 @@ import java.util.Enumeration; import java.util.Hashtable; -import java.util.Vector; import org.apache.log4j.Logger; import org.openbravo.data.FieldProvider; @@ -314,15 +313,15 @@ } for (SectionValue sectionValue : elementDataValue.vecSectionValue) { - translateXmlVectorTemplate(sectionValue.vecHeadValue); - translateXmlVectorTemplate(sectionValue.vecFootValue); + translateXmlVectorValue(sectionValue.vecHeadValue); + translateXmlVectorValue(sectionValue.vecFootValue); } } /** - * Utility method to translate all CharacterComponents contained in the passed XmlVectorTemplate. + * Utility method to translate all CharacterComponents contained in the passed translateXmlVectorValue. */ - private void translateXmlVectorTemplate(XmlVectorValue vecXmlVectorValue) { + private void translateXmlVectorValue(XmlVectorValue vecXmlVectorValue) { if (vecXmlVectorValue == null) { return; @@ -347,7 +346,6 @@ vecXmlVectorValue.set(i, charComponent); } } - componentTemplate = charComponent; } } } ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ Openbravo-commits mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openbravo-commits
