diff options
author | Siebrand Mazeland <s.mazeland@xs4all.nl> | 2010-01-13 23:33:05 +0100 |
---|---|---|
committer | Siebrand Mazeland <s.mazeland@xs4all.nl> | 2010-01-13 23:33:05 +0100 |
commit | 519e1e6250d995aad0b7705ca46dec989e8d8e8c (patch) | |
tree | 64859cf439f2a23a699c3e46717009a13ac7b671 | |
parent | 108c51fa6859ec56269078ef9bd0459fdbd9b1ba (diff) |
Update generation of YAML files
* need lower case in some places
* update target path
Not in production yet at translatewiki.net - need some Translate extension code changes to get YAML config support for Gettext first.
-rwxr-xr-x | scripts/update_po_templates.php | 12 |
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) { } } } - |