<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — Will extensions be multilingual?]]></title>
		<link>https://punbb.informer.com/forums/topic/18430/will-extensions-be-multilingual/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/18430/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Will extensions be multilingual?.]]></description>
		<lastBuildDate>Sun, 17 Feb 2008 20:21:23 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Will extensions be multilingual?]]></title>
			<link>https://punbb.informer.com/forums/post/109861/#p109861</link>
			<description><![CDATA[<p>That is smart Gizzmo, thanks for sharing <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (kierownik)]]></author>
			<pubDate>Sun, 17 Feb 2008 20:21:23 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/109861/#p109861</guid>
		</item>
		<item>
			<title><![CDATA[Re: Will extensions be multilingual?]]></title>
			<link>https://punbb.informer.com/forums/post/109850/#p109850</link>
			<description><![CDATA[<p>similar to what kierownik said, with my extentions i added to the hook &quot;co_common&quot; (seems to be the first one found)<br /></p><div class="codebox"><pre><code>if (file_exists(PUN_ROOT.&#039;extensions/&lt;extension&gt;/lang_&#039;.$pun_user[&#039;language&#039;].&#039;.php&#039;))
    require PUN_ROOT.&#039;extensions/&lt;extension&gt;/lang_&#039;.$pun_user[&#039;language&#039;].&#039;.php&#039;;
else
    require PUN_ROOT.&#039;extensions/&lt;extension&gt;/lang_English.php&#039;;</code></pre></div><p>also in the install block i add this<br /></p><div class="codebox"><pre><code>if (!file_exists(PUN_ROOT.&#039;extensions/&lt;extension&gt;/lang_&#039;.$pun_user[&#039;language&#039;].&#039;.php&#039;))
    $notices[] = &#039;This Extension does not support your current language and will use the english one.&#039;;</code></pre></div><p><em>replacing &lt;extension&gt; with your extension name of corse</em><br />With this scheme you don&#039;t have multiple folders with one file in them</p>]]></description>
			<author><![CDATA[null@example.com (Gizzmo)]]></author>
			<pubDate>Sun, 17 Feb 2008 19:44:50 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/109850/#p109850</guid>
		</item>
		<item>
			<title><![CDATA[Re: Will extensions be multilingual?]]></title>
			<link>https://punbb.informer.com/forums/post/109824/#p109824</link>
			<description><![CDATA[<p>The way kierownik suggested is the way I would suggest extension authors allow for localization.</p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Sun, 17 Feb 2008 14:49:38 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/109824/#p109824</guid>
		</item>
		<item>
			<title><![CDATA[Re: Will extensions be multilingual?]]></title>
			<link>https://punbb.informer.com/forums/post/109813/#p109813</link>
			<description><![CDATA[<p>One solution is the one I came up with for Publish Topics:<br /></p><div class="codebox"><pre><code>if (!isset($lang_topic[&#039;Unpublish&#039;]))
        $lang_topic[&#039;Unpublish&#039;] = &#039;Unpublish&#039;;</code></pre></div><p>Doing it that way makes it possible to put translations in extensions. If someone makes a system for automatically keeping extensions updated then it won&#039;t be very hard to &quot;push&quot; translations of extensions.</p>]]></description>
			<author><![CDATA[null@example.com (intedinmamma)]]></author>
			<pubDate>Sun, 17 Feb 2008 12:18:35 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/109813/#p109813</guid>
		</item>
		<item>
			<title><![CDATA[Re: Will extensions be multilingual?]]></title>
			<link>https://punbb.informer.com/forums/post/109812/#p109812</link>
			<description><![CDATA[<p>And if they do they have to put in something like this:<br /></p><div class="codebox"><pre><code>if ( file_exists ( &#039;extensions/gallery/lang/&#039;.$pun_user[&#039;language&#039;].&#039;/gallery.php&#039; ) ) {
  require PUN_ROOT.&#039;extensions/gallery/lang/&#039;.$pun_user[&#039;language&#039;].&#039;/gallery.php&#039;;
} else {
  require PUN_ROOT.&#039;extensions/gallery/lang/English/gallery.php&#039;;
}</code></pre></div><p>Otherwise the extension will not work <img src="https://punbb.informer.com/forums/img/smilies/hmm.png" width="15" height="15" alt="hmm" /></p>]]></description>
			<author><![CDATA[null@example.com (kierownik)]]></author>
			<pubDate>Sun, 17 Feb 2008 11:22:34 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/109812/#p109812</guid>
		</item>
		<item>
			<title><![CDATA[Re: Will extensions be multilingual?]]></title>
			<link>https://punbb.informer.com/forums/post/109811/#p109811</link>
			<description><![CDATA[<p>If the developer chooses to do so, they will be.</p>]]></description>
			<author><![CDATA[null@example.com (elbekko)]]></author>
			<pubDate>Sun, 17 Feb 2008 10:35:19 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/109811/#p109811</guid>
		</item>
		<item>
			<title><![CDATA[Will extensions be multilingual?]]></title>
			<link>https://punbb.informer.com/forums/post/109807/#p109807</link>
			<description><![CDATA[<p>I&#039;ve checked some extensions of 1.3 Beta, and checked those codes inside files. Unfortunately, I found those extensions don&#039;t include multilingual sentences except English ones. Will this problem be solved in the future?</p>]]></description>
			<author><![CDATA[null@example.com (Meowmeow)]]></author>
			<pubDate>Sun, 17 Feb 2008 04:43:54 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/109807/#p109807</guid>
		</item>
	</channel>
</rss>
