Index: trunk/extensions/Translate/FFS.php |
— | — | @@ -1072,10 +1072,13 @@ |
1073 | 1073 | if( !isset( $this->data[$code] ) ) $this->data[$code] = array(); |
1074 | 1074 | return array( 'MESSAGES' => $this->data[$code] ); |
1075 | 1075 | } |
1076 | | - |
1077 | 1076 | |
| 1077 | + |
1078 | 1078 | public function write( MessageCollection $collection ) { |
1079 | 1079 | if( $this->fw === null ) { |
| 1080 | + $outputFile = $this->writePath . '/' . $this->group->getTargetFilename( 'en' ); |
| 1081 | + wfMkdirParents( dirname( $outputFile ), null, __METHOD__ ); |
| 1082 | + $this->fw = fopen( $outputFile, 'w' ); |
1080 | 1083 | $this->fw = fopen( $this->writePath . '/' . $this->group->getTargetFilename( 'en' ), 'w' ); |
1081 | 1084 | fwrite( $this->fw, "# -*- coding: utf-8 -*-\nmsg = {\n" ); |
1082 | 1085 | } |