MyBB Community Forums

Full Version: Language Files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
*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:
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";
You're missing the point of using language files with some of those. There's no point in putting a time and date in a language file, work that out with PHP, and if you're using it for form button, put the HTML for the button in your normal page and just put the text to show in the language file.

Without seeing the other code you're using though, nobody's going to be able to suggest what's going wrong.
No, it is a set date/time for a reason, not the current time.
As for the form stuff, I'll place it there in a bit.
http://pastebin.com/MBs0G7yx -> That's all there is in the php file.
As for the language file, it remains the same.