r46339 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46338‎ | r46339 | r46340 >
Date:14:16, 27 January 2009
Author:malafaya
Status:deferred
Tags:
Comment:
Annotated Links editor i18n support
Modified paths:
  • /trunk/extensions/Wikidata/OmegaWiki/OmegaWikiAttributes.php (modified) (history)
  • /trunk/extensions/Wikidata/SpecialLanguages.i18n.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikidata/SpecialLanguages.i18n.php
@@ -116,8 +116,11 @@
117117 'ow_TranslatedText' => 'Translated text',
118118 'ow_TranslatedTextAttributeValue' => 'Text',
119119 'ow_TranslatedTextAttributeValues' => 'Translatable texts',
 120+ 'ow_Label' => 'Label',
 121+ 'ow_Link' => 'Link',
120122 'ow_LinkAttribute' => 'Property',
121123 'ow_LinkAttributeValues' => 'Links',
 124+ 'ow_URL' => 'URL',
122125 'ow_Property' => 'Property',
123126 'ow_Value' => 'Value',
124127 'ow_meaningsoftitle' => 'Meanings of "$1"',
Index: trunk/extensions/Wikidata/OmegaWiki/OmegaWikiAttributes.php
@@ -202,9 +202,9 @@
203203 $t->textAttributeValuesStructure = new Structure("text-attribute-values", $t->textAttributeId, $t->textAttributeObject, $t->textAttribute, $t->text);
204204 $t->textAttributeValues = new Attribute(null, wfMsgSc("TextAttributeValues"), $t->textAttributeValuesStructure);
205205
206 - $t->linkLabel = new Attribute("label", "Label", "short-text");
207 - $t->linkURL = new Attribute("url", "URL", "url");
208 - $t->link = new Attribute("link", "Link", new Structure($t->linkLabel, $t->linkURL));
 206+ $t->linkLabel = new Attribute("label", wfMsg('ow_Label'), "short-text");
 207+ $t->linkURL = new Attribute("url", wfMsg('ow_URL'), "url");
 208+ $t->link = new Attribute("link", wfMsg('ow_Link'), new Structure($t->linkLabel, $t->linkURL));
209209 $t->linkAttributeId = new Attribute("link-attribute-id", "Attribute identifier", "object-id");
210210 $t->linkAttributeObject = new Attribute("link-attribute-object-id", "Attribute object", "object-id");
211211 $t->linkAttribute = new Attribute("link-attribute", wfMsgSc("LinkAttribute"), $t->definedMeaningReferenceStructure);

Status & tagging log