r56206 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r56205‎ | r56206 | r56207 >
Date:20:37, 11 September 2009
Author:mkroetzsch
Status:deferred
Tags:
Comment:
Norwegian translation of namespaces, datatypes, built-in porperties; by Kirill Miazine
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageNo.php (added) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageNo.php
@@ -0,0 +1,100 @@
 2+<?php
 3+/**
 4+ * @file
 5+ * @ingroup SMWLanguage
 6+ */
 7+
 8+/*
 9+ * Protect against register_globals vulnerabilities.
 10+ * This line must be present before any global variable is referenced.
 11+ */
 12+if (!defined('MEDIAWIKI')) die();
 13+
 14+global $smwgIP;
 15+include_once($smwgIP . '/languages/SMW_Language.php');
 16+
 17+/**
 18+ * Norwegian language labels for important SMW labels (namespaces, datatypes,...).
 19+ *
 20+ * @author Kirill Miazine km\@krot.org
 21+ * @ingroup SMWLanguage
 22+ * @ingroup Language
 23+ */
 24+class SMWLanguageNo extends SMWLanguage {
 25+
 26+protected $m_DatatypeLabels = array(
 27+ '_wpg' => 'Side', // name of page datatype
 28+ '_str' => 'Kort tekst', // name of the string type
 29+ '_txt' => 'Lang tekst', // name of the text type (very long strings)
 30+ '_cod' => 'Kode', // name of the (source) code type
 31+ '_boo' => 'Boolsk', // name of the boolean type
 32+ '_num' => 'Tall', // name for the datatype of numbers
 33+ '_geo' => 'Geografisk koordinat', // name of the geocoord type
 34+ '_tem' => 'Temperatur', // name of the temperature type
 35+ '_dat' => 'Dato', // name of the datetime (calendar) type
 36+ '_ema' => 'E-post', // name of the email type
 37+ '_uri' => 'URL', // name of the URL type
 38+ '_anu' => 'URI-merknad' // name of the annotation URI type (OWL annotation property)
 39+);
 40+
 41+protected $m_DatatypeAliases = array(
 42+ 'Streng' => '_str',
 43+ 'Linje' => '_str',
 44+ 'Tekst' => '_txt',
 45+ 'Hellall' => '_num',
 46+ 'Desimaltall' => '_num',
 47+ 'Liste' => '_str',
 48+ 'Kildekode' => '_cod',
 49+ 'Koordinat' => '_geo',
 50+ 'Epost' => '_ema',
 51+ 'URI' => '_uri',
 52+ 'Nettadresse' => '_uri'
 53+);
 54+
 55+protected $m_SpecialProperties = array(
 56+ //always start upper-case
 57+ '_TYPE' => 'Har type',
 58+ '_URI' => 'Ekvivalent URI',
 59+ '_SUBP' => 'Underkategori av',
 60+ '_UNIT' => 'Visningsenhet',
 61+ '_IMPO' => 'Importert fra',
 62+ '_CONV' => 'Svarer til',
 63+ '_SERV' => 'Tilbyr tjeneste',
 64+ '_PVAL' => 'Tillater verdi',
 65+ '_MDAT' => 'Endringsdato',
 66+ '_ERRP' => 'Feilaktig verdi for'
 67+);
 68+
 69+protected $m_SpecialPropertyAliases = array(
 70+ 'Type' => '_TYPE',
 71+ 'Enhet' => '_UNIT',
 72+ 'Synonym URI' => '_URI',
 73+ 'Synonym adresse' => '_URI'
 74+);
 75+
 76+
 77+protected $m_Namespaces = array(
 78+ SMW_NS_RELATION => 'Relasjon',
 79+ SMW_NS_RELATION_TALK => 'Relasjon-diskusjon',
 80+ SMW_NS_PROPERTY => 'Egenskap',
 81+ SMW_NS_PROPERTY_TALK => 'Egenskap-diskusjon',
 82+ SMW_NS_TYPE => 'Type',
 83+ SMW_NS_TYPE_TALK => 'Type-diskusjon',
 84+ SMW_NS_CONCEPT => 'Konsept',
 85+ SMW_NS_CONCEPT_TALK => 'Konsept-diskusjon'
 86+);
 87+
 88+protected $m_NamespaceAliases = array(
 89+ 'Relasjonsdiskusjon' => SMW_NS_RELATION_TALK,
 90+ 'Egenskapsdiskusjon' => SMW_NS_PROPERTY_TALK,
 91+ 'Typediskusjon' => SMW_NS_TYPE_TALK,
 92+ 'Konseptdiskusjon' => SMW_NS_CONCEPT_TALK
 93+);
 94+
 95+protected $m_dateformats = array(array(SMW_Y), array(SMW_MY,SMW_YM), array(SMW_DMY,SMW_MDY,SMW_YMD,SMW_YDM));
 96+
 97+protected $m_months = array("januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember");
 98+
 99+protected $m_monthsshort = array("jan.", "feb.", "mars", "april", "mai", "juni", "juli", "aug.", "sep.", "okt.", "nov.", "des.");
 100+
 101+}
Property changes on: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageNo.php
___________________________________________________________________
Name: svn:eol-style
1102 + native

Status & tagging log