MyBB Community Forums

Full Version: how can i add new language variables?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i created new template and now i need to add new language variables.
i made a new file and added my language variables but when i tested it i couldn't see anything in my template? Anyone can help me?
You need to load your language file within the PHP script before it's variables will be available within the template. For example, the language strings in index.lang.php are available in the index templates because this code exists towards the top of index.php.

$lang->load('index');