@@ 134-156 (lines=23) @@ | ||
131 | * Get all checks. |
|
132 | * @return array An array of all check names mapped to their function names. |
|
133 | */ |
|
134 | protected function getChecks() { |
|
135 | return [ |
|
136 | 'untranslated' => 'getUntranslatedMessages', |
|
137 | 'duplicate' => 'getDuplicateMessages', |
|
138 | 'obsolete' => 'getObsoleteMessages', |
|
139 | 'variables' => 'getMessagesWithMismatchVariables', |
|
140 | 'plural' => 'getMessagesWithoutPlural', |
|
141 | 'empty' => 'getEmptyMessages', |
|
142 | 'whitespace' => 'getMessagesWithWhitespace', |
|
143 | 'xhtml' => 'getNonXHTMLMessages', |
|
144 | 'chars' => 'getMessagesWithWrongChars', |
|
145 | 'links' => 'getMessagesWithDubiousLinks', |
|
146 | 'unbalanced' => 'getMessagesWithUnbalanced', |
|
147 | 'namespace' => 'getUntranslatedNamespaces', |
|
148 | 'projecttalk' => 'getProblematicProjectTalks', |
|
149 | 'magic' => 'getUntranslatedMagicWords', |
|
150 | 'magic-old' => 'getObsoleteMagicWords', |
|
151 | 'magic-over' => 'getOverridingMagicWords', |
|
152 | 'magic-case' => 'getCaseMismatchMagicWords', |
|
153 | 'special' => 'getUntraslatedSpecialPages', |
|
154 | 'special-old' => 'getObsoleteSpecialPages', |
|
155 | ]; |
|
156 | } |
|
157 | ||
158 | /** |
|
159 | * Get total count for each check non-messages check. |
|
@@ 181-207 (lines=27) @@ | ||
178 | * Get all check descriptions. |
|
179 | * @return array An array of all check names mapped to their descriptions. |
|
180 | */ |
|
181 | protected function getDescriptions() { |
|
182 | return [ |
|
183 | 'untranslated' => '$1 message(s) of $2 are not translated to $3, but exist in en:', |
|
184 | 'duplicate' => '$1 message(s) of $2 are translated the same in en and $3:', |
|
185 | 'obsolete' => |
|
186 | '$1 message(s) of $2 do not exist in en or are in the ignore list, but exist in $3:', |
|
187 | 'variables' => '$1 message(s) of $2 in $3 don\'t match the variables used in en:', |
|
188 | 'plural' => '$1 message(s) of $2 in $3 don\'t use {{plural}} while en uses:', |
|
189 | 'empty' => '$1 message(s) of $2 in $3 are empty or -:', |
|
190 | 'whitespace' => '$1 message(s) of $2 in $3 have trailing whitespace:', |
|
191 | 'xhtml' => '$1 message(s) of $2 in $3 contain illegal XHTML:', |
|
192 | 'chars' => |
|
193 | '$1 message(s) of $2 in $3 include hidden chars which should not be used in the messages:', |
|
194 | 'links' => '$1 message(s) of $2 in $3 have problematic link(s):', |
|
195 | 'unbalanced' => '$1 message(s) of $2 in $3 have unbalanced {[]}:', |
|
196 | 'namespace' => '$1 namespace name(s) of $2 are not translated to $3, but exist in en:', |
|
197 | 'projecttalk' => |
|
198 | '$1 namespace name(s) and alias(es) in $3 are project talk namespaces without the parameter:', |
|
199 | 'magic' => '$1 magic word(s) of $2 are not translated to $3, but exist in en:', |
|
200 | 'magic-old' => '$1 magic word(s) of $2 do not exist in en, but exist in $3:', |
|
201 | 'magic-over' => '$1 magic word(s) of $2 in $3 do not contain the original en word(s):', |
|
202 | 'magic-case' => |
|
203 | '$1 magic word(s) of $2 in $3 change the case-sensitivity of the original en word:', |
|
204 | 'special' => '$1 special page alias(es) of $2 are not translated to $3, but exist in en:', |
|
205 | 'special-old' => '$1 special page alias(es) of $2 do not exist in en, but exist in $3:', |
|
206 | ]; |
|
207 | } |
|
208 | ||
209 | /** |
|
210 | * Get help. |