2013-06-16, 09:42 PM
2013-06-16, 10:15 PM
They're passed to the method call MyLanguage::sprintf(). The first argument is the language key and the ones that follow are what the placeholders will be replaced with.
Example:
$totaltime is {1}, $querycount is {2}, and so on.
Example:
$lang->sprintf($lang->generated_in, $totaltime, $querycount, $memory_usage);
$totaltime is {1}, $querycount is {2}, and so on.
2013-06-16, 10:20 PM
(2013-06-16, 10:15 PM)Nathan Malcolm Wrote: [ -> ]They're passed to the method call MyLanguage::sprintf(). The first argument is the language key and the ones that follow are what the placeholders will be replaced with.
Example:
$lang->sprintf($lang->generated_in, $totaltime, $querycount, $memory_usage);
$totaltime is {1}, $querycount is {2}, and so on.
So where would that be at?
2013-06-17, 06:01 AM
(2013-06-16, 10:20 PM)MYBB GHOST Wrote: [ -> ](2013-06-16, 10:15 PM)Nathan Malcolm Wrote: [ -> ]They're passed to the method call MyLanguage::sprintf(). The first argument is the language key and the ones that follow are what the placeholders will be replaced with.
Example:
$lang->sprintf($lang->generated_in, $totaltime, $querycount, $memory_usage);
$totaltime is {1}, $querycount is {2}, and so on.
So where would that be at?
Wherever you want it to be. $lang->sprintf() is a type of function, where it is called is dependant on what you want to change. Like the line Nathan mentioned, it's at about line 171 in admin/inc/class_page.php, it is for the text at the bottom of the Admin CP (Generated in 0.0003523456 seconds with 9 queries, for example).