r101285 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101284‎ | r101285 | r101286 >
Date:21:27, 29 October 2011
Author:mkroetzsch
Status:deferred (Comments)
Tags:
Comment:
Simplified subobject management by using property "_SOBJ" (Has subobject) to associate the data.
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_SemanticData.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/includes/dataitems/SMW_DI_Container.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/includes/dataitems/SMW_DI_Property.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/includes/parserhooks/SMW_Subobject.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SparqlStore.php (modified) (history)
  • /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_LanguageFi.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_LanguageId.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_LanguageNo.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/includes/parserhooks/SMW_Subobject.php
@@ -27,10 +27,17 @@
2828
2929 $params = func_get_args();
3030 array_shift( $params ); // We already know the $parser ...
 31+
3132 $subobjectName = str_replace( ' ', '_', trim( array_shift( $params ) ) );
 33+ $mainSemanticData = SMWParseData::getSMWData( $parser );
 34+ $subject = $mainSemanticData->getSubject();
3235
33 - $semanticData = SMWParseData::getSMWData( $parser )->getChild( $subobjectName );
 36+ $diSubWikiPage = new SMWDIWikiPage( $subject->getDBkey(),
 37+ $subject->getNamespace(), $subject->getInterwiki(),
 38+ $subobjectName );
3439
 40+ $semanticData = new SMWContainerSemanticData( $diSubWikiPage );
 41+
3542 foreach ( $params as $param ) {
3643 $parts = explode( '=', trim( $param ), 2 );
3744
@@ -42,6 +49,10 @@
4350 }
4451 }
4552
 53+ $propertyDi = new SMWDIProperty('_SOBJ');
 54+ $subObjectDi = new SMWDIContainer( $semanticData );
 55+ SMWParseData::getSMWData( $parser )->addPropertyObjectValue( $propertyDi, $subObjectDi );
 56+
