Index: trunk/extensions/Translate/TranslateTasks.php |
— | — | @@ -375,13 +375,17 @@ |
376 | 376 | public function output() { |
377 | 377 | global $IP, $wgServer, $wgTranslateDocumentationLanguageCode; |
378 | 378 | |
| 379 | + |
379 | 380 | $lang = Language::factory( 'en' ); |
380 | 381 | |
381 | 382 | $out = ''; |
382 | 383 | $now = wfTimestampNow(); |
383 | 384 | $label = $this->messageGroup->getLabel(); |
384 | | - $languageName = TranslateUtils::getLanguageName( $this->options->getLanguage() ); |
| 385 | + $code = $this->options->getLanguage(); |
| 386 | + $languageName = TranslateUtils::getLanguageName( $code ); |
385 | 387 | |
| 388 | + $filename = $code . '_' . $this->messageGroup->getID() . '.po'; |
| 389 | + header( "Content-Disposition: attachment; filename=\"$filename\"" ); |
386 | 390 | |
387 | 391 | $headers = array(); |
388 | 392 | $headers['Project-Id-Version'] = 'MediaWiki ' . SpecialVersion::getVersion(); |
Index: trunk/extensions/Translate/README |
— | — | @@ -55,6 +55,7 @@ |
56 | 56 | * Experimental support for some extensions in export.php |
57 | 57 | * export.php can now export most supported groups |
58 | 58 | * autoexport.php helper |
| 59 | +* Content-Disposition header for po export |
59 | 60 | |
60 | 61 | == Changes in version 7 == |
61 | 62 | * Released 2007-12-29 |