<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Localizing your ARP application.</title>
	<atom:link href="http://www.herrodius.com/blog/29/feed" rel="self" type="application/rss+xml" />
	<link>http://www.herrodius.com/blog/29</link>
	<description>Thoughts from a software developer</description>
	<lastBuildDate>Tue, 01 Jun 2010 08:04:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: novio</title>
		<link>http://www.herrodius.com/blog/29/comment-page-1#comment-904</link>
		<dc:creator>novio</dc:creator>
		<pubDate>Fri, 07 Oct 2005 14:41:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.herrodius.com/blog/?p=29#comment-904</guid>
		<description>Has anybody already used mx.lang.Locale ?</description>
		<content:encoded><![CDATA[<p>Has anybody already used mx.lang.Locale ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christophe</title>
		<link>http://www.herrodius.com/blog/29/comment-page-1#comment-826</link>
		<dc:creator>Christophe</dc:creator>
		<pubDate>Mon, 22 Aug 2005 16:21:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.herrodius.com/blog/?p=29#comment-826</guid>
		<description>Hi Christoph,

thx for the feedback.

About the XML: the easy parsing of the resources is why I chose XML as a dataholder. The format is so easy and generic that you never need to extend your parser. The idea of using VO&#039;s to hold the localized strings would indeed have the big advantage of having type checking and code completion. However it felt like too much work to update the VO&#039;s and the parsers every time we need new strings. My aim is also to provide a built in way of handling localization inside ARP. The less you have to do as a developer, the better IMO.

About the localeChanged event and the databinding: That&#039;s actually something we&#039;ve been thinking about as well. We didn&#039;t implement it though because we were afraid that it wouldn&#039;t be flexible enough for reasons that we couldn&#039;t come up with at that moment. We could still introdude a new class LocaleBinder or something that lets you bind certain properties to certain resource strings in the resourcebundle.

Note that the localization efforts are experimental. Be sure to check back for new thoughts or updates. In the meantime, your thoughts are more than welcome.

regards,
Christophe</description>
		<content:encoded><![CDATA[<p>Hi Christoph,</p>
<p>thx for the feedback.</p>
<p>About the XML: the easy parsing of the resources is why I chose XML as a dataholder. The format is so easy and generic that you never need to extend your parser. The idea of using VO&#8217;s to hold the localized strings would indeed have the big advantage of having type checking and code completion. However it felt like too much work to update the VO&#8217;s and the parsers every time we need new strings. My aim is also to provide a built in way of handling localization inside ARP. The less you have to do as a developer, the better IMO.</p>
<p>About the localeChanged event and the databinding: That&#8217;s actually something we&#8217;ve been thinking about as well. We didn&#8217;t implement it though because we were afraid that it wouldn&#8217;t be flexible enough for reasons that we couldn&#8217;t come up with at that moment. We could still introdude a new class LocaleBinder or something that lets you bind certain properties to certain resource strings in the resourcebundle.</p>
<p>Note that the localization efforts are experimental. Be sure to check back for new thoughts or updates. In the meantime, your thoughts are more than welcome.</p>
<p>regards,<br />
Christophe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christoph Atteneder</title>
		<link>http://www.herrodius.com/blog/29/comment-page-1#comment-824</link>
		<dc:creator>Christoph Atteneder</dc:creator>
		<pubDate>Mon, 22 Aug 2005 08:12:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.herrodius.com/blog/?p=29#comment-824</guid>
		<description>Hi Christophe,

Thx for sharing =). 

I have to admit that I havnÂ´t wrote a localized application by now, just a few thoughts on your localization example anyway .
@XML Format: I also first thought about putting the localized strings into an xml file, but on the other side in  java world, resource bundles have a format like:
DOCUMENT_DOWNLOAD=Download Document
If you use it that way, you can use existing resource bundle tools. On the other hand and xml file would be easier to parse for the first time.
Another idea would be parsing the file serverside and filling a VO, which is transfered with remoting to the client. The advantage of this method would be that you
can automatically generate a VO for the clientside developer, who can easily use code completion for setting the locale strings. So there are less typos.

I also thought about eliminating the need of a localeChanged event with a kind of databinding. But for this I need first an instance of my ressource bundle, which is referenced by the different views. e.g.: firstname_lbl.text = ressourceBundle.FIRSTNAME;. After data is received from serverside or xml the ResourceBundle instance is updated and because of the existing references the views too.

What do you think?

cheers

Christoph</description>
		<content:encoded><![CDATA[<p>Hi Christophe,</p>
<p>Thx for sharing =). </p>
<p>I have to admit that I havnÂ´t wrote a localized application by now, just a few thoughts on your localization example anyway .<br />
@XML Format: I also first thought about putting the localized strings into an xml file, but on the other side in  java world, resource bundles have a format like:<br />
DOCUMENT_DOWNLOAD=Download Document<br />
If you use it that way, you can use existing resource bundle tools. On the other hand and xml file would be easier to parse for the first time.<br />
Another idea would be parsing the file serverside and filling a VO, which is transfered with remoting to the client. The advantage of this method would be that you<br />
can automatically generate a VO for the clientside developer, who can easily use code completion for setting the locale strings. So there are less typos.</p>
<p>I also thought about eliminating the need of a localeChanged event with a kind of databinding. But for this I need first an instance of my ressource bundle, which is referenced by the different views. e.g.: firstname_lbl.text = ressourceBundle.FIRSTNAME;. After data is received from serverside or xml the ResourceBundle instance is updated and because of the existing references the views too.</p>
<p>What do you think?</p>
<p>cheers</p>
<p>Christoph</p>
]]></content:encoded>
	</item>
</channel>
</rss>