4657 return smwfEncodeMessages( self::$m_errors );
4758 }
4859
Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php
@@ -735,9 +735,6 @@
736736 $sid = $this->makeSMWPageID( $subject->getDBkey(), $subject->getNamespace(), $subject->getInterwiki(), $subject->getSubobjectName(), true, $sortkey );
737737 $updates = array(); // collect data for bulk updates; format: tableid => updatearray
738738 $this->prepareDBUpdates( $updates, $data, $sid, $subject );
739 - foreach ( $data->getAllChildren() as $childData ) {
740 - $this->prepareDBUpdates( $updates, $childData, 0, $childData->getSubject() );
741 - }
742739
743740 $db = wfGetDB( DB_MASTER );
744741 foreach ( $updates as $tablename => $uvals ) {
Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SparqlStore.php
@@ -60,10 +60,6 @@
6161 parent::doDataUpdate( $data );
6262
6363 $expDataArray = $this->prepareUpdateExpData( $data );
64 - foreach ( $data->getAllChildren() as $childData ) {
65 - $subExpDataArray = $this->prepareUpdateExpData( $childData );
66 - $expDataArray = $expDataArray + $subExpDataArray;
67 - }
6864
6965 if ( count( $expDataArray ) > 0 ) {
7066 $subjectResource = SMWExporter::getDataItemExpElement( $data->getSubject() );
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_SemanticData.php
@@ -55,31 +55,7 @@
5656 */
5757 protected $mProperties = array();
5858
59 -
6059 /**
61 - * Array of SMWSemanticData objects that refer to subobjects of this
62 - * object and for which this object is the parent. Elements in this
63 - * array are created (only) by calling the method getChild().
64 - * Existing data from other SMWSemanticData objects can be imported
65 - * into such children by calling the child's importDataFrom()
66 - * method.
67 - *
68 - * The array is indexed by the subobject name of the children's
69 - * subjects.
70 - *
71 - * @note The subject SMWDIWikiPage of a child is always a subobject of
72 - * the subject of its parent. Nevertheless, it is perfectly possible to
73 - * create an SMWSemanticData for a subject that is a subobject without
74 - * this SMWSemanticData being a child of anything.
75 - *
76 - * @since 1.7
77 - * @see SMWSemanticData::getChild()
78 - *
79 - * @var array of string => SMWSemanticData
80 - */
81 - protected $mChildren = array();
82 -
83 - /**
8460 * States whether the container holds any normal properties.
8561 *
8662 * @var boolean
@@ -119,18 +95,6 @@
12096 protected $mSubject;
12197
12298 /**
123 - * If the data describes a subobject, this field refers to its parent
124 - * object. To associate a semantic data with its parent, the method
125 - * getChild() can be used (see documentation there for details).
126 - *
127 - * @since 1.7
128 - * @see SMWSemanticData::getChild()
129 - *
130 - * @var SMWSemanticData or null
131 - */
132 - protected $mParentSemanticData = null;
133 -
134 - /**
13599 * Constructor.
136100 *
137101 * @param SMWDIWikiPage $subject to which this data refers
@@ -169,68 +133,6 @@
170134 }
171135
172136 /**
173 - * Return a semantic data object to store data of the subobject with
174 - * the given name. If no data container exists for this purpose yet,
175 - * a new one will be created. Globally, child data has the same meaning
176 - * as if it was used in a separate SMWSemanticData (with the same
177 - * subobject as subject but which is not a child). The child-parent
178 - * association is merely used to attach extra data to an SMWSemanticData
179 - * so that a single object can carry information about all related
180 - * subobjects.
181 - *
182 - * Contrary to biological intuition, children are always managed by the
183 - * (unique) parent: when calling getChild() on a child SMWSemanticData,
184 - * the new child will be attached to the old child's parent. So there is
185 - * no hierarchy of children and all existing children can be accessed
186 - * through the parent. In the rare case that the given subobject name for
187 - * the child is the same as the subobject name of the subject of $this,
188 - * the method wil return $this instead of creating a new child.
189 - *
190 - * Overall, this management ensures that there will be at most one
191 - * SMWSemanticData object for any subobjectName. Note that the relation
192 - * parent-child is not the same as the relation page-subobject. A parent
193 - * SMWSemanticData can still refer to a subject with an empty subobject
194 - * name, while a child's subobject name might be empty.
195 - *
196 - * @see SMWSemanticData::importDataFrom()
197 - * @see SMWSemanticData::mChildren
198 - *
199 - * @since 1.7
200 - *
201 - * @param String $subobjectName must be non-empty
202 - * @return SMWSemanticData
203 - */
204 - public function getChild( $subobjectName ) {
205 - if ( $subobjectName == $this->mSubject->getSubobjectName() ) {
206 - return $this;
207 - } elseif ( !is_null( $this->mParentSemanticData ) ) {
208 - return $this->mParentSemanticData->getChild( $subobjectName );
209 - } elseif ( array_key_exists( $subobjectName, $this->mChildren ) ) {
210 - return $this->mChildren[$subobjectName];
211 - } else {
212 - $diSubWikiPage = new SMWDIWikiPage( $this->mSubject->getDBkey(),
213 - $this->mSubject->getNamespace(), $this->mSubject->getInterwiki(),
214 - $subobjectName );
215 - $result = new SMWSemanticData( $diSubWikiPage );
216 - $result->mParentSemanticData = $this;
217 - $this->mChildren[$subobjectName] = $result;
218 - return $result;
219 - }
220 - }
221 -
222 - /**
223 - * Return an array of SMWSemanticData objects for all children of this
224 - * object, indexed by the subobject name that they are using.
225 - *
226 - * @since 1.7
227 - *
228 - * @return array of SMWSemanticData
229 - */
230 - public function getAllChildren() {
231 - return $this->mChildren;
232 - }
233 -
234 - /**
235137 * Get the array of all properties that have stored values.
236138 *
237139 * @return array of SMWDIProperty objects
@@ -280,10 +182,6 @@
281183 }
282184 }
283185
284 - foreach ( $this->mChildren as $child ) {
285 - hash_update( $ctx, '_#_' . $child->getHash() . '##' );
286 - }
287 -
288186 return hash_final( $ctx );
289187 }
290188
@@ -390,34 +288,12 @@
391289 $this->mHasVisibleProps = false;
392290 $this->mHasVisibleSpecs = false;
393291 $this->stubObject = false;
394 - $mParentSemanticData = null;
395 - $this->mChildren = array();
396292 }
397293
398294 /**
399 - * Add all data from the given SMWSemanticData. Children will be added
400 - * recursively and might be moved to the parent of $this object (if it
401 - * is a child of something else).
 295+ * Add all data from the given SMWSemanticData.
402296 *
403 - * @note The subject of the SMWSemanticData that is imported is not
404 - * relevant to the result of this operation, but the subobject names of
405 - * its children (if any) will be used. Therefore, if one of the children
406 - * has the same subobject name as the subject of the SMWSemanticData
407 - * into which the data is imported, then the data of imported parent
408 - * and the eponymous child will be combined into a single object.
409 - * Example: we have data about "Foo#Bar" (no children) and we import
410 - * data about "Baz" with a child "Baz#Bar". Then the result will be
411 - * about "Foo#Bar" and have no children but all data from the three
412 - * sources. The original data from "Foo#Bar" is kept, the data from
413 - * "Baz" is imported (ignoring the name "Baz"), and the data of the
414 - * child "Baz#Bar" is merged into "Foo#Bar" (using only the subobject
415 - * name). While slightly subtle, this should make sense in most cases.
416 - * Typically, if "Baz" != "Foo" then "Baz" is just some internal page
417 - * name that is used as a placeholder. Children can never hold data
418 - * about other pages, so mergnig all data is most likely desired.
419 - *
420297 * @since 1.7
421 - * @see SMWSemanticData::getChild()
422298 *
423299 * @param $semanticData SMWSemanticData object to copy from
424300 */
@@ -440,10 +316,6 @@
441317 }
442318 }
443319 }
444 -
445 - foreach ( $semanticData->getAllChildren() as $subobjectName => $child ) {
446 - $this->getChild( $subobjectName )->importDataFrom( $child );
447 - }
448320 }
449321
450322 }
\ No newline at end of file
Index: trunk/extensions/SemanticMediaWiki/includes/dataitems/SMW_DI_Container.php
@@ -97,8 +97,6 @@
9898 $this->mHasVisibleProps = $semanticData->hasVisibleProperties();
9999 $this->mHasVisibleSpecs = $semanticData->hasVisibleSpecialProperties();
100100 $this->mNoDuplicates = $semanticData->mNoDuplicates;
101 - $this->mChildren = $semanticData->mChildren;
102 - $this->mParentSemanticData = $semanticData->mParentSemanticData;
103101 }
104102
105103 }
Index: trunk/extensions/SemanticMediaWiki/includes/dataitems/SMW_DI_Property.php
@@ -335,6 +335,7 @@
336336 '_SKEY' => array( '__key', false ), // sort key of a page
337337 '_SF_DF' => array( '__spf', true ), // Semantic Form's default form property
338338 '_SF_AF' => array( '__spf', true ), // Semantic Form's alternate form property
 339+ '_SOBJ' => array( '_wpg', true ), // "has subobject"
