Index: trunk/extensions/Translate/ffs/Gettext.php |
— | — | @@ -721,6 +721,7 @@ |
722 | 722 | |
723 | 723 | protected function formatMessageBlock( $key, $m, $trans, $pot, $pluralCount ) { |
724 | 724 | $header = $this->formatDocumentation( $key ); |
| 725 | + $content = ''; |
725 | 726 | |
726 | 727 | $comments = self::chainGetter( 'comments', $pot, $trans, array() ); |
727 | 728 | foreach ( $comments as $type => $typecomments ) { |
— | — | @@ -732,9 +733,9 @@ |
733 | 734 | $flags = self::chainGetter( 'flags', $pot, $trans, array() ); |
734 | 735 | $flags = array_merge( $m->getTags(), $flags ); |
735 | 736 | |
736 | | - $ctxt = self::chainGetter( 'msgctxt', $pot, $trans, false ); |
| 737 | + $ctxt = self::chainGetter( 'ctxt', $pot, $trans, false ); |
737 | 738 | if ( $ctxt ) { |
738 | | - $output .= 'msgctxt ' . self::escape( $ctxt ) . "\n"; |
| 739 | + $content .= 'msgctxt ' . self::escape( $ctxt ) . "\n"; |
739 | 740 | } |
740 | 741 | |
741 | 742 | $msgid = $m->definition(); |
— | — | @@ -747,7 +748,7 @@ |
748 | 749 | |
749 | 750 | if ( preg_match( '/{{PLURAL:GETTEXT/i', $msgid ) ) { |
750 | 751 | $forms = $this->splitPlural( $msgid, 2 ); |
751 | | - $content = 'msgid ' . $this->escape( $forms[0] ) . "\n"; |
| 752 | + $content .= 'msgid ' . $this->escape( $forms[0] ) . "\n"; |
752 | 753 | $content .= 'msgid_plural ' . $this->escape( $forms[1] ) . "\n"; |
753 | 754 | |
754 | 755 | try { |
— | — | @@ -763,7 +764,7 @@ |
764 | 765 | } |
765 | 766 | |
766 | 767 | } else { |
767 | | - $content = 'msgid ' . self::escape( $msgid ) . "\n"; |
| 768 | + $content .= 'msgid ' . self::escape( $msgid ) . "\n"; |
768 | 769 | $content .= 'msgstr ' . self::escape( $msgstr ) . "\n"; |
769 | 770 | } |
770 | 771 | |