'Phương_tiện', NS_SPECIAL => 'Đặc_biệt', NS_MAIN => '', NS_TALK => 'Thảo_luận', NS_USER => 'Thành_viên', NS_USER_TALK => 'Thảo_luận_Thành_viên', NS_PROJECT => $wgMetaNamespace, NS_PROJECT_TALK => 'Thảo_luận_'.$wgMetaNamespace, NS_IMAGE => 'Hình', NS_IMAGE_TALK => 'Thảo_luận_Hình', NS_MEDIAWIKI => 'MediaWiki', NS_MEDIAWIKI_TALK => 'Thảo_luận_MediaWiki', NS_TEMPLATE => 'Tiêu_bản', NS_TEMPLATE_TALK => 'Thảo_luận_Tiêu_bản', NS_HELP => 'Trợ_giúp', NS_HELP_TALK => 'Thảo_luận_Trợ_giúp', NS_CATEGORY => 'Thể_loại', NS_CATEGORY_TALK => 'Thảo_luận_Thể_loại' ) + $wgNamespaceNamesEn; /* private */ $wgQuickbarSettingsVi = array( 'Không', 'Trái', 'Phải', 'Nổi bên trái' ); /* private */ $wgSkinNamesVi = array( 'standard' => 'Cổ điển', 'nostalgia' => 'Vọng cổ', 'myskin' => 'Cá nhân' ) + $wgSkinNamesEn; /* private */ $wgMagicWordsVi = array( 'redirect' => array( 0, '#redirect' , '#đổi' ), 'notoc' => array( 0, '__NOTOC__' , '__KHÔNGMỤCMỤC__' ), 'forcetoc' => array( 0, '__FORCETOC__', '__LUÔNMỤCLỤC__' ), 'toc' => array( 0, '__TOC__' , '__MỤCLỤC__' ), 'noeditsection' => array( 0, '__NOEDITSECTION__', '__KHÔNGSỬAMỤC__' ), 'start' => array( 0, '__START__' , '__BẮTĐẦU__' ), 'currentmonth' => array( 1, 'CURRENTMONTH' , 'THÁNGNÀY' ), 'currentmonthname' => array( 1, 'CURRENTMONTHNAME' , 'TÊNTHÁNGNÀY' ), 'currentmonthnamegen' => array( 1, 'CURRENTMONTHNAMEGEN' , 'TÊNDÀITHÁNGNÀY' ), 'currentmonthabbrev' => array( 1, 'CURRENTMONTHABBREV' , 'TÊNNGẮNTHÁNGNÀY' ), 'currentday' => array( 1, 'CURRENTDAY' , 'NGÀYNÀY' ), 'currentdayname' => array( 1, 'CURRENTDAYNAME' , 'TÊNNGÀYNÀY' ), 'currentyear' => array( 1, 'CURRENTYEAR' , 'NĂMNÀY' ), 'currenttime' => array( 1, 'CURRENTTIME' , 'GIỜNÀY' ), 'numberofarticles' => array( 1, 'NUMBEROFARTICLES' , 'SỐBÀI' ), 'numberoffiles' => array( 1, 'NUMBEROFFILES' , 'SỐTẬPTIN' ), 'pagename' => array( 1, 'PAGENAME' , 'TÊNTRANG' ), 'pagenamee' => array( 1, 'PAGENAMEE' , 'TÊNTRANG2' ), 'namespace' => array( 1, 'NAMESPACE' , 'KHÔNGGIANTÊN' ), 'msg' => array( 0, 'MSG:' , 'NHẮN:' ), 'subst' => array( 0, 'SUBST:' , 'THẾ:' ), 'msgnw' => array( 0, 'MSGNW:' , 'NHẮNMỚI:' ), 'end' => array( 0, '__END__' , '__KẾT__' ), 'img_thumbnail' => array( 1, 'thumbnail', 'thumb' , 'nhỏ' ), 'img_right' => array( 1, 'right' , 'phải' ), 'img_left' => array( 1, 'left' , 'trái' ), 'img_none' => array( 1, 'none' , 'không' ), 'img_width' => array( 1, '$1px' ), 'img_center' => array( 1, 'center', 'centre' , 'giữa' ), 'img_framed' => array( 1, 'framed', 'enframed', 'frame' , 'khung'), 'int' => array( 0, 'INT:' ), 'sitename' => array( 1, 'SITENAME' , 'TÊNMẠNG' ), 'ns' => array( 0, 'NS:' ), 'localurl' => array( 0, 'LOCALURL:' ), 'localurle' => array( 0, 'LOCALURLE:' ), 'server' => array( 0, 'SERVER' , 'MÁYCHỦ' ), 'servername' => array( 0, 'SERVERNAME' , 'TÊNMÁYCHỦ' ), 'scriptpath' => array( 0, 'SCRIPTPATH' , '' ), 'grammar' => array( 0, 'GRAMMAR:' , 'NGỮPHÁP' ), 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__', '__KHÔNGCHUYỂNTÊN__'), 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', '__NOCC__', '__KHÔNGCHUYỂNNỘIDUNG__'), 'currentweek' => array( 1, 'CURRENTWEEK' , 'TUẦNNÀY' ), 'currentdow' => array( 1, 'CURRENTDOW' ), 'revisionid' => array( 1, 'REVISIONID' , 'SỐBẢN' ), ); /* private */ $wgDateFormatsVi = array( MW_DATE_DEFAULT => 'Không lựa chọn', 1 => '16:12, tháng 1 ngày 15 năm 2001', 2 => '16:12, ngày 15 tháng 1 năm 2001', 3 => '16:12, năm 2001 tháng 1 ngày 15', 4 => '', MW_DATE_ISO => '2001-01-15 16:12:34' ); global $wgRightsText; if (!$wgCachedMessageArrays) { require_once('MessagesVi.php'); } class LanguageVi extends LanguageUtf8 { function getBookstoreList () { global $wgBookstoreListVi ; return $wgBookstoreListVi ; } function getNamespaces() { global $wgNamespaceNamesVi; return $wgNamespaceNamesVi; } function getQuickbarSettings() { global $wgQuickbarSettingsVi; return $wgQuickbarSettingsVi; } function getSkinNames() { global $wgSkinNamesVi; return $wgSkinNamesVi; } function date( $ts, $adj = false, $format = true, $timecorrection = false ) { if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); } $datePreference = $this->dateFormat( $format ); $month = $this->formatMonth( substr( $ts, 4, 2 ), $datePreference ); $day = $this->formatDay( substr( $ts, 6, 2 ), $datePreference ); $year = $this->formatNum( substr( $ts, 0, 4 ), true ); switch( $datePreference ) { case 3: case 4: return "$day/$month/$year"; case MW_DATE_ISO: return substr($ts, 0, 4). '-' . substr($ts, 4, 2). '-' .substr($ts, 6, 2); default: return "$day $month năm $year"; } } function timeSeparator( $format ) { $datePreference = $this->dateFormat($format); switch ( $datePreference ) { case '4': return 'h'; default: return ':'; } } function timeDateSeparator( $format ) { $datePreference = $this->dateFormat($format); switch ( $datePreference ) { case '0': case '1': case '2': return ', '; default: return ' '; } } function formatMonth( $month, $format ) { $datePreference = $this->dateFormat($format); switch ( $datePreference ) { case '0': case '1': return 'tháng ' . ( 0 + $month ); case '2': return 'tháng ' . $this->getSpecialMonthName( $month ); default: return 0 + $month; } } function formatDay( $day, $format ) { $datePreference = $this->dateFormat($format); switch ( $datePreference ) { case '0': case '1': case '2': return 'ngày ' . (0 + $day); default: return 0 + $day; } } 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]; } function getDateFormats() { global $wgDateFormatsVi; return $wgDateFormatsVi; } function &getMagicWords() { global $wgMagicWordsVi; return $wgMagicWordsVi; } function separatorTransformTable() { return array(',' => '.', '.' => ',' ); } function getMessage( $key ) { global $wgAllMessagesVi; if( isset( $wgAllMessagesVi[$key] ) ) { return $wgAllMessagesVi[$key]; } else { return parent::getMessage( $key ); } } } ?>