MyBB Community Forums

Full Version: Problem with adding own .lang.php-file
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Could someone please help me? I created a file called mymisc.lang.php and wrote:

<?php
$1['specialthanks'] = "Special Thanks";
>


Then I uploaded it.
Then I translated it to German:

<?php
$['specialthanks'] = "Danksagungen";
>


I visited my forum, everything was okay. I went to the Admin CP and everything was okay. I went to Language Packets-->English-->mymisc.lang.php and everything went white except for the frame! I went back and tried to use it in a Template: MY WHOLE BOARD WENT WHITE (although I could still access admin cp)! I undid the template editing and everything was fine.

What did I do wrong?
There's a ";" missing ?

$['specialthanks'] = "Danksagungen";
Oh no sorry, I had a ";" there, I just forgot it here. Can't be that.
why (also where) do you want to use this language variable?
On the index page. I would like use it in the index_stats template below the statistics as a section "Special Thanks" and list people who have done something for the forum.

EDIT: You know, I want that english speaking people understand what those names mean as well as german speaking people.
At the end of the PHP file you need
?>
instead of just
>