Index: trunk/extensions/Translate/ffs/Gettext.php |
— | — | @@ -313,6 +313,8 @@ |
314 | 314 | |
315 | 315 | protected function doGettextHeader( MessageCollection $collection, $template, &$pluralCount ) { |
316 | 316 | global $wgSitename, $wgServer; |
| 317 | + |
| 318 | + $server = wfExpandUrl( $wgServer, PROTO_CANONICAL ); |
317 | 319 | $code = $collection->code; |
318 | 320 | $name = TranslateUtils::getLanguageName( $code ); |
319 | 321 | $native = TranslateUtils::getLanguageName( $code, true ); |
— | — | @@ -334,7 +336,7 @@ |
335 | 337 | $output = trim( $output ) . "\n"; |
336 | 338 | |
337 | 339 | // @todo twn specific |
338 | | - $portal = Title::makeTitle( NS_PORTAL, $code )->getFullUrl(); |
| 340 | + $portal = Title::makeTitle( NS_PORTAL, $code )->getCanonicalUrl(); |
339 | 341 | |
340 | 342 | $specs = isset( $template['HEADERS'] ) ? $template['HEADERS'] : array(); |
341 | 343 | |
— | — | @@ -351,7 +353,7 @@ |
352 | 354 | $specs['Content-Type'] = 'text/plain; charset=UTF-8'; |
353 | 355 | $specs['Content-Transfer-Encoding'] = '8bit'; |
354 | 356 | $specs['X-Generator'] = $this->getGenerator(); |
355 | | - $specs['X-Translation-Project'] = "$wgSitename at $wgServer"; |
| 357 | + $specs['X-Translation-Project'] = "$wgSitename at $server"; |
356 | 358 | $specs['X-Language-Code'] = $code; |
357 | 359 | if ( $this->offlineMode ) { |
358 | 360 | $specs['X-Message-Group'] = $this->group->getId(); |