Index: trunk/phase3/maintenance/DiffLanguage.php |
— | — | @@ -2,17 +2,17 @@ |
3 | 3 | # MediaWiki web-based config/installation |
4 | 4 | # Copyright (C) 2004 Ashar Voultoiz <thoane@altern.org> and others |
5 | 5 | # http://www.mediawiki.org/ |
6 | | -# |
| 6 | +# |
7 | 7 | # This program is free software; you can redistribute it and/or modify |
8 | 8 | # 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 |
10 | 10 | # (at your option) any later version. |
11 | | -# |
| 11 | +# |
12 | 12 | # This program is distributed in the hope that it will be useful, |
13 | 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | 15 | # GNU General Public License for more details. |
16 | | -# |
| 16 | +# |
17 | 17 | # You should have received a copy of the GNU General Public License along |
18 | 18 | # with this program; if not, write to the Free Software Foundation, Inc., |
19 | 19 | # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
— | — | @@ -52,25 +52,25 @@ |
53 | 53 | @ob_end_flush(); |
54 | 54 | print "Enter the language you want to check [$wgLanguageCode]:"; |
55 | 55 | $input = readconsole(); |
56 | | - |
| 56 | + |
57 | 57 | # set the input to current language |
58 | 58 | if($input == "") { |
59 | 59 | $input = $wgLanguageCode; |
60 | 60 | } |
61 | | - |
| 61 | + |
62 | 62 | # convert to 1st char upper, rest lower case |
63 | 63 | $input = strtoupper(substr($input,0,1)).strtolower(substr($input,1)); |
64 | | - |
65 | | - # try to get the file |
| 64 | + |
| 65 | + # try to get the file |
66 | 66 | if( file_exists("$IP/languages/Language$input.php") ) { |
67 | 67 | $loop = false; |
68 | 68 | $lang = $input; |
69 | 69 | } else { |
70 | 70 | print "ERROR: The file Language$input.php doesn't exist !\n"; |
71 | 71 | } |
72 | | - |
| 72 | + |
73 | 73 | } while ($loop); |
74 | | - |
| 74 | + |
75 | 75 | } |
76 | 76 | |
77 | 77 | /* TODO |
— | — | @@ -104,4 +104,4 @@ |
105 | 105 | } |
106 | 106 | echo "----\n"; |
107 | 107 | 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"; |