IDEMPIERE-166 Rebranding of logo and product name

This commit is contained in:
Carlos Ruiz 2012-05-30 14:38:00 -05:00
parent 471a1adfcd
commit a8d5cc2ba6
2 changed files with 8 additions and 7 deletions

View File

@ -68,10 +68,11 @@ public class Translation
} // Translation } // Translation
/** DTD */ /** DTD */
public static final String DTD = "<!DOCTYPE adempiereTrl PUBLIC \"-//ComPiere, Inc.//DTD Adempiere Translation 1.0//EN\" \"http://www.adempiere.com/dtd/adempiereTrl.dtd\">"; public static final String DTD = "<!DOCTYPE idempiereTrl PUBLIC \"-//ComPiere, Inc.//DTD iDempiere Translation 1.0//EN\" \"http://www.idempiere.com/dtd/idempiereTrl.dtd\">";
/** XML Element Tag */ /** XML Element Tag */
public static final String XML_TAG = "adempiereTrl"; public static final String XML_TAG = "idempiereTrl";
public static final String XML_TAG2 = "compiereTrl"; public static final String XML_TAG2 = "adempiereTrl";
public static final String XML_TAG3 = "compiereTrl";
/** XML Attribute Table */ /** XML Attribute Table */
public static final String XML_ATTRIBUTE_TABLE = "table"; public static final String XML_ATTRIBUTE_TABLE = "table";
/** XML Attribute Language */ /** XML Attribute Language */
@ -167,8 +168,8 @@ public class Translation
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
// System.out.println(factory.getClass().getName()); // System.out.println(factory.getClass().getName());
DocumentBuilder builder = factory.newDocumentBuilder(); DocumentBuilder builder = factory.newDocumentBuilder();
// <!DOCTYPE adempiereTrl SYSTEM "http://www.adempiere.org/dtd/adempiereTrl.dtd"> // <!DOCTYPE idempiereTrl SYSTEM "http://www.idempiere.org/dtd/idempiereTrl.dtd">
// <!DOCTYPE adempiereTrl PUBLIC "-//ComPiere, Inc.//DTD Adempiere Translation 1.0//EN" "http://www.adempiere.org/dtd/adempiereTrl.dtd"> // <!DOCTYPE idempiereTrl PUBLIC "-//ComPiere, Inc.//DTD iDempiere Translation 1.0//EN" "http://www.idempiere.org/dtd/idempiereTrl.dtd">
Document document = builder.newDocument(); Document document = builder.newDocument();
document.appendChild(document.createComment(Adempiere.getSummaryAscii())); document.appendChild(document.createComment(Adempiere.getSummaryAscii()));
document.appendChild(document.createComment(DTD)); document.appendChild(document.createComment(DTD));

View File

@ -83,7 +83,7 @@ public class TranslationHandler extends DefaultHandler
throws org.xml.sax.SAXException throws org.xml.sax.SAXException
{ {
// log.fine( "TranslationHandler.startElement", qName); // + " - " + uri + " - " + localName); // log.fine( "TranslationHandler.startElement", qName); // + " - " + uri + " - " + localName);
if (qName.equals(Translation.XML_TAG) || qName.equals(Translation.XML_TAG2)) if (qName.equals(Translation.XML_TAG) || qName.equals(Translation.XML_TAG2) || qName.equals(Translation.XML_TAG3))
{ {
m_AD_Language = attributes.getValue(Translation.XML_ATTRIBUTE_LANGUAGE); m_AD_Language = attributes.getValue(Translation.XML_ATTRIBUTE_LANGUAGE);
m_isBaseLanguage = Language.isBaseLanguage(m_AD_Language); m_isBaseLanguage = Language.isBaseLanguage(m_AD_Language);
@ -137,7 +137,7 @@ public class TranslationHandler extends DefaultHandler
throws SAXException throws SAXException
{ {
// Log.trace(Log.l6_Database+1, "TranslationHandler.endElement", qName); // Log.trace(Log.l6_Database+1, "TranslationHandler.endElement", qName);
if (qName.equals(Translation.XML_TAG) || qName.equals(Translation.XML_TAG2)) if (qName.equals(Translation.XML_TAG) || qName.equals(Translation.XML_TAG2) || qName.equals(Translation.XML_TAG3))
{ {
} else if (qName.equals(Translation.XML_ROW_TAG)) { } else if (qName.equals(Translation.XML_ROW_TAG)) {