<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1040920" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1040920</link>
    <description></description>
    <language>en</language>
          <item>
    <title>I think I actually</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/multilingual-web-app#comment-1229346</link>
    <description> &lt;p&gt;I think I actually understand what&#039;s going on with t(). Thanks Jeeves and Drupal writers &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt;.&lt;/p&gt;
&lt;p&gt;I like t() because it is something that can be ported to different languages pretty easily. I didn&#039;t want to use something that was too PHP specific because I might have to do something like this in another language.&lt;/p&gt;
&lt;p&gt;Thanks for the help guys.&lt;/p&gt;
 </description>
     <pubDate>Wed, 26 Mar 2008 18:03:15 +0000</pubDate>
 <dc:creator>teammatt3</dc:creator>
 <guid isPermaLink="false">comment 1229346 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>This is done in Drupal by</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/multilingual-web-app#comment-1229331</link>
    <description> &lt;p&gt;This is done in Drupal by running all strings through the &lt;a href=&quot;http://api.drupal.org/api/function/t&quot;&gt;t()&lt;/a&gt; function, which implements the &lt;a href=&quot;http://api.drupal.org/api/function/locale/6&quot;&gt;locale.module&lt;/a&gt;. The part where translations are loaded is &lt;a href=&quot;http://api.drupal.org/api/function/locale_system_update/6&quot;&gt;locale_system_update()&lt;/a&gt;. Drupal loads them into the db via a batch operation.&lt;/p&gt;
&lt;p&gt;Think the convention, in Gettext as pr0gr4mm3r pointed out, is to run all strings shown in your interface through a translate function (such as t() or _() ). Then store the translations in a &lt;em&gt;po&lt;/em&gt; or &lt;em&gt;translations&lt;/em&gt; directory (however that best fits in with the system you&#039;re building), when &lt;em&gt;t()&lt;/em&gt; is called it looks the string up in the file(s) contained in &lt;em&gt;translations&lt;/em&gt; directory. If there is a substitute string, and that string is for the language the user has selected then return it. Otherwise &lt;em&gt;t()&lt;/em&gt; should just return the string originally given to it.&lt;/p&gt;
&lt;p&gt;A bit confusing, but hope this helps. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 25 Mar 2008 20:25:24 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1229331 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>The best way would probably</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/multilingual-web-app#comment-1229305</link>
    <description> &lt;p&gt;The best way would probably to see how other scripts like Wordpress or Drupal do it.&lt;/p&gt;
&lt;p&gt;It looks like PHP will support i18n in version 6. (&lt;a href=&quot;http://us2.php.net/ini:&quot;&gt;link&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://mel.melaxis.com/devblog/2005/08/06/localizing-php-web-sites-using-gettext/&quot;&gt;Gettext&lt;/a&gt; seems to be the most popular way to do it.  I read through the tutorial, and I think that&#039;s what Wordpress uses.&lt;/p&gt;
 </description>
     <pubDate>Mon, 24 Mar 2008 13:18:28 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1229305 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
