r46496 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46495‎ | r46496 | r46497 >
Date:23:53, 28 January 2009
Author:malafaya
Status:deferred
Tags:
Comment:
Class attribute types i18n
Removed some unused globals
Modified paths:
  • /trunk/extensions/Wikidata/OmegaWiki/Editor.php (modified) (history)
  • /trunk/extensions/Wikidata/OmegaWiki/SpecialTransaction.php (modified) (history)
  • /trunk/extensions/Wikidata/OmegaWiki/WikiDataGlobals.php (modified) (history)
  • /trunk/extensions/Wikidata/SpecialLanguages.i18n.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikidata/SpecialLanguages.i18n.php
@@ -90,6 +90,8 @@
9191 'ow_transaction_is_latest' => 'Is latest',
9292 'ow_transaction_class_member' => 'Class member',
9393 'ow_transaction_object' => 'Object',
 94+ 'ow_transaction_first_dm' => 'First defined meaning',
 95+ 'ow_transaction_second_dm' => 'Second defined meaning',
9496
9597 'conceptmapping' => 'Wikidata: Concept mapping',
9698 'ow_conceptmapping_title' => 'Concept Mapping',
@@ -200,6 +202,12 @@
201203 It might be lost.
202204 Please contact the server operator or administrator.",
203205
 206+ 'ow_class_attr_type_dm' => 'Defined meaning',
 207+ 'ow_class_attr_type_xlate' => 'Translatable text',
 208+ 'ow_class_attr_type_plain' => 'Plain text',
 209+ 'ow_class_attr_type_link' => 'Link',
 210+ 'ow_class_attr_type_option' => 'Option list',
 211+
204212 'needstranslation' => 'Wikidata: Expressions needing translation',
205213 'ow_needs_xlation_title' => 'Expressions needing translation',
206214 'ow_needs_xlation_source_lang' => 'Source language:',
Index: trunk/extensions/Wikidata/OmegaWiki/Editor.php
@@ -1277,11 +1277,11 @@
12781278 class ClassAttributesTypeEditor extends SelectEditor {
12791279 protected function getOptions() {
12801280 return array(
1281 - 'DM' => 'Defined meaning',
1282 - 'TRNS' => 'Translatable text',
1283 - 'TEXT' => 'Plain text',
1284 - 'URL' => 'Link',
1285 - 'OPTN' => 'Option list'
 1281+ 'DM' => wfMsg('ow_class_attr_type_dm'),
 1282+ 'TRNS' => wfMsg('ow_class_attr_type_xlate'),
 1283+ 'TEXT' => wfMsg('ow_class_attr_type_plain'),
 1284+ 'URL' => wfMsg('ow_class_attr_type_link'),
 1285+ 'OPTN' => wfMsg('ow_class_attr_type_option')
12861286 );
12871287 }
12881288 }
Index: trunk/extensions/Wikidata/OmegaWiki/WikiDataGlobals.php
@@ -23,7 +23,7 @@
2424 $wgCollectionMembershipAttributeName,
2525 $wgDefinedMeaningAttributesAttributeName,
2626 $wgDefinedMeaningAttributeName,
27 - $wgDefinedMeaningReferenceAttributeName,
 27+# $wgDefinedMeaningReferenceAttributeName,
2828 $wgDefinitionAttributeName,
2929 $wgLanguageAttributeName,
3030 $wgExactMeaningsAttributeName,
@@ -68,8 +68,8 @@
6969 $wgCollectionMembershipAttributeName = "Collection membership";
7070 $wgDefinitionAttributeName = "Definition";
7171 $wgDefinedMeaningAttributesAttributeName = "Annotation";
72 -$wgDefinedMeaningAttributeName = "Defined meaning";
73 -$wgDefinedMeaningReferenceAttributeName = "Defined meaning";
 72+#$wgDefinedMeaningAttributeName = "Defined meaning";
 73+#$wgDefinedMeaningReferenceAttributeName = "Defined meaning";
7474 $wgExactMeaningsAttributeName = "Exact meanings";
7575 $wgExpressionAttributeName = "Expression";
7676 $wgExpressionMeaningsAttributeName = "Expression meanings";
Index: trunk/extensions/Wikidata/OmegaWiki/SpecialTransaction.php
@@ -170,8 +170,8 @@
171171
172172 $o->updatedSyntranses = new Attribute('updated-syntranses', wfMsg('ow_SynonymsAndTranslations'), $o->updatedSyntransesStructure);
173173
174 - $o->firstMeaning = new Attribute('first-meaning', "First defined meaning", $o->definedMeaningReferenceStructure);
175 - $o->secondMeaning = new Attribute('second-meaning', "Second defined meaning", $o->definedMeaningReferenceStructure);
 174+ $o->firstMeaning = new Attribute('first-meaning', wfMsg('ow_transaction_first_dm'), $o->definedMeaningReferenceStructure);
 175+ $o->secondMeaning = new Attribute('second-meaning', wfMsg('ow_transaction_second_dm'), $o->definedMeaningReferenceStructure);
176176
177177 $o->updatedRelationsStructure = new Structure(
178178 $o->rollBack,

Status & tagging log