X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fupdate_po_templates.php;h=a5730e6d2f7f43955e08db8173ec5049c671ae36;hb=c18020561b8a01bbb2b3fc092694a7bb0fde70f9;hp=0bfa62a22e79d2c47a8bfb84094a6d3cb4c3bf5e;hpb=714d920faea302b55857cc3bec4e9e6160ea136a;p=quix0rs-gnu-social.git diff --git a/scripts/update_po_templates.php b/scripts/update_po_templates.php index 0bfa62a22e..a5730e6d2f 100755 --- a/scripts/update_po_templates.php +++ b/scripts/update_po_templates.php @@ -34,7 +34,7 @@ function update_core($dir, $domain) xgettext \ --from-code=UTF-8 \ --default-domain=$domain \ - --output=locale/$domain.po \ + --output=locale/$domain.pot \ --language=PHP \ --add-comments=TRANS \ --keyword="_m:1,1t" \ @@ -43,6 +43,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 \ @@ -64,7 +65,7 @@ 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='' \ @@ -81,45 +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"; - $pluginlc = strtolower( $plugin ); - $data = <<