<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Need Help with localization php code to include languages' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Need Help with localization php code to include languages' posted on the 'PHP' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Wed, 19 Jun 2013 23:57:33 -0700</pubDate>
    <lastBuildDate>Wed, 19 Jun 2013 23:57:33 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Need Help with localization php code to include languages</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/420618/420618/need-help-with-localization-php-code-to-include-languages/</link>
      <description>&lt;br /&gt;
Hello there,&lt;br /&gt;
&lt;br /&gt;
I have a CMS which I've trying to create localization for. The idea is in the admin area you check a radio button and it changes the language of the entire admin interface. There is a mysql database with a table called nb_settings that has a column called lang. Up to this point I've gotten it to work but am having problems adding additional languages. The localization files have names like lang.nl.php,lang.en.php and so on..&lt;br /&gt;
&lt;br /&gt;
The original code that works is this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php &lt;br /&gt;
 if($row['lang'] == nl) &lt;br /&gt;
 { &lt;br /&gt;
echo '&amp;lt;input name="lang" type="radio" value="nl" checked="checked" /&amp;gt; '.($_CONSTANTS['NL']).'&lt;br /&gt;
&amp;lt;input name="lang" type="radio" value="en" /&amp;gt; '.($_CONSTANTS['EN']).'&lt;br /&gt;
&amp;lt;input name="lang" type="radio" value="de" /&amp;gt; '.($_CONSTANTS['DE']).'';&lt;br /&gt;
 } &lt;br /&gt;
 elseif($row['lang'] == en) &lt;br /&gt;
 { &lt;br /&gt;
 echo '&amp;lt;input name="lang" type="radio" value="nl" /&amp;gt; '.($_CONSTANTS['NL']).'&lt;br /&gt;
    &amp;lt;input name="lang" type="radio" value="en" checked="checked" /&amp;gt; '.($_CONSTANTS['EN']).'&lt;br /&gt;
&amp;lt;input name="lang" type="radio" value="de" /&amp;gt; '.($_CONSTANTS['DE']).''; &lt;br /&gt;
 } &lt;br /&gt;
 elseif($row['lang'] == de) &lt;br /&gt;
 { &lt;br /&gt;
 echo '&amp;lt;input name="lang" type="radio" value="nl" /&amp;gt; '.($_CONSTANTS['NL']).'&lt;br /&gt;
    &amp;lt;input name="lang" type="radio" value="en" /&amp;gt; '.($_CONSTANTS['EN']).'&lt;br /&gt;
&amp;lt;input name="lang" type="radio" value="de" checked="checked" /&amp;gt; '.($_CONSTANTS['DE']).''; &lt;br /&gt;
 } &lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
But I am havng trouble adding for more languages. Can anyone help me out with how to add additional languages?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/420618/420618/need-help-with-localization-php-code-to-include-languages/</guid>
      <pubDate>Thu, 30 Dec 2010 03:28:42 -0700</pubDate>
      <category>PHP</category>
    </item>
    <item>
      <title>Re: Need Help with localization php code to include languages</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/420618/420766/re-need-help-with-localization-php-code-to-include-languages/#420766</link>
      <description>Hi, guys&lt;br /&gt;
You can use &lt;a href="http://www.phpkode.com/scripts/category/php-localization/"&gt;PHP localization&lt;/a&gt; scripts to meet your demands&lt;br /&gt;
Hopefully can help you!&lt;br /&gt;
Regards!&lt;br /&gt;
Anny!&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/420618/420766/re-need-help-with-localization-php-code-to-include-languages/#420766</guid>
      <pubDate>Wed, 05 Jan 2011 20:26:58 -0700</pubDate>
      <category>PHP</category>
    </item>
  </channel>
</rss>