Commit ae6c1c88 authored by Richard Mansfield's avatar Richard Mansfield

Keep po entries in more consistent order; set version using source dir

parent 982b0f6f
......@@ -180,6 +180,14 @@ if ($pot = preg_match('/.pot$/', $destfile)) {
else if (preg_match('/(\d[0-9\.]+)_STABLE\.pot$/', $destfile, $matches)) {
$version .= '-' . $matches[1];
}
if ($version == 'mahara') {
if (preg_match('/\/master$/', $source)) {
$version .= '-trunk';
}
else if (preg_match('/\/(\d[0-9\.]+)_STABLE$/', $source, $matches)) {
$version .= '-' . $matches[1];
}
}
$header = '
msgid ""
msgstr ""
......@@ -198,6 +206,7 @@ msgstr ""
}
if (!empty($sourcefiles)) {
sort($sourcefiles);
foreach ($sourcefiles as $sourcefile) {
$langfile = substr($sourcefile, strlen($source) + 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment