r55890 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r55889‎ | r55890 | r55891 >
Date:16:43, 6 September 2009
Author:mkroetzsch
Status:deferred
Tags:
Comment:
centralize declaration and insertion of English language aliases instead of having them in each file
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/languages/SMW_Language.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageAr.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageArz.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageDe.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageEn.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageEs.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageFr.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageHe.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageIt.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageNl.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/languages/SMW_LanguagePl.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/languages/SMW_LanguagePt.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageRu.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageSk.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageZh_cn.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageZh_tw.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageZh_cn.php
@@ -48,17 +48,6 @@
4949 'Integer' => '_num',
5050 'Enumeration' => '_str',
5151 'URI' => '_uri',
52 - // support English aliases:
53 - 'Page' => '_wpg',
54 - 'String' => '_str',
55 - 'Text' => '_txt',
56 - 'Boolean' => '_boo',
57 - 'Number' => '_num',
58 - 'Geographic coordinate' => '_geo',
59 - 'Temperature' => '_tem',
60 - 'Date' => '_dat',
61 - 'Email' => '_ema',
62 - 'Annotation URI' => '_anu'
6352 );
6453
6554 protected $m_SpecialProperties = array(
@@ -77,18 +66,7 @@
7867
7968
8069 protected $m_SpecialPropertyAliases = array(
81 - 'Display unit' => '_UNIT',
82 -// support English aliases for special properties
83 - 'Has type' => '_TYPE',
84 - 'Equivalent URI' => '_URI',
85 - 'Subproperty of' => '_SUBP',
86 - 'Display units' => '_UNIT',
87 - 'Imported from' => '_IMPO',
88 - 'Corresponds to' => '_CONV',
89 - 'Provides service' => '_SERV',
90 - 'Allows value' => '_PVAL',
91 - 'Modification date' => '_MDAT',
92 - 'Has improper value for' => '_ERRP'
 70+ 'Display unit' => '_UNIT'
9371 );
9472
9573 protected $m_Namespaces = array(
@@ -100,16 +78,6 @@
10179 SMW_NS_CONCEPT_TALK => 'Concept_talk' // TODO: translate
10280 );
10381
104 -protected $m_NamespaceAliases = array(
105 - // support English aliases for namespaces
106 - 'Property' => SMW_NS_PROPERTY,
107 - 'Property_talk' => SMW_NS_PROPERTY_TALK,
108 - 'Type' => SMW_NS_TYPE,
109 - 'Type_talk' => SMW_NS_TYPE_TALK,
110 - 'Concept' => SMW_NS_CONCEPT,
111 - 'Concept_talk' => SMW_NS_CONCEPT_TALK
112 -);
113 -
11482 protected $m_dateformats = array(array(SMW_Y), array(SMW_MY,SMW_YM), array(SMW_MDY,SMW_DMY,SMW_YMD,SMW_YDM));
11583
11684 protected $m_months = array("1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月");
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageAr.php
@@ -59,8 +59,6 @@
6060 );
6161
6262 protected $m_SpecialPropertyAliases = array(
63 - 'Modification date' => '_MDAT',
64 - 'Has improper value for' => '_ERRP',
6563 'عرض الوحدة' => '_UNIT'
6664 );
6765
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageEn.php
@@ -23,6 +23,8 @@
2424 */
2525 class SMWLanguageEn extends SMWLanguage {
2626
 27+protected $m_useEnDefaultAliases = false; //not needed for English, obviously
 28+
2729 protected $m_DatatypeLabels = array(
2830 '_wpg' => 'Page', // name of page datatype
2931 '_str' => 'String', // name of the string type
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageEs.php
@@ -42,17 +42,6 @@
4343 'Número entero' => '_num',
4444 'Número con coma' => '_num',
4545 'Enumeración' => '_str',
46 - // support English aliases:
47 - 'Page' => '_wpg',
48 - 'String' => '_str',
49 - 'Text' => '_txt',
50 - 'Boolean' => '_boo',
51 - 'Number' => '_num',
52 - 'Geographic coordinate' => '_geo',
53 - 'Temperature' => '_tem',
54 - 'Date' => '_dat',
55 - 'Email' => '_ema',
56 - 'Annotation URI' => '_anu'
5746 );
5847
5948 protected $m_SpecialProperties = array(
@@ -71,17 +60,6 @@
7261
7362 protected $m_SpecialPropertyAliases = array(
7463 'Unidad de medida' => '_UNIT',
75 - // support English aliases for special properties
76 - 'Has type' => '_TYPE',
77 - 'Equivalent URI' => '_URI',
78 - 'Subproperty of' => '_SUBP',
79 - 'Display units' => '_UNIT',
80 - 'Imported from' => '_IMPO',
81 - 'Corresponds to' => '_CONV',
82 - 'Provides service' => '_SERV',
83 - 'Allows value' => '_PVAL',
84 - 'Modification date' => '_MDAT',
85 - 'Has improper value for' => '_ERRP'
8664 );
8765
8866 protected $m_Namespaces = array(
@@ -93,16 +71,6 @@
9472 SMW_NS_CONCEPT_TALK => 'Concept_talk' // TODO: translate
9573 );
9674
97 -protected $m_NamespaceAliases = array(
98 - // support English aliases for namespaces
99 - 'Property' => SMW_NS_PROPERTY,
100 - 'Property_talk' => SMW_NS_PROPERTY_TALK,
101 - 'Type' => SMW_NS_TYPE,
102 - 'Type_talk' => SMW_NS_TYPE_TALK,
103 - 'Concept' => SMW_NS_CONCEPT,
104 - 'Concept_talk' => SMW_NS_CONCEPT_TALK
105 -);
106 -
10775 protected $m_dateformats = array(array(SMW_Y), array(SMW_MY,SMW_YM), array(SMW_MDY,SMW_DMY,SMW_YMD,SMW_YDM));
10876
10977 protected $m_months = array("enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre");
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageFr.php
@@ -42,17 +42,6 @@
4343 'Nombre entier' => '_num',
4444 'Nombre décimal' => '_num',
4545 'Énumeration' => '_str',
46 - // support English aliases:
47 - 'Page' => '_wpg',
48 - 'String' => '_str',
49 - 'Text' => '_txt',
50 - 'Boolean' => '_boo',
51 - 'Number' => '_num',
52 - 'Geographic coordinate' => '_geo',
53 - 'Temperature' => '_tem',
54 - 'Date' => '_dat',
55 - 'Email' => '_ema',
56 - 'Annotation URI' => '_anu'
5746 );
5847
5948 protected $m_SpecialProperties = array(
@@ -71,17 +60,6 @@
7261
7362 protected $m_SpecialPropertyAliases = array(
7463 'Unité de mesure' => '_UNIT',
75 - // support English aliases for special properties
76 - 'Has type' => '_TYPE',
77 - 'Equivalent URI' => '_URI',
78 - 'Subproperty of' => '_SUBP',
79 - 'Display units' => '_UNIT',
80 - 'Imported from' => '_IMPO',
81 - 'Corresponds to' => '_CONV',
82 - 'Provides service' => '_SERV',
83 - 'Allows value' => '_PVAL',
84 - 'Modification date' => '_MDAT',
85 - 'Has improper value for' => '_ERRP'
8664 );
8765
8866 protected $m_Namespaces = array(
@@ -93,16 +71,6 @@
9472 SMW_NS_CONCEPT_TALK => 'Concept_talk' // TODO: translate
9573 );
9674
97 -protected $m_NamespaceAliases = array(
98 - // support English aliases for namespaces
99 - 'Property' => SMW_NS_PROPERTY,
100 - 'Property_talk' => SMW_NS_PROPERTY_TALK,
101 - 'Type' => SMW_NS_TYPE,
102 - 'Type_talk' => SMW_NS_TYPE_TALK,
103 - 'Concept' => SMW_NS_CONCEPT,
104 - 'Concept_talk' => SMW_NS_CONCEPT_TALK
105 -);
106 -
10775 protected $m_dateformats = array(array(SMW_Y), array(SMW_MY,SMW_YM), array(SMW_MDY,SMW_DMY,SMW_YMD,SMW_YDM));
10876
10977 protected $m_months = array("janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre");
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageNl.php
@@ -44,17 +44,6 @@
4545 'Integer' => '_num',
4646 'Float' => '_num',
4747 'Opsomming' => '_str',
48 - // support English aliases:
49 - 'Page' => '_wpg',
50 - 'String' => '_str',
51 - 'Text' => '_txt',
52 - 'Boolean' => '_boo',
53 - 'Number' => '_num',
54 - 'Geographic coordinate' => '_geo',
55 - 'Temperature' => '_tem',
56 - 'Date' => '_dat',
57 - 'Email' => '_ema',
58 - 'Annotation URI' => '_anu'
5948 );
6049
6150 protected $m_SpecialProperties = array(
@@ -71,20 +60,6 @@
7261 '_ERRP' => 'Has improper value for' // TODO: translate
7362 );
7463
75 -protected $m_SpecialPropertyAliases = array(
76 - // support English aliases for special properties
77 - 'Has type' => '_TYPE',
78 - 'Equivalent URI' => '_URI',
79 - 'Subproperty of' => '_SUBP',
80 - 'Display units' => '_UNIT',
81 - 'Imported from' => '_IMPO',
82 - 'Corresponds to' => '_CONV',
83 - 'Provides service' => '_SERV',
84 - 'Allows value' => '_PVAL',
85 - 'Modification date' => '_MDAT',
86 - 'Has improper value for' => '_ERRP'
87 -);
88 -
8964 protected $m_Namespaces = array(
9065 SMW_NS_PROPERTY => 'Eigenschap',
9166 SMW_NS_PROPERTY_TALK => 'Overleg_eigenschap',
@@ -94,16 +69,6 @@
9570 SMW_NS_CONCEPT_TALK => 'Overleg_concept'
9671 );
9772
98 -protected $m_NamespaceAliases = array(
99 - // support English aliases for namespaces
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 -
10873 protected $m_months = array('januari','februari','maart','april','mei','juni','juli','augustus','september','oktober','november','december');
10974
11075 protected $m_monthsshort = array("jan", "feb", "mar", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec");
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguagePl.php
@@ -61,21 +61,6 @@
6262 'Liczba zmiennoprzecinkowa' => '_num',
6363 'Liczba całkowita' => '_num',
6464 'Wyliczenie' => '_str',
65 - // support English aliases:
66 - 'URI' => '_uri',
67 - 'Float' => '_num',
68 - 'Integer' => '_num',
69 - 'Enumeration' => '_str',
70 - 'Page' => '_wpg',
71 - 'String' => '_str',
72 - 'Text' => '_txt',
73 - 'Boolean' => '_boo',
74 - 'Number' => '_num',
75 - 'Geographic coordinate' => '_geo',
76 - 'Temperature' => '_tem',
77 - 'Date' => '_dat',
78 - 'Email' => '_ema',
79 - 'Annotation URI' => '_anu'
8065 );
8166
8267 protected $m_SpecialProperties = array(
@@ -94,17 +79,6 @@
9580
9681 protected $m_SpecialPropertyAliases = array(
9782 'Wyświetlana jednostka' => '_UNIT',
98 - // support English aliases for special properties
99 - 'Has type' => '_TYPE',
100 - 'Equivalent URI' => '_URI',
101 - 'Subproperty of' => '_SUBP',
102 - 'Display units' => '_UNIT',
103 - 'Imported from' => '_IMPO',
104 - 'Corresponds to' => '_CONV',
105 - 'Provides service' => '_SERV',
106 - 'Allows value' => '_PVAL',
107 - 'Modification date' => '_MDAT',
108 - 'Has improper value for' => '_ERRP'
10983 );
11084
11185
@@ -117,16 +91,6 @@
11892 SMW_NS_CONCEPT_TALK => 'Dyskusja pojęcia'
11993 );
12094
121 -protected $m_NamespaceAliases = array(
122 - // support English aliases for namespaces
123 - 'Property' => SMW_NS_PROPERTY,
124 - 'Property_talk' => SMW_NS_PROPERTY_TALK,
125 - 'Type' => SMW_NS_TYPE,
126 - 'Type_talk' => SMW_NS_TYPE_TALK,
127 - 'Concept' => SMW_NS_CONCEPT,
128 - 'Concept_talk' => SMW_NS_CONCEPT_TALK
129 -);
130 -
13195 protected $m_dateformats = array(array(SMW_Y), array(SMW_MY,SMW_YM), array(SMW_MDY,SMW_DMY,SMW_YMD,SMW_YDM));
13296
13397 protected $m_months = array("styczeń", "luty", "marsz", "kwiecień", "maj", "czerwiec", "lipiec", "sierpień", "wrzesień", "październik", "listopad", "grudzień");
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageIt.php
@@ -63,17 +63,6 @@
6464
6565 protected $m_SpecialPropertyAliases = array(
6666 'Display unit' => '_UNIT',
67 - // support English aliases for special properties
68 - 'Has type' => '_TYPE',
69 - 'Equivalent URI' => '_URI',
70 - 'Subproperty of' => '_SUBP',
71 - 'Display units' => '_UNIT',
72 - 'Imported from' => '_IMPO',
73 - 'Corresponds to' => '_CONV',
74 - 'Provides service' => '_SERV',
75 - 'Allows value' => '_PVAL',
76 - 'Modification date' => '_MDAT',
77 - 'Has improper value for' => '_ERRP'
7867 );
7968
8069 protected $m_Namespaces = array( // TODO: translate (English aliases can be kept, see other language files
@@ -85,16 +74,6 @@
8675 SMW_NS_CONCEPT_TALK => 'Concept_talk'
8776 );
8877
89 -protected $m_NamespaceAliases = array(
90 - // support English aliases for namespaces
91 - 'Property' => SMW_NS_PROPERTY,
92 - 'Property_talk' => SMW_NS_PROPERTY_TALK,
93 - 'Type' => SMW_NS_TYPE,
94 - 'Type_talk' => SMW_NS_TYPE_TALK,
95 - 'Concept' => SMW_NS_CONCEPT,
96 - 'Concept_talk' => SMW_NS_CONCEPT_TALK
97 -);
98 -
9978 }
10079
10180
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageSk.php
@@ -40,18 +40,7 @@
4141 protected $m_DatatypeAliases = array(
4242 'URI' => '_uri',
4343 'Celé číslo' => '_num',
44 - 'Desatinné číslo' => '_num',
45 - // support English aliases:
46 - 'Page' => '_wpg',
47 - 'String' => '_str',
48 - 'Text' => '_txt',
49 - 'Boolean' => '_boo',
50 - 'Number' => '_num',
51 - 'Geographic coordinate' => '_geo',
52 - 'Temperature' => '_tem',
53 - 'Date' => '_dat',
54 - 'Email' => '_ema',
55 - 'Annotation URI' => '_anu'
 44+ 'Desatinné číslo' => '_num'
5645 );
5746
5847 protected $m_SpecialProperties = array(
@@ -69,21 +58,9 @@
7059 );
7160
7261 protected $m_SpecialPropertyAliases = array(
73 - 'Zobrazovacia jednotka' => '_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 - 'Modification date' => '_MDAT',
84 - 'Has improper value for' => '_ERRP'
 62+ 'Zobrazovacia jednotka' => '_UNIT'
8563 );
8664
87 -
8865 protected $m_Namespaces = array(
8966 SMW_NS_PROPERTY => 'Atribút',
9067 SMW_NS_PROPERTY_TALK => 'Diskusia o atribúte',
@@ -93,16 +70,6 @@
9471 SMW_NS_CONCEPT_TALK => 'Concept_talk' // TODO: translate
9572 );
9673
97 -protected $m_NamespaceAliases = array(
98 - // support English aliases for namespaces
99 - 'Property' => SMW_NS_PROPERTY,
100 - 'Property_talk' => SMW_NS_PROPERTY_TALK,
101 - 'Type' => SMW_NS_TYPE,
102 - 'Type_talk' => SMW_NS_TYPE_TALK,
103 - 'Concept' => SMW_NS_CONCEPT,
104 - 'Concept_talk' => SMW_NS_CONCEPT_TALK
105 -);
106 -
10774 }
10875
10976
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_Language.php
@@ -36,6 +36,45 @@
3737 /// each case, and the constants define the obvious order (e.g. SMW_YDM means "first Year,
3838 /// then Day, then Month). Unlisted combinations will not be accepted at all.
3939 protected $m_dateformats = array(array(SMW_Y), array(SMW_MY,SMW_YM), array(SMW_DMY,SMW_MDY,SMW_YMD,SMW_YDM));
 40+ /// Should English default aliases be used in this language?
 41+ protected $m_useEnDefaultAliases = true;
 42+ /// Default English aliases for namespaces (typically used in all languages)
 43+ static protected $enNamespaceAliases = array(
 44+ 'Property' => SMW_NS_PROPERTY,
 45+ 'Property_talk' => SMW_NS_PROPERTY_TALK,
 46+ 'Type' => SMW_NS_TYPE,
 47+ 'Type_talk' => SMW_NS_TYPE_TALK,
 48+ 'Concept' => SMW_NS_CONCEPT,
 49+ 'Concept_talk' => SMW_NS_CONCEPT_TALK
 50+ );
 51+ /// Default English aliases for namespaces (typically used in all languages)
 52+ static protected $enDatatypeAliases = array(
 53+ 'URL' => '_uri',
 54+ 'Page' => '_wpg',
 55+ 'String' => '_str',
 56+ 'Text' => '_txt',
 57+ 'Code' => '_cod',
 58+ 'Boolean' => '_boo',
 59+ 'Number' => '_num',
 60+ 'Geographic coordinate' => '_geo',
 61+ 'Temperature' => '_tem',
 62+ 'Date' => '_dat',
 63+ 'Email' => '_ema',
 64+ 'Annotation URI' => '_anu'
 65+ );
 66+ /// Default English aliases for special property names (typically used in all languages)
 67+ static protected $enPropertyAliases = array(
 68+ 'Has type' => '_TYPE',
 69+ 'Equivalent URI' => '_URI',
 70+ 'Subproperty of' => '_SUBP',
 71+ 'Display units' => '_UNIT',
 72+ 'Imported from' => '_IMPO',
 73+ 'Corresponds to' => '_CONV',
 74+ 'Provides service' => '_SERV',
 75+ 'Allows value' => '_PVAL',
 76+ 'Modification date' => '_MDAT',
 77+ 'Has improper value for' => '_ERRP'
 78+ );
