r47925 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47924‎ | r47925 | r47926 >
Date:08:32, 2 March 2009
Author:mkroetzsch
Status:deferred
Tags:
Comment:
Portuguese base translations (namespaces etc.), by Semíramis Herszon and Terry A. Hurlbut
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/languages/SMW_LanguagePt.php (added) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguagePt.php
@@ -0,0 +1,109 @@
 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+ * Portuguese language labels for important SMW labels (namespaces, datatypes,...).
 19+ *
 20+ * @author Semíramis Herszon, Terry A. Hurlbut
 21+ * @ingroup SMWLanguage
 22+ * @ingroup Language
 23+ */
 24+class SMWLanguagePt extends SMWLanguage {
 25+
 26+protected $m_DatatypeLabels = array(
 27+ '_wpg' => 'Página', // name of page datatype
 28+ '_str' => 'Cadeia', // name of the string type
 29+ '_txt' => 'Texto', // name of the text type (very long strings)
 30+ '_cod' => 'Código', // name of the (source) code type //TODO: translate
 31+ '_boo' => 'Variável Booléen', // name of the boolean type
 32+ '_num' => 'Número', // name for the datatype of numbers
 33+ '_geo' => 'Coordenadas geográficas', // name of the geocoord type
 34+ '_tem' => 'Temperatura', // name of the temperature type
 35+ '_dat' => 'Data', // name of the datetime (calendar) type
 36+ '_ema' => 'Email', // name of the email type (Portuguese does not have another word for this)
 37+ '_uri' => 'URL', // name of the URI type
 38+ '_anu' => 'Anotação-URI' // name of the annotation URI type (OWL annotation property)
 39+);
 40+
 41+protected $m_DatatypeAliases = array(
 42+ 'URI' => '_uri',
 43+ 'Número inteiro' => '_num',
 44+ 'Folga' => '_num',
 45+ 'Enumeração' => '_str',
 46+ // support English aliases:
 47+ 'Page' => '_wpg',
 48+ 'String' => '_str',
 49+ 'Code' => '_cod',
 50+ 'Text' => '_txt',
 51+ 'Boolean' => '_boo',
 52+ 'Number' => '_num',
 53+ 'Geographic coordinate' => '_geo',
 54+ 'Temperature' => '_tem',
 55+ 'Date' => '_dat',
 56+ 'Email' => '_ema',
 57+ 'Annotation URI' => '_anu'
 58+);
 59+
 60+protected $m_SpecialProperties = array(
 61+ //always start upper-case
 62+ '_TYPE' => 'Tem o tipo',
 63+ '_URI' => 'URI equivalente',
 64+ '_SUBP' => 'Sub-propriedade de',
 65+ '_UNIT' => 'Unidades de amostra',
 66+ '_IMPO' => 'Importado de',
 67+ '_CONV' => 'Corresponde a',
 68+ '_SERV' => 'Fornece o serviço',
 69+ '_PVAL' => 'Permite valor'
 70+);
 71+
 72+protected $m_SpecialPropertyAliases = array(
 73+ 'Unidade de amostra' => '_UNIT',
 74+ // support English aliases for special properties
 75+ 'Has type' => '_TYPE',
 76+ 'Equivalent URI' => '_URI',
 77+ 'Subproperty of' => '_SUBP',
 78+ 'Display units' => '_UNIT',
 79+ 'Imported from' => '_IMPO',
 80+ 'Corresponds to' => '_CONV',
 81+ 'Provides service' => '_SERV',
 82+ 'Allows value' => '_PVAL'
 83+);
 84+
 85+protected $m_Namespaces = array(
 86+ SMW_NS_RELATION => "Relação",
 87+ SMW_NS_RELATION_TALK => "Discussão_relação",
 88+ SMW_NS_PROPERTY => "Propriedade",
 89+ SMW_NS_PROPERTY_TALK => "Discussão_propriedade",
 90+ SMW_NS_TYPE => "Tipo",
 91+ SMW_NS_TYPE_TALK => "Discussão_tipo",
 92+ SMW_NS_CONCEPT => 'Conceito',
 93+ SMW_NS_CONCEPT_TALK => 'Discussão_conceito'
 94+);
 95+
 96+protected $m_NamespaceAliases = array(
 97+ // support English aliases for namespaces
 98+ 'Relation' => SMW_NS_RELATION,
 99+ 'Relation_talk' => SMW_NS_RELATION_TALK,
 100+ 'Property' => SMW_NS_PROPERTY,
 101+ 'Property_talk' => SMW_NS_PROPERTY_TALK,
 102+ 'Type' => SMW_NS_TYPE,
 103+ 'Type_talk' => SMW_NS_TYPE_TALK,
 104+ 'Concept' => SMW_NS_CONCEPT,
 105+ 'Concept_talk' => SMW_NS_CONCEPT_TALK
 106+);
 107+
 108+}
 109+
 110+
Property changes on: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguagePt.php
___________________________________________________________________
Name: svn:eol-style
1111 + native

Status & tagging log