Index: trunk/extensions/Translate/scripts/cli.inc |
— | — | @@ -9,8 +9,12 @@ |
10 | 10 | * @file |
11 | 11 | */ |
12 | 12 | |
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 | +} |
15 | 19 | define( 'TRANSLATE_CLI', 1 ); |
16 | 20 | require_once( "$IP/maintenance/commandLine.inc" ); |
17 | 21 | |
Index: trunk/extensions/Translate/FFS.php |
— | — | @@ -40,6 +40,12 @@ |
41 | 41 | */ |
42 | 42 | public function read( $code ); |
43 | 43 | |
| 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 | + */ |
44 | 50 | public function readFromVariable( $data ); |
45 | 51 | |
46 | 52 | /** |
Index: trunk/extensions/Translate/README |
— | — | @@ -31,6 +31,8 @@ |
32 | 32 | == Change log == |
33 | 33 | |
34 | 34 | === Changes in ??? === |
| 35 | +* 2010-08-23 |
| 36 | +- Fixed multiple bugs in Special:TranslationStats |
35 | 37 | * 2010-08-20 |
36 | 38 | - Documentation updated a lot, added doxygen spec file. |
37 | 39 | * 2010-06-12 |