Index: trunk/extensions/Translate/groups/ComplexMessages.php |
— | — | @@ -361,6 +361,9 @@ |
362 | 362 | |
363 | 363 | // Then get the data we really want |
364 | 364 | $val = $this->val( $group, $from, $key ); |
| 365 | + // Remove duplicated entries, causes problems with magic words |
| 366 | + // TODO: prevent or fix silently on save already |
| 367 | + $val = array_unique( $val /*FIXME:SORT_REGULAR*/ ); |
365 | 368 | |
366 | 369 | $normalized = array_map( array( $this, 'normalize' ), $val ); |
367 | 370 | if ( $this->elementsInArray ) { |