Index: trunk/translatewiki/Mwlib/Mwlibrl.yaml |
— | — | @@ -10,7 +10,6 @@ |
11 | 11 | FILES: |
12 | 12 | class: GettextFFS |
13 | 13 | sourcePattern: %GROUPROOT%/mwlib.rl/mwlib/rl/locale/%CODE%/LC_MESSAGES/mwlib.rl.po |
14 | | - definitionFile: %GROUPROOT%/mwlib.rl/mwlib/rl/locale/en/LC_MESSAGES/mwlib.rl.po |
15 | 14 | targetPattern: mwlib.rl/mwlib/rl/locale/%CODE%/LC_MESSAGES/mwlib.rl.po |
16 | 15 | codeMap: |
17 | 16 | pt-br: pt_BR |
Index: trunk/extensions/Translate/scripts/export.php |
— | — | @@ -28,8 +28,8 @@ |
29 | 29 | --help This help message |
30 | 30 | --threshold Do not export under this percentage translated |
31 | 31 | --ppgettext Group root path for checkout of product. "msgmerge" will post |
32 | | - process on the export result based on the current definitionFile |
33 | | - in that location |
| 32 | + process on the export result based on the current source file |
| 33 | + in that location (from sourcePattern or definitionFile) |
34 | 34 | --no-location Only used combined with "ppgettext". This option will rebuild |
35 | 35 | the gettext file without location information. |
36 | 36 | --no-fuzzy Do not include any messages marked as fuzzy/outdated. |
— | — | @@ -149,7 +149,7 @@ |
150 | 150 | $wgMaxShellMemory = 402400; |
151 | 151 | |
152 | 152 | $conf = $group->getConfiguration(); |
153 | | - $definitionFile = str_replace( '%GROUPROOT%', $options['ppgettext'], $conf['FILES']['definitionFile'] ); |
| 153 | + $definitionFile = str_replace( '%GROUPROOT%', $options['ppgettext'], $group->getSourceFilePath( $group->getSourceLanguage() ) ); |
154 | 154 | } |
155 | 155 | |
156 | 156 | foreach ( $langs as $lang ) { |