Index: trunk/extensions/Translate/ffs/Gettext.php |
— | — | @@ -312,9 +312,8 @@ |
313 | 313 | } |
314 | 314 | |
315 | 315 | protected function doGettextHeader( MessageCollection $collection, $template, &$pluralCount ) { |
316 | | - global $wgSitename, $wgServer; |
| 316 | + global $wgSitename, $wgCanonicalServer; |
317 | 317 | |
318 | | - $server = wfExpandUrl( $wgServer, PROTO_CANONICAL ); |
319 | 318 | $code = $collection->code; |
320 | 319 | $name = TranslateUtils::getLanguageName( $code ); |
321 | 320 | $native = TranslateUtils::getLanguageName( $code, true ); |
— | — | @@ -353,7 +352,7 @@ |
354 | 353 | $specs['Content-Type'] = 'text/plain; charset=UTF-8'; |
355 | 354 | $specs['Content-Transfer-Encoding'] = '8bit'; |
356 | 355 | $specs['X-Generator'] = $this->getGenerator(); |
357 | | - $specs['X-Translation-Project'] = "$wgSitename at $server"; |
| 356 | + $specs['X-Translation-Project'] = "$wgSitename at $wgCanonicalServer"; |
358 | 357 | $specs['X-Language-Code'] = $code; |
359 | 358 | if ( $this->offlineMode ) { |
360 | 359 | $specs['X-Message-Group'] = $this->group->getId(); |