summaryrefslogtreecommitdiff
path: root/languages/LanguageNo.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2006-10-11 18:12:39 +0000
committerPierre Schmitz <pierre@archlinux.de>2006-10-11 18:12:39 +0000
commit183851b06bd6c52f3cae5375f433da720d410447 (patch)
treea477257decbf3360127f6739c2f9d0ec57a03d39 /languages/LanguageNo.php
MediaWiki 1.7.1 wiederhergestellt
Diffstat (limited to 'languages/LanguageNo.php')
-rw-r--r--languages/LanguageNo.php114
1 files changed, 114 insertions, 0 deletions
diff --git a/languages/LanguageNo.php b/languages/LanguageNo.php
new file mode 100644
index 00000000..c91fd4f0
--- /dev/null
+++ b/languages/LanguageNo.php
@@ -0,0 +1,114 @@
+<?php
+/** Norwegian (Norsk (bokmål))
+ *
+ * @package MediaWiki
+ * @subpackage Language
+ */
+
+require_once( 'LanguageUtf8.php' );
+
+if (!$wgCachedMessageArrays) {
+ require_once('MessagesNo.php');
+}
+
+class LanguageNo extends LanguageUtf8 {
+ private $mMessagesNo, $mNamespaceNamesNo;
+
+ private $mQuickbarSettingsNo = array(
+ 'Ingen', 'Fast venstre', 'Fast høyre', 'Flytende venstre'
+ );
+
+ private $mSkinNamesNo = array(
+ 'standard' => 'Standard',
+ 'nostalgia' => 'Nostalgi',
+ 'cologneblue' => 'Kölnerblå'
+ );
+
+ private $mBookstoreListNo = array(
+ 'Antikvariat.net' => 'http://www.antikvariat.net/',
+ 'Frida' => 'http://wo.uio.no/as/WebObjects/frida.woa/wa/fres?action=sok&isbn=$1&visParametre=1&sort=alfabetisk&bs=50',
+ 'Bibsys' => 'http://ask.bibsys.no/ask/action/result?cmd=&kilde=biblio&fid=isbn&term=$1&op=and&fid=bd&term=&arstall=&sortering=sortdate-&treffPrSide=50',
+ 'Akademika' => 'http://www.akademika.no/sok.php?ts=4&sok=$1',
+ 'Haugenbok' => 'http://www.haugenbok.no/resultat.cfm?st=extended&isbn=$1',
+ 'Amazon.com' => 'http://www.amazon.com/exec/obidos/ISBN=$1'
+ );
+
+ function __construct() {
+ parent::__construct();
+
+ global $wgAllMessagesNo;
+ $this->mMessagesNo =& $wgAllMessagesNo;
+
+ global $wgMetaNamespace;
+ $this->mNamespaceNamesNo = array(
+ NS_MEDIA => 'Medium',
+ NS_SPECIAL => 'Spesial',
+ NS_MAIN => '',
+ NS_TALK => 'Diskusjon',
+ NS_USER => 'Bruker',
+ NS_USER_TALK => 'Brukerdiskusjon',
+ NS_PROJECT => $wgMetaNamespace,
+ NS_PROJECT_TALK => $wgMetaNamespace . '-diskusjon',
+ NS_IMAGE => 'Bilde',
+ NS_IMAGE_TALK => 'Bildediskusjon',
+ NS_MEDIAWIKI => 'MediaWiki',
+ NS_MEDIAWIKI_TALK => 'MediaWiki-diskusjon',
+ NS_TEMPLATE => 'Mal',
+ NS_TEMPLATE_TALK => 'Maldiskusjon',
+ NS_HELP => 'Hjelp',
+ NS_HELP_TALK => 'Hjelpdiskusjon',
+ NS_CATEGORY => 'Kategori',
+ NS_CATEGORY_TALK => 'Kategoridiskusjon',
+ );
+ }
+
+ function getBookstoreList () {
+ return $this->mBookstoreListNo;
+ }
+
+ function getNamespaces() {
+ return $this->mNamespaceNamesNo + parent::getNamespaces();
+ }
+
+ function getQuickbarSettings() {
+ return $this->mQuickbarSettingsNo;
+ }
+
+ function getSkinNames() {
+ return $this->mSkinNamesNo + parent::getSkinNames();
+ }
+
+ function getMessage( $key ) {
+ if( isset( $this->mMessagesNo[$key] ) ) {
+ return $this->mMessagesNo[$key];
+ } else {
+ return parent::getMessage( $key );
+ }
+ }
+
+ function getAllMessages() {
+ return $this->mMessagesNo;
+ }
+
+ function formatMonth( $month, $format ) {
+ return $this->getMonthAbbreviation( $month );
+ }
+
+ function formatDay( $day, $format ) {
+ return parent::formatDay( $day, $format ) . '.';
+ }
+
+ function timeBeforeDate() {
+ return false;
+ }
+
+ function timeDateSeparator( $format ) {
+ return ' kl.';
+ }
+
+ function separatorTransformTable() {
+ return array(',' => "\xc2\xa0", '.' => ',' );
+ }
+}
+
+?>