Index: trunk/extensions/Translate/Message.php |
— | — | @@ -50,7 +50,7 @@ |
51 | 51 | return Revision::getRevisionText( $this->row ); |
52 | 52 | } |
53 | 53 | public function author() { |
54 | | - if ( !isset($this->row) ) return null; |
| 54 | + if ( !isset($this->row) ) return $this->infile(); |
55 | 55 | return $this->row->rev_user_text; |
56 | 56 | } |
57 | 57 | |
— | — | @@ -66,13 +66,19 @@ |
67 | 67 | |
68 | 68 | class FatMessage extends TMessage { |
69 | 69 | protected $translation = null; |
| 70 | + protected $infile = null; |
70 | 71 | public function setTranslation( $text ) { |
71 | 72 | $this->translation = $text; |
72 | 73 | } |
73 | 74 | |
74 | 75 | public function translation() { |
| 76 | + if ( $this->translation === null ) return $this->infile; |
75 | 77 | return $this->translation; |
76 | 78 | } |
77 | 79 | |
78 | 80 | public function author() {} |
| 81 | + |
| 82 | + public function infile() { |
| 83 | + return $this->infile; |
| 84 | + } |
79 | 85 | } |
\ No newline at end of file |