Index: trunk/extensions/SemanticWatchlist/SemanticWatchlist.i18n.php |
— | — | @@ -49,10 +49,9 @@ |
50 | 50 | 'prefs-swl' => 'Semantic watchlist', |
51 | 51 | 'prefs-swlgroup' => 'Groups to watch', |
52 | 52 | 'prefs-swlnotification' => 'Notification options', |
53 | | - 'swl-prefs-label' => "'''$1''': {{PLURAL:$2|property|properties}} $3 from $4 ''$5''.", |
54 | | - 'swl-prefs-category' => 'category', |
55 | | - 'swl-prefs-namespace' => 'namespace', |
56 | | - 'swl-prefs-concept' => 'concept', |
| 53 | + 'swl-prefs-category-label' => "'''$1''': {{PLURAL:$2|property|properties}} $3 from category ''$4''.", |
| 54 | + 'swl-prefs-namespace-label' => "'''$1''': {{PLURAL:$2|property|properties}} $3 from namespace ''$4''.", |
| 55 | + 'swl-prefs-concept-label' => "'''$1''': {{PLURAL:$2|property|properties}} $3 from concept ''$4''.", |
57 | 56 | 'swl-prefs-emailnofity' => 'E-mail me on changes to properties I am watching' |
58 | 57 | ); |
59 | 58 | |
Index: trunk/extensions/SemanticWatchlist/SemanticWatchlist.hooks.php |
— | — | @@ -102,24 +102,22 @@ |
103 | 103 | |
104 | 104 | switch ( true ) { |
105 | 105 | case count( $group->getCategories() ) > 0 : |
106 | | - $type = 'swl-prefs-category'; |
| 106 | + $type = 'category'; |
107 | 107 | $name = $group->getCategories(); |
108 | 108 | $name = $name[0]; |
109 | 109 | break; |
110 | 110 | case count( $group->getNamespaces() ) > 0 : |
111 | | - $type = 'swl-prefs-namespace'; |
| 111 | + $type = 'namespace'; |
112 | 112 | $name = $group->getNamespaces(); |
113 | 113 | $name = $name[0] == 0 ? wfMsg( 'main' ) : MWNamespace::getCanonicalName( $name[0] ); |
114 | 114 | break; |
115 | 115 | case count( $group->getConcepts() ) > 0 : |
116 | | - $type = 'swl-prefs-concept'; |
| 116 | + $type = 'concept'; |
117 | 117 | $name = $group->getConcepts(); |
118 | 118 | $name = $item[0]; |
119 | 119 | break; |
120 | 120 | } |
121 | 121 | |
122 | | - $type = wfMsg( $type ); |
123 | | - |
124 | 122 | $properties = $group->getProperties(); |
125 | 123 | |
126 | 124 | foreach ( $properties as &$property ) { |
— | — | @@ -129,12 +127,11 @@ |
130 | 128 | $preferences['swlwatchgroup-' . $group->getId()] = array( |
131 | 129 | 'type' => 'toggle', |
132 | 130 | 'label' => wfMsgExt( |
133 | | - 'swl-prefs-label', |
| 131 | + "swl-prefs-$type-label", |
134 | 132 | 'parseinline', |
135 | 133 | $group->getName(), |
136 | 134 | count( $group->getProperties() ), |
137 | 135 | $GLOBALS['wgLang']->listToText( $properties ), |
138 | | - $type, |
139 | 136 | $name |
140 | 137 | ), |
141 | 138 | 'section' => 'swl/swlgroup', |