From 3b7084c6ddc9277ec9ed47a0fbd403407f27a7e8 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 24 Feb 2010 16:34:45 -0800 Subject: Fix update_po_templates.php to support the plural and context variants of _m() in plugins --- scripts/update_po_templates.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'scripts') 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); } } -- cgit v1.2.3