summaryrefslogtreecommitdiff
path: root/scripts/update_po_templates.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-02-24 16:52:16 -0800
committerZach Copley <zach@status.net>2010-02-24 16:52:16 -0800
commit10884dcd49da8db1fcca3cbbef0f85869d43520e (patch)
tree7c8376ed6cea7c971faacaa6e223a670d0e6481f /scripts/update_po_templates.php
parent543ff40ef62f2587cde084b03bcf2e956f52ce2f (diff)
parent5173d92895e892412e8a8c10b4e434c924593c99 (diff)
Merge branch 'testing' of gitorious.org:statusnet/mainline into testing
* 'testing' of gitorious.org:statusnet/mainline: Merge StatusNet core localization updates from 0.9.x branch Fix update_po_templates.php to support the plural and context variants of _m() in plugins Drop HTMLPurifier; we don't need its extra capabilities and we're already using htmLawed which is lighter-weight. OStatus: handle update-profile Salmon pings Revert "Updated jQuery Form Plugin from v2.17 to v2.36" OStatus: disable HTMLPurify cache unless we've configured a writable path for it.
Diffstat (limited to 'scripts/update_po_templates.php')
-rwxr-xr-xscripts/update_po_templates.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/update_po_templates.php b/scripts/update_po_templates.php
index f882f673a..61a6ac783 100755
--- a/scripts/update_po_templates.php
+++ b/scripts/update_po_templates.php
@@ -63,7 +63,10 @@ xgettext \
--output=locale/$domain.po \
--language=PHP \
--keyword='' \
- --keyword="_m:1" \
+ --keyword="_m:1,1t" \
+ --keyword="_m:1c,2,2t" \
+ --keyword="_m:1,2,3t" \
+ --keyword="_m:1c,2,3,4t" \
END;
foreach ($files as $file) {
@@ -186,6 +189,9 @@ foreach ($args as $arg) {
$allplugins = true;
} elseif (substr($arg, 0, 9) == "--plugin=") {
$plugins[] = substr($arg, 9);
+ } elseif ($arg == '--help') {
+ echo "options: --all --core --plugins --plugin=Foo\n\n";
+ exit(0);
}
}