339340 );
340341
341342 foreach ( $datatypeLabels as $typeid => $label ) {
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageZh_cn.php
@@ -39,6 +39,7 @@
4040 '_anu' => 'URI的注解', // 'Annotation URI' // name of the annotation URI type (OWL annotation property)
4141 '_tel' => 'Telephone number', // name of the telephone (URI) type //TODO: translate
4242 '_rec' => 'Record', // name of record data type //TODO: translate
 43+ '_qty' => 'Quantity', // name of the number type with units of measurement //TODO: translate
4344 );
4445
4546 protected $m_DatatypeAliases = array(
@@ -66,6 +67,7 @@
6768 '_MDAT' => 'Modification date', // TODO: translate
6869 '_ERRP' => 'Has improper value for', // TODO: translate
6970 '_LIST' => 'Has fields', // TODO: translate
 71+ '_SOBJ' => 'Has subobject', // TODO: translate
7072 );
7173
7274
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageAr.php
@@ -37,6 +37,7 @@
3838 '_anu' => 'التعليق علي معرف الموارد الموحد', // name of the annotation URI type (OWL annotation property)
3939 '_tel' => 'رقم الهاتف', // name of the telephone (URI) type
4040 '_rec' => 'تسجيل', // name of record data type
 41+ '_qty' => 'Quantity', // name of the number type with units of measurement //TODO: translate
