X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fupdate_po_templates.php;h=a5730e6d2f7f43955e08db8173ec5049c671ae36;hb=c18020561b8a01bbb2b3fc092694a7bb0fde70f9;hp=83bff6d8067add76e3eecb82d0cd69a7cee8a797;hpb=e9b733e7f036bc03353ae6dd7b096ea179698a4d;p=quix0rs-gnu-social.git diff --git a/scripts/update_po_templates.php b/scripts/update_po_templates.php index 83bff6d806..a5730e6d2f 100755 --- a/scripts/update_po_templates.php +++ b/scripts/update_po_templates.php @@ -34,11 +34,16 @@ 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" \ + index.php \ actions/*.php \ classes/*.php \ lib/*.php \ @@ -60,10 +65,14 @@ 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" \ + --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) { @@ -73,44 +82,6 @@ END; chdir($old); } -function do_translatewiki_plugin($basedir, $plugin) -{ - $yamldir = "$basedir/locale/TranslateWiki"; - if (!file_exists($yamldir)) { - mkdir($yamldir); - } - $outfile = "$yamldir/StatusNet-{$plugin}.yml"; - $data = <<