9 # Inačica 1.00.00 XJamRastafire 2003-07-08 |NOT COMPLETE
10 # 1.00.10 XJamRastafire 2003-11-03 |NOT COMPLETE
11 # ______________________________________________________
12 # 1.00.20 XJamRastafire 2003-11-05 | COMPLETE
13 # 1.00.30 romanm 2003-11-07 | minor changes
14 # 1.00.31 romanm 2003-11-11 | merged incorrectly broken lines
15 # 1.00.32 romanm 2003-11-19 | merged incorrectly broken lines
16 # 1.00.40 romanm 2003-11-21 | fixed Google search
18 # 1.00.50 Nikerabbit 2005-08-15 | removed old stuff, some cleanup, NOT COMPLETE!
21 require_once( "LanguageUtf8.php" );
23 /* private */ $wgNamespaceNamesSl = array(
25 NS_SPECIAL
=> 'Posebno',
28 NS_USER
=> 'Uporabnik',
29 NS_USER_TALK
=> 'Uporabniški_pogovor',
30 NS_PROJECT
=> $wgMetaNamespace,
31 NS_PROJECT_TALK
=> FALSE, # Set in constructor
33 NS_IMAGE_TALK
=> 'Pogovor_o_sliki',
34 NS_MEDIAWIKI
=> 'MediaWiki',
35 NS_MEDIAWIKI_TALK
=> 'Pogovor_o_MediaWiki',
36 NS_TEMPLATE
=> 'Predloga',
37 NS_TEMPLATE_TALK
=> 'Pogovor_o_predlogi',
39 NS_HELP_TALK
=> 'Pogovor_o_pomoči',
40 NS_CATEGORY
=> 'Kategorija',
41 NS_CATEGORY_TALK
=> 'Pogovor_o_kategoriji'
42 ) +
$wgNamespaceNamesEn;
44 /* private */ $wgQuickbarSettingsSl = array(
45 "Brez", "Levo nepomično", "Desno nepomično", "Levo leteče"
48 /* private */ $wgDateFormatsSl = array(
52 if (!$wgCachedMessageArrays) {
53 require_once('MessagesSl.php');
56 #--------------------------------------------------------------------------
57 # Internationalisation code
58 #--------------------------------------------------------------------------
60 class LanguageSl
extends LanguageUtf8
{
61 function LanguageSl() {
62 global $wgNamespaceNamesSl, $wgMetaNamespace;
63 LanguageUtf8
::LanguageUtf8();
64 $wgNamespaceNamesSl[NS_PROJECT_TALK
] = 'Pogovor_' .
65 str_replace( ' ', '_',
66 $this->convertGrammar( $wgMetaNamespace, 'orodnik' ) );
69 function getNamespaces() {
70 global $wgNamespaceNamesSl;
71 return $wgNamespaceNamesSl;
74 function getQuickbarSettings() {
75 global $wgQuickbarSettingsSl;
76 return $wgQuickbarSettingsSl;
79 function getDateFormats() {
80 global $wgDateFormatsSl;
81 return $wgDateFormatsSl;
84 function getMessage( $key ) {
85 global $wgAllMessagesSl;
86 if(array_key_exists($key, $wgAllMessagesSl))
87 return $wgAllMessagesSl[$key];
89 return parent
::getMessage($key);
92 function fallback8bitEncoding() {
96 function formatNum( $number, $year = false ) {
97 return $year ?
$number : strtr($this->commafy($number), '.,', ',.' );
100 # Convert from the nominative form of a noun to some other case
101 # Invoked with {{GRAMMAR:case|word}}
102 function convertGrammar( $word, $case ) {
104 case 'rodilnik': # genitive
105 if ( $word == 'Wikipedija' ) {
106 $word = 'Wikipedije';
107 } elseif ( $word == 'Wikiknjige' ) {
109 } elseif ( $word == 'Wikinovice' ) {
111 } elseif ( $word == 'Wikinavedek' ) {
112 $word = 'Wikinavedka';
113 } elseif ( $word == 'Wikivir' ) {
115 } elseif ( $word == 'Wikislovar' ) {
116 $word = 'Wikislovarja';
119 case 'dajalnik': # dativ
120 if ( $word == 'Wikipedija' ) {
121 $word = 'Wikipediji';
122 } elseif ( $word == 'Wikiknjige' ) {
123 $word = 'Wikiknjigam';
124 } elseif ( $word == 'Wikinovice' ) {
125 $word = 'Wikinovicam';
126 } elseif ( $word == 'Wikinavedek' ) {
127 $word = 'Wikinavedku';
128 } elseif ( $word == 'Wikivir' ) {
130 } elseif ( $word == 'Wikislovar' ) {
131 $word = 'Wikislovarju';
134 case 'tožilnik': # akuzatív
135 if ( $word == 'Wikipedija' ) {
136 $word = 'Wikipedijo';
137 } elseif ( $word == 'Wikiknjige' ) {
138 $word = 'Wikiknjige';
139 } elseif ( $word == 'Wikinovice' ) {
140 $word = 'Wikinovice';
141 } elseif ( $word == 'Wikinavedek' ) {
142 $word = 'Wikinavedek';
143 } elseif ( $word == 'Wikivir' ) {
145 } elseif ( $word == 'Wikislovar' ) {
146 $word = 'Wikislovar';
149 case 'mestnik': # locative
150 if ( $word == 'Wikipedija' ) {
151 $word = 'z Wikipedijo';
152 } elseif ( $word == 'Wikiknjige' ) {
153 $word = 'z Wikiknjigami';
154 } elseif ( $word == 'Wikinovice' ) {
155 $word = 'z Wikinovicami';
156 } elseif ( $word == 'Wikinavedek' ) {
157 $word = 'z Wikinavedkom';
158 } elseif ( $word == 'Wikivir' ) {
159 $word = 'z Wikivirom';
160 } elseif ( $word == 'Wikislovar' ) {
161 $word = 'z Wikislovarjem';
163 $word = 'z ' . $word;
166 case 'orodnik': # instrumental
167 if ( $word == 'Wikipedija' ) {
168 $word = 'o Wikipediji';
169 } elseif ( $word == 'Wikiknjige' ) {
170 $word = 'o Wikiknjigah';
171 } elseif ( $word == 'Wikinovice' ) {
172 $word = 'o Wikinovicah';
173 } elseif ( $word == 'Wikinavedek' ) {
174 $word = 'o Wikinavedku';
175 } elseif ( $word == 'Wikivir' ) {
176 $word = 'o Wikiviru';
177 } elseif ( $word == 'Wikislovar' ) {
178 $word = 'o Wikislovarju';
180 $word = 'o ' . $word;
185 return $word; # this will return the original value for 'imenovalnik' (nominativ) and all undefined case values