r70438 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70437‎ | r70438 | r70439 >
Date:22:55, 3 August 2010
Author:siebrand
Status:deferred
Tags:
Comment:
Remove obsolete file Commonist.php. Has been converted to new style message group.
Modified paths:
  • /trunk/extensions/Translate/groups/Commonist.php (deleted) (history)

Diff [purge]

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 -}

Follow-up revisions

RevisionCommit summaryAuthorDate
r70983Remove class CommonistMessageGroup from autoloader. Was deleted in r70438.siebrand20:24, 12 August 2010

Status & tagging log