Index: trunk/extensions/Translate/tag/SpecialPageTranslationMovePage.php |
— | — | @@ -1,4 +1,14 @@ |
2 | 2 | <?php |
| 3 | +/** |
| 4 | + * Overrides Special:Movepage to to allow renaming a page translation page and |
| 5 | + * all related translations and derivative pages. |
| 6 | + * |
| 7 | + * @ingroup SpecialPage |
| 8 | + * @ingroup PageTranslation |
| 9 | + * @author Niklas Laxström |
| 10 | + * @copyright Copyright © 2010, Niklas Laxström |
| 11 | + * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
| 12 | + */ |
3 | 13 | |
4 | 14 | class SpecialPageTranslationMovePage extends UnlistedSpecialPage { |
5 | 15 | // Basif form parameters both as text and as titles |
— | — | @@ -203,7 +213,7 @@ |
204 | 214 | |
205 | 215 | /** |
206 | 216 | * Shortcut for keeping the code at least a bit readable. Adds label and input into $form array. |
207 | | - * @params Many |
| 217 | + * @todo Document parameters. |
208 | 218 | */ |
209 | 219 | protected function addInputLabel( &$form, $label, $name, $size = false , $text = false, $attribs = array() ) { |
210 | 220 | $br = Html::element( 'br' ); |
Index: trunk/extensions/Translate/SpecialTranslationChanges.php |
— | — | @@ -1,10 +1,12 @@ |
2 | 2 | <?php |
3 | 3 | /** |
4 | | - * Implementation of Special:TranslationChanges special page. |
| 4 | + * Implementation of Special:TranslationChanges special page. Gives an overview |
| 5 | + * per message group of translations in a given number of hours. |
5 | 6 | * |
6 | | - * @file |
| 7 | + * @ingroup SpecialPage |
7 | 8 | * @author Niklas Laxström |
8 | | - * @copyright Copyright © 2008-2010, Niklas Laxström |
| 9 | + * @author Siebrand Mazeland |
| 10 | + * @copyright Copyright © 2008-2010, Niklas Laxström, Siebrand Mazeland |
9 | 11 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
10 | 12 | */ |
11 | 13 | |
— | — | @@ -224,12 +226,11 @@ |
225 | 227 | |
226 | 228 | /** |
227 | 229 | * Generate HTML for an arrow or placeholder graphic |
228 | | - * @param string $dir one of '', 'd', 'l', 'r' |
229 | | - * @param string $alt text |
230 | | - * @return string HTML <img> tag |
231 | | - * @access private |
| 230 | + * @param $dir \string One of '', 'd', 'l', 'r' |
| 231 | + * @param $alt \string Alt text |
| 232 | + * @return string HTML "img" tag |
232 | 233 | */ |
233 | | - function arrow( $dir, $alt = '' ) { |
| 234 | + private function arrow( $dir, $alt = '' ) { |
234 | 235 | global $wgStylePath; |
235 | 236 | $encUrl = htmlspecialchars( $wgStylePath . '/common/images/Arr_' . $dir . '.png' ); |
236 | 237 | $encAlt = htmlspecialchars( $alt ); |
— | — | @@ -239,10 +240,9 @@ |
240 | 241 | /** |
241 | 242 | * Generate HTML for a right- or left-facing arrow, |
242 | 243 | * depending on language direction. |
243 | | - * @return string HTML <img> tag |
244 | | - * @access private |
| 244 | + * @return string HTML "img" tag |
245 | 245 | */ |
246 | | - function sideArrow() { |
| 246 | + private function sideArrow() { |
247 | 247 | global $wgContLang; |
248 | 248 | $dir = $wgContLang->isRTL() ? 'l' : 'r'; |
249 | 249 | return $this->arrow( $dir, '+' ); |
— | — | @@ -252,9 +252,8 @@ |
253 | 253 | * Generate HTML for a down-facing arrow |
254 | 254 | * depending on language direction. |
255 | 255 | * @return string HTML <img> tag |
256 | | - * @access private |
257 | 256 | */ |
258 | | - function downArrow() { |
| 257 | + private function downArrow() { |
259 | 258 | return $this->arrow( 'd', '-' ); |
260 | 259 | } |
261 | 260 | } |