r91876 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91875‎ | r91876 | r91877 >
Date:12:26, 11 July 2011
Author:nikerabbit
Status:deferred
Tags:
Comment:
Google suggestions should obey the group source language
Modified paths:
  • /trunk/extensions/Translate/utils/TranslationHelpers.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/utils/TranslationHelpers.php
@@ -384,7 +384,8 @@
385385 return null;
386386 }
387387
388 - $options = self::makeGoogleQueryParams( $definition, "en|$code", $config );
 388+ $source = $this->group->getSourceLanguage();
 389+ $options = self::makeGoogleQueryParams( $definition, "$source|$code", $config );
389390 $json = Http::post( $config['url'], $options );
390391 $response = FormatJson::decode( $json );
391392

Status & tagging log