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.
This commit is contained in:
parent
108c51fa68
commit
519e1e6250
@ -80,20 +80,21 @@ function do_translatewiki_plugin($basedir, $plugin)
|
|||||||
mkdir($yamldir);
|
mkdir($yamldir);
|
||||||
}
|
}
|
||||||
$outfile = "$yamldir/StatusNet-{$plugin}.yml";
|
$outfile = "$yamldir/StatusNet-{$plugin}.yml";
|
||||||
|
$pluginlc = strtolower( $plugin );
|
||||||
$data = <<<END
|
$data = <<<END
|
||||||
---
|
---
|
||||||
BASIC:
|
BASIC:
|
||||||
id: out-statusnet-{$plugin}
|
id: out-statusnet-{$pluginlc}
|
||||||
label: StatusNet - {$plugin}
|
label: StatusNet - {$plugin}
|
||||||
description: "{{int:bw-desc-statusnet-plugin-{$plugin}}}"
|
description: "{{int:bw-desc-statusnet-plugin-{$pluginlc}}}"
|
||||||
namespace: NS_STATUSNET
|
namespace: NS_STATUSNET
|
||||||
display: out/statusnet/{$plugin}
|
display: out/statusnet/{$pluginlc}
|
||||||
class: GettextMessageGroup
|
class: GettextMessageGroup
|
||||||
|
|
||||||
FILES:
|
FILES:
|
||||||
class: GettextFFS
|
class: GettextFFS
|
||||||
sourcePattern: %GROUPROOT%/plugins/{$plugin}/locale/%CODE%/LC_MESSAGES/{$plugin}.po
|
sourcePattern: %GROUPROOT%/plugins/{$plugin}/locale/%CODE%/LC_MESSAGES/{$plugin}.po
|
||||||
targetPattern: {$plugin}.po
|
targetPattern: plugins/{$plugin}/locale/%CODE%/LC_MESSAGES/{$plugin}.po
|
||||||
codeMap:
|
codeMap:
|
||||||
en-gb: en_GB
|
en-gb: en_GB
|
||||||
no: nb
|
no: nb
|
||||||
@ -103,7 +104,7 @@ FILES:
|
|||||||
|
|
||||||
MANGLER
|
MANGLER
|
||||||
class: StringMatcher
|
class: StringMatcher
|
||||||
prefix: {$plugin}-
|
prefix: {$pluginlc}-
|
||||||
patterns:
|
patterns:
|
||||||
- "*"
|
- "*"
|
||||||
|
|
||||||
@ -208,4 +209,3 @@ if ($plugins) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user