<?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: i18njs : Internationalize Your JavaScript With A Little Help From JSON And The Server</title>
	<atom:link href="http://blog.mozilla.org/webdev/2011/10/06/i18njs-internationalize-your-javascript-with-a-little-help-from-json-and-the-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mozilla.org/webdev/2011/10/06/i18njs-internationalize-your-javascript-with-a-little-help-from-json-and-the-server/</link>
	<description>Engineering the web</description>
	<lastBuildDate>Fri, 17 May 2013 21:43:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: mobile application development</title>
		<link>http://blog.mozilla.org/webdev/2011/10/06/i18njs-internationalize-your-javascript-with-a-little-help-from-json-and-the-server/comment-page-1/#comment-217846</link>
		<dc:creator>mobile application development</dc:creator>
		<pubDate>Sat, 08 Oct 2011 08:42:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mozilla.org/webdev/?p=2098#comment-217846</guid>
		<description><![CDATA[its really nice article.. thanks .. :)]]></description>
		<content:encoded><![CDATA[<p>its really nice article.. thanks .. <img src='http://blog.mozilla.org/webdev/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Schalk Neethling</title>
		<link>http://blog.mozilla.org/webdev/2011/10/06/i18njs-internationalize-your-javascript-with-a-little-help-from-json-and-the-server/comment-page-1/#comment-217810</link>
		<dc:creator>Schalk Neethling</dc:creator>
		<pubDate>Fri, 07 Oct 2011 19:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mozilla.org/webdev/?p=2098#comment-217810</guid>
		<description><![CDATA[Hey @gandalf, you are right l10n is definitely much more accurate. The projects looks seriously interesting, I will definitely see everyone on IRC.

@Billy, I agree with @Simon and will avoid window.name and stick with localStorage and then Cookies for IE7- I will look into TRACE but, as their are some security concerns and the fact that not all servers will be configured for this, one will need to test and see whether TRACE is configured and if not, fall back to the &#039;service&#039; url.]]></description>
		<content:encoded><![CDATA[<p>Hey @gandalf, you are right l10n is definitely much more accurate. The projects looks seriously interesting, I will definitely see everyone on IRC.</p>
<p>@Billy, I agree with @Simon and will avoid window.name and stick with localStorage and then Cookies for IE7- I will look into TRACE but, as their are some security concerns and the fact that not all servers will be configured for this, one will need to test and see whether TRACE is configured and if not, fall back to the &#8216;service&#8217; url.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gandalf</title>
		<link>http://blog.mozilla.org/webdev/2011/10/06/i18njs-internationalize-your-javascript-with-a-little-help-from-json-and-the-server/comment-page-1/#comment-217795</link>
		<dc:creator>gandalf</dc:creator>
		<pubDate>Fri, 07 Oct 2011 14:59:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mozilla.org/webdev/?p=2098#comment-217795</guid>
		<description><![CDATA[Hey Schalk,

I think you&#039;re not talking about i18n library, but l10n library. I18n JS library is being developed by TC39 EcmaScript comitee - https://docs.google.com/document/pub?id=1rsUxJQ03Ql6o3bh6RN7J81dtYZXE7OVsdQBw_h5ASnM&amp;ndplr=1

For L10n needs, I&#039;m afraid that your lib is not different from gettext in the sense that it supports plain key-value pairs without any flexibility for placeables, genders, declensions, plural forms etc.
For Jetpack JS l10n I&#039;m working on the library called Common Pool - http://diary.braniecki.net/search/Common+Pool and a more powerful but complex library called &quot;l20n&quot; - http://wiki.mozilla.org/L20n (JS bindings even have some initial patches for Gecko js service).

If you want to chat about it, join us at #l10n-tools IRC channel! I&#039;m going to start a l10n technologies community at Mozilla very soon and projects like yours are welcomed! :) I&#039;d love more people to think and work on various approaches to localizability of our technologies :)]]></description>
		<content:encoded><![CDATA[<p>Hey Schalk,</p>
<p>I think you&#8217;re not talking about i18n library, but l10n library. I18n JS library is being developed by TC39 EcmaScript comitee &#8211; <a href="https://docs.google.com/document/pub?id=1rsUxJQ03Ql6o3bh6RN7J81dtYZXE7OVsdQBw_h5ASnM&#038;ndplr=1" rel="nofollow">https://docs.google.com/document/pub?id=1rsUxJQ03Ql6o3bh6RN7J81dtYZXE7OVsdQBw_h5ASnM&#038;ndplr=1</a></p>
<p>For L10n needs, I&#8217;m afraid that your lib is not different from gettext in the sense that it supports plain key-value pairs without any flexibility for placeables, genders, declensions, plural forms etc.<br />
For Jetpack JS l10n I&#8217;m working on the library called Common Pool &#8211; <a href="http://diary.braniecki.net/search/Common+Pool" rel="nofollow">http://diary.braniecki.net/search/Common+Pool</a> and a more powerful but complex library called &#8220;l20n&#8221; &#8211; <a href="http://wiki.mozilla.org/L20n" rel="nofollow">http://wiki.mozilla.org/L20n</a> (JS bindings even have some initial patches for Gecko js service).</p>
<p>If you want to chat about it, join us at #l10n-tools IRC channel! I&#8217;m going to start a l10n technologies community at Mozilla very soon and projects like yours are welcomed! <img src='http://blog.mozilla.org/webdev/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I&#8217;d love more people to think and work on various approaches to localizability of our technologies <img src='http://blog.mozilla.org/webdev/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Billy Hoffman</title>
		<link>http://blog.mozilla.org/webdev/2011/10/06/i18njs-internationalize-your-javascript-with-a-little-help-from-json-and-the-server/comment-page-1/#comment-217793</link>
		<dc:creator>Billy Hoffman</dc:creator>
		<pubDate>Fri, 07 Oct 2011 14:05:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mozilla.org/webdev/?p=2098#comment-217793</guid>
		<description><![CDATA[That makes sense. On second thought, keep using localStorage. Worse case is only two older browsers get a slower implementation.]]></description>
		<content:encoded><![CDATA[<p>That makes sense. On second thought, keep using localStorage. Worse case is only two older browsers get a slower implementation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://blog.mozilla.org/webdev/2011/10/06/i18njs-internationalize-your-javascript-with-a-little-help-from-json-and-the-server/comment-page-1/#comment-217745</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Thu, 06 Oct 2011 21:53:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mozilla.org/webdev/?p=2098#comment-217745</guid>
		<description><![CDATA[@Billy - no! Don&#039;t stuff around with the window.name property. As you say, it&#039;s a bit of a hack, and it&#039;s also quite likely to conflict with other libraries doing similar tricks - e.g I&#039;ve seen some session-management code using window.name to link a window to server-side sessions...]]></description>
		<content:encoded><![CDATA[<p>@Billy &#8211; no! Don&#8217;t stuff around with the window.name property. As you say, it&#8217;s a bit of a hack, and it&#8217;s also quite likely to conflict with other libraries doing similar tricks &#8211; e.g I&#8217;ve seen some session-management code using window.name to link a window to server-side sessions&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Billy Hoffman</title>
		<link>http://blog.mozilla.org/webdev/2011/10/06/i18njs-internationalize-your-javascript-with-a-little-help-from-json-and-the-server/comment-page-1/#comment-217701</link>
		<dc:creator>Billy Hoffman</dc:creator>
		<pubDate>Thu, 06 Oct 2011 14:04:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mozilla.org/webdev/?p=2098#comment-217701</guid>
		<description><![CDATA[Cool library. I have two ways to make it better.

First, you can replace the server-side component. Instead, use an XHR and set the HTTP method to &quot;TRACE.&quot; TRACE tells the web server to return the HTTP request you made (including the Accept-Language header) to you as the response. Now you can parse the Accept-Language header in JavaScript. Most web servers have this turned on by default, and its a trivial configuration change if its not. (Also, there were some security concerns with enabling TRACE, mainly around XSS attacks, but all modern web servers have patched this issue).

Second, you just want to temporary cache the JSON data with localized messaging. And a polyfill for this is too heavy as you said. Why not replace localStorage with using window.name? It&#039;s a bit of a hack, but will give you dozens of kilobytes to cache the JSON string, and it works in all browsers. This makes you logic very simple: if in window.name cache, parse the JSON, if not, fetch it and cache it.

http://www.sitepoint.com/cookieless-javascript-session-variables/]]></description>
		<content:encoded><![CDATA[<p>Cool library. I have two ways to make it better.</p>
<p>First, you can replace the server-side component. Instead, use an XHR and set the HTTP method to &#8220;TRACE.&#8221; TRACE tells the web server to return the HTTP request you made (including the Accept-Language header) to you as the response. Now you can parse the Accept-Language header in JavaScript. Most web servers have this turned on by default, and its a trivial configuration change if its not. (Also, there were some security concerns with enabling TRACE, mainly around XSS attacks, but all modern web servers have patched this issue).</p>
<p>Second, you just want to temporary cache the JSON data with localized messaging. And a polyfill for this is too heavy as you said. Why not replace localStorage with using window.name? It&#8217;s a bit of a hack, but will give you dozens of kilobytes to cache the JSON string, and it works in all browsers. This makes you logic very simple: if in window.name cache, parse the JSON, if not, fetch it and cache it.</p>
<p><a href="http://www.sitepoint.com/cookieless-javascript-session-variables/" rel="nofollow">http://www.sitepoint.com/cookieless-javascript-session-variables/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Schalk Neethling</title>
		<link>http://blog.mozilla.org/webdev/2011/10/06/i18njs-internationalize-your-javascript-with-a-little-help-from-json-and-the-server/comment-page-1/#comment-217700</link>
		<dc:creator>Schalk Neethling</dc:creator>
		<pubDate>Thu, 06 Oct 2011 13:58:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mozilla.org/webdev/?p=2098#comment-217700</guid>
		<description><![CDATA[Hey Jigar,

I am not pushing i18njs as &#039;the&#039; solution for internationalization but, what often happens when people mix JSP, or PHP or whatever with JS to provide internationalization is that their JS are embedded in the page and they are not using an external JS files of a more modular nature that can be reused and better maintained.

The idea behind i18njs is to provide a solution within JavaScript that is completely server agnostic. If however you have a solution that allows you to mixin JSP tags within an external JS fiile, great, use it. If not, consider i18njs and let me know your thoughts.

Thank you for your comment,
Schalk]]></description>
		<content:encoded><![CDATA[<p>Hey Jigar,</p>
<p>I am not pushing i18njs as &#8216;the&#8217; solution for internationalization but, what often happens when people mix JSP, or PHP or whatever with JS to provide internationalization is that their JS are embedded in the page and they are not using an external JS files of a more modular nature that can be reused and better maintained.</p>
<p>The idea behind i18njs is to provide a solution within JavaScript that is completely server agnostic. If however you have a solution that allows you to mixin JSP tags within an external JS fiile, great, use it. If not, consider i18njs and let me know your thoughts.</p>
<p>Thank you for your comment,<br />
Schalk</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jigar Shah</title>
		<link>http://blog.mozilla.org/webdev/2011/10/06/i18njs-internationalize-your-javascript-with-a-little-help-from-json-and-the-server/comment-page-1/#comment-217697</link>
		<dc:creator>Jigar Shah</dc:creator>
		<pubDate>Thu, 06 Oct 2011 13:37:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mozilla.org/webdev/?p=2098#comment-217697</guid>
		<description><![CDATA[When we are using struts application, where i18n is part of framework, we use kist a jsp with js variables, something like 


var error = 
....

Is this right or there is another alternative to this ?]]></description>
		<content:encoded><![CDATA[<p>When we are using struts application, where i18n is part of framework, we use kist a jsp with js variables, something like </p>
<p>var error =<br />
&#8230;.</p>
<p>Is this right or there is another alternative to this ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
