https://www.mediawiki.org/wiki/Special:Code/MediaWiki/113756
Revision: 113756 Author: siebrand Date: 2012-03-13 20:16:32 +0000 (Tue, 13 Mar 2012) Log Message: ----------- Follow-up r113594: Update export.php so that when using gettext post processing switch ppgettext, definitionFile is no longer required. Modified Paths: -------------- trunk/extensions/Translate/scripts/export.php trunk/translatewiki/Mwlib/Mwlibrl.yaml Modified: trunk/extensions/Translate/scripts/export.php =================================================================== --- trunk/extensions/Translate/scripts/export.php 2012-03-13 20:09:49 UTC (rev 113755) +++ trunk/extensions/Translate/scripts/export.php 2012-03-13 20:16:32 UTC (rev 113756) @@ -28,8 +28,8 @@ --help This help message --threshold Do not export under this percentage translated --ppgettext Group root path for checkout of product. "msgmerge" will post - process on the export result based on the current definitionFile - in that location + process on the export result based on the current source file + in that location (from sourcePattern or definitionFile) --no-location Only used combined with "ppgettext". This option will rebuild the gettext file without location information. --no-fuzzy Do not include any messages marked as fuzzy/outdated. @@ -149,7 +149,7 @@ $wgMaxShellMemory = 402400; $conf = $group->getConfiguration(); - $definitionFile = str_replace( '%GROUPROOT%', $options['ppgettext'], $conf['FILES']['definitionFile'] ); + $definitionFile = str_replace( '%GROUPROOT%', $options['ppgettext'], $group->getSourceFilePath( $group->getSourceLanguage() ) ); } foreach ( $langs as $lang ) { Modified: trunk/translatewiki/Mwlib/Mwlibrl.yaml =================================================================== --- trunk/translatewiki/Mwlib/Mwlibrl.yaml 2012-03-13 20:09:49 UTC (rev 113755) +++ trunk/translatewiki/Mwlib/Mwlibrl.yaml 2012-03-13 20:16:32 UTC (rev 113756) @@ -10,7 +10,6 @@ FILES: class: GettextFFS sourcePattern: %GROUPROOT%/mwlib.rl/mwlib/rl/locale/%CODE%/LC_MESSAGES/mwlib.rl.po - definitionFile: %GROUPROOT%/mwlib.rl/mwlib/rl/locale/en/LC_MESSAGES/mwlib.rl.po targetPattern: mwlib.rl/mwlib/rl/locale/%CODE%/LC_MESSAGES/mwlib.rl.po codeMap: pt-br: pt_BR _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs