r80046 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80045‎ | r80046 | r80047 >
Date:22:35, 11 January 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Hack to have different word ids for different translation memories
Modified paths:
  • /trunk/extensions/LiveTranslate/api/ApiImportTranslationMemories.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LiveTranslate/api/ApiImportTranslationMemories.php
@@ -86,8 +86,7 @@
8787 array( 'memory_id' => $memoryId )
8888 );
8989
90 - // FIXME: this obviously goes wrong with multiple tms!
91 - $wordId = 0;
 90+ $wordId = ( $memoryId - 1 ) * 100000;
9291
9392 // Insert the memory in the db.
9493 foreach ( $tm->getTranslationUnits() as $tu ) {

Status & tagging log