<?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>Biaxin For Strep - HQ Pharmacy</title>
	<atom:link href="http://codingwithcoffee.com/?feed=rss2&#038;p=272" rel="self" type="application/rss+xml" />
	<link>http://codingwithcoffee.com/?p=272</link>
	<description>Personal blog focused on technical notes, code snippets and software</description>
	<lastBuildDate>Thu, 02 Sep 2010 15:44:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Biaxin For Strep - HQ Pharmacy</title>
		<link>http://codingwithcoffee.com/?p=272&#038;cpage=2#comment-105</link>
		<dc:creator>Lars Clausen</dc:creator>
		<pubDate>Thu, 02 Sep 2010 15:44:59 +0000</pubDate>
		<guid isPermaLink="false">http://codingwithcoffee.com/?p=272#comment-105</guid>
		<description>Ran across your code looking for something to do i18n for jQuery in a slightly more advanced manner than we have done in-house. Your code, while prettier, handles more or less the same cases as ours does. What I was hoping to find was something that gives sufficient flexibility in handling language irregularities, in particular plural forms. See http://www.gnu.org/software/hello/manual/gettext/Plural-forms.html for just how messy it can be to handle plurals.

The idea that struck me, and that you can go ahead and implement in your code if you feel like, is that you could have a piece of JavaScript code (an expression, for instance) instead of a translation. Thus for instance the sentence &#039;{0} files deleted&#039; could be translated with

function(p0) { return &quot;{0} file&quot;   (p0 == 1?&quot;&quot;:&quot;s&quot;)   &quot; deleted&quot;;}

This, of course, is ugly, but with a few function definitions it could get nicer, since you could define (either from the start or as part of the l10n) functions that do specific plurals. Thus the Polish translation might end up looking like (the initial 0 being the argument selector):

