http://www.mediawiki.org/wiki/Special:Code/MediaWiki/72851
Revision: 72851
Author: nikerabbit
Date: 2010-09-12 11:35:28 +0000 (Sun, 12 Sep 2010)
Log Message:
-----------
Don't do filtering for file exports, let the FFS handle those in a way that is
suitable for them
Modified Paths:
--------------
trunk/extensions/Translate/TranslateTasks.php
Modified: trunk/extensions/Translate/TranslateTasks.php
===================================================================
--- trunk/extensions/Translate/TranslateTasks.php 2010-09-12 11:34:48 UTC
(rev 72850)
+++ trunk/extensions/Translate/TranslateTasks.php 2010-09-12 11:35:28 UTC
(rev 72851)
@@ -336,6 +336,12 @@
class ExportMessagesTask extends ViewMessagesTask {
protected $id = 'export';
+ protected function preinit() {
+ $code = $this->options->getLanguage();
+ $this->collection = $this->group->initCollection( $code );
+ $this->collection->setInfile( $this->group->load( $code ) );
+ }
+
// No paging should be done.
protected function doPaging() {}
@@ -365,7 +371,6 @@
}
public function output() {
- $this->collection->filter( 'translated', false );
if ( $this->group instanceof FileBasedMessageGroup ) {
$ffs = $this->group->getFFS();
$data = $ffs->writeIntoVariable( $this->collection );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs