7 # Swedish localisation for MediaWiki
10 require_once( "LanguageUtf8.php" );
12 /* private */ $wgNamespaceNamesSv = array(
14 NS_SPECIAL
=> "Special",
16 NS_TALK
=> "Diskussion",
17 NS_USER
=> "Användare",
18 NS_USER_TALK
=> "Användardiskussion",
19 NS_PROJECT
=> $wgMetaNamespace,
20 NS_PROJECT_TALK
=> $wgMetaNamespace . "diskussion",
22 NS_IMAGE_TALK
=> "Bilddiskussion",
23 NS_MEDIAWIKI
=> "MediaWiki",
24 NS_MEDIAWIKI_TALK
=> "MediaWiki_diskussion",
25 NS_TEMPLATE
=> "Mall",
26 NS_TEMPLATE_TALK
=> "Malldiskussion",
28 NS_HELP_TALK
=> "Hjälp_diskussion",
29 NS_CATEGORY
=> "Kategori",
30 NS_CATEGORY_TALK
=> "Kategoridiskussion"
31 ) +
$wgNamespaceNamesEn;
33 /* inherit standard defaults */
35 /* private */ $wgQuickbarSettingsSv = array(
42 /* private */ $wgSkinNamesSv = array(
43 'standard' => "Standard",
44 'nostalgia' => "Nostalgi",
45 'cologneblue' => "Cologne Blå",
49 if (!$wgCachedMessageArrays) {
50 require_once('MessagesSv.php');
53 class LanguageSv
extends LanguageUtf8
{
55 function getNamespaces() {
56 global $wgNamespaceNamesSv;
57 return $wgNamespaceNamesSv;
60 function getQuickbarSettings() {
61 global $wgQuickbarSettingsSv;
62 return $wgQuickbarSettingsSv;
65 function getSkinNames() {
66 global $wgSkinNamesSv;
67 return $wgSkinNamesSv;
70 // "." is used as the character to separate the
71 // hours from the minutes in the date output
72 function timeSeparator() {
76 function timeanddate( $ts, $adj = false, $format = false, $timecorrection = false ) {
77 $format = $this->dateFormat( $format );
78 if( $format == MW_DATE_ISO
) {
79 return parent
::timeanddate( $ts, $adj, $format, $timecorrection );
81 return $this->date( $ts, $adj, $format, $timecorrection ) .
83 $this->time( $ts, $adj, $format, $timecorrection );
87 function getMessage( $key ) {
88 global $wgAllMessagesSv;
89 if( isset( $wgAllMessagesSv[$key] ) ) {
90 return $wgAllMessagesSv[$key];
92 return parent
::getMessage( $key );
96 var $digitTransTable = array(
97 ',' => "\xc2\xa0", // @bug 2749
101 function formatNum( $number, $year = false ) {
102 return $year ?
$number : strtr($this->commafy($number), $this->digitTransTable
);