languagesv.php
来自「php 开发的内容管理系统」· PHP 代码 · 共 115 行
PHP
115 行
<?php/** * Swedish (Svenska) * * @package MediaWiki * @subpackage Language */require_once( "LanguageUtf8.php" );if (!$wgCachedMessageArrays) { require_once('MessagesSv.php');}class LanguageSv extends LanguageUtf8 { private $mMessagesSv, $mNamespaceNamesSv; private $mQuickbarSettingsSv = array( "Ingen", "Fast v盲nster", "Fast h枚ger", "Flytande v盲nster" ); private $mSkinNamesSv = array( 'standard' => "Standard", 'nostalgia' => "Nostalgi", 'cologneblue' => "Cologne Bl氓", ); function __construct() { parent::__construct(); global $wgAllMessagesSv; $this->mMessagesSv =& $wgAllMessagesSv; global $wgMetaNamespace; $this->mNamespaceNamesSv = array( NS_MEDIA => "Media", NS_SPECIAL => "Special", NS_MAIN => "", NS_TALK => "Diskussion", NS_USER => "Anv盲ndare", NS_USER_TALK => "Anv盲ndardiskussion", NS_PROJECT => $wgMetaNamespace, NS_PROJECT_TALK => $wgMetaNamespace . "diskussion", NS_IMAGE => "Bild", NS_IMAGE_TALK => "Bilddiskussion", NS_MEDIAWIKI => "MediaWiki", NS_MEDIAWIKI_TALK => "MediaWiki_diskussion", NS_TEMPLATE => "Mall", NS_TEMPLATE_TALK => "Malldiskussion", NS_HELP => "Hj盲lp", NS_HELP_TALK => "Hj盲lp_diskussion", NS_CATEGORY => "Kategori", NS_CATEGORY_TALK => "Kategoridiskussion" ); } function getNamespaces() { return $this->mNamespaceNamesSv + parent::getNamespaces(); } function getQuickbarSettings() { return $this->mQuickbarSettingsSv; } function getSkinNames() { return $this->mSkinNamesSv + parent::getSkinNames(); } function getMessage( $key ) { if( isset( $this->mMessagesSv[$key] ) ) { return $this->mMessagesSv[$key]; } else { return parent::getMessage( $key ); } } function getAllMessages() { return $this->mMessagesSv; } function linkTrail() { return '/^([a-z氓盲枚茅脜脛脰脡]+)(.*)$/sDu'; } function separatorTransformTable() { return array( ',' => "\xc2\xa0", // @bug 2749 '.' => ',' ); } // "." is used as the character to separate the // hours from the minutes in the date output function timeSeparator( $format ) { return '.'; } function timeanddate( $ts, $adj = false, $format = false, $timecorrection = false ) { $format = $this->dateFormat( $format ); if( $format == MW_DATE_ISO ) { return parent::timeanddate( $ts, $adj, $format, $timecorrection ); } else { return $this->date( $ts, $adj, $format, $timecorrection ) . " kl." . $this->time( $ts, $adj, $format, $timecorrection ); } }}?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?