r26380 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r26379‎ | r26380 | r26381 >
Date:17:56, 3 October 2007
Author:mkroetzsch
Status:old
Tags:
Comment:
Aliases for all special properties. English aliases added to existing language files.
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_Factbox.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/includes/articlepages/SMW_PropertyPage.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/languages/SMW_Language.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_LanguageNl.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/languages/SMW_LanguagePl.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageRu.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageSk.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_Factbox.php
@@ -58,8 +58,7 @@
5959 include_once($smwgIP . '/includes/SMW_DataValueFactory.php');
6060 // See if this attribute is a special one like e.g. "Has unit"
6161 $propertyname = smwfNormalTitleText($propertyname); //slightly normalize label
62 - $specprops = $smwgContLang->getSpecialPropertiesArray();
63 - $special = array_search($propertyname, $specprops);
 62+ $special = $smwgContLang->findSpecialPropertyID($propertyname);
6463
6564 switch ($special) {
6665 case false: // normal attribute
@@ -292,11 +291,10 @@
293292 }
294293
295294 global $smwgContLang, $wgContLang;
296 - $specprops = $smwgContLang->getSpecialPropertiesArray();
297295 foreach(SMWFactbox::$semdata->getSpecialProperties() as $specialProperty) {
298296 $valueArray = SMWFactbox::$semdata->getSpecialValues($specialProperty);
299 - if (array_key_exists($specialProperty,$specprops)) { // only print specprops with an official name
300 - $specialPropertyName = $specprops[$specialProperty];
 297+ $specialPropertyName = $smwgContLang->findSpecialPropertyLabel($specialProperty);
 298+ if ($specialPropertyName !== false) { // only print specprops with an official name
301299 foreach ($valueArray as $value) {
302300 // if ($value instanceof SMWDataValue) {
303301 // $vt = $value->getLongWikiText(true);
Index: trunk/extensions/SemanticMediaWiki/includes/articlepages/SMW_PropertyPage.php
@@ -26,9 +26,7 @@
2727 protected function initParameters() {
2828 global $smwgContLang, $smwgPropertyPagingLimit;
2929 $this->limit = $smwgPropertyPagingLimit;
30 - // TODO: Code shared with SMW_Factbox, should be a utility checkSpecialProperty function?
31 - $srels = $smwgContLang->getSpecialPropertiesArray();
32 - $this->special_prop = array_search($this->mTitle->getText(), $srels);
 30+ $this->special_prop = $smwgContLang->findSpecialPropertyID($this->mTitle->getText(), false);
3331 return true;
3432 }
3533
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_Language.php
@@ -9,11 +9,12 @@
1010 abstract class SMW_Language {
1111
1212 // the message arrays ...
13 - protected $smwContentMessages;
14 - protected $smwUserMessages;
15 - protected $smwSpecialProperties;
 13+ protected $m_ContentMessages;
 14+ protected $m_UserMessages;
1615 protected $m_DatatypeLabels;
1716 protected $m_DatatypeAliases = array();
 17+ protected $m_SpecialProperties;
 18+ protected $m_SpecialPropertyAliases = array();
1819 protected $m_Namespaces;
1920 protected $m_NamespaceAliases = array();
2021
@@ -51,25 +52,62 @@
5253 }
5354
5455 /**
55 - * Function that returns the labels for the special relations and attributes.
 56+ * Function that returns the labels for the special properties.
5657 */
5758 function getSpecialPropertiesArray() {
58 - return $this->smwSpecialProperties;
 59+ return $this->m_SpecialProperties;
5960 }
6061
6162 /**
 63+ * Aliases for special properties, if any.
 64+ */
 65+ function getSpecialPropertyAliases() {
 66+ return $this->m_SpecialPropertyAliases;
 67+ }
 68+
 69+ /**
 70+ * Find and return the id for the special property of the given local label.
 71+ * If the label does not belong to a special property, return false.
 72+ * The given label should be slightly normalised, i.e. as returned by Title
 73+ * or smwfNormalTitleText().
 74+ */
 75+ function findSpecialPropertyID($label, $useAlias = true) {
 76+ $id = array_search($label, $this->m_SpecialProperties);
 77+ if ($id !== false) {
 78+ return $id;
 79+ } elseif ( ($useAlias) && (array_key_exists($label, $this->m_SpecialPropertyAliases)) ) {
 80+ return $this->m_SpecialPropertyAliases[$label];
 81+ } else {
 82+ return false;
 83+ }
 84+ }
 85+
 86+ /**
 87+ * Get the translated user label for a given internal special property ID.
 88+ * Returns false for properties without a translation (these are usually the
 89+ * internal ones generated by SMW but not shown to the user).
 90+ */
 91+ public function findSpecialPropertyLabel($id) {
 92+ if (array_key_exists($id, $this->m_SpecialProperties)) {
 93+ return $this->m_SpecialProperties[$id];
 94+ } else { // language bug, incomplete translation
 95+ return false;
 96+ }
 97+ }
 98+
 99+ /**
62100 * Extends the array of special properties with a mapping from an $id to a
63101 * language dependent label.
64102 * NOTE: this function is provided for ad hoc compatibility with the Halo project.
65103 * A better solution will replace it at some time.
66104 */
67105 function addSpecialProperty($id, $label) {
68 - if (array_key_exists($id, $this->smwSpecialProperties)) {
69 - trigger_error('The ID "' . $id . '" already belongs to the special property "' . $this->smwSpecialProperties[$key] . '" and thus cannot be used for "' . $label . '".', E_USER_WARNING);
 106+ if (array_key_exists($id, $this->m_SpecialProperties)) {
 107+ trigger_error('The ID "' . $id . '" already belongs to the special property "' . $this->m_SpecialProperties[$key] . '" and thus cannot be used for "' . $label . '".', E_USER_WARNING);
70108 } elseif ($id < 1000) {
71109 trigger_error('IDs below 1000 are not allowed for custom special properties. Registration of "' . $label . '" failed.', E_USER_WARNING);
72110 } else {
73 - $this->smwSpecialProperties[$id] = $label;
 111+ $this->m_SpecialProperties[$id] = $label;
74112 }
75113 }
76114
@@ -78,7 +116,7 @@
79117 * in some article, and can thus not be translated to individual users).
80118 */
81119 function getContentMsgArray() {
82 - return $this->smwContentMessages;
 120+ return $this->m_ContentMessages;
83121 }
84122
85123 /**
@@ -86,7 +124,7 @@
87125 * the current user, and can thus be given in the individual user language).
88126 */
89127 function getUserMsgArray() {
90 - return $this->smwUserMessages;
 128+ return $this->m_UserMessages;
91129 }
92130 }
93131
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageEn.php
@@ -8,7 +8,7 @@
99
1010 class SMW_LanguageEn extends SMW_Language {
1111
12 -protected $smwContentMessages = array(
 12+protected $m_ContentMessages = array(
1313 'smw_edithelp' => 'Editing help on properties',
1414 'smw_helppage' => 'Relation',
1515 'smw_viewasrdf' => 'RDF feed',
@@ -83,7 +83,7 @@
8484 );
8585
8686
87 -protected $smwUserMessages = array(
 87+protected $m_UserMessages = array(
8888 'smw_devel_warning' => 'This feature is currently under development, and might not be fully functional. Backup your data before using it.',
8989 // Messages for pages of types and properties
9090 'smw_type_header' => 'Properties of type “$1”',
@@ -199,7 +199,7 @@
200200 'URI' => '_uri'
201201 );
202202
203 -protected $smwSpecialProperties = array(
 203+protected $m_SpecialProperties = array(
204204 //always start upper-case
205205 SMW_SP_HAS_TYPE => 'Has type',
206206 SMW_SP_HAS_URI => 'Equivalent URI',
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageRu.php
@@ -8,7 +8,7 @@
99
1010 class SMW_LanguageRu extends SMW_Language {
1111
12 -protected $smwContentMessages = array(
 12+protected $m_ContentMessages = array(
1313 'smw_edithelp' => 'Редактирование справки по отношениям и атрибутам',
1414 'smw_helppage' => 'Отношение',
1515 'smw_viewasrdf' => 'RDF источник',
@@ -83,7 +83,7 @@
8484 );
8585
8686
87 -protected $smwUserMessages = array(
 87+protected $m_UserMessages = array(
8888 'smw_devel_warning' => 'Эта функция в настоящее время находится в разработке. Сделайте резервную копию прежде чем продолжать.',
8989 // Messages for article pages of types, relations, and attributes
9090 'smw_type_header' => 'Атрибуты типа “$1”',
@@ -226,7 +226,7 @@
227227 'Annotation URI' => '_anu'
228228 );
229229
230 -protected $smwSpecialProperties = array(
 230+protected $m_SpecialProperties = array(
231231 //always start upper-case
232232 SMW_SP_HAS_TYPE => 'Имеет тип',
233233 SMW_SP_HAS_URI => 'Эквивалентный URI',
@@ -239,7 +239,20 @@
240240 SMW_SP_POSSIBLE_VALUE => 'Возможные значения' // TODO: check translation, should be "Allowed value" (singular)
241241 );
242242
 243+protected $m_SpecialPropertyAliases = array(
 244+ // support English aliases for special properties
 245+ 'Has type' => SMW_SP_HAS_TYPE,
 246+ 'Equivalent URI' => SMW_SP_HAS_URI,
 247+ 'Subproperty of' => SMW_SP_SUBPROPERTY_OF,
 248+ 'Main display unit' => SMW_SP_MAIN_DISPLAY_UNIT,
 249+ 'Display unit' => SMW_SP_DISPLAY_UNIT,
 250+ 'Imported from' => SMW_SP_IMPORTED_FROM,
 251+ 'Corresponds to' => SMW_SP_CONVERSION_FACTOR,
 252+ 'Provides service' => SMW_SP_SERVICE_LINK,
 253+ 'Allows value' => SMW_SP_POSSIBLE_VALUE
 254+);
243255
 256+
244257 protected $m_Namespaces = array(
245258 SMW_NS_RELATION => 'Отношение',
246259 SMW_NS_RELATION_TALK => 'Отношение_дискуссия',
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageEs.php
@@ -8,7 +8,7 @@
99
1010 class SMW_LanguageEs extends SMW_Language {
1111
12 -protected $smwContentMessages = array(
 12+protected $m_ContentMessages = array(
1313 'smw_edithelp' => 'Ayuda a la redacción de relaciones y atributos',
1414 'smw_helppage' => 'Relaciones y atributos',
1515 'smw_viewasrdf' => 'Ver como RDF',
@@ -82,7 +82,7 @@
8383 'smw_querytoolarge' => 'The following query conditions could not be considered due to the wikis restrictions in query size or depth: $1.'
8484 );
8585
86 -protected $smwUserMessages = array(
 86+protected $m_UserMessages = array(
8787 'smw_devel_warning' => 'Esta función está aún en desarrollo y quizá aun no sea operativa. Es quizá recomendable hacer una copia de seguridad del wiki antes de utilizar esta función.',
8888 // Messages for article pages of types, relations, and attributes
8989 'smw_type_header' => 'Atributos de tipo “$1”',
@@ -218,7 +218,7 @@
219219 'Annotation URI' => '_anu'
220220 );
221221
222 -protected $smwSpecialProperties = array(
 222+protected $m_SpecialProperties = array(
223223 //always start upper-case
224224 SMW_SP_HAS_TYPE => 'Tiene tipo de datos',
225225 SMW_SP_HAS_URI => 'URI equivalente',
@@ -231,6 +231,19 @@
232232 SMW_SP_POSSIBLE_VALUE => 'Permite el valor'
233233 );
234234
 235+protected $m_SpecialPropertyAliases = array(
 236+ // support English aliases for special properties
 237+ 'Has type' => SMW_SP_HAS_TYPE,
 238+ 'Equivalent URI' => SMW_SP_HAS_URI,
 239+ 'Subproperty of' => SMW_SP_SUBPROPERTY_OF,
 240+ 'Main display unit' => SMW_SP_MAIN_DISPLAY_UNIT,
 241+ 'Display unit' => SMW_SP_DISPLAY_UNIT,
 242+ 'Imported from' => SMW_SP_IMPORTED_FROM,
 243+ 'Corresponds to' => SMW_SP_CONVERSION_FACTOR,
 244+ 'Provides service' => SMW_SP_SERVICE_LINK,
 245+ 'Allows value' => SMW_SP_POSSIBLE_VALUE
 246+);
 247+
235248 protected $m_Namespaces = array(
236249 SMW_NS_RELATION => "Relación",
237250 SMW_NS_RELATION_TALK => "Discusión_relación",
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageFr.php
@@ -8,7 +8,7 @@
99
1010 class SMW_LanguageFr extends SMW_Language {
1111
12 -protected $smwContentMessages = array(
 12+protected $m_ContentMessages = array(
1313 'smw_edithelp' => 'Aide à la rédaction de relations et d\'attributs',
1414 'smw_helppage' => 'Relations et attributs',
1515 'smw_viewasrdf' => 'Voir comme RDF',
@@ -82,7 +82,7 @@
8383 'smw_querytoolarge' => 'The following query conditions could not be considered due to the wikis restrictions in query size or depth: $1.'
8484 );
8585
86 -protected $smwUserMessages = array(
 86+protected $m_UserMessages = array(
8787 'smw_devel_warning' => 'Cette fonction est encore en développement et n\'est peut-être pas encore opérationnelle. Il est peut-être judicieux de faire une sauvegarde du contenu du wiki avant toute utilisation de cette fonction.',
8888 // Messages for article pages of types, relations, and attributes
8989 'smw_type_header' => 'Attributes of type “$1”', // TODO translate
@@ -219,7 +219,7 @@
220220 'Annotation URI' => '_anu'
221221 );
222222
223 -protected $smwSpecialProperties = array(
 223+protected $m_SpecialProperties = array(
224224 //always start upper-case
225225 SMW_SP_HAS_TYPE => 'A le type',
226226 SMW_SP_HAS_URI => 'URI équivalente',
@@ -232,6 +232,19 @@
233233 SMW_SP_POSSIBLE_VALUE => 'Valeur possible'
234234 );
235235
 236+protected $m_SpecialPropertyAliases = array(
 237+ // support English aliases for special properties
 238+ 'Has type' => SMW_SP_HAS_TYPE,
 239+ 'Equivalent URI' => SMW_SP_HAS_URI,
 240+ 'Subproperty of' => SMW_SP_SUBPROPERTY_OF,
 241+ 'Main display unit' => SMW_SP_MAIN_DISPLAY_UNIT,
 242+ 'Display unit' => SMW_SP_DISPLAY_UNIT,
 243+ 'Imported from' => SMW_SP_IMPORTED_FROM,
 244+ 'Corresponds to' => SMW_SP_CONVERSION_FACTOR,
 245+ 'Provides service' => SMW_SP_SERVICE_LINK,
 246+ 'Allows value' => SMW_SP_POSSIBLE_VALUE
 247+);
 248+
236249 protected $m_Namespaces = array(
237250 SMW_NS_RELATION => "Relation",
238251 SMW_NS_RELATION_TALK => "Discussion_relation",
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageDe.php
@@ -17,7 +17,7 @@
1818
1919 class SMW_LanguageDe extends SMW_Language {
2020
21 -protected $smwContentMessages = array(
 21+protected $m_ContentMessages = array(
2222 'smw_edithelp' => 'Bearbeitungshilfe für Attribute',
2323 'smw_helppage' => 'Relationen und Attribute',
2424 'smw_viewasrdf' => 'RDF-Feed',
@@ -91,7 +91,7 @@
9292 'smw_querytoolarge' => 'Die folgenden Anfragebedingungne konnten wegen den in diesem Wiki gültigen Beschränkungen für größe und Tiefe von Anfragen nicht berücksichtigt werden: $1.'
9393 );
9494
95 -protected $smwUserMessages = array(
 95+protected $m_UserMessages = array(
9696 'smw_devel_warning' => 'Diese Funktion befindet sich zur Zeit in Entwicklung und ist eventuell noch nicht voll einsatzfähig. Eventuell ist es ratsam, den Inhalt des Wikis vor der Benutzung dieser Funktion zu sichern.',
9797 // Messages for article pages of types, relations, and attributes
9898 'smw_type_header' => 'Attribute mit dem Datentyp „$1“',
@@ -208,7 +208,7 @@
209209 'Annotation URI' => '_anu'
210210 );
211211
212 -protected $smwSpecialProperties = array(
 212+protected $m_SpecialProperties = array(
213213 //always start upper-case
214214 SMW_SP_HAS_TYPE => 'Hat Datentyp',
215215 SMW_SP_HAS_URI => 'Gleichwertige URI',
@@ -221,6 +221,19 @@
222222 SMW_SP_POSSIBLE_VALUE => 'Erlaubt Wert'
223223 );
224224
 225+protected $m_SpecialPropertyAliases = array(
 226+ // support English aliases for special properties
 227+ 'Has type' => SMW_SP_HAS_TYPE,
 228+ 'Equivalent URI' => SMW_SP_HAS_URI,
 229+ 'Subproperty of' => SMW_SP_SUBPROPERTY_OF,
 230+ 'Main display unit' => SMW_SP_MAIN_DISPLAY_UNIT,
 231+ 'Display unit' => SMW_SP_DISPLAY_UNIT,
 232+ 'Imported from' => SMW_SP_IMPORTED_FROM,
 233+ 'Corresponds to' => SMW_SP_CONVERSION_FACTOR,
 234+ 'Provides service' => SMW_SP_SERVICE_LINK,
 235+ 'Allows value' => SMW_SP_POSSIBLE_VALUE
 236+);
 237+
225238 protected $m_Namespaces = array(
226239 SMW_NS_RELATION => "Relation",
227240 SMW_NS_RELATION_TALK => "Relation_Diskussion",
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageNl.php
@@ -8,7 +8,7 @@
99
1010 class SMW_LanguageNl extends SMW_Language {
1111
12 -protected $smwContentMessages = array(
 12+protected $m_ContentMessages = array(
1313 'smw_edithelp' => 'Bewerkingshulp bij eigenschappen',
1414 'smw_helppage' => 'Relatie',
1515 'smw_viewasrdf' => 'RDF-feed',
@@ -79,7 +79,7 @@
8080 'smw_querytoolarge' => 'De volgende zoekopdrachtcondities zijn niet in acht genomen vanwege beperkingen in de grootte of diepte van zoekopdrachten in deze wiki: $1.'
8181 );
8282
83 -protected $smwUserMessages = array(
 83+protected $m_UserMessages = array(
8484 'smw_devel_warning' => 'Deze functie wordt op het moment ontwikkeld en is wellicht niet volledig functioneel. Maak een back-up voordat u deze functie gebruikt.',
8585 // Messages for pages of types and properties
8686 'smw_type_header' => 'Eigenschappen voor type “$1”',
@@ -204,7 +204,7 @@
205205 'Annotation URI' => '_anu'
206206 );
207207
208 -protected $smwSpecialProperties = array(
 208+protected $m_SpecialProperties = array(
209209 //always start upper-case
210210 SMW_SP_HAS_TYPE => 'Heeft type',
211211 SMW_SP_HAS_URI => 'Equivalent URI',
@@ -217,6 +217,19 @@
218218 SMW_SP_POSSIBLE_VALUE => 'Geldige waarde'
219219 );
220220
 221+protected $m_SpecialPropertyAliases = array(
 222+ // support English aliases for special properties
 223+ 'Has type' => SMW_SP_HAS_TYPE,
 224+ 'Equivalent URI' => SMW_SP_HAS_URI,
 225+ 'Subproperty of' => SMW_SP_SUBPROPERTY_OF,
 226+ 'Main display unit' => SMW_SP_MAIN_DISPLAY_UNIT,
 227+ 'Display unit' => SMW_SP_DISPLAY_UNIT,
 228+ 'Imported from' => SMW_SP_IMPORTED_FROM,
 229+ 'Corresponds to' => SMW_SP_CONVERSION_FACTOR,
 230+ 'Provides service' => SMW_SP_SERVICE_LINK,
 231+ 'Allows value' => SMW_SP_POSSIBLE_VALUE
 232+);
 233+
221234 protected $m_Namespaces = array(
222235 SMW_NS_RELATION => 'Relatie',
223236 SMW_NS_RELATION_TALK => 'Overleg_relatie',
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguagePl.php
@@ -27,7 +27,7 @@
2828
2929 class SMW_LanguagePl extends SMW_Language {
3030
31 -protected $smwContentMessages = array(
 31+protected $m_ContentMessages = array(
3232 'smw_edithelp' => 'Pomoc edycyjna odnośnie relacji i atrybutów',
3333 'smw_helppage' => 'Relacja',
3434 'smw_viewasrdf' => 'RDF feed', //TODO: translate?
@@ -103,7 +103,7 @@
104104 );
105105
106106
107 -protected $smwUserMessages = array(
 107+protected $m_UserMessages = array(
108108 'smw_devel_warning' => 'Ta opcja jest obecnie w fazie rozwoju, może nie być w pełni funkcjonalna. Przed użyciem zabezpiecz swoje dane.',
109109 // Messages for article pages of types, relations, and attributes
110110 'smw_type_header' => 'Atrybuty typu “$1”',
@@ -250,7 +250,7 @@
251251 'Annotation URI' => '_anu'
252252 );
253253
254 -protected $smwSpecialProperties = array(
 254+protected $m_SpecialProperties = array(
255255 //always start upper-case
256256 SMW_SP_HAS_TYPE => 'Ma typ',
257257 SMW_SP_HAS_URI => 'Równoważne URI',
@@ -263,7 +263,20 @@
264264 SMW_SP_POSSIBLE_VALUE => 'Dopuszcza wartość'
265265 );
266266
 267+protected $m_SpecialPropertyAliases = array(
 268+ // support English aliases for special properties
 269+ 'Has type' => SMW_SP_HAS_TYPE,
 270+ 'Equivalent URI' => SMW_SP_HAS_URI,
 271+ 'Subproperty of' => SMW_SP_SUBPROPERTY_OF,
 272+ 'Main display unit' => SMW_SP_MAIN_DISPLAY_UNIT,
 273+ 'Display unit' => SMW_SP_DISPLAY_UNIT,
 274+ 'Imported from' => SMW_SP_IMPORTED_FROM,
 275+ 'Corresponds to' => SMW_SP_CONVERSION_FACTOR,
 276+ 'Provides service' => SMW_SP_SERVICE_LINK,
 277+ 'Allows value' => SMW_SP_POSSIBLE_VALUE
 278+);
267279
 280+
268281 protected $m_Namespaces = array(
269282 SMW_NS_RELATION => 'Relacja',
270283 SMW_NS_RELATION_TALK => 'Dyskusja_relacji',
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageHe.php
@@ -8,7 +8,7 @@
99
1010 class SMW_LanguageHe extends SMW_Language {
1111
12 -protected $smwContentMessages = array(
 12+protected $m_ContentMessages = array(
1313 'smw_edithelp' => 'עזרה בנושא עריכת יחסים ותכונות',
1414 'smw_helppage' => 'יחס',
1515 'smw_viewasrdf' => 'RDF feed',
@@ -82,7 +82,7 @@
8383 );
8484
8585
86 -protected $smwUserMessages = array(
 86+protected $m_UserMessages = array(
8787 'smw_devel_warning' => 'This feature is currently under development, and might not be fully functional. Backup your data before using it.',
8888 // Messages for article pages of types, relations, and attributes
8989 'smw_type_header' => 'Attributes of type “$1”', // TODO translate
@@ -230,7 +230,7 @@
231231 'Annotation URI' => '_anu'
232232 );
233233
234 -protected $smwSpecialProperties = array(
 234+protected $m_SpecialProperties = array(
235235 //always start upper-case
236236 SMW_SP_HAS_TYPE => 'מטיפוס',
237237 SMW_SP_HAS_URI => 'מזהה יחודי תואם',
@@ -243,7 +243,20 @@
244244 SMW_SP_POSSIBLE_VALUE => 'ערכים אפשריים' // TODO: check translation, should be singular value//
245245 );
246246
 247+protected $m_SpecialPropertyAliases = array(
 248+ // support English aliases for special properties
 249+ 'Has type' => SMW_SP_HAS_TYPE,
 250+ 'Equivalent URI' => SMW_SP_HAS_URI,
 251+ 'Subproperty of' => SMW_SP_SUBPROPERTY_OF,
 252+ 'Main display unit' => SMW_SP_MAIN_DISPLAY_UNIT,
 253+ 'Display unit' => SMW_SP_DISPLAY_UNIT,
 254+ 'Imported from' => SMW_SP_IMPORTED_FROM,
 255+ 'Corresponds to' => SMW_SP_CONVERSION_FACTOR,
 256+ 'Provides service' => SMW_SP_SERVICE_LINK,
 257+ 'Allows value' => SMW_SP_POSSIBLE_VALUE
 258+);
247259
 260+
248261 protected $m_Namespaces = array(
249262 SMW_NS_RELATION => 'יחס',
250263 SMW_NS_RELATION_TALK => 'שיחת_יחס',
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageSk.php
@@ -8,7 +8,7 @@
99
1010 class SMW_LanguageSk extends SMW_Language {
1111
12 -protected $smwContentMessages = array(
 12+protected $m_ContentMessages = array(
1313 'smw_edithelp' => 'Pomoc pri upravovaní vzťahov a atribútov',
1414 'smw_helppage' => 'Vzťah',
1515 'smw_viewasrdf' => 'RDF feed',
@@ -84,7 +84,7 @@
8585 );
8686
8787
88 -protected $smwUserMessages = array(
 88+protected $m_UserMessages = array(
8989 'smw_devel_warning' => 'Táto vlastnosť je momentálne vo vývoji a nemusí byť celkom funkčná. Predtým, než ju použijete si zálohujte dáta.',
9090 // Messages for article pages of types, relations, and attributes
9191 'smw_type_header' => 'Attributes of type “$1”', // TODO translate
@@ -227,7 +227,7 @@
228228 'Annotation URI' => '_anu'
229229 );
230230
231 -protected $smwSpecialProperties = array(
 231+protected $m_SpecialProperties = array(
232232 //always start upper-case
233233 SMW_SP_HAS_TYPE => 'Má typ',
234234 SMW_SP_HAS_URI => 'Ekvivalent URI',
@@ -240,7 +240,20 @@
241241 SMW_SP_POSSIBLE_VALUE => 'Allowed value' //TODO translate
242242 );
243243
 244+protected $m_SpecialPropertyAliases = array(
 245+ // support English aliases for special properties
 246+ 'Has type' => SMW_SP_HAS_TYPE,
 247+ 'Equivalent URI' => SMW_SP_HAS_URI,
 248+ 'Subproperty of' => SMW_SP_SUBPROPERTY_OF,
 249+ 'Main display unit' => SMW_SP_MAIN_DISPLAY_UNIT,
 250+ 'Display unit' => SMW_SP_DISPLAY_UNIT,
 251+ 'Imported from' => SMW_SP_IMPORTED_FROM,
 252+ 'Corresponds to' => SMW_SP_CONVERSION_FACTOR,
 253+ 'Provides service' => SMW_SP_SERVICE_LINK,
 254+ 'Allows value' => SMW_SP_POSSIBLE_VALUE
 255+);
244256
 257+
245258 protected $m_Namespaces = array(
246259 SMW_NS_RELATION => 'Vzťah',
247260 SMW_NS_RELATION_TALK => 'Diskusia o vzťahu',

Status & tagging log