2010-10-01, 10:23 PM
*Note*
This isn't anything to do with MyBB itself, other than it's a method from MyBB.
*****
I included in a non-MyBB file the text:
Then placed global.lang.php in ./inc/languages/english
. relative to the path of the file it's called from of course.
Now, it works, somewhat..
When called upon, 3/8 of the $lang->'s work.
This isn't anything to do with MyBB itself, other than it's a method from MyBB.
*****
I included in a non-MyBB file the text:
Quote:define('IN_MYBB', 1); // (1a)
require "../forum/global.php"; // (1b)
$lang->load("global");
Then placed global.lang.php in ./inc/languages/english
. relative to the path of the file it's called from of course.
Now, it works, somewhat..
When called upon, 3/8 of the $lang->'s work.
Quote:$l['login'] = "Login";
$l['login_username'] = "Username:";
$l['login_password'] = "Password:";
$l['login_password_confirm'] = "Confirm Password:";
$l['reset'] = "<input type='reset' value='Reset' />";
$l['submit'] = "<input type='submit' value='Submit' />";
$l['user'] = "User";
$l['date'] = "03-27-2010 7:15 PM";