* (bug 1498) Fix day, month names etc in Estonian localization
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 9 Feb 2005 07:38:11 +0000 (07:38 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 9 Feb 2005 07:38:11 +0000 (07:38 +0000)
languages/LanguageEt.php

index 4cdd07a..364c4e5 100644 (file)
@@ -1342,36 +1342,6 @@ class LanguageEt extends LanguageUtf8 {
                return $wgSkinNamesEt;
        }
 
-       function getMathNames() {
-               global $wgMathNamesEt;
-               return $wgMathNamesEt;
-       }
-
-       function getMonthName( $key )
-       {
-               global $wgMonthNamesEt;
-               return $wgMonthNamesEt[$key-1];
-       }
-
-       /* by default we just return base form */
-       function getMonthNameGen( $key )
-       {
-               global $wgMonthNamesEt;
-               return $wgMonthNamesEt[$key-1];
-       }
-
-       function getMonthAbbreviation( $key )
-       {
-               global $wgMonthAbbreviationsEt;
-               return $wgMonthAbbreviationsEt[$key-1];
-       }
-
-       function getWeekdayName( $key )
-       {
-               global $wgWeekdayNamesEt;
-               return $wgWeekdayNamesEt[$key-1];
-       }
-
        function getValidSpecialPages()
        {
                global $wgValidSpecialPagesEt;
@@ -1390,11 +1360,15 @@ class LanguageEt extends LanguageUtf8 {
                return $wgDeveloperSpecialPagesEt;
        }
 
-       function getMessage( $key )
-       {
+       function getMessage( $key ) {
                global $wgAllMessagesEt;
-               return $wgAllMessagesEt[$key];
+               if( isset( $wgAllMessagesEt[$key] ) ) {
+                       return $wgAllMessagesEt[$key];
+               } else {
+                       return Language::getMessage( $key );
+               }
        }
+
 }
 /*
  </nowiki>