* (bug 5802) {{CURRENTMONTHNAME}} variable broken in Vietnamese locale
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Wed, 3 May 2006 16:08:11 +0000 (16:08 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Wed, 3 May 2006 16:08:11 +0000 (16:08 +0000)
RELEASE-NOTES
languages/LanguageVi.php

index 09ad397..f09a477 100644 (file)
@@ -193,6 +193,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 5801) Correct handling of underscores in Special:Listusers
 * Clean up Special:Listusers; add an "(all)" label to the group selection box
 * (bug 5812) Use appropriate link colour in Special:Mostlinked
+* (bug 5802) {{CURRENTMONTHNAME}} variable broken in Vietnamese locale
 
 == Compatibility ==
 
index 5449a41..b9ba462 100644 (file)
@@ -167,10 +167,9 @@ class LanguageVi extends LanguageUtf8 {
                        switch ( $datePreference ) {
                                case '0':
                                case '1': return 'tháng ' . ( 0 + $month );
-                               case '2': return 'tháng ' . $this->getMonthName( $month );
+                               case '2': return 'tháng ' . $this->getSpecialMonthName( $month );
                                default:  return 0 + $month;
                        }
-               return $this->getMonthName( $month );
        }
 
        function formatDay( $day, $format ) {
@@ -183,7 +182,7 @@ class LanguageVi extends LanguageUtf8 {
                        }
        }
 
-       function getMonthName( $key ) {
+       function getSpecialMonthName( $key ) {
                $names = 'Một, Hai, Ba, Tư, Năm, Sáu, Bảy, Tám, Chín, Mười, Mười một, Mười hai';
                $names = explode(', ', $names);
                return $names[$key-1];