9 require_once( "LanguageUtf8.php" );
11 if (!$wgCachedMessageArrays) {
12 require_once('MessagesSv.php');
15 class LanguageSv
extends LanguageUtf8
{
16 private $mMessagesSv, $mNamespaceNamesSv;
18 private $mQuickbarSettingsSv = array(
25 private $mSkinNamesSv = array(
26 'standard' => "Standard",
27 'nostalgia' => "Nostalgi",
28 'cologneblue' => "Cologne Blå",
31 function __construct() {
32 parent
::__construct();
34 global $wgAllMessagesSv;
35 $this->mMessagesSv
=& $wgAllMessagesSv;
37 global $wgMetaNamespace;
38 $this->mNamespaceNamesSv
= array(
40 NS_SPECIAL
=> "Special",
42 NS_TALK
=> "Diskussion",
43 NS_USER
=> "Användare",
44 NS_USER_TALK
=> "Användardiskussion",
45 NS_PROJECT
=> $wgMetaNamespace,
46 NS_PROJECT_TALK
=> $wgMetaNamespace . "diskussion",
48 NS_IMAGE_TALK
=> "Bilddiskussion",
49 NS_MEDIAWIKI
=> "MediaWiki",
50 NS_MEDIAWIKI_TALK
=> "MediaWiki_diskussion",
51 NS_TEMPLATE
=> "Mall",
52 NS_TEMPLATE_TALK
=> "Malldiskussion",
54 NS_HELP_TALK
=> "Hjälp_diskussion",
55 NS_CATEGORY
=> "Kategori",
56 NS_CATEGORY_TALK
=> "Kategoridiskussion"
60 function getNamespaces() {
61 return $this->mNamespaceNamesSv + parent
::getNamespaces();
64 function getQuickbarSettings() {
65 return $this->mQuickbarSettingsSv
;
68 function getSkinNames() {
69 return $this->mSkinNamesSv + parent
::getSkinNames();
72 function getMessage( $key ) {
73 if( isset( $this->mMessagesSv
[$key] ) ) {
74 return $this->mMessagesSv
[$key];
76 return parent
::getMessage( $key );
80 function getAllMessages() {
81 return $this->mMessagesSv
;
84 function linkTrail() {
85 return '/^([a-zåäöéÅÄÖÉ]+)(.*)$/sDu';
89 function separatorTransformTable() {
91 ',' => "\xc2\xa0", // @bug 2749
96 // "." is used as the character to separate the
97 // hours from the minutes in the date output
98 function timeSeparator( $format ) {
102 function timeanddate( $ts, $adj = false, $format = false, $timecorrection = false ) {
103 $format = $this->dateFormat( $format );
104 if( $format == MW_DATE_ISO
) {
105 return parent
::timeanddate( $ts, $adj, $format, $timecorrection );
107 return $this->date( $ts, $adj, $format, $timecorrection ) .
109 $this->time( $ts, $adj, $format, $timecorrection );