2008-08-16, 12:05 PM
Hello,
is there a possibility so provide language support for own plugins?
Something like this should work:
Could something like this work:
is there a possibility so provide language support for own plugins?
Something like this should work:
$lang->load("plugins/bdnames");
$bdnames_setting_1 = array(
"sid" => "NULL",
"name" => "bdnames_use_advanced",
"title" => $lang->bdnames_use_advanced,
"description" => $lang->bdnames_use_advanced_description,
"optionscode" => "yesno",
"value" => "1",
"disporder" => "1",
"gid" => intval($gid),
);
But this sets the language at the activation of my plugin. How can i make it depending on the users language?Could something like this work:
$bdnames_setting_1 = array(
"sid" => "NULL",
"name" => "bdnames_use_advanced",
"title" => '$lang->bdnames_use_advanced',
"description" => '$lang->bdnames_use_advanced_description',
"optionscode" => "yesno",
"value" => "1",
"disporder" => "1",
"gid" => intval($gid),
);
I think not realy, because how does the mybb knows which file it should load?