r95869 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95868‎ | r95869 | r95870 >
Date:14:34, 31 August 2011
Author:nikerabbit
Status:ok
Tags:
Comment:
Improve on r95865 as suggested by Roan
Modified paths:
  • /trunk/extensions/Translate/ffs/Gettext.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/ffs/Gettext.php
@@ -312,9 +312,8 @@
313313 }
314314
315315 protected function doGettextHeader( MessageCollection $collection, $template, &$pluralCount ) {
316 - global $wgSitename, $wgServer;
 316+ global $wgSitename, $wgCanonicalServer;
317317
318 - $server = wfExpandUrl( $wgServer, PROTO_CANONICAL );
319318 $code = $collection->code;
320319 $name = TranslateUtils::getLanguageName( $code );
321320 $native = TranslateUtils::getLanguageName( $code, true );
@@ -353,7 +352,7 @@
354353 $specs['Content-Type'] = 'text/plain; charset=UTF-8';
355354 $specs['Content-Transfer-Encoding'] = '8bit';
356355 $specs['X-Generator'] = $this->getGenerator();
357 - $specs['X-Translation-Project'] = "$wgSitename at $server";
 356+ $specs['X-Translation-Project'] = "$wgSitename at $wgCanonicalServer";
358357 $specs['X-Language-Code'] = $code;
359358 if ( $this->offlineMode ) {
360359 $specs['X-Message-Group'] = $this->group->getId();

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r95865Protocal relative url fixes to Translate extensionnikerabbit13:48, 31 August 2011

Status & tagging log