<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 19 Jun 2013 10:41:00 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPMaster.com: Localizing PHP Applications "The Right Way", Part 4]]></title>
      <guid>http://www.phpdeveloper.org/news/17153</guid>
      <link>http://www.phpdeveloper.org/news/17153</link>
      <description><![CDATA[<p>
In the <a href="http://phpmaster.com/localizing-php-applications-4/">latest installment</a> of their "Localizing PHP Applications 'The Right Way'" tutorial series (part four), they show off a feature of <a href="http://php.net/gettext">gettext</a> that makes it simpler to deal with singular versus plural versions of your translations.
</p>
<blockquote>
In <a href="http://phpmaster.com/localizing-php-applications-3">Part 3</a> you learned some of the more important aspects of real-world localizing your application, such as using a default fallback locale and separating messages into multiple domain files depending on their usage. In this part I'll show you what is arguably the most powerful feature of gettext - handling plural forms. The plural forms feature of gettext you enable you to localize your application perfectly and professionally.
</blockquote>
<p>
The simple example they give is the difference between things like "1 file" versus "2 files". English is simpler than some other languages but gettext has special handling you can add to your translation files to help. A rule placed at the top of your file defines where to start the singular vs plural switch. 
</p>]]></description>
      <pubDate>Mon, 21 Nov 2011 10:58:31 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Tim Koschuetzki's Blog: CakePHP Pluralize Helper]]></title>
      <guid>http://www.phpdeveloper.org/news/8974</guid>
      <link>http://www.phpdeveloper.org/news/8974</link>
      <description><![CDATA[<p>
<i>Tim Koschuetzki</i> has another <a href="http://php-coding-practices.com/cakephp-specific/cakephp-pluralize-helper/">CakePHP tip to share</a> on his blog today - a helper that lets you pluralize a word easily.
</p>
<blockquote>
Here is a small helper file for the CakePHP framework that will help you turn a subject into the pluralized form depending on a parameter.
</blockquote>
<p>
His <a href="http://php-coding-practices.com/cakephp-specific/cakephp-pluralize-helper/">example</a> shows how to use the tool, pluralizing the word "article". The Helper uses CakePHP's Inflector class to base the transition on ("so that special cases like "baby/babies" are taken care of as well").
</p>]]></description>
      <pubDate>Mon, 05 Nov 2007 13:48:00 -0600</pubDate>
    </item>
  </channel>
</rss>
