]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/OStatus/tests/gettext-speedtest.php
Merge remote-tracking branch 'upstream/master' into social-master
[quix0rs-gnu-social.git] / plugins / OStatus / tests / gettext-speedtest.php
index 8bbdf5e899a4e2d8817a83ad67fac901db82952e..52c8252c1394cf1058d42c738e9821a5097928a3 100644 (file)
@@ -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);