Index: branches/REL1_3A/phase3/languages/LanguageFo.php |
— | — | @@ -0,0 +1,358 @@ |
| 2 | +<? |
| 3 | + |
| 4 | +# NOTE: To turn off "Current Events" in the sidebar, |
| 5 | +# set "currentevents" => "-" |
| 6 | + |
| 7 | +# The names of the namespaces can be set here, but the numbers |
| 8 | +# are magical, so don't change or move them! The Namespace class |
| 9 | +# encapsulates some of the magic-ness. |
| 10 | +# |
| 11 | +/* private */ $wgNamespaceNamesFo = array( |
| 12 | + NS_MEDIA => "Miðil", |
| 13 | + NS_SPECIAL => "Serstakur", |
| 14 | + NS_MAIN => "", |
| 15 | + NS_TALK => "Kjak", |
| 16 | + NS_USER => "Brúkari", |
| 17 | + NS_USER_TALK => "Brúkari_kjak", |
| 18 | + NS_WIKIPEDIA => "Wikipedia", |
| 19 | + NS_WIKIPEDIA_TALK => "Wikipedia_kjak", |
| 20 | + NS_IMAGE => "Mynd", |
| 21 | + NS_IMAGE_TALK => "Mynd_kjak", |
| 22 | + NS_MEDIAWIKI => "MidiaWiki", |
| 23 | + NS_MEDIAWIKI_TALK => "MidiaWiki_kjak", |
| 24 | + NS_TEMPLATE => "Fyrimynd", |
| 25 | + NS_TEMPLATE_TALK => "Fyrimynd_kjak", |
| 26 | + NS_HELP => "Hjálp", |
| 27 | + NS_HELP_TALK => "Hjálp_kjak", |
| 28 | + NS_CATEGORY => "Bólkur", |
| 29 | + NS_CATEGORY_TALK => "Bólkur_kjak" |
| 30 | +); |
| 31 | + |
| 32 | +/* private */ $wgQuickbarSettingsFo = array( |
| 33 | + "Eingin", "Fast vinstru", "Fast høgru", "Flótandi vinstru" |
| 34 | +); |
| 35 | + |
| 36 | +/* private */ $wgSkinNamesFo = array( |
| 37 | + "Standardur", "Nostalgiskur", "Cologne-bláur", "Paddington", "Montparnasse" |
| 38 | +); |
| 39 | + |
| 40 | +/* private */ $wgMathNamesFo = array( |
| 41 | + "Vís altíð sum PNG", |
| 42 | + "HTML um sera einfalt annars PNG", |
| 43 | + "HTML um møguligt annars PNG", |
| 44 | + "Lat verða sum TeX (til tekstkagara)", |
| 45 | + "Tilmælt nýtíðarkagara" |
| 46 | +); |
| 47 | + |
| 48 | +/* private */ $wgDateFormatsFo = array( |
| 49 | + "Ongi forrættindi", |
| 50 | + "januar 15, 2001", |
| 51 | + "15. januar 2001", |
| 52 | + "2001 januar 15", |
| 53 | + "2001-01-15" |
| 54 | +); |
| 55 | + |
| 56 | +/* private */ $wgUserTogglesFo = array( |
| 57 | + "hover" => "Vís sveimandi tekst yvur wikiávísingar", |
| 58 | + "underline" => "Undurstrika ávísingar", |
| 59 | + "highlightbroken" => "Brúka reyða ávísing til tómar síður", |
| 60 | + "justify" => "Stilla greinpart", |
| 61 | + "hideminor" => "Goym minni broytingar í seinast broytt listanum", # Skjul mindre ændringer i seneste ændringer listen |
| 62 | + "usenewrc" => "víðka seinastu broytingar lista<br>(ikki til alla kagarar)", |
| 63 | + "numberheadings" => "Sjálvtalmerking av yvirskrift", |
| 64 | + "showtoolbar" => "Vís amboðslinju í rætting", |
| 65 | + "editondblclick" => "Rætta síðu við at tvíklikkja (JavaScript)", |
| 66 | + "editsection" =>"Rætta greinpart við hjálp av [rætta]-ávísing", |
| 67 | + "editsectiononrightclick"=>"Rætta greinpart við at høgraklikkja<br> á yvirskrift av greinparti (JavaScript)", |
| 68 | + "showtoc"=>"Vís innihaldsyvurlit<br>(Til greinir við meira enn trimun greinpartum)", |
| 69 | + "rememberpassword" => "Minst til loyniorð næstu ferð", |
| 70 | + "editwidth" => "Rættingarkassin hevur fulla breid", |
| 71 | + "watchdefault" => "Vaka yvur nýggjum og broyttum greinum", |
| 72 | + "minordefault" => "Merk sum standard allar broytingar sum smærri", |
| 73 | + "previewontop" => "Vís forhondsvísning áðren rættingarkassan", |
| 74 | + "nocache" => "Minst ikki til síðurnar til næstu ferð" |
| 75 | +); |
| 76 | + |
| 77 | +/* private */ $wgBookstoreListFo = array( |
| 78 | + "Bokasolan.fo" => "http://www.bokasolan.fo/vleitari.asp?haattur=bok.alfa&Heiti=&Hovindur=&Forlag=&innbinding=Oell&bolkur=Allir&prisur=Allir&Aarstal=Oell&mal=Oell&status=Oell&ISBN=$1", |
| 79 | + "AddALL" => "http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN", |
| 80 | + "PriceSCAN" => "http://www.pricescan.com/books/bookDetail.asp?isbn=$1", |
| 81 | + "Barnes & Noble" => "http://shop.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=$1", |
| 82 | + "Amazon.com" => "http://www.amazon.com/exec/obidos/ISBN=$1" |
| 83 | +); |
| 84 | + |
| 85 | +/* private */ $wgWeekdayNamesFo = array( |
| 86 | + "sunnudagur", "mánadagur", "týsdagur", "mikudagur", "hósdagur", |
| 87 | + "fríggjadagur", "leygardagur" |
| 88 | +); |
| 89 | + |
| 90 | +/* private */ $wgMonthNamesFo = array( |
| 91 | + "januar", "februar", "mars", "apríl", "mai", "juni", |
| 92 | + "juli", "august", "september", "oktober", "november", |
| 93 | + "desember" |
| 94 | +); |
| 95 | + |
| 96 | +/* private */ $wgMonthAbbreviationsFo = array( |
| 97 | + "jan", "feb", "mar", "apr", "mai", "jun", "jul", "aug", |
| 98 | + "sep", "okt", "nov", "des" |
| 99 | +); |
| 100 | + |
| 101 | +# Note to translators: |
| 102 | +# Please include the English words as synonyms. This allows people |
| 103 | +# from other wikis to contribute more easily. |
| 104 | +# |
| 105 | +/* private */ $wgMagicWordsFo = array( |
| 106 | +# ID CASE SYNONYMS |
| 107 | + MAG_REDIRECT => array( 0, '#redirect' ), |
| 108 | + MAG_NOTOC => array( 0, '__NOTOC__' ), |
| 109 | + MAG_FORCETOC => array( 0, '__FORCETOC__' ), |
| 110 | + MAG_TOC => array( 0, '__TOC__' ), |
| 111 | + MAG_NOEDITSECTION => array( 0, '__NOEDITSECTION__' ), |
| 112 | + MAG_START => array( 0, '__START__' ), |
| 113 | + MAG_CURRENTMONTH => array( 1, 'CURRENTMONTH' ), |
| 114 | + MAG_CURRENTMONTHNAME => array( 1, 'CURRENTMONTHNAME' ), |
| 115 | + MAG_CURRENTDAY => array( 1, 'CURRENTDAY' ), |
| 116 | + MAG_CURRENTDAYNAME => array( 1, 'CURRENTDAYNAME' ), |
| 117 | + MAG_CURRENTYEAR => array( 1, 'CURRENTYEAR' ), |
| 118 | + MAG_CURRENTTIME => array( 1, 'CURRENTTIME' ), |
| 119 | + MAG_NUMBEROFARTICLES => array( 1, 'NUMBEROFARTICLES' ), |
| 120 | + MAG_CURRENTMONTHNAMEGEN => array( 1, 'CURRENTMONTHNAMEGEN' ), |
| 121 | + MAG_PAGENAME => array( 1, 'PAGENAME' ), |
| 122 | + MAG_PAGENAMEE => array( 1, 'PAGENAMEE' ), |
| 123 | + MAG_NAMESPACE => array( 1, 'NAMESPACE' ), |
| 124 | + MAG_MSG => array( 0, 'MSG:' ), |
| 125 | + MAG_SUBST => array( 0, 'SUBST:' ), |
| 126 | + MAG_MSGNW => array( 0, 'MSGNW:' ), |
| 127 | + MAG_END => array( 0, '__END__' ), |
| 128 | + MAG_IMG_THUMBNAIL => array( 1, 'thumbnail', 'thumb' ), |
| 129 | + MAG_IMG_RIGHT => array( 1, 'right' ), |
| 130 | + MAG_IMG_LEFT => array( 1, 'left' ), |
| 131 | + MAG_IMG_NONE => array( 1, 'none' ), |
| 132 | + MAG_IMG_WIDTH => array( 1, '$1px' ), |
| 133 | + MAG_IMG_CENTER => array( 1, 'center', 'centre' ), |
| 134 | + MAG_IMG_FRAMED => array( 1, 'framed', 'enframed', 'frame' ), |
| 135 | + MAG_INT => array( 0, 'INT:' ), |
| 136 | + MAG_SITENAME => array( 1, 'SITENAME' ), |
| 137 | + MAG_NS => array( 0, 'NS:' ), |
| 138 | + MAG_LOCALURL => array( 0, 'LOCALURL:' ), |
| 139 | + MAG_LOCALURLE => array( 0, 'LOCALURLE:' ), |
| 140 | + MAG_SERVER => array( 0, 'SERVER' ), |
| 141 | + MAG_GRAMMAR => array( 0, 'GRAMMAR:' ) |
| 142 | +); |
| 143 | + |
| 144 | +# All special pages have to be listed here: a description of "" |
| 145 | +# will make them not show up on the "Special Pages" page, which |
| 146 | +# is the right thing for some of them (such as the "targeted" ones). |
| 147 | +# |
| 148 | +/* private */ $wgValidSpecialPagesFo = array( |
| 149 | + "Userlogin" => "", |
| 150 | + "Userlogout" => "", |
| 151 | + "Preferences" => "Minar brúkarainnstillingar", |
| 152 | + "Watchlist" => "Mín vaka yvur listi", |
| 153 | + "Recentchanges" => "Seinsastu broytingar", |
| 154 | + "Upload" => "Leg fílur upp", |
| 155 | + "Imagelist" => "Myndalisti", |
| 156 | + "Listusers" => "Skrásettir brúkarir", |
| 157 | + "Statistics" => "Hagtøl um síðuna", |
| 158 | + "Randompage" => "Tilvildarlig grein", |
| 159 | + |
| 160 | + "Lonelypages" => "Foreldreleysar greinir", |
| 161 | + "Unusedimages" => "Foreldreleysir fílur", |
| 162 | + "Popularpages" => "Umtóktar greinir", |
| 163 | + "Wantedpages" => "Mest ynsktu greinir", |
| 164 | + "Shortpages" => "Stytstu greinir", |
| 165 | + "Longpages" => "Langar greinir", |
| 166 | + "Newpages" => "Nýggjastu greinir", |
| 167 | + "Ancientpages" => "Elstu greinir", |
| 168 | + "Deadendpages" => "Blindsíður", |
| 169 | + "Intl" => "Málávísing", |
| 170 | + "Allpages" => "Allar síður eftur yvurskrift", |
| 171 | + |
| 172 | + "Ipblocklist" => "Bannaðar IP-adressur", |
| 173 | + "Maintenance" => "Viðlíkahaldssíðir", |
| 174 | + "Specialpages" => "", |
| 175 | + "Contributions" => "", |
| 176 | + "Emailuser" => "", |
| 177 | + "Whatlinkshere" => "", |
| 178 | + "Recentchangeslinked" => "", |
| 179 | + "Movepage" => "", |
| 180 | + "Booksources" => "Útvortis bókakelda", |
| 181 | + "Categories" => "síðubólkur", |
| 182 | + "Export" => "Útflyt síðu í XML sniði", |
| 183 | + "Version" => "Vís MediaWiki útgávu", |
| 184 | +); |
| 185 | + |
| 186 | +/* private */ $wgSysopSpecialPagesFo = array( |
| 187 | + "Blockip" => "Bannað eina IP-adressu", |
| 188 | + "Asksql" => "Ger ein fyrispurning í dátagrunnin", |
| 189 | + "Undelete" => "Síggj og endurstovna strikaðar síður", |
| 190 | + "Makesysop" => "Ber ein brúkara til umboðsstjóra" |
| 191 | +); |
| 192 | + |
| 193 | +/* private */ $wgDeveloperSpecialPagesFo = array( |
| 194 | + "Lockdb" => "Skriviverj dátagrunnin", # Skrivivardur |
| 195 | + "Unlockdb" => "Endurstovna skriviatgongd til dátagrunnin", |
| 196 | +); |
| 197 | + |
| 198 | +class LanguageFo extends Language { |
| 199 | + |
| 200 | + function getDefaultUserOptions () { |
| 201 | + $opt = Language::getDefaultUserOptions(); |
| 202 | + return $opt; |
| 203 | + } |
| 204 | + |
| 205 | + function getBookstoreList () { |
| 206 | + global $wgBookstoreListFo ; |
| 207 | + return $wgBookstoreListFo ; |
| 208 | + } |
| 209 | + |
| 210 | + function getNamespaces() { |
| 211 | + global $wgNamespaceNamesFo; |
| 212 | + return $wgNamespaceNamesFo; |
| 213 | + } |
| 214 | + |
| 215 | + function getNsText( $index ) { |
| 216 | + global $wgNamespaceNamesFo; |
| 217 | + return $wgNamespaceNamesFo[$index]; |
| 218 | + } |
| 219 | + |
| 220 | + function getNsIndex( $text ) { |
| 221 | + global $wgNamespaceNamesFo; |
| 222 | + |
| 223 | + foreach ( $wgNamespaceNamesFo as $i => $n ) { |
| 224 | + if ( 0 == strcasecmp( $n, $text ) ) { return $i; } |
| 225 | + } |
| 226 | + return false; |
| 227 | + } |
| 228 | + |
| 229 | + function specialPage( $name ) { |
| 230 | + return $this->getNsText( Namespace::getSpecial() ) . ":" . $name; |
| 231 | + } |
| 232 | + |
| 233 | + function getQuickbarSettings() { |
| 234 | + global $wgQuickbarSettingsFo; |
| 235 | + return $wgQuickbarSettingsFo; |
| 236 | + } |
| 237 | + |
| 238 | + function getSkinNames() { |
| 239 | + global $wgSkinNamesFo; |
| 240 | + return $wgSkinNamesFo; |
| 241 | + } |
| 242 | + |
| 243 | + function getMathNames() { |
| 244 | + global $wgMathNamesFo; |
| 245 | + return $wgMathNamesFo; |
| 246 | + } |
| 247 | + |
| 248 | + function getDateFormats() { |
| 249 | + global $wgDateFormatsFo; |
| 250 | + return $wgDateFormatsFo; |
| 251 | + } |
| 252 | + |
| 253 | + function getUserToggles() { |
| 254 | + global $wgUserTogglesFo; |
| 255 | + return $wgUserTogglesFo; |
| 256 | + } |
| 257 | + |
| 258 | + function getMonthName( $key ) |
| 259 | + { |
| 260 | + global $wgMonthNamesFo; |
| 261 | + return $wgMonthNamesFo[$key-1]; |
| 262 | + } |
| 263 | + |
| 264 | + /* by default we just return base form */ |
| 265 | + function getMonthNameGen( $key ) |
| 266 | + { |
| 267 | + global $wgMonthNamesFo; |
| 268 | + return $wgMonthNamesFo[$key-1]; |
| 269 | + } |
| 270 | + |
| 271 | + function getMonthAbbreviation( $key ) |
| 272 | + { |
| 273 | + global $wgMonthAbbreviationsFo; |
| 274 | + return $wgMonthAbbreviationsFo[$key-1]; |
| 275 | + } |
| 276 | + |
| 277 | + function getWeekdayName( $key ) |
| 278 | + { |
| 279 | + global $wgWeekdayNamesFo; |
| 280 | + return $wgWeekdayNamesFo[$key-1]; |
| 281 | + } |
| 282 | + |
| 283 | + # Inherit userAdjust() |
| 284 | + |
| 285 | + function date( $ts, $adj = false ) |
| 286 | + { |
| 287 | + if ( $adj ) { $ts = $this->userAdjust( $ts ); } |
| 288 | + |
| 289 | + $d = (0 + substr( $ts, 6, 2 )) . ". " . |
| 290 | + $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) . " " . |
| 291 | + substr( $ts, 0, 4 ); |
| 292 | + return $d; |
| 293 | + } |
| 294 | + |
| 295 | + function time( $ts, $adj = false ) |
| 296 | + { |
| 297 | + if ( $adj ) { $ts = $this->userAdjust( $ts ); } |
| 298 | + |
| 299 | + $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 ); |
| 300 | + return $t; |
| 301 | + } |
| 302 | + |
| 303 | + function timeanddate( $ts, $adj = false ) |
| 304 | + { |
| 305 | + return $this->date( $ts, $adj ) . " kl. " . $this->time( $ts, $adj ); |
| 306 | + } |
| 307 | + |
| 308 | + # Inherit rfc1123() |
| 309 | + |
| 310 | + function getValidSpecialPages() |
| 311 | + { |
| 312 | + global $wgValidSpecialPagesFo; |
| 313 | + return $wgValidSpecialPagesFo; |
| 314 | + } |
| 315 | + |
| 316 | + function getSysopSpecialPages() |
| 317 | + { |
| 318 | + global $wgSysopSpecialPagesFo; |
| 319 | + return $wgSysopSpecialPagesFo; |
| 320 | + } |
| 321 | + |
| 322 | + function getDeveloperSpecialPages() |
| 323 | + { |
| 324 | + global $wgDeveloperSpecialPagesFo; |
| 325 | + return $wgDeveloperSpecialPagesFo; |
| 326 | + } |
| 327 | + |
| 328 | + function getMessage( $key ) |
| 329 | + { |
| 330 | + global $wgAllMessagesFo, $wgAllMessagesEn; |
| 331 | + $m = $wgAllMessagesFo[$key]; |
| 332 | + |
| 333 | + if ( "" == $m ) { return $wgAllMessagesEn[$key]; } |
| 334 | + else return $m; |
| 335 | + } |
| 336 | + |
| 337 | + # Inherit iconv() |
| 338 | + |
| 339 | + # Inherit ucfirst() |
| 340 | + |
| 341 | + # Inherit lcfirst() |
| 342 | + |
| 343 | + # Inherit checkTitleEncoding() |
| 344 | + |
| 345 | + # Inherit stripForSearch() |
| 346 | + |
| 347 | + # Inherit setAltEncoding() |
| 348 | + |
| 349 | + # Inherit recodeForEdit() |
| 350 | + |
| 351 | + # Inherit recodeInput() |
| 352 | + |
| 353 | + # Inherit isRTL() |
| 354 | + |
| 355 | + # Inherit getMagicWords() |
| 356 | + |
| 357 | +} |
| 358 | + |
| 359 | +?> |
Property changes on: branches/REL1_3A/phase3/languages/LanguageFo.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 360 | + native |
Added: svn:keywords |
2 | 361 | + Author Date Id Revision |