summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2010-01-14 01:50:21 +0000
committerSarven Capadisli <csarven@status.net>2010-01-14 01:50:21 +0000
commit085406ea88efd4caaad3933871554dd30a23eba6 (patch)
tree78828e20ad893a84060090395b06e365e7123467 /scripts
parentacc48289e5f87e879e6a1182b43e405016e675d6 (diff)
parentfba840ed568222b082dbac81cd8e38217d53a7ec (diff)
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/update_po_templates.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/update_po_templates.php b/scripts/update_po_templates.php
index 83bff6d80..f882f673a 100755
--- a/scripts/update_po_templates.php
+++ b/scripts/update_po_templates.php
@@ -80,20 +80,21 @@ function do_translatewiki_plugin($basedir, $plugin)
mkdir($yamldir);
}
$outfile = "$yamldir/StatusNet-{$plugin}.yml";
+ $pluginlc = strtolower( $plugin );
$data = <<<END
---
BASIC:
- id: out-statusnet-{$plugin}
+ id: out-statusnet-{$pluginlc}
label: StatusNet - {$plugin}
- description: "{{int:bw-desc-statusnet-plugin-{$plugin}}}"
+ description: "{{int:bw-desc-statusnet-plugin-{$pluginlc}}}"
namespace: NS_STATUSNET
- display: out/statusnet/{$plugin}
+ display: out/statusnet/{$pluginlc}
class: GettextMessageGroup
FILES:
class: GettextFFS
sourcePattern: %GROUPROOT%/plugins/{$plugin}/locale/%CODE%/LC_MESSAGES/{$plugin}.po
- targetPattern: {$plugin}.po
+ targetPattern: plugins/{$plugin}/locale/%CODE%/LC_MESSAGES/{$plugin}.po
codeMap:
en-gb: en_GB
no: nb
@@ -103,7 +104,7 @@ FILES:
MANGLER
class: StringMatcher
- prefix: {$plugin}-
+ prefix: {$pluginlc}-
patterns:
- "*"
@@ -208,4 +209,3 @@ if ($plugins) {
}
}
}
-