Index: trunk/extensions/LiveTranslate/api/ApiImportTranslationMemories.php |
— | — | @@ -86,8 +86,7 @@ |
87 | 87 | array( 'memory_id' => $memoryId ) |
88 | 88 | ); |
89 | 89 | |
90 | | - // FIXME: this obviously goes wrong with multiple tms! |
91 | | - $wordId = 0; |
| 90 | + $wordId = ( $memoryId - 1 ) * 100000; |
92 | 91 | |
93 | 92 | // Insert the memory in the db. |
94 | 93 | foreach ( $tm->getTranslationUnits() as $tu ) { |