r6316 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r6315‎ | r6316 | r6317 >
Date:07:36, 21 November 2004
Author:vibber
Status:old
Tags:
Comment:
Code formatting; clean up redundant method declarations.
Modified paths:
  • /trunk/phase3/languages/Language.php (modified) (history)
  • /trunk/phase3/languages/LanguageAr.php (modified) (history)
  • /trunk/phase3/languages/LanguageDa.php (modified) (history)
  • /trunk/phase3/languages/LanguageDe.php (modified) (history)
  • /trunk/phase3/languages/LanguageEo.php (modified) (history)
  • /trunk/phase3/languages/LanguageFa.php (modified) (history)
  • /trunk/phase3/languages/LanguageFo.php (modified) (history)
  • /trunk/phase3/languages/LanguageFr.php (modified) (history)
  • /trunk/phase3/languages/LanguageGa.php (modified) (history)
  • /trunk/phase3/languages/LanguageHe.php (modified) (history)
  • /trunk/phase3/languages/LanguageHu.php (modified) (history)
  • /trunk/phase3/languages/LanguageIs.php (modified) (history)
  • /trunk/phase3/languages/LanguageKo.php (modified) (history)
  • /trunk/phase3/languages/LanguageNl.php (modified) (history)
  • /trunk/phase3/languages/LanguageNn.php (modified) (history)
  • /trunk/phase3/languages/LanguageNv.php (modified) (history)
  • /trunk/phase3/languages/LanguageOc.php (modified) (history)
  • /trunk/phase3/languages/LanguagePl.php (modified) (history)
  • /trunk/phase3/languages/LanguageSl.php (modified) (history)
  • /trunk/phase3/languages/LanguageTt.php (modified) (history)
  • /trunk/phase3/languages/LanguageZh_cn.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/LanguageNv.php
