X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FOStatus%2Ftests%2Fgettext-speedtest.php;h=52c8252c1394cf1058d42c738e9821a5097928a3;hb=d6b28c64830f632bb2f4b6f3c9369b9e56ad217a;hp=8bbdf5e899a4e2d8817a83ad67fac901db82952e;hpb=32084e33a266797b306158df29e48f057651b410;p=quix0rs-gnu-social.git diff --git a/plugins/OStatus/tests/gettext-speedtest.php b/plugins/OStatus/tests/gettext-speedtest.php index 8bbdf5e899..52c8252c13 100644 --- a/plugins/OStatus/tests/gettext-speedtest.php +++ b/plugins/OStatus/tests/gettext-speedtest.php @@ -6,10 +6,10 @@ if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) { } define('INSTALLDIR', realpath(dirname(__FILE__) . '/../../..')); -define('STATUSNET', true); -define('LACONICA', true); +define('GNUSOCIAL', true); +define('STATUSNET', true); // compatibility -require_once INSTALLDIR . '/scripts/commandline.inc'; +require_once INSTALLDIR . '/scripts/commandline.inc.php'; require_once INSTALLDIR . '/extlib/php-gettext/gettext.inc'; common_init_locale("en_US"); @@ -54,6 +54,7 @@ $delta["_dgettext"] = array((microtime(true) - $start) / $times, $result); $start = microtime(true); for($i = 0; $i < $times; $i++) { + // TRANS: String in the gettext speed test script. Unimportant. $result = _m("Feeds"); } $delta["_m"] = array((microtime(true) - $start) / $times, $result);