Index: trunk/extensions/Translate/groups/Commonist.php |
— | — | @@ -1,42 +0,0 @@ |
2 | | -<?php |
3 | | - |
4 | | -class CommonistMessageGroup extends MessageGroupOld { |
5 | | - protected $label = 'Commonist'; |
6 | | - protected $id = 'out-commonist'; |
7 | | - # protected $type = ''; |
8 | | - |
9 | | - protected $fileDir = '__BUG__'; |
10 | | - |
11 | | - public function getPath() { return $this->fileDir; } |
12 | | - public function setPath( $value ) { $this->fileDir = $value; } |
13 | | - |
14 | | - |
15 | | - protected $optional = array( |
16 | | - ); |
17 | | - |
18 | | - protected $ignored = array( |
19 | | - ); |
20 | | - |
21 | | - public function getMessageFile( $code ) { |
22 | | - if ( $code == 'en' ) { |
23 | | - return 'messages.properties'; |
24 | | - } else { |
25 | | - if ( isset( $this->codeMap[$code] ) ) { |
26 | | - $code = $this->codeMap[$code]; |
27 | | - } |
28 | | - return "messages_$code.properties"; |
29 | | - } |
30 | | - } |
31 | | - |
32 | | - protected function getFileLocation( $code ) { |
33 | | - return $this->fileDir . '/' . $this->getMessageFile( $code ); |
34 | | - } |
35 | | - |
36 | | - public function getReader( $code ) { |
37 | | - return new JavaFormatReader( $this->getFileLocation( $code ) ); |
38 | | - } |
39 | | - |
40 | | - public function getWriter() { |
41 | | - return new JavaFormatWriter( $this ); |
42 | | - } |
43 | | -} |