@@ -29,17 +29,6 @@
3030 NS_CATEGORY_TALK => 'T\'ááłáhági_át\'éego_baa_yinísht\'į́'
3131 );
3232
33 -/* private */ $wgDefaultUserOptionsNv = array(
34 - 'quickbar' => 1, 'underline' => 1, 'hover' => 1,
35 - 'cols' => 80, 'rows' => 25, 'searchlimit' => 20,
36 - 'contextlines' => 5, 'contextchars' => 50,
37 - 'skin' => $wgDefaultSkin, 'math' => 1, 'rcdays' => 7, 'rclimit' => 50,
38 - 'highlightbroken' => 1, 'stubthreshold' => 0,
39 - 'previewontop' => 1, 'editsection'=>1,'editsectiononrightclick'=>0, 'showtoc'=>1,
40 - 'showtoolbar' =>1,
41 - 'date' => 0
42 -);
43 -
4433 /* private */ $wgQuickbarSettingsNv = array(
4534 'None', 'Fixed left', 'Fixed right', 'Floating left'
4635 );
@@ -179,11 +168,6 @@
180169
181170 class LanguageNv extends LanguageUtf8 {
182171
183 - function getDefaultUserOptions () {
184 - global $wgDefaultUserOptionsNv ;
185 - return $wgDefaultUserOptionsNv ;
186 - }
187 -
188172 function getBookstoreList () {
189173 global $wgBookstoreListNv ;
190174 return $wgBookstoreListNv ;
@@ -245,25 +229,21 @@
246230 }
247231
248232 /* by default we just return base form */
249 - function getMonthNameGen( $key )
250 - {
 233+ function getMonthNameGen( $key ) {
251234 return $this->getMonthName( $key );
252235 }
253236
254 - function getMonthAbbreviation( $key )
255 - {
 237+ function getMonthAbbreviation( $key ) {
256238 global $wgMonthAbbreviationsNv;
257239 return @$wgMonthAbbreviationsNv[$key-1];
258240 }
259241
260 - function getWeekdayName( $key )
261 - {
 242+ function getWeekdayName( $key ) {
262243 global $wgWeekdayNamesNv;
263244 return $wgWeekdayNamesNv[$key-1];
264245 }
265246
266 - function getValidSpecialPages()
267 - {
 247+ function getValidSpecialPages() {
268248 global $wgValidSpecialPagesNv;
269249 return $wgValidSpecialPagesNv;
270250 }
Index: trunk/phase3/languages/LanguageGa.php
@@ -44,16 +44,6 @@
4545 NS_CATEGORY_TALK => 'Plé_ranga'
4646 ) + $wgNamespaceNamesEn;
4747
48 -/* private */ $wgDefaultUserOptionsGa = array(
49 - "quickbar" => 1, "underline" => 1, "hover" => 1,
50 - "cols" => 80, "rows" => 25, "searchlimit" => 20,
51 - "contextlines" => 5, "contextchars" => 50,
52 - "skin" => $wgDefaultSkin, "math" => 1, "rcdays" => 7, "rclimit" => 50,
53 - "highlightbroken" => 1, "stubthreshold" => 0,
54 - "previewontop" => 1, "editsection"=>1,"editsectiononrightclick"=>0, "showtoc"=>1,
55 - "date" => 0
56 -);
57 -
5848 /* private */ $wgQuickbarSettingsGa = array(
5949 "Faic", "Greamaithe ar chlé", "Greamaithe ar an taobh deas", "Ag faoileáil ar chlé"
6050 );
@@ -1460,87 +1450,76 @@
14611451
14621452 class LanguageGa extends LanguageUtf8 {
14631453
1464 - function getDefaultUserOptions () {
1465 - global $wgDefaultUserOptionsGa ;
1466 - return $wgDefaultUserOptionsGa ;
1467 - }
 1454+ function getBookstoreList () {
 1455+ global $wgBookstoreListGa;
 1456+ return $wgBookstoreListGa;
 1457+ }
14681458
1469 - function getBookstoreList () {
1470 - global $wgBookstoreListGa ;
1471 - return $wgBookstoreListGa ;
1472 - }
 1459+ function getNamespaces() {
 1460+ global $wgNamespaceNamesGa;
 1461+ return $wgNamespaceNamesGa;
 1462+ }
14731463
1474 - function getNamespaces() {
1475 - global $wgNamespaceNamesGa;
1476 - return $wgNamespaceNamesGa;
1477 - }
 1464+ function getNsText( $index ) {
 1465+ global $wgNamespaceNamesGa;
 1466+ return $wgNamespaceNamesGa[$index];
 1467+ }
14781468
1479 - function getNsText( $index ) {
1480 - global $wgNamespaceNamesGa;
1481 - return $wgNamespaceNamesGa[$index];
1482 - }
 1469+ function getNsIndex( $text ) {
 1470+ global $wgNamespaceNamesGa;
14831471
1484 - function getNsIndex( $text ) {
1485 - global $wgNamespaceNamesGa;
 1472+ foreach ( $wgNamespaceNamesGa as $i => $n ) {
 1473+ if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
 1474+ }
 1475+ /* Fallback to English names for compatibility */
 1476+ return Language::getNsIndex( $text );
 1477+ }
14861478
1487 - foreach ( $wgNamespaceNamesGa as $i => $n ) {
1488 - if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
1489 - }
1490 - /* Fallback to English names for compatibility */
1491 - return Language::getNsIndex( $text );
1492 - }
 1479+ function getQuickbarSettings() {
 1480+ global $wgQuickbarSettingsGa;
 1481+ return $wgQuickbarSettingsGa;
 1482+ }
14931483
1494 - function getQuickbarSettings() {
1495 - global $wgQuickbarSettingsGa;
1496 - return $wgQuickbarSettingsGa;
1497 - }
 1484+ function getSkinNames() {
 1485+ global $wgSkinNamesGa;
 1486+ return $wgSkinNamesGa;
 1487+ }
14981488
1499 - function getSkinNames() {
1500 - global $wgSkinNamesGa;
1501 - return $wgSkinNamesGa;
1502 - }
 1489+ function getDateFormats() {
 1490+ global $wgDateFormatsGa;
 1491+ return $wgDateFormatsGa;
 1492+ }
15031493
1504 - function getDateFormats() {
1505 - global $wgDateFormatsGa;
1506 - return $wgDateFormatsGa;
1507 - }
 1494+ function getValidSpecialPages() {
 1495+ global $wgValidSpecialPagesGa;
 1496+ return $wgValidSpecialPagesGa;
 1497+ }
15081498
1509 - function getValidSpecialPages()
1510 - {
1511 - global $wgValidSpecialPagesGa;
1512 - return $wgValidSpecialPagesGa;
1513 - }
 1499+ function getSysopSpecialPages() {
 1500+ global $wgSysopSpecialPagesGa;
 1501+ return $wgSysopSpecialPagesGa;
 1502+ }
15141503
1515 - function getSysopSpecialPages()
1516 - {
1517 - global $wgSysopSpecialPagesGa;
1518 - return $wgSysopSpecialPagesGa;
1519 - }
 1504+ function getDeveloperSpecialPages() {
 1505+ global $wgDeveloperSpecialPagesGa;
 1506+ return $wgDeveloperSpecialPagesGa;
 1507+ }
15201508
1521 - function getDeveloperSpecialPages()
1522 - {
1523 - global $wgDeveloperSpecialPagesGa;
1524 - return $wgDeveloperSpecialPagesGa;
1525 - }
1526 -
1527 - function getMessage( $key )
1528 - {
1529 - global $wgAllMessagesGa;
 1509+ function getMessage( $key ) {
 1510+ global $wgAllMessagesGa;
15301511 if( isset( $wgAllMessagesGa[$key] ) ) {
15311512 return $wgAllMessagesGa[$key];
15321513 } else {
15331514 return Language::getMessage( $key );
15341515 }
1535 - }
 1516+ }
15361517
1537 - function getAllMessages()
1538 - {
1539 - global $wgAllMessagesGa;
1540 - return $wgAllMessagesGa;
1541 - }
 1518+ function getAllMessages() {
 1519+ global $wgAllMessagesGa;
 1520+ return $wgAllMessagesGa;
 1521+ }
15421522
1543 - function getMagicWords()
1544 - {
 1523+ function getMagicWords() {
15451524 global $wgMagicWordsGa;
15461525 return $wgMagicWordsGa;
15471526 }
Index: trunk/phase3/languages/LanguageOc.php
@@ -921,35 +921,25 @@
922922
923923 );
924924
925 -class LanguageOc extends LanguageUtf8
926 -{
 925+class LanguageOc extends LanguageUtf8{
927926
928 - function getDefaultUserOptions()
929 - {
930 - $opt = Language::getDefaultUserOptions();
931 - return $opt;
 927+ function getBookstoreList () {
 928+ global $wgBookstoreListOc ;
 929+ return $wgBookstoreListOc ;
932930 }
933931
934 - function getBookstoreList () {
935 - global $wgBookstoreListOc ;
936 - return $wgBookstoreListOc ;
937 - }
938 -
939 - function getNamespaces()
940 - {
 932+ function getNamespaces() {
941933 global $wgNamespaceNamesOc;
942934 return $wgNamespaceNamesOc;
943935 }
944936
945937
946 - function getNsText( $index )
947 - {
 938+ function getNsText( $index ) {
948939 global $wgNamespaceNamesOc;
949940 return $wgNamespaceNamesOc[$index];
950941 }
951942
952 - function getNsIndex( $text )
953 - {
 943+ function getNsIndex( $text ) {
954944 global $wgNamespaceNamesOc;
955945
956946 foreach ( $wgNamespaceNamesOc as $i => $n )
@@ -961,27 +951,19 @@
962952 return false;
963953 }
964954
965 - function specialPage( $name )
966 - {
967 - return $this->getNsText( Namespace::getSpecial() ) . ":" . $name;
968 - }
969 -
970 - function getQuickbarSettings()
971 - {
 955+ function getQuickbarSettings() {
972956 global $wgQuickbarSettingsOc;
973957 return $wgQuickbarSettingsOc;
974958 }
975959
976 - function getSkinNames()
977 - {
 960+ function getSkinNames() {
978961 global $wgSkinNamesOc;
979962 return $wgSkinNamesOc;
980963 }
981964
982965 // Inherit userAdjust()
983966
984 - function date( $ts, $adj = false )
985 - {
 967+ function date( $ts, $adj = false ) {
986968 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
987969
988970 $d = (0 + substr( $ts, 6, 2 )) . " " .
@@ -990,39 +972,26 @@
991973 return $d;
992974 }
993975
994 - function time( $ts, $adj = false )
995 - {
996 - if ( $adj ) { $ts = $this->userAdjust( $ts ); }
997 -
998 - $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
999 - return $t;
1000 - }
1001 -
1002 - function timeanddate( $ts, $adj = false )
1003 - {
 976+ function timeanddate( $ts, $adj = false ) {
1004977 return $this->date( $ts, $adj ) . " à " . $this->time( $ts, $adj );
1005978 }
1006979
1007 - function getValidSpecialPages()
1008 - {
 980+ function getValidSpecialPages() {
1009981 global $wgValidSpecialPagesOc;
1010982 return $wgValidSpecialPagesOc;
1011983 }
1012984
1013 - function getSysopSpecialPages()
1014 - {
 985+ function getSysopSpecialPages() {
1015986 global $wgSysopSpecialPagesOc;
1016987 return $wgSysopSpecialPagesOc;
1017988 }
1018989
1019 - function getDeveloperSpecialPages()
1020 - {
 990+ function getDeveloperSpecialPages() {
1021991 global $wgDeveloperSpecialPagesOc;
1022992 return $wgDeveloperSpecialPagesOc;
1023993 }
1024994
1025 - function getMessage( $key )
1026 - {
 995+ function getMessage( $key ) {
1027996 global $wgAllMessagesOc, $wgAllMessagesEn;
1028997 $m = $wgAllMessagesOc[$key];
1029998
Index: trunk/phase3/languages/LanguageKo.php
@@ -24,15 +24,6 @@
2525
2626 ) + $wgNamespaceNamesEn;
2727
28 -# I always compare this file with japanese file, when I'm confused.
29 -# And DefaultUserOption isn't there in japanese one. What's
30 -# this? I don't have to translate this. Am I right?
31 -
32 -# The Japanese file is a bit obsolete, so don't trust it too much!
33 -# Don't translate the text strings here, but you can customize any
34 -# option values if you like. These will be the defaults for any user
35 -# who isn't logged in, or a newly created user account.
36 -
3728 /* private */ $wgQuickbarSettingsKo = array(
3829 # "None", "Fixed left", "Fixed right", "Floating left"
3930 "없음", "왼쪽 붙박이", "오른쪽 붙박이", "왼쪽 떠다님"
@@ -884,11 +875,11 @@
885876
886877 class LanguageKo extends LanguageUtf8 {
887878
888 - function getDefaultUserOptions () {
889 - $opt = Language::getDefaultUserOptions();
890 - $opt["rcdays"]=14;
891 - return $opt;
892 - }
 879+ function getDefaultUserOptions () {
 880+ $opt = Language::getDefaultUserOptions();
 881+ $opt["rcdays"] = 14;
 882+ return $opt;
 883+ }
893884
894885 function getBookstoreList () {
895886 global $wgBookstoreListKo ;
@@ -926,8 +917,7 @@
927918
928919 # Inherit default userAdjust()
929920
930 - function date( $ts, $adj = false )
931 - {
 921+ function date( $ts, $adj = false ) {
932922 global $wgWeekdayAbbreviationsKo;
933923 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
934924
@@ -944,41 +934,28 @@
945935 return $d;
946936 }
947937
948 - function time( $ts, $adj = false )
949 - {
950 - if ( $adj ) { $ts = $this->userAdjust( $ts ); }
951 -
952 - $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
953 - return $t;
954 - }
955 -
956 - function timeanddate( $ts, $adj = false )
957 - {
 938+ function timeanddate( $ts, $adj = false ) {
958939 return $this->date( $ts, $adj ) . " " . $this->time( $ts, $adj );
959940 }
960941
961942 # inherit function rfc1123( $ts )
962943
963 - function getValidSpecialPages()
964 - {
 944+ function getValidSpecialPages() {
965945 global $wgValidSpecialPagesKo;
966946 return $wgValidSpecialPagesKo;
967947 }
968948
969 - function getSysopSpecialPages()
970 - {
 949+ function getSysopSpecialPages() {
971950 global $wgSysopSpecialPagesKo;
972951 return $wgSysopSpecialPagesKo;
973952 }
974953
975 - function getDeveloperSpecialPages()
976 - {
 954+ function getDeveloperSpecialPages() {
977955 global $wgDeveloperSpecialPagesKo;
978956 return $wgDeveloperSpecialPagesKo;
979957 }
980958
981 - function getMessage( $key )
982 - {
 959+ function getMessage( $key ) {
983960 global $wgAllMessagesKo, $wgAllMessagesEn;
984961 $m = $wgAllMessagesKo[$key];
985962
Index: trunk/phase3/languages/LanguageSl.php
@@ -899,79 +899,74 @@
900900 #--------------------------------------------------------------------------
901901
902902 class LanguageSl extends LanguageUtf8 {
903 -
904 - function getDefaultUserOptions () {
905 - $opt = Language::getDefaultUserOptions();
906 - return $opt;
907 - }
908 -
909 - function getNamespaces() {
910 - global $wgNamespaceNamesSl;
911 - return $wgNamespaceNamesSl;
912 - }
913 -
914 - function getNsText( $index ) {
915 - global $wgNamespaceNamesSl;
916 - return $wgNamespaceNamesSl[$index];
917 - }
918 -
919 - function getNsIndex( $text ) {
920 - global $wgNamespaceNamesSl;
921 -
922 - foreach ( $wgNamespaceNamesSl as $i => $n ) {
923 - if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
924 - }
925 - if( 0 == strcasecmp( "Special", $text ) ) { return -1; }
926 - if( 0 == strcasecmp( "User", $text ) ) { return 2; }
927 - if( 0 == strcasecmp( "Wikipedia", $text ) ) { return 4; }
928 - return false;
929 - }
930 -
931 - function getQuickbarSettings() {
932 - global $wgQuickbarSettingsSl;
933 - return $wgQuickbarSettingsSl;
934 - }
935 -
936 - function getSkinNames() {
937 - global $wgSkinNamesSl;
938 - return $wgSkinNamesSl;
939 - }
940 -
941 - function getDateFormats() {
942 - global $wgDateFormatsSl;
943 - return $wgDateFormatsSl;
944 - }
945 -
946 - function getValidSpecialPages()
947 - {
948 - global $wgValidSpecialPagesSl;
949 - return $wgValidSpecialPagesSl;
950 - }
951 -
952 - function getSysopSpecialPages()
953 - {
954 - global $wgSysopSpecialPagesSl;
955 - return $wgSysopSpecialPagesSl;
956 - }
957 -
958 - function getDeveloperSpecialPages()
959 - {
960 - global $wgDeveloperSpecialPagesSl;
961 - return $wgDeveloperSpecialPagesSl;
962 - }
963 -
964 - function getMessage( $key )
965 - {
 903+
 904+ function getNamespaces() {
 905+ global $wgNamespaceNamesSl;
 906+ return $wgNamespaceNamesSl;
 907+ }
 908+
 909+ function getNsText( $index ) {
 910+ global $wgNamespaceNamesSl;
 911+ return $wgNamespaceNamesSl[$index];
 912+ }
 913+
 914+ function getNsIndex( $text ) {
 915+ global $wgNamespaceNamesSl;
 916+
 917+ foreach ( $wgNamespaceNamesSl as $i => $n ) {
 918+ if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
 919+ }
 920+ if( 0 == strcasecmp( "Special", $text ) ) { return -1; }
 921+ if( 0 == strcasecmp( "User", $text ) ) { return 2; }
 922+ if( 0 == strcasecmp( "Wikipedia", $text ) ) { return 4; }
 923+ return false;
 924+ }
 925+
 926+ function getQuickbarSettings() {
 927+ global $wgQuickbarSettingsSl;
 928+ return $wgQuickbarSettingsSl;
 929+ }
 930+
 931+ function getSkinNames() {
 932+ global $wgSkinNamesSl;
 933+ return $wgSkinNamesSl;
 934+ }
 935+
 936+ function getDateFormats() {
 937+ global $wgDateFormatsSl;
 938+ return $wgDateFormatsSl;
 939+ }
 940+
 941+ function getValidSpecialPages()
 942+ {
 943+ global $wgValidSpecialPagesSl;
 944+ return $wgValidSpecialPagesSl;
 945+ }
 946+
 947+ function getSysopSpecialPages()
 948+ {
 949+ global $wgSysopSpecialPagesSl;
 950+ return $wgSysopSpecialPagesSl;
 951+ }
 952+
 953+ function getDeveloperSpecialPages()
 954+ {
 955+ global $wgDeveloperSpecialPagesSl;
 956+ return $wgDeveloperSpecialPagesSl;
 957+ }
 958+
 959+ function getMessage( $key )
 960+ {
966961 global $wgAllMessagesSl;
967962 if(array_key_exists($key, $wgAllMessagesSl))
968963 return $wgAllMessagesSl[$key];
969964 else
970965 return Language::getMessage($key);
971 - }
972 -
973 - function fallback8bitEncoding() {
 966+ }
 967+
 968+ function fallback8bitEncoding() {
974969 return "iso-8859-2";
975 - }
 970+ }
976971 }
977972
978973 ?>
Index: trunk/phase3/languages/LanguageDa.php
@@ -1122,11 +1122,6 @@
11231123
11241124 class LanguageDa extends LanguageUtf8 {
11251125
1126 - function getDefaultUserOptions () {
1127 - $opt = Language::getDefaultUserOptions();
1128 - return $opt;
1129 - }
1130 -
11311126 function getBookstoreList () {
11321127 global $wgBookstoreListDa ;
11331128 return $wgBookstoreListDa ;
@@ -1151,10 +1146,6 @@
11521147 return false;
11531148 }
11541149
1155 - function specialPage( $name ) {
1156 - return $this->getNsText( Namespace::getSpecial() ) . ":" . $name;
1157 - }
1158 -
11591150 function getQuickbarSettings() {
11601151 global $wgQuickbarSettingsDa;
11611152 return $wgQuickbarSettingsDa;
@@ -1170,8 +1161,6 @@
11711162 return $wgDateFormatsDa;
11721163 }
11731164
1174 - # Inherit userAdjust()
1175 -
11761165 function date( $ts, $adj = false ) {
11771166 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
11781167
@@ -1181,19 +1170,10 @@
11821171 return $d;
11831172 }
11841173
1185 - function time( $ts, $adj = false ) {
1186 - if ( $adj ) { $ts = $this->userAdjust( $ts ); }
1187 -
1188 - $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
1189 - return $t;
1190 - }
1191 -
11921174 function timeanddate( $ts, $adj = false ) {
11931175 return $this->date( $ts, $adj ) . " kl. " . $this->time( $ts, $adj );
11941176 }
11951177
1196 - # Inherit rfc1123()
1197 -
11981178 function getValidSpecialPages() {
11991179 global $wgValidSpecialPagesDa;
12001180 return $wgValidSpecialPagesDa;
@@ -1218,26 +1198,6 @@
12191199 }
12201200 }
12211201
1222 - # Inherit iconv()
1223 -
1224 - # Inherit ucfirst()
1225 -
1226 - # Inherit lcfirst()
1227 -
1228 - # Inherit checkTitleEncoding()
1229 -
1230 - # Inherit stripForSearch()
1231 -
1232 - # Inherit setAltEncoding()
1233 -
1234 - # Inherit recodeForEdit()
1235 -
1236 - # Inherit recodeInput()
1237 -
1238 - # Inherit isRTL()
1239 -
1240 - # Inherit getMagicWords()
1241 -
12421202 }
12431203
12441204 ?>
Index: trunk/phase3/languages/LanguageDe.php
@@ -1184,14 +1184,10 @@
11851185
11861186
11871187 );
 1188+
11881189 class LanguageDe extends LanguageUtf8 {
11891190
1190 - function getDefaultUserOptions () {
1191 - $opt = Language::getDefaultUserOptions();
1192 - return $opt;
1193 - }
1194 -
1195 - function getBookstoreList () {
 1191+ function getBookstoreList() {
11961192 global $wgBookstoreListDe ;
11971193 return $wgBookstoreListDe ;
11981194 }
@@ -1215,10 +1211,6 @@
12161212 return false;
12171213 }
12181214
1219 - function specialPage( $name ) {
1220 - return $this->getNsText( Namespace::getSpecial() ) . ":" . $name;
1221 - }
1222 -
12231215 function getQuickbarSettings() {
12241216 global $wgQuickbarSettingsDe;
12251217 return $wgQuickbarSettingsDe;
@@ -1229,10 +1221,7 @@
12301222 return $wgSkinNamesDe;
12311223 }
12321224
1233 - # Inherit userAdjust()
1234 -
1235 - function date( $ts, $adj = false )
1236 - {
 1225+ function date( $ts, $adj = false ) {
12371226 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
12381227
12391228 $d = (0 + substr( $ts, 6, 2 )) . ". " .
@@ -1242,39 +1231,22 @@
12431232 return $d;
12441233 }
12451234
1246 - function time( $ts, $adj = false )
1247 - {
1248 - if ( $adj ) { $ts = $this->userAdjust( $ts ); }
1249 -
1250 - $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
1251 - return $t;
1252 - }
1253 -
1254 - function timeanddate( $ts, $adj = false )
1255 - {
1256 - return $this->time( $ts, $adj ) . ", " . $this->date( $ts, $adj );
1257 - }
1258 -
1259 - function getValidSpecialPages()
1260 - {
 1235+ function getValidSpecialPages() {
12611236 global $wgValidSpecialPagesDe;
12621237 return $wgValidSpecialPagesDe;
12631238 }
12641239
1265 - function getSysopSpecialPages()
1266 - {
 1240+ function getSysopSpecialPages() {
12671241 global $wgSysopSpecialPagesDe;
12681242 return $wgSysopSpecialPagesDe;
12691243 }
12701244
1271 - function getDeveloperSpecialPages()
1272 - {
 1245+ function getDeveloperSpecialPages() {
12731246 global $wgDeveloperSpecialPagesDe;
12741247 return $wgDeveloperSpecialPagesDe;
12751248 }
12761249
1277 - function getMessage( $key )
1278 - {
 1250+ function getMessage( $key ) {
12791251 global $wgAllMessagesDe;
12801252 if( isset( $wgAllMessagesDe[$key] ) ) {
12811253 return $wgAllMessagesDe[$key];
@@ -1283,7 +1255,6 @@
12841256 }
12851257 }
12861258
1287 -
12881259 }
12891260
12901261 ?>
Index: trunk/phase3/languages/LanguageHe.php
@@ -814,13 +814,13 @@
815815
816816 class LanguageHe extends LanguageUtf8 {
817817
818 - function getDefaultUserOptions () {
819 - $opt = Language::getDefaultUserOptions();
 818+ function getDefaultUserOptions () {
 819+ $opt = Language::getDefaultUserOptions();
820820 $opt["quickbar"]=2;
821 - return $opt;
822 - }
 821+ return $opt;
 822+ }
823823
824 - function getBookstoreList () {
 824+ function getBookstoreList() {
825825 global $wgBookstoreListHe ;
826826 return $wgBookstoreListHe ;
827827 }
@@ -854,36 +854,32 @@
855855 return $wgSkinNamesHe;
856856 }
857857
858 - function getValidSpecialPages()
859 - {
 858+ function getValidSpecialPages() {
860859 global $wgValidSpecialPagesHe;
861860 return $wgValidSpecialPagesHe;
862861 }
863862
864 - function getSysopSpecialPages()
865 - {
 863+ function getSysopSpecialPages() {
866864 global $wgSysopSpecialPagesHe;
867865 return $wgSysopSpecialPagesHe;
868866 }
869867
870 - function getDeveloperSpecialPages()
871 - {
 868+ function getDeveloperSpecialPages() {
872869 global $wgDeveloperSpecialPagesHe;
873870 return $wgDeveloperSpecialPagesHe;
874871 }
875872
876 - function getMessage( $key )
877 - {
878 - global $wgAllMessagesHe;
879 - if(array_key_exists($key, $wgAllMessagesHe))
880 - return $wgAllMessagesHe[$key];
881 - else
882 - return Language::getMessage($key);
883 - }
 873+ function getMessage( $key ) {
 874+ global $wgAllMessagesHe;
 875+ if(array_key_exists($key, $wgAllMessagesHe))
 876+ return $wgAllMessagesHe[$key];
 877+ else
 878+ return Language::getMessage($key);
 879+ }
884880
885 - function isRTL() { return true; }
 881+ function isRTL() { return true; }
886882
887 - function fallback8bitEncoding() { return "iso8859-8"; }
 883+ function fallback8bitEncoding() { return "iso8859-8"; }
888884
889885 }
890886
Index: trunk/phase3/languages/LanguagePl.php
@@ -1076,132 +1076,78 @@
10771077 );
10781078
10791079 class LanguagePl extends LanguageUtf8 {
1080 -
1081 - function getDefaultUserOptions () {
1082 - $opt = Language::getDefaultUserOptions();
1083 - return $opt;
1084 - }
10851080
1086 - function getNamespaces() {
1087 - global $wgNamespaceNamesPl;
1088 - return $wgNamespaceNamesPl;
1089 - }
 1081+ function getNamespaces() {
 1082+ global $wgNamespaceNamesPl;
 1083+ return $wgNamespaceNamesPl;
 1084+ }
10901085
1091 - function getNsText( $index ) {
1092 - global $wgNamespaceNamesPl;
1093 - return $wgNamespaceNamesPl[$index];
1094 - }
 1086+ function getNsText( $index ) {
 1087+ global $wgNamespaceNamesPl;
 1088+ return $wgNamespaceNamesPl[$index];
 1089+ }
10951090
1096 - function getNsIndex( $text ) {
1097 - global $wgNamespaceNamesPl;
 1091+ function getNsIndex( $text ) {
 1092+ global $wgNamespaceNamesPl;
10981093
1099 - foreach ( $wgNamespaceNamesPl as $i => $n ) {
1100 - if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
1101 - }
1102 - return false;
1103 - }
 1094+ foreach ( $wgNamespaceNamesPl as $i => $n ) {
 1095+ if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
 1096+ }
 1097+ return false;
 1098+ }
11041099
1105 - function getQuickbarSettings() {
1106 - global $wgQuickbarSettingsPl;
1107 - return $wgQuickbarSettingsPl;
1108 - }
 1100+ function getQuickbarSettings() {
 1101+ global $wgQuickbarSettingsPl;
 1102+ return $wgQuickbarSettingsPl;
 1103+ }
11091104
1110 - function getSkinNames() {
1111 - global $wgSkinNamesPl;
1112 - return $wgSkinNamesPl;
1113 - }
 1105+ function getSkinNames() {
 1106+ global $wgSkinNamesPl;
 1107+ return $wgSkinNamesPl;
 1108+ }
11141109
1115 - function getMonthNameGen( $key )
1116 - {
1117 - global $wgMonthNamesGenEn;
1118 - return wfMsg( $wgMonthNamesGenEn[$key-1] );
1119 - }
 1110+ function getMonthNameGen( $key ) {
 1111+ global $wgMonthNamesGenEn;
 1112+ return wfMsg( $wgMonthNamesGenEn[$key-1] );
 1113+ }
11201114
 1115+ function date( $ts, $adj = false ) {
 1116+ if ( $adj ) { $ts = $this->userAdjust( $ts ); }
11211117
1122 - function userAdjust( $ts )
1123 - {
1124 - global $wgUser;
 1118+ $d = (0 + substr( $ts, 6, 2 )) .
 1119+ " " . $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) .
 1120+ " " . substr( $ts, 0, 4 );
 1121+ return $d;
 1122+ }
11251123
1126 - $diff = $wgUser->getOption( "timecorrection" );
1127 - if ( ! $diff ) { $diff = 0; }
1128 - if ( 0 == $diff ) { return $ts; }
 1124+ function getValidSpecialPages() {
 1125+ global $wgValidSpecialPagesPl;
 1126+ return $wgValidSpecialPagesPl;
 1127+ }
11291128
1130 - $t = mktime( ( (int)substr( $ts, 8, 2) ) + $diff,
1131 - (int)substr( $ts, 10, 2 ), (int)substr( $ts, 12, 2 ),
1132 - (int)substr( $ts, 4, 2 ), (int)substr( $ts, 6, 2 ),
1133 - (int)substr( $ts, 0, 4 ) );
1134 - return date( "YmdHis", $t );
1135 - }
 1129+ function getSysopSpecialPages() {
 1130+ global $wgSysopSpecialPagesPl;
 1131+ return $wgSysopSpecialPagesPl;
 1132+ }
11361133
1137 - function date( $ts, $adj = false )
1138 - {
1139 - if ( $adj ) { $ts = $this->userAdjust( $ts ); }
 1134+ function getDeveloperSpecialPages() {
 1135+ global $wgDeveloperSpecialPagesPl;
 1136+ return $wgDeveloperSpecialPagesPl;
 1137+ }
11401138
1141 - $d = (0 + substr( $ts, 6, 2 )) .
1142 - " " . $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) .
1143 - " " . substr( $ts, 0, 4 );
1144 - return $d;
1145 - }
 1139+ function getMessage( $key ) {
 1140+ global $wgAllMessagesPl;
 1141+ if(array_key_exists($key, $wgAllMessagesPl))
 1142+ return $wgAllMessagesPl[$key];
 1143+ else
 1144+ return Language::getMessage($key);
 1145+ }
11461146
1147 - function time( $ts, $adj = false )
1148 - {
1149 - if ( $adj ) { $ts = $this->userAdjust( $ts ); }
 1147+ # Check for Latin-2 backwards-compatibility URLs
 1148+ function fallback8bitEncoding() {
 1149+ return "iso-8859-2";
 1150+ }
11501151
1151 - $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
1152 - return $t;
1153 - }
1154 -
1155 - function timeanddate( $ts, $adj = false )
1156 - {
1157 - return $this->time( $ts, $adj ) . ", " . $this->date( $ts, $adj );
1158 - }
1159 -
1160 - function rfc1123( $ts )
1161 - {
1162 - return date( "D, d M Y H:i:s T", $ts );
1163 - }
1164 -
1165 - function getValidSpecialPages()
1166 - {
1167 - global $wgValidSpecialPagesPl;
1168 - return $wgValidSpecialPagesPl;
1169 - }
1170 -
1171 - function getSysopSpecialPages()
1172 - {
1173 - global $wgSysopSpecialPagesPl;
1174 - return $wgSysopSpecialPagesPl;
1175 - }
1176 -
1177 - function getDeveloperSpecialPages()
1178 - {
1179 - global $wgDeveloperSpecialPagesPl;
1180 - return $wgDeveloperSpecialPagesPl;
1181 - }
1182 -
1183 - function getMessage( $key )
1184 - {
1185 - global $wgAllMessagesPl;
1186 - if(array_key_exists($key, $wgAllMessagesPl))
1187 - return $wgAllMessagesPl[$key];
1188 - else
1189 - return Language::getMessage($key);
1190 - }
1191 -
1192 - # Inherit ucfirst() and stripForSearch() from LanguageUtf8
1193 -
1194 - function checkTitleEncoding( $s ) {
1195 - # Check for Latin-2 backwards-compatibility URLs
1196 - $ishigh = preg_match( '/[\x80-\xff]/', $s);
1197 - $isutf = preg_match( '/^([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|' .
1198 - '[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xf7][\x80-\xbf]{3})+$/', $s );
1199 -
1200 - if($ishigh and !$isutf)
1201 - return iconv( "ISO-8859-2", "UTF-8", $s );
1202 -
1203 - return $s;
1204 - }
1205 -
12061152 }
12071153
12081154 ?>
Index: trunk/phase3/languages/LanguageHu.php
@@ -1160,26 +1160,22 @@
11611161 return $wgDateFormatsHu;
11621162 }
11631163
1164 - function getValidSpecialPages()
1165 - {
 1164+ function getValidSpecialPages() {
11661165 global $wgValidSpecialPagesHu;
11671166 return $wgValidSpecialPagesHu;
11681167 }
11691168
1170 - function getSysopSpecialPages()
1171 - {
 1169+ function getSysopSpecialPages() {
11721170 global $wgSysopSpecialPagesHu;
11731171 return $wgSysopSpecialPagesHu;
11741172 }
11751173
1176 - function getDeveloperSpecialPages()
1177 - {
 1174+ function getDeveloperSpecialPages() {
11781175 global $wgDeveloperSpecialPagesHu;
11791176 return $wgDeveloperSpecialPagesHu;
11801177 }
11811178
1182 - function getMessage( $key )
1183 - {
 1179+ function getMessage( $key ) {
11841180 global $wgAllMessagesHu;
11851181 if(array_key_exists($key, $wgAllMessagesHu))
11861182 return $wgAllMessagesHu[$key];
@@ -1192,8 +1188,7 @@
11931189 }
11941190
11951191 # localised date and time
1196 - function date( $ts, $adj = false )
1197 - {
 1192+ function date( $ts, $adj = false ) {
11981193 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
11991194
12001195 $d = substr( $ts, 0, 4 ) . ". " .
@@ -1202,14 +1197,6 @@
12031198 return $d;
12041199 }
12051200
1206 - function time( $ts, $adj = false )
1207 - {
1208 - if ( $adj ) { $ts = $this->userAdjust( $ts ); }
1209 -
1210 - $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
1211 - return $t;
1212 - }
1213 -
12141201 function timeanddate( $ts, $adj = false )
12151202 {
12161203 return $this->date( $ts, $adj ) . ", " . $this->time( $ts, $adj );
Index: trunk/phase3/languages/Language.php
@@ -1737,32 +1737,27 @@
17381738 return $wgLanguageNamesEn[$code];
17391739 }
17401740
1741 - function getMonthName( $key )
1742 - {
 1741+ function getMonthName( $key ) {
17431742 global $wgMonthNamesEn;
17441743 return wfMsg($wgMonthNamesEn[$key-1]);
17451744 }
17461745
17471746 /* by default we just return base form */
1748 - function getMonthNameGen( $key )
1749 - {
 1747+ function getMonthNameGen( $key ) {
17501748 return $this->getMonthName( $key );
17511749 }
17521750
1753 - function getMonthAbbreviation( $key )
1754 - {
 1751+ function getMonthAbbreviation( $key ) {
17551752 global $wgMonthAbbreviationsEn;
17561753 return wfMsg(@$wgMonthAbbreviationsEn[$key-1]);
17571754 }
17581755
1759 - function getWeekdayName( $key )
1760 - {
 1756+ function getWeekdayName( $key ) {
17611757 global $wgWeekdayNamesEn;
17621758 return wfMsg($wgWeekdayNamesEn[$key-1]);
17631759 }
17641760
1765 - function userAdjust( $ts )
1766 - {
 1761+ function userAdjust( $ts ) {
17671762 global $wgUser, $wgLocalTZoffset;
17681763
17691764 $tz = $wgUser->getOption( 'timecorrection' );
@@ -1788,8 +1783,7 @@
17891784 return date( 'YmdHis', $t );
17901785 }
17911786
1792 - function date( $ts, $adj = false, $format = MW_DATE_USER_FORMAT )
1793 - {
 1787+ function date( $ts, $adj = false, $format = MW_DATE_USER_FORMAT ) {
17941788 global $wgAmericanDates, $wgUser, $wgUseDynamicDates;
17951789
17961790 $ts=wfTimestamp(TS_MW,$ts);
@@ -1819,8 +1813,7 @@
18201814 }
18211815 }
18221816
1823 - function time( $ts, $adj = false, $seconds = false )
1824 - {
 1817+ function time( $ts, $adj = false, $seconds = false ) {
18251818 $ts=wfTimestamp(TS_MW,$ts);
18261819
18271820 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
@@ -1832,44 +1825,37 @@
18331826 return $this->formatNum( $t );
18341827 }
18351828
1836 - function timeanddate( $ts, $adj = false, $format = MW_DATE_USER_FORMAT )
1837 - {
 1829+ function timeanddate( $ts, $adj = false, $format = MW_DATE_USER_FORMAT ) {
18381830 $ts=wfTimestamp(TS_MW,$ts);
18391831
18401832 return $this->time( $ts, $adj ) . ', ' . $this->date( $ts, $adj, $format );
18411833 }
18421834
1843 - function rfc1123( $ts )
1844 - {
 1835+ function rfc1123( $ts ) {
18451836 return date( 'D, d M Y H:i:s T', $ts );
18461837 }
18471838
1848 - function getValidSpecialPages()
1849 - {
 1839+ function getValidSpecialPages() {
18501840 global $wgValidSpecialPagesEn;
18511841 return $wgValidSpecialPagesEn;
18521842 }
18531843
1854 - function getSysopSpecialPages()
1855 - {
 1844+ function getSysopSpecialPages() {
18561845 global $wgSysopSpecialPagesEn;
18571846 return $wgSysopSpecialPagesEn;
18581847 }
18591848
1860 - function getDeveloperSpecialPages()
1861 - {
 1849+ function getDeveloperSpecialPages() {
18621850 global $wgDeveloperSpecialPagesEn;
18631851 return $wgDeveloperSpecialPagesEn;
18641852 }
18651853
1866 - function getMessage( $key )
1867 - {
 1854+ function getMessage( $key ) {
18681855 global $wgAllMessagesEn;
18691856 return @$wgAllMessagesEn[$key];
18701857 }
18711858
1872 - function getAllMessages()
1873 - {
 1859+ function getAllMessages() {
18741860 global $wgAllMessagesEn;
18751861 return $wgAllMessagesEn;
18761862 }
@@ -1968,15 +1954,13 @@
19691955 function linkPrefixExtension() { return false; }
19701956
19711957
1972 - function &getMagicWords()
1973 - {
 1958+ function &getMagicWords() {
19741959 global $wgMagicWordsEn;
19751960 return $wgMagicWordsEn;
19761961 }
19771962
19781963 # Fill a MagicWord object with data from here
1979 - function getMagic( &$mw )
1980 - {
 1964+ function getMagic( &$mw ) {
19811965 $raw =& $this->getMagicWords();
19821966 if( !isset( $raw[$mw->mId] ) ) {
19831967 # Fall back to English if local list is incomplete
@@ -1988,8 +1972,7 @@
19891973 }
19901974
19911975 # Italic is unsuitable for some languages
1992 - function emphasize( $text )
1993 - {
 1976+ function emphasize( $text ) {
19941977 return '<em>'.$text.'</em>';
19951978 }
19961979
@@ -2084,8 +2067,7 @@
20852068 if(!array_key_exists(1, $choice)) {
20862069 /* a single choice */
20872070 $text .= $choice{0};
2088 - }
2089 - else {
 2071+ } else {
20902072 $choice1=false;
20912073 $choice2=false;
20922074 foreach($choice as $c) {
@@ -2120,21 +2102,21 @@
21212103 /* this does the real conversion to the preferred variant.
21222104 see LanguageZh.php for example
21232105 */
2124 - function autoConvert($text, $toVariant=false) {
 2106+ function autoConvert( $text, $toVariant=false ) {
21252107 return $text;
21262108 }
21272109
21282110 /* hook for converting the title, which may needs special treatment
21292111 */
2130 - function convertTitle($text) {
 2112+ function convertTitle( $text ) {
21312113 return $text;
21322114 }
21332115
21342116 # returns a list of language variants for conversion.
21352117 # right now mainly used in the Chinese conversion
21362118 function getVariants() {
2137 - $lang = strtolower(substr(get_class($this), 8));
2138 - return array($lang);
 2119+ $lang = strtolower( substr( get_class( $this ), 8 ) );
 2120+ return array( $lang );
21392121 }
21402122
21412123 # in case some variant is not defined in the markup, we need
@@ -2142,7 +2124,7 @@
21432125 # will define zh-cn and zh-tw, but less so for zh-sg or zh-hk.
21442126 # when zh-sg is preferred but not defined, we will pick zh-cn
21452127 # in this case. right now this is only used by zh.
2146 - function getVariantFallback($v) {
 2128+ function getVariantFallback( $v ) {
21472129 return false;
21482130 }
21492131
@@ -2150,18 +2132,18 @@
21512133 global $wgUser;
21522134
21532135 // if user logged in, get in from user's preference
2154 - if($wgUser->getID()!=0)
2155 - return $wgUser->getOption('variant');
 2136+ if( $wgUser->getID() != 0 )
 2137+ return $wgUser->getOption( 'variant' );
21562138
21572139 // if we have multiple variants for this langauge,
21582140 // pick the first one as default
2159 - $v=$this->getVariants() ;
2160 - if(!empty($v))
 2141+ $v = $this->getVariants();
 2142+ if( !empty( $v ) )
21612143 return $v{0};
21622144
21632145 // otherwise there should really be just one variant,
21642146 // get it from the class name
2165 - $lang = strtolower(substr(get_class($this), 8));
 2147+ $lang = strtolower( substr( get_class( $this ), 8 ) );
21662148 return $lang;
21672149 }
21682150
@@ -2171,20 +2153,20 @@
21722154 tries to find it.
21732155
21742156 */
2175 - function findVariantLink(&$link, &$nt) {
 2157+ function findVariantLink( &$link, &$nt ) {
21762158 static $count=0; //used to limit this operation
21772159 global $wgDisableLangConversion, $wgContLang;
2178 - if($wgDisableLangConversion)
 2160+ if( $wgDisableLangConversion )
21792161 return;
21802162 $variants = $wgContLang->getVariants();
2181 - if(sizeof($variants) > 1 && $count++<200) {
2182 - if($nt->getArticleID() == 0) {
2183 - foreach ( $variants as $v ) {
2184 - if($v == $wgContLang->getPreferredVariant())
 2163+ if( sizeof( $variants ) > 1 && $count++ < 200 ) {
 2164+ if( $nt->getArticleID() == 0 ) {
 2165+ foreach( $variants as $v ) {
 2166+ if( $v == $wgContLang->getPreferredVariant() )
21852167 continue;
2186 - $varlink = $wgContLang->autoConvert($link, $v);
2187 - $varnt = Title::newFromText($varlink);
2188 - if($varnt && $varnt->getArticleID()>0) {
 2168+ $varlink = $wgContLang->autoConvert( $link, $v );
 2169+ $varnt = Title::newFromText( $varlink );
 2170+ if( $varnt && $varnt->getArticleID() > 0 ) {
21892171 $nt = $varnt;
21902172 $link = $varlink;
21912173 break;
Index: trunk/phase3/languages/LanguageTt.php
@@ -193,93 +193,84 @@
194194
195195 class LanguageTt extends LanguageUtf8 {
196196
197 - function getDefaultUserOptions () {
198 - $opt = Language::getDefaultUserOptions();
199 - return $opt;
200 - }
 197+ function getBookstoreList () {
 198+ global $wgBookstoreListTt;
 199+ return $wgBookstoreListTt;
 200+ }
201201
202 - function getBookstoreList () {
203 - global $wgBookstoreListTt;
204 - return $wgBookstoreListTt;
205 - }
 202+ function getNamespaces() {
 203+ global $wgNamespaceNamesTt;
 204+ return $wgNamespaceNamesTt;
 205+ }
206206
207 - function getNamespaces() {
208 - global $wgNamespaceNamesTt;
209 - return $wgNamespaceNamesTt;
210 - }
 207+ function getNsText( $index ) {
 208+ global $wgNamespaceNamesTt;
 209+ return $wgNamespaceNamesTt[$index];
 210+ }
211211
212 - function getNsText( $index ) {
213 - global $wgNamespaceNamesTt;
214 - return $wgNamespaceNamesTt[$index];
215 - }
 212+ function getNsIndex( $text ) {
 213+ global $wgNamespaceNamesTt;
216214
217 - function getNsIndex( $text ) {
218 - global $wgNamespaceNamesTt;
 215+ foreach ( $wgNamespaceNamesTt as $i => $n ) {
 216+ if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
 217+ }
 218+ return false;
 219+ }
219220
220 - foreach ( $wgNamespaceNamesTt as $i => $n ) {
221 - if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
222 - }
223 - return false;
224 - }
 221+ function getQuickbarSettings() {
 222+ global $wgQuickbarSettingsTt;
 223+ return $wgQuickbarSettingsTt;
 224+ }
225225
226 - function specialPage( $name ) {
227 - return $this->getNsText( Namespace::getSpecial() ) . ":" . $name;
228 - }
 226+ function getSkinNames() {
 227+ global $wgSkinNamesTt;
 228+ return $wgSkinNamesTt;
 229+ }
229230
230 - function getQuickbarSettings() {
231 - global $wgQuickbarSettingsTt;
232 - return $wgQuickbarSettingsTt;
233 - }
 231+ function getDateFormats() {
 232+ global $wgDateFormatsTt;
 233+ return $wgDateFormatsTt;
 234+ }
234235
235 - function getSkinNames() {
236 - global $wgSkinNamesTt;
237 - return $wgSkinNamesTt;
238 - }
 236+ # Inherit userAdjust()
239237
240 - function getDateFormats() {
241 - global $wgDateFormatsTt;
242 - return $wgDateFormatsTt;
243 - }
 238+ function date( $ts, $adj = false ) {
 239+ if ( $adj ) { $ts = $this->userAdjust( $ts ); }
244240
245 - # Inherit userAdjust()
 241+ $d = (0 + substr( $ts, 6, 2 )) . ". " .
 242+ $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) . " " .
 243+ substr( $ts, 0, 4 );
 244+ return $d;
 245+ }
246246
247 - function date( $ts, $adj = false ) {
248 - if ( $adj ) { $ts = $this->userAdjust( $ts ); }
 247+ function time( $ts, $adj = false ) {
 248+ if ( $adj ) { $ts = $this->userAdjust( $ts ); }
249249
250 - $d = (0 + substr( $ts, 6, 2 )) . ". " .
251 - $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) . " " .
252 - substr( $ts, 0, 4 );
253 - return $d;
254 - }
 250+ $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
 251+ return $t;
 252+ }
255253
256 - function time( $ts, $adj = false ) {
257 - if ( $adj ) { $ts = $this->userAdjust( $ts ); }
 254+ function timeanddate( $ts, $adj = false ) {
 255+ return $this->date( $ts, $adj ) . ", " . $this->time( $ts, $adj );
 256+ }
258257
259 - $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
260 - return $t;
261 - }
 258+ # Inherit rfc1123()
262259
263 - function timeanddate( $ts, $adj = false ) {
264 - return $this->date( $ts, $adj ) . ", " . $this->time( $ts, $adj );
265 - }
 260+ function getValidSpecialPages() {
 261+ global $wgValidSpecialPagesTt;
 262+ return $wgValidSpecialPagesTt;
 263+ }
266264
267 - # Inherit rfc1123()
 265+ function getSysopSpecialPages() {
 266+ global $wgSysopSpecialPagesTt;
 267+ return $wgSysopSpecialPagesTt;
 268+ }
268269
269 - function getValidSpecialPages() {
270 - global $wgValidSpecialPagesTt;
271 - return $wgValidSpecialPagesTt;
272 - }
 270+ function getDeveloperSpecialPages() {
 271+ global $wgDeveloperSpecialPagesTt;
 272+ return $wgDeveloperSpecialPagesTt;
 273+ }
273274
274 - function getSysopSpecialPages() {
275 - global $wgSysopSpecialPagesTt;
276 - return $wgSysopSpecialPagesTt;
277 - }
278 -
279 - function getDeveloperSpecialPages() {
280 - global $wgDeveloperSpecialPagesTt;
281 - return $wgDeveloperSpecialPagesTt;
282 - }
283 -
284275 function getMessage( $key ) {
285276 global $wgAllMessagesTt;
286277 if( isset( $wgAllMessagesTt[$key] ) ) {
@@ -289,32 +280,32 @@
290281 }
291282 }
292283
293 - # Inherit iconv()
 284+ # Inherit iconv()
294285
295 - # Inherit ucfirst()
 286+ # Inherit ucfirst()
296287
297 - # Inherit lcfirst()
 288+ # Inherit lcfirst()
298289
299 - # Inherit checkTitleEncoding()
 290+ # Inherit checkTitleEncoding()
300291
301 - # Inherit stripForSearch()
 292+ # Inherit stripForSearch()
302293
303 - # Inherit setAltEncoding()
 294+ # Inherit setAltEncoding()
304295
305 - # Inherit recodeForEdit()
 296+ # Inherit recodeForEdit()
306297
307 - # Inherit recodeInput()
 298+ # Inherit recodeInput()
308299
309 - # Inherit isRTL()
 300+ # Inherit isRTL()
310301
311 - # Inherit getMagicWords()
 302+ # Inherit getMagicWords()
312303
313 - function fallback8bitEncoding() {
314 - # Windows codepage 1252 is a superset of iso 8859-1
315 - # override this to use difference source encoding to
316 - # translate incoming 8-bit URLs.
317 - return "windows-1254";
318 - }
 304+ function fallback8bitEncoding() {
 305+ # Windows codepage 1252 is a superset of iso 8859-1
 306+ # override this to use difference source encoding to
 307+ # translate incoming 8-bit URLs.
 308+ return "windows-1254";
 309+ }
319310 }
320311
321312 ?>
Index: trunk/phase3/languages/LanguageAr.php
@@ -1142,36 +1142,26 @@
11431143 "," => "٬"
11441144 );
11451145
1146 - # TODO: TRANSLATION!
1147 -
1148 - # Inherit everything except...
1149 -
1150 - function getNamespaces()
1151 - {
 1146+ function getNamespaces() {
11521147 global $wgNamespaceNamesAr;
11531148 return $wgNamespaceNamesAr;
11541149 }
11551150
1156 -
1157 - function getNsText( $index )
1158 - {
 1151+ function getNsText( $index ) {
11591152 global $wgNamespaceNamesAr;
11601153 return $wgNamespaceNamesAr[$index];
11611154 }
11621155
1163 - function getNsIndex( $text )
1164 - {
 1156+ function getNsIndex( $text ) {
11651157 global $wgNamespaceNamesAr;
11661158
1167 - foreach ( $wgNamespaceNamesAr as $i => $n )
1168 - {
 1159+ foreach ( $wgNamespaceNamesAr as $i => $n ) {
11691160 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
11701161 }
11711162 return LanguageUtf8::getNsIndex( $text );
11721163 }
11731164
1174 - function getMonthAbbreviation( $key )
1175 - {
 1165+ function getMonthAbbreviation( $key ) {
11761166 /* No abbreviations in Arabic */
11771167 return $this->getMonthName( $key );
11781168 }
@@ -1180,9 +1170,8 @@
11811171
11821172 function linkPrefixExtension() { return true; }
11831173
1184 - function getDefaultUserOptions () {
1185 - global $wgDefaultUserOptionsEn;
1186 - $opt = $wgDefaultUserOptionsEn;
 1174+ function getDefaultUserOptions() {
 1175+ $opt = parent::getDefaultUserOptions();
11871176
11881177 # Swap sidebar to right side by default
11891178 $opt['quickbar'] = 2;
@@ -1192,27 +1181,16 @@
11931182 return $opt ;
11941183 }
11951184
1196 - function checkTitleEncoding( $s ) {
1197 - global $wgInputEncoding;
1198 -
1199 - # Check for non-UTF-8 URLs; assume they are windows-1256?
1200 - $ishigh = preg_match( '/[\x80-\xff]/', $s);
1201 - $isutf = ($ishigh ? preg_match( '/^([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|' .
1202 - '[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xf7][\x80-\xbf]{3})+$/', $s ) : true );
1203 -
1204 - if( $ishigh and !$isutf )
1205 - return iconv( "windows-1256", "utf-8", $s );
1206 -
1207 - return $s;
 1185+ function fallback8bitEncoding() {
 1186+ return "windows-1256";
12081187 }
12091188
1210 - function getMessage( $key )
1211 - {
1212 - global $wgAllMessagesAr, $wgAllMessagesEn;
1213 - $m = $wgAllMessagesAr[$key];
 1189+ function getMessage( $key ) {
 1190+ global $wgAllMessagesAr, $wgAllMessagesEn;
 1191+ $m = $wgAllMessagesAr[$key];
12141192
1215 - if ( "" == $m ) { return $wgAllMessagesEn[$key]; }
1216 - else return $m;
 1193+ if ( "" == $m ) { return $wgAllMessagesEn[$key]; }
 1194+ else return $m;
12171195 }
12181196
12191197 function formatNum( $number ) {
Index: trunk/phase3/languages/LanguageEo.php
@@ -1046,8 +1046,7 @@
10471047 # Heredu userAdjust()
10481048
10491049 # La dato- kaj tempo-funkciojn oni povas precizigi laŭ lingvo
1050 - function date( $ts, $adj = false )
1051 - {
 1050+ function date( $ts, $adj = false ) {
10521051 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
10531052
10541053 $d = (0 + substr( $ts, 6, 2 )) . ". " .
@@ -1057,26 +1056,22 @@
10581057 return $d;
10591058 }
10601059
1061 - function getValidSpecialPages()
1062 - {
 1060+ function getValidSpecialPages() {
10631061 global $wgValidSpecialPagesEo;
10641062 return $wgValidSpecialPagesEo;
10651063 }
10661064
1067 - function getSysopSpecialPages()
1068 - {
 1065+ function getSysopSpecialPages() {
10691066 global $wgSysopSpecialPagesEo;
10701067 return $wgSysopSpecialPagesEo;
10711068 }
10721069
1073 - function getDeveloperSpecialPages()
1074 - {
 1070+ function getDeveloperSpecialPages() {
10751071 global $wgDeveloperSpecialPagesEo;
10761072 return $wgDeveloperSpecialPagesEo;
10771073 }
10781074
1079 - function getMessage( $key )
1080 - {
 1075+ function getMessage( $key ) {
10811076 global $wgAllMessagesEo;
10821077 if(array_key_exists($key, $wgAllMessagesEo))
10831078 return $wgAllMessagesEo[$key];
@@ -1127,7 +1122,7 @@
11281123 function checkTitleEncoding( $s ) {
11291124 global $wgInputEncoding;
11301125
1131 - # Check for X-system backwards-compatibility URLs
 1126+ # Check for X-system backwards-compatibility URLs
11321127 $ishigh = preg_match( '/[\x80-\xff]/', $s);
11331128 $isutf = preg_match( '/^([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|' .
11341129 '[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xf7][\x80-\xbf]{3})+$/', $s );
Index: trunk/phase3/languages/LanguageIs.php
@@ -1123,7 +1123,7 @@
11241124 function getDefaultUserOptions () {
11251125 global $wgDefaultUserOptionsIs;
11261126 return $wgDefaultUserOptionsIs;
1127 - }
 1127+ }
11281128
11291129 function getBookstoreList () {
11301130 global $wgBookstoreListIs;
@@ -1164,26 +1164,22 @@
11651165 return $wgDateFormatsIs;
11661166 }
11671167
1168 - function getValidSpecialPages()
1169 - {
 1168+ function getValidSpecialPages() {
11701169 global $wgValidSpecialPagesIs;
11711170 return $wgValidSpecialPagesIs;
11721171 }
11731172
1174 - function getSysopSpecialPages()
1175 - {
 1173+ function getSysopSpecialPages() {
11761174 global $wgSysopSpecialPagesIs;
11771175 return $wgSysopSpecialPagesIs;
11781176 }
11791177
1180 - function getDeveloperSpecialPages()
1181 - {
 1178+ function getDeveloperSpecialPages() {
11821179 global $wgDeveloperSpecialPagesIs;
11831180 return $wgDeveloperSpecialPagesIs;
11841181 }
11851182
1186 - function getMessage( $key )
1187 - {
 1183+ function getMessage( $key ) {
11881184 global $wgAllMessagesIs;
11891185 if( isset( $wgAllMessagesIs[$key] ) ) {
11901186 return $wgAllMessagesIs[$key];
@@ -1192,19 +1188,15 @@
11931189 }
11941190 }
11951191
1196 - function getAllMessages()
1197 - {
 1192+ function getAllMessages() {
11981193 global $wgAllMessagesIs;
11991194 return $wgAllMessagesIs;
12001195 }
12011196
1202 - function getMagicWords()
1203 - {
 1197+ function getMagicWords() {
12041198 global $wgMagicWordsIs;
12051199 return $wgMagicWordsIs;
12061200 }
12071201 }
12081202
1209 -# @include_once( "Language" . ucfirst( $wgLanguageCode ) . ".php" );
1210 -
12111203 ?>
Index: trunk/phase3/languages/LanguageFa.php
@@ -1127,11 +1127,11 @@
11281128 "," => "٬"
11291129 );
11301130
1131 - function getDefaultUserOptions () {
1132 - $opt = Language::getDefaultUserOptions();
1133 - $opt["quickbar"]=2;
1134 - $opt["underline"]=0;
1135 - return $opt;
 1131+ function getDefaultUserOptions() {
 1132+ $opt = Language::getDefaultUserOptions();
 1133+ $opt["quickbar"] = 2;
 1134+ $opt["underline"] = 0;
 1135+ return $opt;
11361136 }
11371137
11381138 function getNamespaces() {
@@ -1153,10 +1153,6 @@
11541154 return false;
11551155 }
11561156
1157 - function specialPage( $name ) {
1158 - return $this->getNsText( Namespace::getSpecial() ) . ":" . $name;
1159 - }
1160 -
11611157 function getQuickbarSettings() {
11621158 global $wgQuickbarSettingsFa;
11631159 return $wgQuickbarSettingsFa;
@@ -1167,26 +1163,22 @@
11681164 return $wgSkinNamesFa;
11691165 }
11701166
1171 - function getValidSpecialPages()
1172 - {
 1167+ function getValidSpecialPages() {
11731168 global $wgValidSpecialPagesFa;
11741169 return $wgValidSpecialPagesFa;
11751170 }
11761171
1177 - function getSysopSpecialPages()
1178 - {
 1172+ function getSysopSpecialPages() {
11791173 global $wgSysopSpecialPagesFa;
11801174 return $wgSysopSpecialPagesFa;
11811175 }
11821176
1183 - function getDeveloperSpecialPages()
1184 - {
 1177+ function getDeveloperSpecialPages() {
11851178 global $wgDeveloperSpecialPagesFa;
11861179 return $wgDeveloperSpecialPagesFa;
11871180 }
11881181
1189 - function getMessage( $key )
1190 - {
 1182+ function getMessage( $key ) {
11911183 global $wgAllMessagesFa;
11921184 if(array_key_exists($key, $wgAllMessagesFa))
11931185 return $wgAllMessagesFa[$key];
Index: trunk/phase3/languages/LanguageZh_cn.php
@@ -31,7 +31,7 @@
3232 ) + $wgNamespaceNamesEn;
3333
3434 /* private */ $wgQuickbarSettingsZh_cn = array(
35 - "无", /* "None" */
 35+ "无", /* "None" */
3636 "左侧固定", /* "Fixed left" */
3737 "右侧固定", /* "Fixed right" */
3838 "左侧漂移" /* "Floating left" */
@@ -46,7 +46,7 @@
4747 'davinci' => "DaVinci",
4848 'mono' => "Mono",
4949 'monobook' => "MonoBook",
50 - "myskin" => "MySkin"
 50+ 'myskin' => "MySkin"
5151 );
5252
5353
@@ -953,11 +953,6 @@
954954
955955 class LanguageZh_cn extends LanguageUtf8 {
956956
957 - function getDefaultUserOptions () {
958 - $opt = Language::getDefaultUserOptions();
959 - return $opt;
960 - }
961 -
962957 function getBookstoreList () {
963958 global $wgBookstoreListZh_cn ;
964959 return $wgBookstoreListZh_cn ;
Index: trunk/phase3/languages/LanguageFo.php
@@ -1,4 +1,4 @@
2 -<?
 2+<?php
33
44 require_once( 'LanguageUtf8.php');
55
@@ -226,11 +226,6 @@
227227 );
228228 class LanguageFo extends LanguageUtf8 {
229229
230 - function getDefaultUserOptions () {
231 - $opt = Language::getDefaultUserOptions();
232 - return $opt;
233 - }
234 -
235230 function getBookstoreList () {
236231 global $wgBookstoreListFo ;
237232 return $wgBookstoreListFo ;
@@ -255,10 +250,6 @@
256251 return false;
257252 }
258253
259 - function specialPage( $name ) {
260 - return $this->getNsText( Namespace::getSpecial() ) . ":" . $name;
261 - }
262 -
263254 function getQuickbarSettings() {
264255 global $wgQuickbarSettingsFo;
265256 return $wgQuickbarSettingsFo;
@@ -276,8 +267,7 @@
277268
278269 # Inherit userAdjust()
279270
280 - function date( $ts, $adj = false )
281 - {
 271+ function date( $ts, $adj = false ) {
282272 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
283273
284274 $d = (0 + substr( $ts, 6, 2 )) . ". " .
@@ -286,41 +276,26 @@
287277 return $d;
288278 }
289279
290 - function time( $ts, $adj = false )
291 - {
292 - if ( $adj ) { $ts = $this->userAdjust( $ts ); }
293 -
294 - $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
295 - return $t;
296 - }
297 -
298 - function timeanddate( $ts, $adj = false )
299 - {
 280+ function timeanddate( $ts, $adj = false ) {
300281 return $this->date( $ts, $adj ) . " kl. " . $this->time( $ts, $adj );
301282 }
302283
303 - # Inherit rfc1123()
304 -
305 - function getValidSpecialPages()
306 - {
 284+ function getValidSpecialPages() {
307285 global $wgValidSpecialPagesFo;
308286 return $wgValidSpecialPagesFo;
309287 }
310288
311 - function getSysopSpecialPages()
312 - {
 289+ function getSysopSpecialPages() {
313290 global $wgSysopSpecialPagesFo;
314291 return $wgSysopSpecialPagesFo;
315292 }
316293
317 - function getDeveloperSpecialPages()
318 - {
 294+ function getDeveloperSpecialPages() {
319295 global $wgDeveloperSpecialPagesFo;
320296 return $wgDeveloperSpecialPagesFo;
321297 }
322298
323 - function getMessage( $key )
324 - {
 299+ function getMessage( $key ) {
325300 global $wgAllMessagesFo, $wgAllMessagesEn;
326301 $m = $wgAllMessagesFo[$key];
327302
@@ -328,26 +303,6 @@
329304 else return $m;
330305 }
331306
332 - # Inherit iconv()
333 -
334 - # Inherit ucfirst()
335 -
336 - # Inherit lcfirst()
337 -
338 - # Inherit checkTitleEncoding()
339 -
340 - # Inherit stripForSearch()
341 -
342 - # Inherit setAltEncoding()
343 -
344 - # Inherit recodeForEdit()
345 -
346 - # Inherit recodeInput()
347 -
348 - # Inherit isRTL()
349 -
350 - # Inherit getMagicWords()
351 -
352307 }
353308
354309 ?>
Index: trunk/phase3/languages/LanguageFr.php
@@ -1219,39 +1219,27 @@
12201220 'mw_math_mathml' => 'MathML',
12211221 );
12221222
1223 -class LanguageFr extends LanguageUtf8
1224 -{
 1223+class LanguageFr extends LanguageUtf8 {
12251224
1226 - function getDefaultUserOptions()
1227 - {
1228 - $opt = Language::getDefaultUserOptions();
1229 - return $opt;
 1225+ function getBookstoreList () {
 1226+ global $wgBookstoreListFr ;
 1227+ return $wgBookstoreListFr ;
12301228 }
12311229
1232 - function getBookstoreList () {
1233 - global $wgBookstoreListFr ;
1234 - return $wgBookstoreListFr ;
1235 - }
1236 -
1237 - function getNamespaces()
1238 - {
 1230+ function getNamespaces() {
12391231 global $wgNamespaceNamesFr;
12401232 return $wgNamespaceNamesFr;
12411233 }
12421234
1243 -
1244 - function getNsText( $index )
1245 - {
 1235+ function getNsText( $index ) {
12461236 global $wgNamespaceNamesFr;
12471237 return $wgNamespaceNamesFr[$index];
12481238 }
12491239
1250 - function getNsIndex( $text )
1251 - {
 1240+ function getNsIndex( $text ) {
12521241 global $wgNamespaceNamesFr, $wgSitename;
12531242
1254 - foreach ( $wgNamespaceNamesFr as $i => $n )
1255 - {
 1243+ foreach ( $wgNamespaceNamesFr as $i => $n ) {
12561244 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
12571245 }
12581246 if( $wgSitename == "Wikipédia" ) {
@@ -1261,19 +1249,12 @@
12621250 return false;
12631251 }
12641252
1265 - function specialPage( $name )
1266 - {
1267 - return $this->getNsText( Namespace::getSpecial() ) . ":" . $name;
1268 - }
1269 -
1270 - function getQuickbarSettings()
1271 - {
 1253+ function getQuickbarSettings() {
12721254 global $wgQuickbarSettingsFr;
12731255 return $wgQuickbarSettingsFr;
12741256 }
12751257
1276 - function getSkinNames()
1277 - {
 1258+ function getSkinNames() {
12781259 global $wgSkinNamesFr;
12791260 return $wgSkinNamesFr;
12801261 }
@@ -1281,8 +1262,7 @@
12821263
12831264 // Inherit userAdjust()
12841265
1285 - function date( $ts, $adj = false )
1286 - {
 1266+ function date( $ts, $adj = false ) {
12871267 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
12881268
12891269 $d = (0 + substr( $ts, 6, 2 )) . " " .
@@ -1291,39 +1271,26 @@
12921272 return $d;
12931273 }
12941274
1295 - function time( $ts, $adj = false )
1296 - {
1297 - if ( $adj ) { $ts = $this->userAdjust( $ts ); }
1298 -
1299 - $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
1300 - return $t;
1301 - }
1302 -
1303 - function timeanddate( $ts, $adj = false )
1304 - {
 1275+ function timeanddate( $ts, $adj = false ) {
13051276 return $this->date( $ts, $adj ) . " à " . $this->time( $ts, $adj );
13061277 }
13071278
1308 - function getValidSpecialPages()
1309 - {
 1279+ function getValidSpecialPages() {
13101280 global $wgValidSpecialPagesFr;
13111281 return $wgValidSpecialPagesFr;
13121282 }
13131283
1314 - function getSysopSpecialPages()
1315 - {
 1284+ function getSysopSpecialPages() {
13161285 global $wgSysopSpecialPagesFr;
13171286 return $wgSysopSpecialPagesFr;
13181287 }
13191288
1320 - function getDeveloperSpecialPages()
1321 - {
 1289+ function getDeveloperSpecialPages() {
13221290 global $wgDeveloperSpecialPagesFr;
13231291 return $wgDeveloperSpecialPagesFr;
13241292 }
13251293
1326 - function getMessage( $key )
1327 - {
 1294+ function getMessage( $key ) {
13281295 global $wgAllMessagesFr, $wgAllMessagesEn;
13291296 if( isset( $wgAllMessagesFr[$key] ) ) {
13301297 return $wgAllMessagesFr[$key];
@@ -1332,7 +1299,6 @@
13331300 }
13341301 }
13351302
1336 - function isRTL() { return false; }
13371303 }
13381304
13391305 ?>
Index: trunk/phase3/languages/LanguageNl.php
@@ -905,13 +905,6 @@
906906 return $d;
907907 }
908908
909 - function time( $ts, $adj = false ) {
910 - if ( $adj ) { $ts = $this->userAdjust( $ts ); }
911 -
912 - $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
913 - return $t;
914 - }
915 -
916909 function timeanddate( $ts, $adj = false ) {
917910 return $this->date( $ts, $adj ) . " " . $this->time( $ts, $adj );
918911 }
@@ -919,9 +912,8 @@
920913 function getValidSpecialPages() {
921914 global $wgValidSpecialPagesNl;
922915 return $wgValidSpecialPagesNl;
923 - }
 916+ }
924917
925 -
926918 function getSysopSpecialPages() {
927919 global $wgSysopSpecialPagesNl;
928920 return $wgSysopSpecialPagesNl;
@@ -941,8 +933,6 @@
942934 }
943935 }
944936
945 - function isRTL() { return false; }
946 -
947937 # Inherit iconv(), ucfirst(), stripForSearch(), recodeForEdit(), recodeInput()
948938 # since they are same as English/Latin1
949939
Index: trunk/phase3/languages/LanguageNn.php
@@ -1324,7 +1324,7 @@
13251325 function getDefaultUserOptions () {
13261326 global $wgDefaultUserOptionsNn;
13271327 return $wgDefaultUserOptionsNn;
1328 - }
 1328+ }
13291329
13301330 function getQuickbarSettings() {
13311331 global $wgQuickbarSettingsNn;

Status & tagging log