<?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 06:34:48 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPMaster.com: Localizing PHP Applications "The Right Way", Part 3]]></title>
      <guid>http://www.phpdeveloper.org/news/17122</guid>
      <link>http://www.phpdeveloper.org/news/17122</link>
      <description><![CDATA[<p>
PHPMaster.com has posted its third part of its "Localizing PHP Applications 'The Right Way'" series. In <a href="http://phpmaster.com/localizing-php-applications-3/">this third part</a> you'll learn more about locales and message domain switching.
</p>
<blockquote>
In <a href="http://phpmaster.com/localizing-php-applications-2">Part 2</a> you gained more insight into using the gettext library by learning the most important functions of the extension. In this part you'll learn how to best use a fallback locale, switch between locales, and override the currently selected message domain.
</blockquote>
<p>
They show you how to set up the directory structure to handle a fallback locale, a choice to use when the system can't determine which to use. By using a default, you also avoid having the system translate from the default language to...the default language (like "English" to "English"). Included are also the code bits you'll need to switch between locales (just using a different domain) and using the <a href="http://php.net/dgettext">dgettext</a> function to specify a different domain than the selected one.
</p>]]></description>
      <pubDate>Mon, 14 Nov 2011 08:38:48 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Evert Pot's Blog: basename() is locale-aware]]></title>
      <guid>http://www.phpdeveloper.org/news/14269</guid>
      <link>http://www.phpdeveloper.org/news/14269</link>
      <description><![CDATA[<p>
<i>Evert Pot</i> found out an interesting thing about the <a href="http://php.net/basename">basename</a> function in PHP - it's more than just a handy shortcut for paths, it's <a href="http://www.rooftopsolutions.nl/article/271">also locale aware</a>.
</p>
<blockquote>
It turns out basename does a bit more than just splicing the string at the last slash, because it's locale aware. In my case I was dealing with a multi-byte UTF-8 string. It took me quite some time figuring out what was going on, because I was testing from the console which had the en_US.UTF-8 locale, and the bug was appearing on Apache, which defaults to the C locale.
</blockquote>
<p>
He includes an example snippet of code showing how it can work with both the default (well, for Apache anyway) of the "C" locale versus the "UTF-8" locale and return different results for the same <a href="http://php.net/urldecode">urldecoded</a> information.
</p>]]></description>
      <pubDate>Tue, 30 Mar 2010 12:04:35 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Padraic Brady's Blog: PCRE Regex Word Matching: "w" vs "a-zA-Z0-9_"]]></title>
      <guid>http://www.phpdeveloper.org/news/13732</guid>
      <link>http://www.phpdeveloper.org/news/13732</link>
      <description><![CDATA[<p>
<i>Padraic Brady</i> has <a href="http://blog.astrumfutura.com/archives/430-PCRE-Regex-Word-Matching-w-vs-a-zA-Z0-9_.html">posted about</a> an issue he noticed when working with regular expressions and the "word" character type to find something that's alpha-numeric (including an underscore):
</p>
<blockquote>
You can find the "word" generic character type used in a lot of PHP code including the Zend Framework. The problem is that the assumption above is incorrect. Now, most of the time these act identically because PHP is compiled using its own packaged PCRE library. However, I've seen more than once systems where this is not the case. Usually in some non-English capacity where additional locale support was considered necessary or standard practice.
</blockquote>
<p>
The problem comes when PHP is compiled against a custom PCRE library, making it more locale-aware. He gives instructions on how to get this to a testable state on your environment (using an <a href="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.00.tar.gz">updated PREC library</a>) and get it working for characters in French, like the accented "a" or "e".
</p>]]></description>
      <pubDate>Mon, 28 Dec 2009 09:41:21 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[WebReference.com: Globalize your Web Applications: PHP's Locale Package]]></title>
      <guid>http://www.phpdeveloper.org/news/13632</guid>
      <link>http://www.phpdeveloper.org/news/13632</link>
      <description><![CDATA[<p>
On WebReference.com there's <a href="http://www.webreference.com/programming/Globalize-Web-Applications/index.html">a recent article</a> looking at the PEAR internationalization (i18n) packages and how they can be used to internationalize your application.
</p>
<blockquote>
For many of us, the realization of the extent of countries' interdependence was driven home by the recent global economic meltdown. So what does all this have to do with us Web developers? It's a resounding wake up call that we have to think of other nationalities when we develop our websites and applications. In most cases, developing a web app in English alienates much of the world's population and greatly reduces potential profits! With that in mind, this article is the kickoff for a series that discusses the ramifications of globalization on our websites and applications.
</blockquote>
<p>
The look at some of the local identifiers (like LC_ALL, LC_TIME, LC_ADDRESS and LANG), how to access the values for them on the different OSes and how to use the I18N_Country and I18N_Language packages from the PEAR <a href="http://pear.php.net/package/I18N/">I18N package</a> to handle some simple multi-language support.
</p>]]></description>
      <pubDate>Mon, 07 Dec 2009 12:06:38 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Paul Jones' Blog: Solar 0.27.0 and 0.27.1 Released]]></title>
      <guid>http://www.phpdeveloper.org/news/7369</guid>
      <link>http://www.phpdeveloper.org/news/7369</link>
      <description><![CDATA[<p>
<i>Paul Jones</i> has <a href="http://paul-m-jones.com/blog/?p=244">released two new concurrent versions</a> of the <a href="http://solarphp.com/">Solar framework</a> today:
</p>
<blockquote>
Yesterday, I released <a href="http://solarphp.com/">Solar</a> 0.27.0, then quick-fixed two minor bugs and released 0.27.1 an hour later. It feels so good to be back doing releases on a monthly basis.
</blockquote>
<p>
Some of the updates/changes in these new releases include:
<ul>
<li>The use of <a href="http://php.net/spl">spl_autolaod</a> to load classes
<li>Locale functions have <a href="http://solarphp.com/class/Solar_Locale">a new home</a>
<li>a super-fast <a href="http://solarphp.com/class/Solar_Json">JSON encoder/decoder</a>
<li>a modification to <a href="http://paul-m-jones.com/blog/?p=243">the SQL adapter</a> for PDO
<li>A new bit of functionality in <a href="http://solarphp.com/class/Solar_Uri">Solar_Url</a> that can find the ".ext" filename extension in a URL automagically
</ul>
You can download this latest update(s) from <a href="http://solarphp.com/">the framework's main website</a>.
</p>]]></description>
      <pubDate>Fri, 02 Mar 2007 07:57:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Initial Release of Zend_Locale_UTF8]]></title>
      <guid>http://www.phpdeveloper.org/news/6420</guid>
      <link>http://www.phpdeveloper.org/news/6420</link>
      <description><![CDATA[<p>
The Zend Developer Zone has <a href="http://devzone.zend.com/node/view/id/997">taken a look</a> at the first release of the Zend_Locale_UTF8 component for the Zend Framework and some comments from it's lead developer, <i>Andre Hoffmann</i>.
</p>
<blockquote>
<p>
Andre Hoffmann posted a blog entry today to talk about his work on Zend_Locale_UTF8: "I just released the first version of Zend_Locale_UTF8.It doesn't come with all functions nor with the best performance, but it shows how the current state of development is."
</p>
</blockquote>
<p>
He <a href="http://devzone.zend.com/node/view/id/997">also lists</a> some of the things still missing from the component, including: unit tests, substr, strstr, PHP6 support, and mbstring support.
</p>]]></description>
      <pubDate>Wed, 04 Oct 2006 10:21:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[SitePoint PHP Blog: Hot PHP UTF-8 tips]]></title>
      <guid>http://www.phpdeveloper.org/news/6005</guid>
      <link>http://www.phpdeveloper.org/news/6005</link>
      <description><![CDATA[<p>
Following up on some of his previous posts to the SitePoint PHP Blog, <i>Harry Fuecks</i> has posted <a href="http://www.sitepoint.com/blogs/2006/08/10/hot-php-utf-8-tips/">this quick guide</a> with some "hot UTF-8 tips" to share with the community.
</p>
<blockquote>
As a result of all the <a href="http://www.sitepoint.com/blogs/2006/08/09/scripters-utf-8-survival-guide-slides/">noise about UTF-8</a>, got an email from Marek Gayer with some very smart tips on handling UTF-8. What follows is a discussion illustrating what happens when you get obsessed with performance and optimizations (be warned - may be boring, depending on your perspective).
</blockquote>
<p>
He <a href="http://www.sitepoint.com/blogs/2006/08/10/hot-php-utf-8-tips/">talks mainly</a> about using the native PHP functionality to avoid the mbstring issues that could arise by restricting locale behavior and using a fast case conversion function to handle strings correctly. The other tip involves delivery methods to those not able to recieve UTF-8 formatted content - checking their character set and responding accordingly.
</p>]]></description>
      <pubDate>Thu, 10 Aug 2006 14:50:03 -0500</pubDate>
    </item>
  </channel>
</rss>