4142 );
4243
4344 protected $m_DatatypeAliases = array(
@@ -60,6 +61,7 @@
6162 '_MDAT' => 'تاريخ التعديل',
6263 '_ERRP' => 'يمتلك قيمة غير صحيحة ل',
6364 '_LIST' => 'يمتلك حقول',
 65+ '_SOBJ' => 'Has subobject', // TODO: translate
6466 );
6567
6668 protected $m_SpecialPropertyAliases = array(
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageEn.php
@@ -66,6 +66,7 @@
6767 '_MDAT' => 'Modification date',
6868 '_ERRP' => 'Has improper value for',
6969 '_LIST' => 'Has fields',
 70+ '_SOBJ' => 'Has subobject',
7071 );
7172
7273 protected $m_SpecialPropertyAliases = array(
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageEs.php
@@ -37,6 +37,7 @@
3838 '_anu' => 'Anotación-URI', // name of the annotation URI type (OWL annotation property)
3939 '_tel' => 'Telephone number', // name of the telephone (URI) type //TODO: translate
4040 '_rec' => 'Record', // name of record data type //TODO: translate
 41+ '_qty' => 'Quantity', // name of the number type with units of measurement //TODO: translate
4142 );
4243
4344 protected $m_DatatypeAliases = array(
@@ -60,6 +61,7 @@
6162 '_MDAT' => 'Modification date', // TODO: translate
6263 '_ERRP' => 'Has improper value for', // TODO: translate
6364 '_LIST' => 'Has fields', // TODO: translate
 65+ '_SOBJ' => 'Has subobject', // TODO: translate
6466 );
6567
6668 protected $m_SpecialPropertyAliases = array(
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageFr.php
@@ -37,6 +37,7 @@
3838 '_anu' => 'Annotation-URI', // name of the annotation URI type (OWL annotation property)
3939 '_tel' => 'Numéro de téléphone', // name of the telephone (URI) type
4040 '_rec' => 'Enregistrement', // name of record data type
 41+ '_qty' => 'Quantity', // name of the number type with units of measurement //TODO: translate
4142 );
4243
4344 protected $m_DatatypeAliases = array(
@@ -60,6 +61,7 @@
6162 '_MDAT' => 'Date de modification',
6263 '_ERRP' => 'A une valeur incorrecte pour',
6364 '_LIST' => 'A le champ',
 65+ '_SOBJ' => 'Has subobject', // TODO: translate
6466 );
6567
6668 protected $m_SpecialPropertyAliases = array(
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageNl.php
@@ -39,6 +39,7 @@
4040 '_anu' => 'Annotatie-URI', // name of the annotation URI type (OWL annotation property)
4141 '_tel' => 'Telefoonnummer', // name of the telephone (URI) type //TODO: translate
4242 '_rec' => 'Record', // name of record data type //TODO: translate
 43+ '_qty' => 'Quantity', // name of the number type with units of measurement //TODO: translate
4344 );
4445
4546 protected $m_DatatypeAliases = array(
@@ -63,6 +64,7 @@
6465 '_MDAT' => 'Wijzigingsdatum',
6566 '_ERRP' => 'Heeft ongeldige waarde voor',
6667 '_LIST' => 'Heeft velden',
 68+ '_SOBJ' => 'Has subobject', // TODO: translate
6769 );
6870
6971 protected $m_SpecialPropertyAliases = array(
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguagePl.php
@@ -56,6 +56,7 @@
5757 '_anu' => 'URI adnotacji', // name of the annotation URI type (OWL annotation property)
5858 '_tel' => 'Telephone number', // name of the telephone (URI) type //TODO: translate
5959 '_rec' => 'Record', // name of record data type //TODO: translate
 60+ '_qty' => 'Quantity', // name of the number type with units of measurement //TODO: translate
6061 );
6162
6263 protected $m_DatatypeAliases = array(
@@ -79,6 +80,7 @@
8081 '_MDAT' => 'Modification date', // TODO: translate
8182 '_ERRP' => 'Has improper value for', // TODO: translate
8283 '_LIST' => 'Has fields', // TODO: translate
 84+ '_SOBJ' => 'Has subobject', // TODO: translate
8385 );
8486
8587 protected $m_SpecialPropertyAliases = array(
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageIt.php
@@ -38,6 +38,7 @@
3939 '_anu' => 'Annotazione URI', // name of the annotation URI type (OWL annotation property)
4040 '_tel' => 'Telephone number', // name of the telephone (URI) type //TODO: translate
4141 '_rec' => 'Record', // name of record data type //TODO: translate
 42+ '_qty' => 'Quantity', // name of the number type with units of measurement //TODO: translate
4243 );
4344
4445 protected $m_DatatypeAliases = array(
@@ -63,6 +64,7 @@
6465 '_MDAT' => 'Data di modifica',
6566 '_ERRP' => 'Ha un valore improprio per',
6667 '_LIST' => 'Has fields', // TODO: translate
 68+ '_SOBJ' => 'Has subobject', // TODO: translate
6769 );
6870
6971 protected $m_SpecialPropertyAliases = array(
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageNo.php
@@ -37,6 +37,7 @@
3838 '_anu' => 'URI-merknad', // name of the annotation URI type (OWL annotation property)
3939 '_tel' => 'Telephone number', // name of the telephone (URI) type //TODO: translate
4040 '_rec' => 'Record', // name of record data type //TODO: translate
 41+ '_qty' => 'Quantity', // name of the number type with units of measurement //TODO: translate
4142 );
4243
4344 protected $m_DatatypeAliases = array(
@@ -67,6 +68,7 @@
6869 '_MDAT' => 'Endringsdato',
6970 '_ERRP' => 'Feilaktig verdi for',
7071 '_LIST' => 'Has fields', // TODO: translate
 72+ '_SOBJ' => 'Has subobject', // TODO: translate
7173 );
7274
7375 protected $m_SpecialPropertyAliases = array(
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageSk.php
@@ -37,6 +37,7 @@
3838 '_anu' => 'URI anotácie', // name of the annotation URI type (OWL annotation property)
3939 '_tel' => 'Telephone number', // name of the telephone (URI) type //TODO: translate
4040 '_rec' => 'Record', // name of record data type //TODO: translate
 41+ '_qty' => 'Quantity', // name of the number type with units of measurement //TODO: translate
4142 );
4243
4344 protected $m_DatatypeAliases = array(
@@ -59,6 +60,7 @@
6061 '_MDAT' => 'Modification date', // TODO: translate
6162 '_ERRP' => 'Has improper value for', // TODO: translate
6263 '_LIST' => 'Has fields', // TODO: translate
 64+ '_SOBJ' => 'Has subobject', // TODO: translate
6365 );
6466
6567 protected $m_SpecialPropertyAliases = array(
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_Language.php
@@ -80,6 +80,7 @@
8181 'Modification date' => '_MDAT',
8282 'Has improper value for' => '_ERRP',
8383 'Has fields' => '_LIST',
 84+ 'Has subobject' => '_SOBJ',
8485 );
8586
8687
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguagePt.php
@@ -37,6 +37,7 @@
3838 '_anu' => 'Anotação-URI', // name of the annotation URI type (OWL annotation property)
3939 '_tel' => 'Telephone number', // name of the telephone (URI) type //TODO: translate
4040 '_rec' => 'Record', // name of record data type //TODO: translate
 41+ '_qty' => 'Quantity', // name of the number type with units of measurement //TODO: translate
