summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiebrand Mazeland <s.mazeland@xs4all.nl>2010-09-18 00:23:38 +0200
committerSiebrand Mazeland <s.mazeland@xs4all.nl>2010-09-18 00:23:38 +0200
commit234b1e6c236118d915af458b8db966e425645d68 (patch)
tree32d9044846833bc9b3d1adc02bb76394065ca4d7
parent88f3b51affe662783a0f6d01c920dada9e865757 (diff)
Remove do_translatewiki_plugin(). No longer needed.
Replaced by MediaWiki Translate extension script http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/Translate/scripts/genStatusNetPluginsConfig.php?view=markup
-rwxr-xr-xscripts/update_po_templates.php42
1 files changed, 0 insertions, 42 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');