<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : sed_build_lang</title>
		<link>https://www.cotonti.com</link>
		<description>Son konu mesajları</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Sun, 12 Apr 2026 15:08:42 -0000</pubDate>

		<item>
			<title>Trustmaster</title>
			<description><![CDATA[Well, the thing about langfiles is that plug.inc.php does that automatically. But we can add sed_langfile() function just in some cases when it doesn't (e.g. the name of the langfile is different or it's from a different plugin). Just let's call it <strong>sed_langfile</strong> similar to sed_skinfile which we already have.]]></description>
			<pubDate>Cmt, 27 Ara 2008 03:47:19 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=940&d=0#post2696]]></link>
		</item>
		<item>
			<title>esclkm</title>
			<description><![CDATA[The most of plugins use lang files/<br />
I think that must exist function, which help us to include in module lang file in one string.Smth like this:<br />
<div class="highlight"><pre class="php">
function sed_build_lang($plugin)
{
if (@file_exists($cfg&#091;'plugins_dir'&#093;.'/'.$plugin.'/lang/'.$plugin.'.'.$usr&#091;'lang'&#093;.'.lang.php'))
{
	require_once($cfg&#091;'plugins_dir'&#093;.'/'.$plugin.'/lang/'.$plugin.'.'.$usr&#091;'lang'&#093;.'.lang.php');
}
else
{
	require_once($cfg&#091;'plugins_dir'&#093;.'/'.$plugin.'/lang/'$plugin'.en.lang.php');
}
}
</pre></div>]]></description>
			<pubDate>Cmt, 27 Ara 2008 03:32:25 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=940&d=0#post2694]]></link>
		</item>
	</channel>
</rss>