MyBB Community Forums

Full Version: Language file
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a quick question...

In the language files, I sometimes see a {1} or a {2} which sometimes displays as the username. How do I edit the {1} or the {2} tags?

Thanks.
They're filled in the PHP. An example from ./online.php:

$onlinetoday = $lang->sprintf($lang->members_were_online_today, $todaycount);

$lang->members_were_online_today loads the language file, $todaycount would replace the {1}. If it was this:

$onlinetoday = $lang->sprintf($lang->members_were_online_today, $todaycount, $something, $somethingelse);

then $something would replace the {2} and $somethingelse would replace the {3} in the language string.