i18n/l10n XML file not recognized in Wicket 6.0.0-beta3?

2012-08-24 Thread Michael M
Hi, need to use an XML file for localization in my application. However,
Wicket is just not recognizing an XML file for this.

I did the XML structure exactly like in the examples, proper UTF-8
encoding, proper doctype for Java properties. I copied the examples into a
newly created UTF-8 text file and saved it as an XML, I tried to do it from
scratch in a text-editor as well as in my IDE. I escaped the {} brackets
with a backslash, tried without any text or just one letter in the
key-tags... nothing, Wicket is not recognizing or not reading the file.

XML validators tell me the file is valid. As soon as I change the XML into
a .properties file, Wicket reads it. But I need UTF-8 for German Umlauts.

Is the beta3 having a problem maybe, anyone else experiencing that?
*_de.html files are recognized as well, but not my XML.


Re: i18n/l10n XML file not recognized in Wicket 6.0.0-beta3?

2012-08-24 Thread Sven Meier
Do your files have the correct suffix?

*.properties.xml

Sven

Michael M generi...@gmail.com schrieb:

Hi, need to use an XML file for localization in my application. However,
Wicket is just not recognizing an XML file for this.

I did the XML structure exactly like in the examples, proper UTF-8
encoding, proper doctype for Java properties. I copied the examples into a
newly created UTF-8 text file and saved it as an XML, I tried to do it from
scratch in a text-editor as well as in my IDE. I escaped the {} brackets
with a backslash, tried without any text or just one letter in the
key-tags... nothing, Wicket is not recognizing or not reading the file.

XML validators tell me the file is valid. As soon as I change the XML into
a .properties file, Wicket reads it. But I need UTF-8 for German Umlauts.

Is the beta3 having a problem maybe, anyone else experiencing that?
*_de.html files are recognized as well, but not my XML.


Re: i18n/l10n XML file not recognized in Wicket 6.0.0-beta3?

2012-08-24 Thread Michael M
Oh boy.. I somehow assumed that .properties is the file-extension for the
normal properties files, and .xml for XML files. So I overlooked the proper
naming-conventions.. sigh.

Thanks, woking now!

2012/8/24 Sven Meier s...@meiers.net

 Do your files have the correct suffix?

 *.properties.xml

 Sven

 Michael M generi...@gmail.com schrieb:

 Hi, need to use an XML file for localization in my application. However,
 Wicket is just not recognizing an XML file for this.
 
 I did the XML structure exactly like in the examples, proper UTF-8
 encoding, proper doctype for Java properties. I copied the examples into a
 newly created UTF-8 text file and saved it as an XML, I tried to do it
 from
 scratch in a text-editor as well as in my IDE. I escaped the {} brackets
 with a backslash, tried without any text or just one letter in the
 key-tags... nothing, Wicket is not recognizing or not reading the file.
 
 XML validators tell me the file is valid. As soon as I change the XML into
 a .properties file, Wicket reads it. But I need UTF-8 for German Umlauts.
 
 Is the beta3 having a problem maybe, anyone else experiencing that?
 *_de.html files are recognized as well, but not my XML.