From 38d1ac9bf3db53fc1e3d342251b3d289145229a9 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 9 Feb 2005 07:38:11 +0000 Subject: [PATCH] * (bug 1498) Fix day, month names etc in Estonian localization --- languages/LanguageEt.php | 40 +++++++--------------------------------- 1 file changed, 7 insertions(+), 33 deletions(-) diff --git a/languages/LanguageEt.php b/languages/LanguageEt.php index 4cdd07a24d..364c4e5c4b 100644 --- a/languages/LanguageEt.php +++ b/languages/LanguageEt.php @@ -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 ); + } } + } /* -- 2.20.1