diff options
author | Evan Prodromou <evan@status.net> | 2010-09-21 14:07:48 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-09-21 14:07:48 -0400 |
commit | 78ed0348b0eaaebf7a51d55adc7e746cc5b43bbf (patch) | |
tree | 26545c5badcfcf54956f67d813c97b2f3eb3c84e /scripts | |
parent | dffec9f223c1e45832d274c34f7bd6624cbf87ea (diff) | |
parent | d342899677d208d7e300b29ad3a8d053e4c6f704 (diff) |
Merge remote branch 'gitorious/0.9.x' into 0.9.x
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/update_po_templates.php | 42 | ||||
-rwxr-xr-x | scripts/update_translations.php | 2 |
2 files changed, 1 insertions, 43 deletions
diff --git a/scripts/update_po_templates.php b/scripts/update_po_templates.php index f10f20842..a0ab5819d 100755 --- a/scripts/update_po_templates.php +++ b/scripts/update_po_templates.php @@ -81,45 +81,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 = <<<END ---- -BASIC: - id: out-statusnet-{$pluginlc} - label: StatusNet - {$plugin} - namespace: NS_STATUSNET - description: "{{int:bw-desc-statusnet-plugin}}" - class: FileBasedMessageGroup - display: out/statusnet/{$pluginlc} - -FILES: - class: GettextFFS - sourcePattern: %GROUPROOT%/statusnet/plugins/{$plugin}/locale/{$plugin}.pot - targetPattern: statusnet/plugins/{$plugin}/locale/%CODE%/LC_MESSAGES/{$plugin}.po - codeMap: - en-gb: en_GB - no: nb - pt-br: pt_BR - zh-hans: zh_CN - zh-hant: zh_TW - -MANGLER - class: StringMatcher - prefix: {$pluginlc}- - patterns: - - "*" - -END; - file_put_contents($outfile, $data); -} - function get_plugins($dir) { $plugins = array(); @@ -168,7 +129,6 @@ function update_plugin($basedir, $name) $dir = "$basedir/plugins/$name"; if (plugin_using_gettext($dir)) { do_update_plugin($dir, $name); - do_translatewiki_plugin($basedir, $name); return true; } else { return false; @@ -200,8 +160,6 @@ foreach ($args as $arg) { } } - - if ($all || $core) { echo "core..."; update_core(INSTALLDIR, 'statusnet'); diff --git a/scripts/update_translations.php b/scripts/update_translations.php index 89d937e9d..1fe513b13 100755 --- a/scripts/update_translations.php +++ b/scripts/update_translations.php @@ -77,7 +77,7 @@ foreach ($languages as $language) { http_build_query(array( 'title' => 'Special:Translate', 'task' => 'export-to-file', - 'group' => 'out-statusnet', + 'group' => 'out-statusnet-core', 'language' => $twnCode)); $lcdir = INSTALLDIR . '/locale/' . $code; |