Index: trunk/extensions/Translate/SpecialManageGroups.php |
— | — | @@ -38,8 +38,11 @@ |
39 | 39 | $this->importForm( $cache, $group, $code ); |
40 | 40 | } else { |
41 | 41 | global $wgLang, $wgOut; |
| 42 | + |
42 | 43 | $groups = MessageGroups::singleton()->getGroups(); |
| 44 | + |
43 | 45 | $wgOut->wrapWikiMsg( '==$1==', 'translate-manage-listgroups' ); |
| 46 | + |
44 | 47 | foreach ( $groups as $group ) { |
45 | 48 | if ( !$group instanceof FileBasedMessageGroup ) continue; |
46 | 49 | |
— | — | @@ -47,6 +50,7 @@ |
48 | 51 | $wgOut->addHtml( $link ); |
49 | 52 | |
50 | 53 | $cache = new MessageGroupCache( $group ); |
| 54 | + |
51 | 55 | if ( $cache->exists() ) { |
52 | 56 | $timestamp = wfTimestamp( TS_MW, $cache->getTimestamp() ); |
53 | 57 | $wgOut->addWikiMsg( 'translate-manage-cacheat', |
— | — | @@ -56,16 +60,16 @@ |
57 | 61 | } else { |
58 | 62 | $wgOut->addWikiMsg( 'translate-manage-newgroup' ); |
59 | 63 | } |
| 64 | + |
60 | 65 | $wgOut->addHtml( '<hr>' ); |
61 | 66 | } |
62 | 67 | |
63 | | - global $wgOut; |
64 | | - |
65 | 68 | $wgOut->wrapWikiMsg( '==$1==', 'translate-manage-listgroups-old' ); |
66 | 69 | $wgOut->addHTML( '<ul>' ); |
67 | 70 | |
68 | 71 | foreach ( $groups as $group ) { |
69 | 72 | if ( $group instanceof FileBasedMessageGroup ) continue; |
| 73 | + |
70 | 74 | $wgOut->addHtml( Xml::element( 'li', null, $group->getLabel() ) ); |
71 | 75 | } |
72 | 76 | |