r5268 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r5267‎ | r5268 | r5269 >
Date:15:56, 17 September 2004
Author:timwi
Status:old
Tags:
Comment:
sp
Modified paths:
  • /trunk/phase3/maintenance/DiffLanguage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/DiffLanguage.php
@@ -2,17 +2,17 @@
33 # MediaWiki web-based config/installation
44 # Copyright (C) 2004 Ashar Voultoiz <thoane@altern.org> and others
55 # http://www.mediawiki.org/
6 -#
 6+#
77 # This program is free software; you can redistribute it and/or modify
88 # it under the terms of the GNU General Public License as published by
9 -# the Free Software Foundation; either version 2 of the License, or
 9+# the Free Software Foundation; either version 2 of the License, or
1010 # (at your option) any later version.
11 -#
 11+#
1212 # This program is distributed in the hope that it will be useful,
1313 # but WITHOUT ANY WARRANTY; without even the implied warranty of
1414 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1515 # GNU General Public License for more details.
16 -#
 16+#
1717 # You should have received a copy of the GNU General Public License along
1818 # with this program; if not, write to the Free Software Foundation, Inc.,
1919 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
@@ -52,25 +52,25 @@
5353 @ob_end_flush();
5454 print "Enter the language you want to check [$wgLanguageCode]:";
5555 $input = readconsole();
56 -
 56+
5757 # set the input to current language
5858 if($input == "") {
5959 $input = $wgLanguageCode;
6060 }
61 -
 61+
6262 # convert to 1st char upper, rest lower case
6363 $input = strtoupper(substr($input,0,1)).strtolower(substr($input,1));
64 -
65 - # try to get the file
 64+
 65+ # try to get the file
6666 if( file_exists("$IP/languages/Language$input.php") ) {
6767 $loop = false;
6868 $lang = $input;
6969 } else {
7070 print "ERROR: The file Language$input.php doesn't exist !\n";
7171 }
72 -
 72+
7373 } while ($loop);
74 -
 74+
7575 }
7676
7777 /* TODO
@@ -104,4 +104,4 @@
105105 }
106106 echo "----\n";
107107 echo "$lang language is complete at ".number_format((100 - $i/count($wgAllMessagesEn) * 100),2)."%\n";
108 -echo "$i unlocalised message of the ".count($wgAllMessagesEn)." messages available.\n";
 108+echo "$i unlocalised messages of the ".count($wgAllMessagesEn)." messages available.\n";

Status & tagging log