<?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"
	>
<channel>
	<title>Comments on: Localizing PHP web sites using gettext</title>
	<atom:link href="http://mel.melaxis.com/devblog/2005/08/06/localizing-php-web-sites-using-gettext/feed/" rel="self" type="application/rss+xml" />
	<link>http://mel.melaxis.com/devblog/2005/08/06/localizing-php-web-sites-using-gettext/</link>
	<description></description>
	<pubDate>Fri, 25 Jul 2008 07:07:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: links for 2008-04-25 &#124; svenkubiak.de</title>
		<link>http://mel.melaxis.com/devblog/2005/08/06/localizing-php-web-sites-using-gettext/#comment-21401</link>
		<dc:creator>links for 2008-04-25 &#124; svenkubiak.de</dc:creator>
		<pubDate>Fri, 25 Apr 2008 03:54:15 +0000</pubDate>
		<guid isPermaLink="false">http://mel.melaxis.com/webdev-blog/?p=7#comment-21401</guid>
		<description>[...] Localizing PHP web sites using gettext A widely used framework for internationalization is gettext. It can be used with a variety of programming languages, including PHP. There are basically two ways to use gettext in your PHP applications. You can use the native gettext PHP extension or you c (tags: php gettext localization tutorial web) [...]</description>
		<content:encoded><![CDATA[<p>[...] Localizing PHP web sites using gettext A widely used framework for internationalization is gettext. It can be used with a variety of programming languages, including PHP. There are basically two ways to use gettext in your PHP applications. You can use the native gettext PHP extension or you c (tags: php gettext localization tutorial web) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lars</title>
		<link>http://mel.melaxis.com/devblog/2005/08/06/localizing-php-web-sites-using-gettext/#comment-20567</link>
		<dc:creator>Lars</dc:creator>
		<pubDate>Fri, 11 Apr 2008 04:43:15 +0000</pubDate>
		<guid isPermaLink="false">http://mel.melaxis.com/webdev-blog/?p=7#comment-20567</guid>
		<description>I will have this "plugin problem" too - and very soon.

Thinking about it, I guess, one could translate the plugin via the usual way with e.g. poEdit - but use another textdomain for it. 
If your plugin is called "plugin1", you should be able to do this:

bindtextdomain("messages", "./locale");
bind_textdomain_codeset("messages", "UTF-8");
bindtextdomain("plugin1", "./locale");
bind_textdomain_codeset("plugin1", "UTF-8");
textdomain("messages");

This way you need the .po and .mo files calles plugin1.mo and plugin1.po in your locale directory.

To actually use these translations you would use dgettext which overrides your textdomain for just its call. Example:

echo _("Normal output");
echo dgettext("plugin1", "Plugin1 output");

Hope this helps...</description>
		<content:encoded><![CDATA[<p>I will have this &#8220;plugin problem&#8221; too - and very soon.</p>
<p>Thinking about it, I guess, one could translate the plugin via the usual way with e.g. poEdit - but use another textdomain for it.<br />
If your plugin is called &#8220;plugin1&#8243;, you should be able to do this:</p>
<p>bindtextdomain(&#8221;messages&#8221;, &#8220;./locale&#8221;);<br />
bind_textdomain_codeset(&#8221;messages&#8221;, &#8220;UTF-8&#8243;);<br />
bindtextdomain(&#8221;plugin1&#8243;, &#8220;./locale&#8221;);<br />
bind_textdomain_codeset(&#8221;plugin1&#8243;, &#8220;UTF-8&#8243;);<br />
textdomain(&#8221;messages&#8221;);</p>
<p>This way you need the .po and .mo files calles plugin1.mo and plugin1.po in your locale directory.</p>
<p>To actually use these translations you would use dgettext which overrides your textdomain for just its call. Example:</p>
<p>echo _(&#8221;Normal output&#8221;);<br />
echo dgettext(&#8221;plugin1&#8243;, &#8220;Plugin1 output&#8221;);</p>
<p>Hope this helps&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rado</title>
		<link>http://mel.melaxis.com/devblog/2005/08/06/localizing-php-web-sites-using-gettext/#comment-16454</link>
		<dc:creator>rado</dc:creator>
		<pubDate>Thu, 14 Feb 2008 09:36:35 +0000</pubDate>
		<guid isPermaLink="false">http://mel.melaxis.com/webdev-blog/?p=7#comment-16454</guid>
		<description>seeking for same thing :/</description>
		<content:encoded><![CDATA[<p>seeking for same thing :/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Till</title>
		<link>http://mel.melaxis.com/devblog/2005/08/06/localizing-php-web-sites-using-gettext/#comment-15151</link>
		<dc:creator>Till</dc:creator>
		<pubDate>Wed, 30 Jan 2008 19:59:17 +0000</pubDate>
		<guid isPermaLink="false">http://mel.melaxis.com/webdev-blog/?p=7#comment-15151</guid>
		<description>Must agree to Alex.
Has anyone a solution to that? (... which ‘plug into’ the core ...)</description>
		<content:encoded><![CDATA[<p>Must agree to Alex.<br />
Has anyone a solution to that? (&#8230; which ‘plug into’ the core &#8230;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Hempton-Smith</title>
		<link>http://mel.melaxis.com/devblog/2005/08/06/localizing-php-web-sites-using-gettext/#comment-14123</link>
		<dc:creator>Alex Hempton-Smith</dc:creator>
		<pubDate>Thu, 10 Jan 2008 22:41:28 +0000</pubDate>
		<guid isPermaLink="false">http://mel.melaxis.com/webdev-blog/?p=7#comment-14123</guid>
		<description>I'm working on a project at the moment that will have modules which 'plug into' the core admin panel.
How would I provide more than one translation *.mo file? One for the core and one for each of the modules.

Thanks for a great article by the way :)</description>
		<content:encoded><![CDATA[<p>I&#8217;m working on a project at the moment that will have modules which &#8216;plug into&#8217; the core admin panel.<br />
How would I provide more than one translation *.mo file? One for the core and one for each of the modules.</p>
<p>Thanks for a great article by the way <img src='http://mel.melaxis.com/devblog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Taylor</title>
		<link>http://mel.melaxis.com/devblog/2005/08/06/localizing-php-web-sites-using-gettext/#comment-12865</link>
		<dc:creator>Scott Taylor</dc:creator>
		<pubDate>Thu, 13 Dec 2007 18:55:37 +0000</pubDate>
		<guid isPermaLink="false">http://mel.melaxis.com/webdev-blog/?p=7#comment-12865</guid>
		<description>(third attempt to post this, second one got smart-quoted, which messes up the code sections)
Yes, Jaime, you can do multilingual web sites without being a programmer.  Think of PHP as tags you can embed in regular html that get special processing on the server before they are sent to the user.  

First, you need to make sure your web sever supports PHP and gettext.  Odds are pretty good that it does, but you need to check.  Make a new file and paste this into it:

&#60;?php phpinfo();?&#62;

Save the file as &#34;phpinfo.php&#34;. Transfer the file to your web server, and then load it in a browser.  If you see a long page of settings, including one that says &#34;GetText Support - enabled&#34; you are set up for localization!  If not, you are stuck, and you'll need to talk to a programmer.  

Second, you need a localized web page.  
Pablo's excellent tutorial above covers how to tag the English phrases in your page.  Make sure you save your web pages as .php instead of .html.  Here's an example web page, save it as &#34;test.php&#34;.


&#60;?php require_once &#34;localization.php&#34;;?&#62;
&#60;html&#62;&#60;head&#62;&#60;/head&#62;
&#60;body&#62;
&#60;a href=&#34;?locale=en_US&#34;&#62;English&#60;/a&#62; &#124; 
&#60;a href=&#34;?locale=es_ES&#34;&#62;Spanish&#60;/a&#62; &#124; 
&#60;a href=&#34;?locale=de_DE&#34;&#62;German&#60;/a&#62;
&#60;br&#62;
&#60;?php echo _(&#34;Hello World!&#34;);?&#62;&#60;br&#62;
&#60;p&#62;&#60;?php echo _(&#34;My name is&#34;);?&#62; Bob.&#60;/p&#62;
&#60;/body&#62;
&#60;/html&#62;


Third, you need to use Poedit to scan your web pages, enter the translations, and save the &#34;messages.mo&#34; file.  In his tutorial above, Pablo shows you how to create a German translation, but you can substitute English (en_US), Spanish (es_ES), Chinese (zh_CH), French (fr_FR), Japanese (ja_JP), etc.  In Poedit I'd suggest choosing &#34;utf-8&#34; as your charset, rather than the &#34;iso-8859-1&#34; used in the tutorial, utf-8 supports more languages.

Fourth, you need a &#34;localization.php&#34; file.  Create a new file called &#34;localization.php&#34;.  Copy this text into it:


&#60;?php
$locale = false;
if (isSet($_GET[&#34;locale&#34;])){ 
	$locale = $_GET[&#34;locale&#34;];
	setcookie(&#34;locale&#34;, $locale, time()+60*60*24*30, &#34;/&#34;);// save a cookie
}
if (!$locale &#38;&#38; isSet($_COOKIE[&#34;locale&#34;])){ 
	$locale = $_COOKIE[&#34;locale&#34;];
}
putenv(&#34;LC_ALL=$locale&#34;);//needed on some systems
putenv(&#34;LANGUAGE=$locale&#34;);//needed on some systems
setlocale(LC_ALL, $locale);
bindtextdomain(&#34;messages&#34;, &#34;./locale&#34;);
bind_textdomain_codeset(&#34;messages&#34;, &#34;UTF-8&#34;);
textdomain(&#34;messages&#34;);
?&#62;


Pablo gives a similar example above, but this one is a slight improvement, it saves a cookie so you only have to have to set your locale once.  You can also detect the user's preferred language automatically, but that's a lot more complex.

Finally, transfer your test web pages, the localization.php file, and your entire &#34;locales&#34; folder to your web server.  Bring up the &#34;test.php&#34; page in your browser.  Everything should show up in English.  Now click on the language link.  If you created a translation for that language, the page should show up translated!

If this does not work, it's time to go get a programmer.</description>
		<content:encoded><![CDATA[<p>(third attempt to post this, second one got smart-quoted, which messes up the code sections)<br />
Yes, Jaime, you can do multilingual web sites without being a programmer.  Think of PHP as tags you can embed in regular html that get special processing on the server before they are sent to the user.  </p>
<p>First, you need to make sure your web sever supports PHP and gettext.  Odds are pretty good that it does, but you need to check.  Make a new file and paste this into it:</p>
<p>&lt;?php phpinfo();?&gt;</p>
<p>Save the file as &quot;phpinfo.php&quot;. Transfer the file to your web server, and then load it in a browser.  If you see a long page of settings, including one that says &quot;GetText Support - enabled&quot; you are set up for localization!  If not, you are stuck, and you&#8217;ll need to talk to a programmer.  </p>
<p>Second, you need a localized web page.<br />
Pablo&#8217;s excellent tutorial above covers how to tag the English phrases in your page.  Make sure you save your web pages as .php instead of .html.  Here&#8217;s an example web page, save it as &quot;test.php&quot;.</p>
<p>&lt;?php require_once &quot;localization.php&quot;;?&gt;<br />
&lt;html&gt;&lt;head&gt;&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;a href=&quot;?locale=en_US&quot;&gt;English&lt;/a&gt; |<br />
&lt;a href=&quot;?locale=es_ES&quot;&gt;Spanish&lt;/a&gt; |<br />
&lt;a href=&quot;?locale=de_DE&quot;&gt;German&lt;/a&gt;<br />
&lt;br&gt;<br />
&lt;?php echo _(&quot;Hello World!&quot;);?&gt;&lt;br&gt;<br />
&lt;p&gt;&lt;?php echo _(&quot;My name is&quot;);?&gt; Bob.&lt;/p&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p>Third, you need to use Poedit to scan your web pages, enter the translations, and save the &quot;messages.mo&quot; file.  In his tutorial above, Pablo shows you how to create a German translation, but you can substitute English (en_US), Spanish (es_ES), Chinese (zh_CH), French (fr_FR), Japanese (ja_JP), etc.  In Poedit I&#8217;d suggest choosing &quot;utf-8&quot; as your charset, rather than the &quot;iso-8859-1&quot; used in the tutorial, utf-8 supports more languages.</p>
<p>Fourth, you need a &quot;localization.php&quot; file.  Create a new file called &quot;localization.php&quot;.  Copy this text into it:</p>
<p>&lt;?php<br />
$locale = false;<br />
if (isSet($_GET[&quot;locale&quot;])){<br />
	$locale = $_GET[&quot;locale&quot;];<br />
	setcookie(&quot;locale&quot;, $locale, time()+60*60*24*30, &quot;/&quot;);// save a cookie<br />
}<br />
if (!$locale &amp;&amp; isSet($_COOKIE[&quot;locale&quot;])){<br />
	$locale = $_COOKIE[&quot;locale&quot;];<br />
}<br />
putenv(&quot;LC_ALL=$locale&quot;);//needed on some systems<br />
putenv(&quot;LANGUAGE=$locale&quot;);//needed on some systems<br />
setlocale(LC_ALL, $locale);<br />
bindtextdomain(&quot;messages&quot;, &quot;./locale&quot;);<br />
bind_textdomain_codeset(&quot;messages&quot;, &quot;UTF-8&quot;);<br />
textdomain(&quot;messages&quot;);<br />
?&gt;</p>
<p>Pablo gives a similar example above, but this one is a slight improvement, it saves a cookie so you only have to have to set your locale once.  You can also detect the user&#8217;s preferred language automatically, but that&#8217;s a lot more complex.</p>
<p>Finally, transfer your test web pages, the localization.php file, and your entire &quot;locales&quot; folder to your web server.  Bring up the &quot;test.php&quot; page in your browser.  Everything should show up in English.  Now click on the language link.  If you created a translation for that language, the page should show up translated!</p>
<p>If this does not work, it&#8217;s time to go get a programmer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Taylor</title>
		<link>http://mel.melaxis.com/devblog/2005/08/06/localizing-php-web-sites-using-gettext/#comment-12864</link>
		<dc:creator>Scott Taylor</dc:creator>
		<pubDate>Thu, 13 Dec 2007 18:17:57 +0000</pubDate>
		<guid isPermaLink="false">http://mel.melaxis.com/webdev-blog/?p=7#comment-12864</guid>
		<description>(second attempt at posting this, first one got tags stripped out)
Yes, Jaime, you can do multilingual web sites without being a programmer.  Think of PHP as tags you can embed in regular html that get special processing on the server before they are sent to the user.  

First, you need to make sure your web sever supports PHP and gettext.  Odds are pretty good that it does, but you need to check.  Make a new file and paste this into it:

&#60;?php phpinfo();?&#62;

Save the file as "phpinfo.php". Transfer the file to your web server, and then load it in a browser.  If you see a long page of settings, including one that says "GetText Support - enabled" you are set up for localization!  If not, you are stuck, and you'll need to talk to a programmer.  

Second, you need a localized web page.  
Pablo's excellent tutorial above covers how to tag the English phrases in your page.  Make sure you save your web pages as .php instead of .html.  Here's an example web page, save it as "test.php".


&#60;?php require_once "localization.php";?&#62;
&#60;html&#62;&#60;head&#62;&#60;/head&#62;
&#60;body&#62;
&#60;a href="?locale=en_US"&#62;English&#60;/a&#62; &#124; 
&#60;a href="?locale=es_ES"&#62;Spanish&#60;/a&#62; &#124; 
&#60;a href="?locale=de_DE"&#62;German&#60;/a&#62;
&#60;br&#62;
&#60;?php echo _("Hello World!");?&#62;&#60;br&#62;
&#60;p&#62;&#60;?php echo _("My name is");?&#62; Bob.&#60;/p&#62;
&#60;/body&#62;
&#60;/html&#62;


Third, you need to use Poedit to scan your web pages, enter the translations, and save the "messages.mo" file.  In his tutorial above, Pablo shows you how to create a German translation, but you can substitute English (en_US), Spanish (es_ES), Chinese (zh_CH), French (fr_FR), Japanese (ja_JP), etc.  In Poedit I'd suggest choosing "utf-8" as your charset, rather than the "iso-8859-1" used in the tutorial, utf-8 supports more languages.

Fourth, you need a "localization.php" file.  Create a new file called "localization.php".  Copy this text into it:


&#60;?php
$locale = false;
if (isSet($_GET["locale"])){ 
	$locale = $_GET["locale"];
	setcookie("locale", $locale, time()+60*60*24*30, "/");// save a cookie
}
if (!$locale &#38;&#38; isSet($_COOKIE["locale"])){ 
	$locale = $_COOKIE["locale"];
}
putenv("LC_ALL=$locale");//needed on some systems
putenv("LANGUAGE=$locale");//needed on some systems
setlocale(LC_ALL, $locale);
bindtextdomain("messages", "./locale");
bind_textdomain_codeset("messages", 'UTF-8');
textdomain("messages");
?&#62;


Pablo gives a similar example above, but this one is a slight improvement, it saves a cookie so you only have to have to set your locale once.  You can also detect the user's preferred language automatically, but that's a lot more complex.

Finally, transfer your test web pages, the localization.php file, and your entire "locales" folder to your web server.  Bring up the "test.php" page in your browser.  Everything should show up in English.  Now click on the language link.  If you created a translation for that language, the page should show up translated!

If this does not work, it's time to go get a programmer.</description>
		<content:encoded><![CDATA[<p>(second attempt at posting this, first one got tags stripped out)<br />
Yes, Jaime, you can do multilingual web sites without being a programmer.  Think of PHP as tags you can embed in regular html that get special processing on the server before they are sent to the user.  </p>
<p>First, you need to make sure your web sever supports PHP and gettext.  Odds are pretty good that it does, but you need to check.  Make a new file and paste this into it:</p>
<p>&lt;?php phpinfo();?&gt;</p>
<p>Save the file as &#8220;phpinfo.php&#8221;. Transfer the file to your web server, and then load it in a browser.  If you see a long page of settings, including one that says &#8220;GetText Support - enabled&#8221; you are set up for localization!  If not, you are stuck, and you&#8217;ll need to talk to a programmer.  </p>
<p>Second, you need a localized web page.<br />
Pablo&#8217;s excellent tutorial above covers how to tag the English phrases in your page.  Make sure you save your web pages as .php instead of .html.  Here&#8217;s an example web page, save it as &#8220;test.php&#8221;.</p>
<p>&lt;?php require_once &#8220;localization.php&#8221;;?&gt;<br />
&lt;html&gt;&lt;head&gt;&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;a href=&#8221;?locale=en_US&#8221;&gt;English&lt;/a&gt; |<br />
&lt;a href=&#8221;?locale=es_ES&#8221;&gt;Spanish&lt;/a&gt; |<br />
&lt;a href=&#8221;?locale=de_DE&#8221;&gt;German&lt;/a&gt;<br />
&lt;br&gt;<br />
&lt;?php echo _(&#8221;Hello World!&#8221;);?&gt;&lt;br&gt;<br />
&lt;p&gt;&lt;?php echo _(&#8221;My name is&#8221;);?&gt; Bob.&lt;/p&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p>Third, you need to use Poedit to scan your web pages, enter the translations, and save the &#8220;messages.mo&#8221; file.  In his tutorial above, Pablo shows you how to create a German translation, but you can substitute English (en_US), Spanish (es_ES), Chinese (zh_CH), French (fr_FR), Japanese (ja_JP), etc.  In Poedit I&#8217;d suggest choosing &#8220;utf-8&#8243; as your charset, rather than the &#8220;iso-8859-1&#8243; used in the tutorial, utf-8 supports more languages.</p>
<p>Fourth, you need a &#8220;localization.php&#8221; file.  Create a new file called &#8220;localization.php&#8221;.  Copy this text into it:</p>
<p>&lt;?php<br />
$locale = false;<br />
if (isSet($_GET["locale"])){<br />
	$locale = $_GET["locale"];<br />
	setcookie(&#8221;locale&#8221;, $locale, time()+60*60*24*30, &#8220;/&#8221;);// save a cookie<br />
}<br />
if (!$locale &amp;&amp; isSet($_COOKIE["locale"])){<br />
	$locale = $_COOKIE["locale"];<br />
}<br />
putenv(&#8221;LC_ALL=$locale&#8221;);//needed on some systems<br />
putenv(&#8221;LANGUAGE=$locale&#8221;);//needed on some systems<br />
setlocale(LC_ALL, $locale);<br />
bindtextdomain(&#8221;messages&#8221;, &#8220;./locale&#8221;);<br />
bind_textdomain_codeset(&#8221;messages&#8221;, &#8216;UTF-8&#8242;);<br />
textdomain(&#8221;messages&#8221;);<br />
?&gt;</p>
<p>Pablo gives a similar example above, but this one is a slight improvement, it saves a cookie so you only have to have to set your locale once.  You can also detect the user&#8217;s preferred language automatically, but that&#8217;s a lot more complex.</p>
<p>Finally, transfer your test web pages, the localization.php file, and your entire &#8220;locales&#8221; folder to your web server.  Bring up the &#8220;test.php&#8221; page in your browser.  Everything should show up in English.  Now click on the language link.  If you created a translation for that language, the page should show up translated!</p>
<p>If this does not work, it&#8217;s time to go get a programmer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damian</title>
		<link>http://mel.melaxis.com/devblog/2005/08/06/localizing-php-web-sites-using-gettext/#comment-8736</link>
		<dc:creator>Damian</dc:creator>
		<pubDate>Mon, 17 Sep 2007 16:03:09 +0000</pubDate>
		<guid isPermaLink="false">http://mel.melaxis.com/webdev-blog/?p=7#comment-8736</guid>
		<description>The correct URL for poEdit's website is www.poedit.net.</description>
		<content:encoded><![CDATA[<p>The correct URL for poEdit&#8217;s website is <a href="http://www.poedit.net" rel="nofollow">http://www.poedit.net</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jaime G.</title>
		<link>http://mel.melaxis.com/devblog/2005/08/06/localizing-php-web-sites-using-gettext/#comment-8502</link>
		<dc:creator>Jaime G.</dc:creator>
		<pubDate>Tue, 11 Sep 2007 11:08:25 +0000</pubDate>
		<guid isPermaLink="false">http://mel.melaxis.com/webdev-blog/?p=7#comment-8502</guid>
		<description>Great article. I'm not a programmer, just a writer, and belong to a multilingual community. I got as far as editing my strings in poedit, however after that I wasn't able to do anymore. As I mentioned before, I'm not a programmer, and don't know what is going on in the Php code, I only know simple Html. Is there anyway I can make my site multilingual, without having to know Php? I think I didn't "include" the "localization.php" file correctly. If you know any resource for a non programmer such as myself, I'd appreciate it a lot thank you.

Jaime</description>
		<content:encoded><![CDATA[<p>Great article. I&#8217;m not a programmer, just a writer, and belong to a multilingual community. I got as far as editing my strings in poedit, however after that I wasn&#8217;t able to do anymore. As I mentioned before, I&#8217;m not a programmer, and don&#8217;t know what is going on in the Php code, I only know simple Html. Is there anyway I can make my site multilingual, without having to know Php? I think I didn&#8217;t &#8220;include&#8221; the &#8220;localization.php&#8221; file correctly. If you know any resource for a non programmer such as myself, I&#8217;d appreciate it a lot thank you.</p>
<p>Jaime</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: B. Peter</title>
		<link>http://mel.melaxis.com/devblog/2005/08/06/localizing-php-web-sites-using-gettext/#comment-7070</link>
		<dc:creator>B. Peter</dc:creator>
		<pubDate>Tue, 07 Aug 2007 14:59:29 +0000</pubDate>
		<guid isPermaLink="false">http://mel.melaxis.com/webdev-blog/?p=7#comment-7070</guid>
		<description>Thank you for your great article.

I use Debian linux, apache 2 and php 5. I had to change only one line in your script:

putenv("LANGUAGE=$locale");

Peter</description>
		<content:encoded><![CDATA[<p>Thank you for your great article.</p>
<p>I use Debian linux, apache 2 and php 5. I had to change only one line in your script:</p>
<p>putenv(&#8221;LANGUAGE=$locale&#8221;);</p>
<p>Peter</p>
]]></content:encoded>
	</item>
</channel>
</rss>
