[Yanel-development] Offline and I18n problem [Fwd: [Yanel-commits]
rev 20628
- public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources]
Michael Wechner
michael.wechner at wyona.com
Wed Dec 6 22:35:05 CET 2006
Hi
It seems that the I18n transformation tries to connect to the internet
and hence it doesn't work when being offline.
Any idea why it tries to connect to the internet?
Thanks
Michi
-------- Original Message --------
Subject: [Yanel-commits] rev 20628 -
public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources
Date: Wed, 06 Dec 2006 22:24:48 +0100
From: michi at wyona.com
Reply-To: yanel-commits at wyona.com
To: yanel-commits at wyona.org
Author: michi
Date: 2006-12-06 22:24:47 +0100 (Wed, 06 Dec 2006)
New Revision: 20628
Modified:
public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources/XMLResource.java
Log:
I18n commented because it doesn't work when offline
Modified: public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources/XMLResource.java
===================================================================
--- public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources/XMLResource.java 2006-12-06 20:41:00 UTC (rev 20627)
+++ public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources/XMLResource.java 2006-12-06 21:24:47 UTC (rev 20628)
@@ -108,11 +108,14 @@
transformer.transform(new SAXSource(xmlReader, new org.xml.sax.InputSource(getContentXML(rp, yanelPath))), new StreamResult(baos));
InputStream inputStream = new ByteArrayInputStream(baos.toByteArray());
+/*
I18nTransformer i18nTransformer = new I18nTransformer("global", language);
SAXParser saxParser = SAXParserFactory.newInstance().newSAXParser();
saxParser.parse(inputStream, i18nTransformer);
defaultView.setInputStream(i18nTransformer.getInputStream());
+*/
+ defaultView.setInputStream(inputStream);
return defaultView;
} else {
_______________________________________________
Yanel-commits mailing list
Yanel-commits at wyona.com
http://wyona.com/cgi-bin/mailman/listinfo/yanel-commits
--
Michael Wechner
Wyona - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
michael.wechner at wyona.com michi at apache.org
+41 44 272 91 61
More information about the Yanel-development
mailing list