r71577 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r71576‎ | r71577 | r71578 >
Date:20:00, 24 August 2010
Author:nikerabbit
Status:ok
Tags:
Comment:
Collection of small fixes
Modified paths:
  • /trunk/extensions/Translate/FFS.php (modified) (history)
  • /trunk/extensions/Translate/README (modified) (history)
  • /trunk/extensions/Translate/scripts/cli.inc (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/scripts/cli.inc
@@ -9,8 +9,12 @@
1010 * @file
1111 */
1212
13 -$dir = dirname( __FILE__ ); $IP = "$dir/../../..";
14 -@include("$dir/../../CorePath.php"); // Allow override
 13+// Standard boilerplate to define $IP
 14+if ( getenv( 'MW_INSTALL_PATH' ) !== false ) {
 15+ $IP = getenv( 'MW_INSTALL_PATH' );
 16+} else {
 17+ $dir = dirname( __FILE__ ); $IP = "$dir/../../..";
 18+}
1519 define( 'TRANSLATE_CLI', 1 );
1620 require_once( "$IP/maintenance/commandLine.inc" );
1721
Index: trunk/extensions/Translate/FFS.php
@@ -40,6 +40,12 @@
4141 */
4242 public function read( $code );
4343
 44+ /**
 45+ * Same as read(), but takes the data as a parameters. The caller
 46+ * is supposed to know in what language the translations are in.
 47+ * @param $data \string Formatted messages.
 48+ * @return \array
 49+ */
4450 public function readFromVariable( $data );
4551
4652 /**
Index: trunk/extensions/Translate/README
@@ -31,6 +31,8 @@
3232 == Change log ==
3333
3434 === Changes in ??? ===
 35+* 2010-08-23
 36+- Fixed multiple bugs in Special:TranslationStats
3537 * 2010-08-20
3638 - Documentation updated a lot, added doxygen spec file.
3739 * 2010-06-12

Status & tagging log