4142 );
4243
4344 protected $m_DatatypeAliases = array(
@@ -60,6 +61,7 @@
6162 '_MDAT' => 'Modification date', // TODO: translate
6263 '_ERRP' => 'Has improper value for', // TODO: translate
6364 '_LIST' => 'Has fields', // TODO: translate
 65+ '_SOBJ' => 'Has subobject', // TODO: translate
6466 );
6567
6668 protected $m_SpecialPropertyAliases = array(
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageRu.php
@@ -63,6 +63,7 @@
6464 '_MDAT' => 'Дата последней правки',
6565 '_ERRP' => 'Has improper value for', // TODO: translate
6666 '_LIST' => 'Имеет поля',
 67+ '_SOBJ' => 'Has subobject', // TODO: translate
6768 );
6869
6970 protected $m_SpecialPropertyAliases = array(
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageDe.php
@@ -45,7 +45,7 @@
4646 '_anu' => 'URI-Annotation', // name of the annotation URI type (OWL annotation property)
4747 '_tel' => 'Telefonnummer', // name of the telephone number URI datatype
4848 '_rec' => 'Verbund', // name of record data type
49 - '_qty' => 'Menge', // name of quantity data type
 49+ '_qty' => 'Maß', // name of quantity data type
5050 );
5151
5252 protected $m_DatatypeAliases = array(
@@ -53,6 +53,7 @@
5454 'Ganze Zahl' => '_num',
5555 'Dezimalzahl' => '_num',
5656 'Aufzählung' => '_str',
 57+ 'Menge' => '_qty'
5758 );
5859
5960 protected $m_SpecialProperties = array(
@@ -69,6 +70,7 @@
7071 '_MDAT' => 'Zuletzt geändert',
7172 '_ERRP' => 'Hat unpassenden Wert für',
7273 '_LIST' => 'Hat Komponenten',
 74+ '_SOBJ' => 'Hat Unterobjekt',
7375 );
7476
7577 protected $m_SpecialPropertyAliases = array(
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageZh_tw.php
@@ -37,6 +37,7 @@
3838 '_anu' => 'URI的註解', // 'Annotation URI' // name of the annotation URI type (OWL annotation property)
3939 '_tel' => 'Telephone number', // name of the telephone (URI) type //TODO: translate
4040 '_rec' => 'Record', // name of record data type //TODO: translate
 41+ '_qty' => 'Quantity', // name of the number type with units of measurement //TODO: translate
4142 );
4243
4344 protected $m_DatatypeAliases = array(
@@ -64,6 +65,7 @@
6566 '_MDAT' => 'Modification date', // TODO: translate
6667 '_ERRP' => 'Has improper value for', // TODO: translate
6768 '_LIST' => 'Has fields', // TODO: translate
 69+ '_SOBJ' => 'Has subobject', // TODO: translate
6870 );
6971
7072
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageId.php
@@ -40,6 +40,7 @@
4141 '_anu' => 'URI anotasi', // name of the annotation URI type (OWL annotation property)
4242 '_tel' => 'Nomor telepon', // name of the telephone (URI) type
4343 '_rec' => 'Rekaman', // name of record data type
 44+ '_qty' => 'Quantity', // name of the number type with units of measurement //TODO: translate
