Index: trunk/extensions/Translate/MessageGroups.php |
— | — | @@ -606,8 +606,12 @@ |
607 | 607 | |
608 | 608 | $defs = array(); |
609 | 609 | $prefix = $this->title->getPrefixedText() . '/'; |
| 610 | + $re = '~<tvar\|([^>]+)>(.*?)</>~u'; |
610 | 611 | foreach ( $res as $r ) { |
611 | | - $defs[$r->trs_key] = $r->trs_text; |
| 612 | + //TODO: use getTextForTrans? |
| 613 | + $text = $r->trs_text; |
| 614 | + $text = preg_replace( $re, '$\1', $text ); |
| 615 | + $defs[$r->trs_key] = $text; |
612 | 616 | } |
613 | 617 | // Some hacks to get nice order for the messages |
614 | 618 | ksort( $defs ); |