<?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: l10n.js: JS localization library</title>
	<atom:link href="http://ajaxian.com/archives/l10n-js-js-localization-library/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/l10n-js-js-localization-library</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 17 May 2012 07:43:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Jordan1</title>
		<link>http://ajaxian.com/archives/l10n-js-js-localization-library/comment-page-1#comment-283611</link>
		<dc:creator>Jordan1</dc:creator>
		<pubDate>Fri, 14 May 2010 00:07:24 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=9272#comment-283611</guid>
		<description>If you want to use native methods, how about going with localized DTDs? That&#039;s how Firefox implements it.</description>
		<content:encoded><![CDATA[<p>If you want to use native methods, how about going with localized DTDs? That&#8217;s how Firefox implements it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rasmusfl0e</title>
		<link>http://ajaxian.com/archives/l10n-js-js-localization-library/comment-page-1#comment-283607</link>
		<dc:creator>rasmusfl0e</dc:creator>
		<pubDate>Thu, 13 May 2010 19:51:43 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=9272#comment-283607</guid>
		<description>@eligrey: Good :)
.
You use a &quot;%foo.bar&quot;-pattern - does it mean anything? It looks like it should, but as far as I can tell it&#039;s used directly as a key (the pattern has no real function). I could just go with &quot;fooBar&quot;?
.
String.prototype.toLocaleString doesn&#039;t really make any sense; it&#039;s essentially a lookup in an object with a key - and being so doesn&#039;t make sense for any arbitrary string. It shouldn&#039;t be a String method - just a function that wraps a lookup and takes a string as its argument like the &quot;l&quot; function you propose.</description>
		<content:encoded><![CDATA[<p>@eligrey: Good :)<br />
.<br />
You use a &#8220;%foo.bar&#8221;-pattern &#8211; does it mean anything? It looks like it should, but as far as I can tell it&#8217;s used directly as a key (the pattern has no real function). I could just go with &#8220;fooBar&#8221;?<br />
.<br />
String.prototype.toLocaleString doesn&#8217;t really make any sense; it&#8217;s essentially a lookup in an object with a key &#8211; and being so doesn&#8217;t make sense for any arbitrary string. It shouldn&#8217;t be a String method &#8211; just a function that wraps a lookup and takes a string as its argument like the &#8220;l&#8221; function you propose.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EliGrey</title>
		<link>http://ajaxian.com/archives/l10n-js-js-localization-library/comment-page-1#comment-283606</link>
		<dc:creator>EliGrey</dc:creator>
		<pubDate>Thu, 13 May 2010 19:33:07 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=9272#comment-283606</guid>
		<description>@dbjdbj: I updated the demo to use variable string replacement so the keys are less unsightly, though it never really mattered with gzip compression.</description>
		<content:encoded><![CDATA[<p>@dbjdbj: I updated the demo to use variable string replacement so the keys are less unsightly, though it never really mattered with gzip compression.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dbjdbj</title>
		<link>http://ajaxian.com/archives/l10n-js-js-localization-library/comment-page-1#comment-283605</link>
		<dc:creator>dbjdbj</dc:creator>
		<pubDate>Thu, 13 May 2010 17:30:59 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=9272#comment-283605</guid>
		<description>There is a lot of data redundancy in that JSON.  
Surely &quot;fixable&quot; ...</description>
		<content:encoded><![CDATA[<p>There is a lot of data redundancy in that JSON.<br />
Surely &#8220;fixable&#8221; &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: leomdg</title>
		<link>http://ajaxian.com/archives/l10n-js-js-localization-library/comment-page-1#comment-283603</link>
		<dc:creator>leomdg</dc:creator>
		<pubDate>Thu, 13 May 2010 16:11:13 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=9272#comment-283603</guid>
		<description>Wow, every aspect of robust applications are getting attacked by different libraries.. What&#039;s left? What&#039;s to come?

Only JavaScript will flow through the pipes soon...</description>
		<content:encoded><![CDATA[<p>Wow, every aspect of robust applications are getting attacked by different libraries.. What&#8217;s left? What&#8217;s to come?</p>
<p>Only JavaScript will flow through the pipes soon&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EliGrey</title>
		<link>http://ajaxian.com/archives/l10n-js-js-localization-library/comment-page-1#comment-283602</link>
		<dc:creator>EliGrey</dc:creator>
		<pubDate>Thu, 13 May 2010 16:04:13 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=9272#comment-283602</guid>
		<description>@both of you: it works with variables too. Nobody is requiring you to use sentences.</description>
		<content:encoded><![CDATA[<p>@both of you: it works with variables too. Nobody is requiring you to use sentences.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Baryn</title>
		<link>http://ajaxian.com/archives/l10n-js-js-localization-library/comment-page-1#comment-283601</link>
		<dc:creator>Baryn</dc:creator>
		<pubDate>Thu, 13 May 2010 15:33:03 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=9272#comment-283601</guid>
		<description>@rasmus

I thought that was a bit weird myself.

It&#039;s nice to have JS localization outside of webOS though!  I just finished a project this would have been useful for &gt;_&lt;</description>
		<content:encoded><![CDATA[<p>@rasmus</p>
<p>I thought that was a bit weird myself.</p>
<p>It&#8217;s nice to have JS localization outside of webOS though!  I just finished a project this would have been useful for &gt;_&lt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: frickenate</title>
		<link>http://ajaxian.com/archives/l10n-js-js-localization-library/comment-page-1#comment-283600</link>
		<dc:creator>frickenate</dc:creator>
		<pubDate>Thu, 13 May 2010 14:50:59 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=9272#comment-283600</guid>
		<description>@rasmusfl0e: Thank you for reading my mind and getting to the point. That format is just ridiculous.</description>
		<content:encoded><![CDATA[<p>@rasmusfl0e: Thank you for reading my mind and getting to the point. That format is just ridiculous.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DhtmlGuy</title>
		<link>http://ajaxian.com/archives/l10n-js-js-localization-library/comment-page-1#comment-283599</link>
		<dc:creator>DhtmlGuy</dc:creator>
		<pubDate>Thu, 13 May 2010 13:02:31 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=9272#comment-283599</guid>
		<description>@rasmusfl0e:  In the article, the author actually uses abstract keys like %title.search.  This would be the recommended best practice.

Ideally, if the application is server-based, you would generate the json from the server-side resource files (e.g., java properties), so you&#039;d share keys.  (This is what we do in the applications I work on, though, we use our own proprietary i18n framework).  This means you can hire a localization translation service and they can just make the locale-specific properties files and not have to touch JScript.</description>
		<content:encoded><![CDATA[<p>@rasmusfl0e:  In the article, the author actually uses abstract keys like %title.search.  This would be the recommended best practice.</p>
<p>Ideally, if the application is server-based, you would generate the json from the server-side resource files (e.g., java properties), so you&#8217;d share keys.  (This is what we do in the applications I work on, though, we use our own proprietary i18n framework).  This means you can hire a localization translation service and they can just make the locale-specific properties files and not have to touch JScript.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rasmusfl0e</title>
		<link>http://ajaxian.com/archives/l10n-js-js-localization-library/comment-page-1#comment-283598</link>
		<dc:creator>rasmusfl0e</dc:creator>
		<pubDate>Thu, 13 May 2010 12:43:26 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=9272#comment-283598</guid>
		<description>Using full sentences as keys? Nevermind redundancy, ineffecient compression and the search and replace needed to correct spelling/wording mistakes. How about a proper level of abstraction? 
.
This is just insane. :(</description>
		<content:encoded><![CDATA[<p>Using full sentences as keys? Nevermind redundancy, ineffecient compression and the search and replace needed to correct spelling/wording mistakes. How about a proper level of abstraction?<br />
.<br />
This is just insane. :(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DhtmlGuy</title>
		<link>http://ajaxian.com/archives/l10n-js-js-localization-library/comment-page-1#comment-283596</link>
		<dc:creator>DhtmlGuy</dc:creator>
		<pubDate>Thu, 13 May 2010 12:32:32 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=9272#comment-283596</guid>
		<description>I also noticed that the i10n.js library actually adds toLocaleString to the String.prototype.  The article refers to the method as &quot;the native JavaScript method intended for it&quot;;  this confused me for awhile as I was unaware of any ECMA spec version that defined this method on String.  You may want to clarify this in the article.</description>
		<content:encoded><![CDATA[<p>I also noticed that the i10n.js library actually adds toLocaleString to the String.prototype.  The article refers to the method as &#8220;the native JavaScript method intended for it&#8221;;  this confused me for awhile as I was unaware of any ECMA spec version that defined this method on String.  You may want to clarify this in the article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DhtmlGuy</title>
		<link>http://ajaxian.com/archives/l10n-js-js-localization-library/comment-page-1#comment-283595</link>
		<dc:creator>DhtmlGuy</dc:creator>
		<pubDate>Thu, 13 May 2010 12:22:12 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=9272#comment-283595</guid>
		<description>I also have to handle date and numeric formatting differences between locales.  I have not seen any built-in support in JScript for the latter yet.  
Am I missing something?</description>
		<content:encoded><![CDATA[<p>I also have to handle date and numeric formatting differences between locales.  I have not seen any built-in support in JScript for the latter yet.<br />
Am I missing something?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