4445 );
4546
4647 protected $m_DatatypeAliases = array(
@@ -62,6 +63,7 @@
6364 '_MDAT' => 'Tanggal modifikasi',
6465 '_ERRP' => 'Memiliki nilai yang tidak tepat untuk',
6566 '_LIST' => 'Memiliki bidang',
 67+ '_SOBJ' => 'Has subobject', // TODO: translate
6668 );
6769
6870 protected $m_SpecialPropertyAliases = array(
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageHe.php
@@ -37,6 +37,7 @@
3838 '_anu' => 'מזהה יחודי לפירוש', // name of the annotation URI type (OWL annotation property)
3939 '_tel' => 'Telephone number', // name of the telephone (URI) type //TODO: translate
4040 '_rec' => 'Record', // name of record data type //TODO: translate
 41+ '_qty' => 'Quantity', // name of the number type with units of measurement //TODO: translate
4142 );
4243
4344 protected $m_DatatypeAliases = array(
@@ -62,6 +63,7 @@
6364 '_MDAT' => 'תאריך לשינוי',
6465 '_ERRP' => 'יש ערך תקין בשביל',
6566 '_LIST' => 'Has fields', // TODO: translate
 67+ '_SOBJ' => 'Has subobject', // TODO: translate
6668 );
6769
6870 protected $m_SpecialPropertyAliases = array(
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageArz.php
@@ -37,6 +37,7 @@
3838 '_anu' => 'التعليق علي معرف الموارد الموحد', // name of the annotation URI type (OWL annotation property)
3939 '_tel' => 'Telephone number', // name of the telephone (URI) type //TODO: translate
4040 '_rec' => 'Record', // name of record data type //TODO: translate
 41+ '_qty' => 'Quantity', // name of the number type with units of measurement //TODO: translate
4142 );
4243
4344 protected $m_DatatypeAliases = array(
@@ -60,6 +61,7 @@
6162 '_MDAT' => 'Modification date', // TODO: translate
6263 '_ERRP' => 'Has improper value for', // TODO: translate
6364 '_LIST' => 'Has fields', // TODO: translate
 65+ '_SOBJ' => 'Has subobject', // TODO: translate
6466 );
6567
6668 protected $m_SpecialPropertyAliases = array(
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_LanguageFi.php
@@ -39,6 +39,7 @@
4040 '_tel' => 'Puhelinnumero', // name of the telephone (URI) type
4141 '_rec' => 'Tietue', // name of record data type
4242 '_qty' => 'Määrä', // name of the number type with units of measurement
 43+ '_qty' => 'Quantity', // name of the number type with units of measurement //TODO: translate
4344 );
4445
4546 protected $m_SpecialProperties = array(
@@ -55,6 +56,7 @@
5657 '_MDAT' => 'Muokkausaika',
5758 '_ERRP' => 'Sopimaton arvo kentälle',
5859 '_LIST' => 'Koostuu kentistä',
 60+ '_SOBJ' => 'Has subobject', // TODO: translate
5961 );
6062
6163 protected $m_Namespaces = array(

Follow-up revisions

RevisionCommit summaryAuthorDate
r101468removed duplicate label definition (addresses fixme for r101285)mkroetzsch12:51, 1 November 2011

Comments

#Comment by Nikerabbit (talk | contribs)   08:39, 30 October 2011
               '_qty' => 'Määrä', // name of the number type with units of measurement
+               '_qty' => 'Quantity', // name of the number type with units of measurement //TODO: translate

That looks wrong :)

#Comment by Markus Krötzsch (talk | contribs)   12:51, 1 November 2011

Fixed in r101468.

Status & tagging log