Hey,
how can i make all the language variables of a language set usable in a plugin file? i mean the ones in inc/plugins. i tried it with global but that is not working, so please help me.
thanks
function your_plugin_function()
{
global $lang;
error($lang->yes);
}
Sorry, I was not specific enough. Again.
In my plugin_activation() I write data in the db and some of the data are language variables of the file $language/admin/index.php
How can I include this file?
I tried it this way but it is not working because of the server configuration
require_once ($mybb->settings['bburl']."/languages/".$mybb->settings['cplanguage']."/admin/index.php");
Are you sure you're not spelling the filename wrong? Language files are in the format index.lang.php not index.php
function mything_activate()
{
global $lang, $db;
$lang->load('index');
$db->do_some_stuff($lang->my_thingo);
}
?