]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/update_po_templates.php
Merge branch 'testing' into 0.9.x
[quix0rs-gnu-social.git] / scripts / update_po_templates.php
index 61a6ac78331d543f66af381255961b103ee9f15a..af9ed8d208aab46b00309d1097522899cd4e430a 100755 (executable)
@@ -34,9 +34,13 @@ function update_core($dir, $domain)
 xgettext \
     --from-code=UTF-8 \
     --default-domain=$domain \
-    --output=locale/$domain.po \
+    --output=locale/$domain.pot \
     --language=PHP \
-    --keyword="_m:1" \
+    --add-comments=TRANS \
+    --keyword="_m:1,1t" \
+    --keyword="_m:1c,2,2t" \
+    --keyword="_m:1,2,3t" \
+    --keyword="_m:1c,2,3,4t" \
     --keyword="pgettext:1c,2" \
     --keyword="npgettext:1c,2,3" \
     actions/*.php \
@@ -60,8 +64,9 @@ function do_update_plugin($dir, $domain)
 xgettext \
     --from-code=UTF-8 \
     --default-domain=$domain \
-    --output=locale/$domain.po \
+    --output=locale/$domain.pot \
     --language=PHP \
+    --add-comments=TRANS \
     --keyword='' \
     --keyword="_m:1,1t" \
     --keyword="_m:1c,2,2t" \