polishNum(0, &quot;{0} plik&quot;, &quot;{0} pliki&quot;, &quot;{0} plik&#039;ow&quot;)

This would also allow you to handle gender correctly, something that gettext doesn&#039;t seem to handle. For instance, the phrase &quot;A  new blue {0}&quot; would translate into Danish as &quot;En ny blå bil&quot; if {0} is &#039;car&#039;, but as &quot;Et nyt blåt hus&quot; if {0} is a house. A generic gender-selector for Danish could then be

danishGender(0, &quot;En ny blå {0}&quot;, &quot;Et nyt blåt {0}&quot;)

The big advantage is that *you* don&#039;t have to define these, you just have to define an appropriate API.

The big disadvantage is that it&#039;s no longer Java-compatible.</description>
		<content:encoded><![CDATA[<p>Ran across your code looking for something to do i18n for jQuery in a slightly more advanced manner than we have done in-house. Your code, while prettier, handles more or less the same cases as ours does. What I was hoping to find was something that gives sufficient flexibility in handling language irregularities, in particular plural forms. See <a href="http://www.gnu.org/software/hello/manual/gettext/Plural-forms.html" rel="nofollow">http://www.gnu.org/software/hello/manual/gettext/Plural-forms.html</a> for just how messy it can be to handle plurals.</p>
<p>The idea that struck me, and that you can go ahead and implement in your code if you feel like, is that you could have a piece of JavaScript code (an expression, for instance) instead of a translation. Thus for instance the sentence &#8216;{0} files deleted&#8217; could be translated with</p>
<p>function(p0) { return &#8220;{0} file&#8221;   (p0 == 1?&#8221;":&#8221;s&#8221;)   &#8221; deleted&#8221;;}</p>
<p>This, of course, is ugly, but with a few function definitions it could get nicer, since you could define (either from the start or as part of the l10n) functions that do specific plurals. Thus the Polish translation might end up looking like (the initial 0 being the argument selector):</p>
<p>polishNum(0, &#8220;{0} plik&#8221;, &#8220;{0} pliki&#8221;, &#8220;{0} plik&#8217;ow&#8221;)</p>
<p>This would also allow you to handle gender correctly, something that gettext doesn&#8217;t seem to handle. For instance, the phrase &#8220;A  new blue {0}&#8221; would translate into Danish as &#8220;En ny blå bil&#8221; if {0} is &#8216;car&#8217;, but as &#8220;Et nyt blåt hus&#8221; if {0} is a house. A generic gender-selector for Danish could then be</p>
<p>danishGender(0, &#8220;En ny blå {0}&#8221;, &#8220;Et nyt blåt {0}&#8221;)</p>
<p>The big advantage is that *you* don&#8217;t have to define these, you just have to define an appropriate API.</p>
<p>The big disadvantage is that it&#8217;s no longer Java-compatible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Biaxin For Strep - HQ Pharmacy</title>
		<link>http://codingwithcoffee.com/?p=272&#038;cpage=2#comment-103</link>
		<dc:creator>Nuno</dc:creator>
		<pubDate>Wed, 25 Aug 2010 13:09:59 +0000</pubDate>
		<guid isPermaLink="false">http://codingwithcoffee.com/?p=272#comment-103</guid>
		<description>Hi! Glad you made it! I will review this as soon as I can.

Thanks,
Nuno</description>
		<content:encoded><![CDATA[<p>Hi! Glad you made it! I will review this as soon as I can.</p>
<p>Thanks,<br />
Nuno</p>
]]></content:encoded>
	</item>
	<item>
		<title>Biaxin For Strep - HQ Pharmacy</title>
		<link>http://codingwithcoffee.com/?p=272&#038;cpage=2#comment-102</link>
		<dc:creator>BenHur</dc:creator>
		<pubDate>Wed, 25 Aug 2010 10:16:15 +0000</pubDate>
		<guid isPermaLink="false">http://codingwithcoffee.com/?p=272#comment-102</guid>
		<description>Hi.
It works with single quotes:)</description>
		<content:encoded><![CDATA[<p>Hi.<br />
It works with single quotes:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Biaxin For Strep - HQ Pharmacy</title>
		<link>http://codingwithcoffee.com/?p=272&#038;cpage=2#comment-101</link>
		<dc:creator>BenHur</dc:creator>
		<pubDate>Wed, 25 Aug 2010 09:38:23 +0000</pubDate>
		<guid isPermaLink="false">http://codingwithcoffee.com/?p=272#comment-101</guid>
		<description>Hi
Tried in both wasy but it does not work.
The problem is that your plugin adds &quot;\&quot; to escape my href=&quot;test&quot; so the result is:
href=\&quot;test\&quot; and the link is no longer working.

can you try a test on your machine?

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi<br />
Tried in both wasy but it does not work.<br />
The problem is that your plugin adds &#8220;\&#8221; to escape my href=&#8221;test&#8221; so the result is:<br />
href=\&#8221;test\&#8221; and the link is no longer working.</p>
<p>can you try a test on your machine?</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Biaxin For Strep - HQ Pharmacy</title>
		<link>http://codingwithcoffee.com/?p=272&#038;cpage=2#comment-100</link>
		<dc:creator>Nuno</dc:creator>
		<pubDate>Wed, 25 Aug 2010 09:12:18 +0000</pubDate>
		<guid isPermaLink="false">http://codingwithcoffee.com/?p=272#comment-100</guid>
		<description>Ops... comment was truncated!

If you are using jQuery, you can try either with .text(&quot;value&quot;) or .html(&quot;value&quot;) to see if it solves the issue.

As an alternative, you can use the code at the link below, which will just unescape HTML entities:
http://paulschreiber.com/blog/2008/09/20/javascript-how-to-unescape-html-entities/

Hope it helps,
Nuno</description>
		<content:encoded><![CDATA[<p>Ops&#8230; comment was truncated!</p>
<p>If you are using jQuery, you can try either with .text(&#8220;value&#8221;) or .html(&#8220;value&#8221;) to see if it solves the issue.</p>
<p>As an alternative, you can use the code at the link below, which will just unescape HTML entities:<br />
<a href="http://paulschreiber.com/blog/2008/09/20/javascript-how-to-unescape-html-entities/" rel="nofollow">http://paulschreiber.com/blog/2008/09/20/javascript-how-to-unescape-html-entities/</a></p>
<p>Hope it helps,<br />
Nuno</p>
]]></content:encoded>
	</item>
	<item>
		<title>Biaxin For Strep - HQ Pharmacy</title>
		<link>http://codingwithcoffee.com/?p=272&#038;cpage=2#comment-99</link>
		<dc:creator>BenHur</dc:creator>
		<pubDate>Wed, 25 Aug 2010 08:55:11 +0000</pubDate>
		<guid isPermaLink="false">http://codingwithcoffee.com/?p=272#comment-99</guid>
		<description>Hi Nuno,
Can you put the hole answer?
thanks</description>
		<content:encoded><![CDATA[<p>Hi Nuno,<br />
Can you put the hole answer?<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Biaxin For Strep - HQ Pharmacy</title>
		<link>http://codingwithcoffee.com/?p=272&#038;cpage=2#comment-98</link>
		<dc:creator>Nuno</dc:creator>
		<pubDate>Tue, 24 Aug 2010 11:31:02 +0000</pubDate>
		<guid isPermaLink="false">http://codingwithcoffee.com/?p=272#comment-98</guid>
		<description>Hi,

If you&#039;re outputting the value using jQuery, .text(&#039;value</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>If you&#8217;re outputting the value using jQuery, .text(&#8216;value</p>
]]></content:encoded>
	</item>
	<item>
		<title>Biaxin For Strep - HQ Pharmacy</title>
		<link>http://codingwithcoffee.com/?p=272&#038;cpage=2#comment-97</link>
		<dc:creator>BenHur</dc:creator>
		<pubDate>Tue, 24 Aug 2010 10:50:23 +0000</pubDate>
		<guid isPermaLink="false">http://codingwithcoffee.com/?p=272#comment-97</guid>
		<description>Hi Nuno,
I have a message which like:

key=bla bla &lt;a href=&quot;link&quot; rel=&quot;nofollow&quot;&gt;click here&lt;/a&gt;

Well the problem is that it sees that &quot; is a special char and loads it like:

bla bla &lt;a href=&quot;\&quot;link etc

Do you see a quick workaround to this problem?

Thanks</description>
		<content:encoded><![CDATA[<p>Hi Nuno,<br />
I have a message which like:</p>
<p>key=bla bla <a href="link" rel="nofollow">click here</a></p>
<p>Well the problem is that it sees that &#8221; is a special char and loads it like:</p>
<p>bla bla &lt;a href=&quot;\&quot;link etc</p>
<p>Do you see a quick workaround to this problem?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Biaxin For Strep - HQ Pharmacy</title>
		<link>http://codingwithcoffee.com/?p=272&#038;cpage=2#comment-95</link>
		<dc:creator>Sal</dc:creator>
		<pubDate>Tue, 13 Jul 2010 18:09:59 +0000</pubDate>
		<guid isPermaLink="false">http://codingwithcoffee.com/?p=272#comment-95</guid>
		<description>All right, changed to &quot;mode:vars&quot; and nothing broke!! :-)

Cheers.</description>
		<content:encoded><![CDATA[<p>All right, changed to &#8220;mode:vars&#8221; and nothing broke!! <img src='http://codingwithcoffee.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Biaxin For Strep - HQ Pharmacy</title>
		<link>http://codingwithcoffee.com/?p=272&#038;cpage=2#comment-94</link>
		<dc:creator>Nuno</dc:creator>
		<pubDate>Tue, 13 Jul 2010 07:50:22 +0000</pubDate>
		<guid isPermaLink="false">http://codingwithcoffee.com/?p=272#comment-94</guid>
		<description>Hi Sal,

Yes, I&#039;m aware - I actually used your code to debug the issue you have reported :) 
One more thing, since you are using JS vars/functions to access your values from the properties file, you can change to &quot;mode: vars&quot;.

Thanks,
Nuno</description>
		<content:encoded><![CDATA[<p>Hi Sal,</p>
<p>Yes, I&#8217;m aware &#8211; I actually used your code to debug the issue you have reported <img src='http://codingwithcoffee.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
One more thing, since you are using JS vars/functions to access your values from the properties file, you can change to &#8220;mode: vars&#8221;.</p>
<p>Thanks,<br />
Nuno</p>
]]></content:encoded>
	</item>
</channel>
</rss>