4079
4180
4281 /**
@@ -49,7 +88,9 @@
5089 * Function that returns an array of namespace aliases, if any.
5190 */
5291 function getNamespaceAliases() {
53 - return $this->m_NamespaceAliases;
 92+ return $this->m_useEnDefaultAliases?
 93+ $this->m_NamespaceAliases + SMWLanguage::$enNamespaceAliases:
 94+ $this->m_NamespaceAliases;
5495 }
5596
5697 /**
@@ -67,7 +108,9 @@
68109 * should also have a primary label defined in m_DatatypeLabels.
69110 */
70111 function getDatatypeAliases() {
71 - return $this->m_DatatypeAliases;
 112+ return $this->m_useEnDefaultAliases?
 113+ $this->m_DatatypeAliases + SMWLanguage::$enDatatypeAliases:
 114+ $this->m_DatatypeAliases;
72115 }
73116
74117 /**
@@ -81,7 +124,9 @@
82125 * Aliases for predefined properties, if any.
83126 */
84127 function getPropertyAliases() {
85 - return $this->m_SpecialPropertyAliases;
 128+ return $this->m_useEnDefaultAliases?
 129+ $this->m_SpecialPropertyAliases + SMWLanguage::$enPropertyAliases:
 130+ $this->m_SpecialPropertyAliases;
86131 }
87132
88133 /**
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguagePt.php
@@ -42,18 +42,6 @@
4343 'Número inteiro' => '_num',
4444 'Folga' => '_num',
4545 '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'
5846 );
5947
6048 protected $m_SpecialProperties = array(
@@ -71,18 +59,7 @@
7260 );
7361
7462 protected $m_SpecialPropertyAliases = array(
75 - 'Unidade de amostra' => '_UNIT',
76 - // support English aliases for special properties
77 - 'Has type' => '_TYPE',
78 - 'Equivalent URI' => '_URI',
79 - 'Subproperty of' => '_SUBP',
80 - 'Display units' => '_UNIT',
81 - 'Imported from' => '_IMPO',
82 - 'Corresponds to' => '_CONV',
83 - 'Provides service' => '_SERV',
84 - 'Allows value' => '_PVAL',
85 - 'Modification date' => '_MDAT',
86 - 'Has improper value for' => '_ERRP'
 63+ 'Unidade de amostra' => '_UNIT'
8764 );
8865
8966 protected $m_Namespaces = array(
@@ -94,17 +71,6 @@
9572 SMW_NS_CONCEPT_TALK => 'Discussão_conceito'
9673 );
9774
98 -protected $m_NamespaceAliases = array(
99 - // support English aliases for namespaces
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 -
10975 protected $m_dateformats = array(array(SMW_Y), array(SMW_MY,SMW_YM), array(SMW_MDY,SMW_DMY,SMW_YMD,SMW_YDM));
11076
11177 protected $m_months = array("Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro");
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageRu.php
@@ -42,19 +42,7 @@
4343 'Целое' => '_num',
4444 'Десятичное' => '_num',
4545 'Плавающее' => '_num',
46 - 'Перечисление' => '_str',
47 - // support English aliases:
48 - 'Page' => '_wpg',
49 - 'String' => '_str',
50 - 'Text' => '_txt',
51 - 'Code' => '_cod',
52 - 'Boolean' => '_boo',
53 - 'Number' => '_num',
54 - 'Geographic coordinate' => '_geo',
55 - 'Temperature' => '_tem',
56 - 'Date' => '_dat',
57 - 'Email' => '_ema',
58 - 'Annotation URI' => '_anu'
 46+ 'Перечисление' => '_str'
5947 );
6048
6149 protected $m_SpecialProperties = array(
@@ -73,18 +61,7 @@
7462
7563 protected $m_SpecialPropertyAliases = array(
7664 'Тип данных' => '_TYPE',
77 - 'Отображаемая единица' => '_UNIT',
78 - // support English aliases for special properties
79 - 'Has type' => '_TYPE',
80 - 'Equivalent URI' => '_URI',
81 - 'Subproperty of' => '_SUBP',
82 - 'Display units' => '_UNIT',
83 - 'Imported from' => '_IMPO',
84 - 'Corresponds to' => '_CONV',
85 - 'Provides service' => '_SERV',
86 - 'Allows value' => '_PVAL',
87 - 'Modification date' => '_MDAT',
88 - 'Has improper value for' => '_ERRP'
 65+ 'Отображаемая единица' => '_UNIT'
8966 );
9067
9168
@@ -97,16 +74,6 @@
9875 SMW_NS_CONCEPT_TALK => 'Обсуждение_концепции'
9976 );
10077
101 -protected $m_NamespaceAliases = array(
102 - // support English aliases for namespaces
103 - 'Property' => SMW_NS_PROPERTY,
104 - 'Property_talk' => SMW_NS_PROPERTY_TALK,
105 - 'Type' => SMW_NS_TYPE,
106 - 'Type_talk' => SMW_NS_TYPE_TALK,
107 - 'Concept' => SMW_NS_CONCEPT,
108 - 'Concept_talk' => SMW_NS_CONCEPT_TALK
109 -);
110 -
11178 protected $m_dateformats = array(array(SMW_Y), array(SMW_MY,SMW_YM), array(SMW_DMY,SMW_MDY,SMW_YMD,SMW_YDM));
11279
11380 protected $m_months = array("января","февраля","марта","апреля", "мая","июня","июля","августа","сентрября", "октября","ноября","декабря");
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageDe.php
@@ -50,18 +50,6 @@
5151 'Ganze Zahl' => '_num',
5252 'Dezimalzahl' => '_num',
5353 'Aufzählung' => '_str',
54 - // support English aliases:
55 - 'Page' => '_wpg',
56 - 'String' => '_str',
57 - 'Text' => '_txt',
58 - 'Code' => '_cod',
59 - 'Boolean' => '_boo',
60 - 'Number' => '_num',
61 - 'Geographic coordinate' => '_geo',
62 - 'Temperature' => '_tem',
63 - 'Date' => '_dat',
64 - 'Email' => '_ema',
65 - 'Annotation URI' => '_anu'
6654 );
6755
6856 protected $m_SpecialProperties = array(
@@ -80,18 +68,7 @@
8169
8270 protected $m_SpecialPropertyAliases = array(
8371 'Hat Datentyp' => '_TYPE',
84 - 'Ausgabeeinheit' => '_UNIT',
85 - // support English aliases for special properties
86 - 'Has type' => '_TYPE',
87 - 'Equivalent URI' => '_URI',
88 - 'Subproperty of' => '_SUBP',
89 - 'Display units' => '_UNIT',
90 - 'Imported from' => '_IMPO',
91 - 'Corresponds to' => '_CONV',
92 - 'Provides service' => '_SERV',
93 - 'Allows value' => '_PVAL',
94 - 'Modification date' => '_MDAT',
95 - 'Has improper value for' => '_ERRP'
 72+ 'Ausgabeeinheit' => '_UNIT'
9673 );
9774
9875 protected $m_Namespaces = array(
@@ -103,16 +80,6 @@
10481 SMW_NS_CONCEPT_TALK => 'Konzept_Diskussion'
10582 );
10683
107 -protected $m_NamespaceAliases = array(
108 - // support English aliases for namespaces
109 - 'Property' => SMW_NS_PROPERTY,
110 - 'Property_talk' => SMW_NS_PROPERTY_TALK,
111 - 'Type' => SMW_NS_TYPE,
112 - 'Type_talk' => SMW_NS_TYPE_TALK,
113 - 'Concept' => SMW_NS_CONCEPT,
114 - 'Concept_talk' => SMW_NS_CONCEPT_TALK
115 -);
116 -
11784 protected $m_dateformats = array(array(SMW_Y), array(SMW_MY,SMW_YM), array(SMW_DMY,SMW_MDY,SMW_YMD,SMW_YDM));
11885
11986 protected $m_months = array("Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember");
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageZh_tw.php
@@ -46,17 +46,6 @@
4747 'Integer' => '_num',
4848 'Enumeration' => '_str',
4949 'URI' => '_uri',
50 - // support English aliases:
51 - 'Page' => '_wpg',
52 - 'String' => '_str',
53 - 'Text' => '_txt',
54 - 'Boolean' => '_boo',
55 - 'Number' => '_num',
56 - 'Geographic coordinate' => '_geo',
57 - 'Temperature' => '_tem',
58 - 'Date' => '_dat',
59 - 'Email' => '_ema',
60 - 'Annotation URI' => '_anu'
6150 );
6251
6352 protected $m_SpecialProperties = array(
@@ -75,18 +64,7 @@
7665
7766
7867 protected $m_SpecialPropertyAliases = array(
79 - 'Display unit' => '_UNIT',
80 -// support English aliases for special properties
81 - 'Has type' => '_TYPE',
82 - 'Equivalent URI' => '_URI',
83 - 'Subproperty of' => '_SUBP',
84 - 'Display units' => '_UNIT',
85 - 'Imported from' => '_IMPO',
86 - 'Corresponds to' => '_CONV',
87 - 'Provides service' => '_SERV',
88 - 'Allows value' => '_PVAL',
89 - 'Modification date' => '_MDAT',
90 - 'Has improper value for' => '_ERRP'
 68+ 'Display unit' => '_UNIT'
9169 );
9270
9371 protected $m_Namespaces = array(
@@ -98,16 +76,6 @@
9977 SMW_NS_CONCEPT_TALK => '概念討論', //'Concept_talk'
10078 );
10179
102 -protected $m_NamespaceAliases = array(
103 - // support English aliases for namespaces
104 - 'Property' => SMW_NS_PROPERTY,
105 - 'Property_talk' => SMW_NS_PROPERTY_TALK,
106 - 'Type' => SMW_NS_TYPE,
107 - 'Type_talk' => SMW_NS_TYPE_TALK,
108 - 'Concept' => SMW_NS_CONCEPT,
109 - 'Concept_talk' => SMW_NS_CONCEPT_TALK
110 -);
111 -
11280 protected $m_dateformats = array(array(SMW_Y), array(SMW_MY,SMW_YM), array(SMW_MDY,SMW_DMY,SMW_YMD,SMW_YDM));
11381
11482 protected $m_months = array("1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月");
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageHe.php
@@ -44,18 +44,6 @@
4545 => '_num',
4646 'נקודהצפה'
4747 => '_num',
48 - // support English aliases:
49 - 'Page' => '_wpg',
50 - 'String' => '_str',
51 - 'Text' => '_txt',
52 - 'Boolean' => '_boo',
53 - 'Number' => '_num',
54 - 'Geographic coordinate' => '_geo',
55 - 'Temperature' => '_tem',
56 - 'Date' => '_dat',
57 - 'Email' => '_ema',
58 - 'URI' => '_uri',
59 - 'Annotation URI' => '_anu'
6048 );
6149
6250 protected $m_SpecialProperties = array(
@@ -75,17 +63,6 @@
7664 protected $m_SpecialPropertyAliases = array(
7765 'יחידת הצגה'
7866 => '_UNIT',
79 - // support English aliases for special properties
80 - 'Has type' => '_TYPE',
81 - 'Equivalent URI' => '_URI',
82 - 'Subproperty of' => '_SUBP',
83 - 'Display units' => '_UNIT',
84 - 'Imported from' => '_IMPO',
85 - 'Corresponds to' => '_CONV',
86 - 'Provides service' => '_SERV',
87 - 'Allows value' => '_PVAL',
88 - 'Modification date' => '_MDAT',
89 - 'Has improper value for' => '_ERRP'
9067 );
9168
9269
@@ -99,14 +76,4 @@
10077 );
10178
10279
103 -protected $m_NamespaceAliases = array(
104 - // support English aliases for namespaces
105 - 'Property' => SMW_NS_PROPERTY,
106 - 'Property_talk' => SMW_NS_PROPERTY_TALK,
107 - 'Type' => SMW_NS_TYPE,
108 - 'Type_talk' => SMW_NS_TYPE_TALK,
109 - 'Concept' => SMW_NS_CONCEPT,
110 - 'Concept_talk' => SMW_NS_CONCEPT_TALK
111 -);
112 -
11380 }
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageArz.php
@@ -59,8 +59,6 @@
6060 );
6161
6262 protected $m_SpecialPropertyAliases = array(
63 - 'Modification date' => '_MDAT',
64 - 'Has improper value for' => '_ERRP',
6563 'عرض الوحدة' => '_UNIT'
6664 );
6765

Status & tagging log