]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/update_po_templates.php
Make attachment fit better in notice: drop text and link
[quix0rs-gnu-social.git] / scripts / update_po_templates.php
index a0ab5819d562a21d3e76b370ed026ca8c39162cb..c77d7e8a91b0e84de74ed2e2bbc5b53738f78f1a 100755 (executable)
@@ -24,7 +24,8 @@ if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) {
     exit();
 }
 
-define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
+define('INSTALLDIR', dirname(__DIR__));
+define('PUBLICDIR', INSTALLDIR . DIRECTORY_SEPARATOR . 'public');
 
 function update_core($dir, $domain)
 {
@@ -43,6 +44,7 @@ xgettext \
     --keyword="_m:1c,2,3,4t" \
     --keyword="pgettext:1c,2" \
     --keyword="npgettext:1c,2,3" \
+    index.php \
     actions/*.php \
     classes/*.php \
     lib/*.php \