r73031 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73030‎ | r73031 | r73032 >
Date:00:57, 15 September 2010
Author:purodha
Status:reverted
Tags:
Comment:
Fix some unlocalized strings.
Modified paths:
  • /trunk/extensions/Wikidata/OmegaWiki/Editor.php (modified) (history)
  • /trunk/extensions/Wikidata/Wikidata.i18n.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikidata/Wikidata.i18n.php
@@ -96,6 +96,8 @@
9797 'ow_noedit' => 'You are not permitted to edit pages in the dataset "$1".
9898 Please see [[{{MediaWiki:Ow editing policy url}}|our editing policy]].',
9999 'ow_editing_policy_url' => 'Project:Permission policy',
 100+ 'ow_editor_add' => 'Add',
 101+ 'ow_editor_remove' => 'Remove',
100102 'ow_uipref_datasets' => 'Default view:',
101103 'ow_uiprefs' => 'Wikidata',
102104 'ow_none_selected' => 'None selected',
@@ -146,6 +148,7 @@
147149 Please check the web address.',
148150
149151 'ow_AddHint' => 'Enter new rows to add',
 152+ 'ow_AddHintList' => 'Enter new list item to add',
150153 'ow_AlternativeDefinition' => 'Alternative definition',
151154 'ow_AlternativeDefinitions' => 'Alternative definitions',
152155 'ow_Annotation' => 'Annotation',
@@ -308,6 +311,8 @@
309312 'ow_searchnoresult' => "Don't translate the word ''Expression'' in ''<nowiki>[[Expression:$1]]</nowiki>''",
310313 'ow_save' => '{{Identical|Save}}',
311314 'ow_history' => '{{Identical|History}}',
 315+ 'ow_editor_add' => 'Used in edit pages as <code>alt=</code> attribute of the "add" button image.',
 316+ 'ow_editor_remove' => 'Used in edit pages as <code>alt=</code> attribute of the "remove" button image.',
312317 'ow_none_selected' => '{{Identical|None selected}}',
313318 'transaction' => "A 'transaction' is a database transaction: a set of database operations considered as a whole.",
314319 'ow_transaction_count' => '{{Identical|Count}}',
@@ -321,6 +326,7 @@
322327 'ow_dm_OK' => '{{Identical|OK}}',
323328 'ow_dm_not_present' => 'Used on [http://www.omegawiki.org/index.php?title=Special:ConceptMapping Special:ConceptMapping]',
324329 'ow_AddHint' => 'Hint that shows up when the mouse hovers the plus sign in table rows (such as Synonyms and Translations) while editing',
 330+ 'ow_AddHintList' => 'Hint that shows up when the mouse hovers the plus sign in list rows (such as Annotations) while editing',
325331 'ow_Annotation' => '{{Identical|Annotation}}',
326332 'ow_ClassAttributeAttribute' => '{{Identical|Attribute}}',
327333 'ow_ClassAttributeType' => '{{Identical|Type}}',
Index: trunk/extensions/Wikidata/OmegaWiki/Editor.php
@@ -705,7 +705,7 @@
706706 $headerRows = getStructureAsTableHeaderRows( $visibleStructure, $columnOffset, $idPath );
707707
708708 if ( $this->allowRemove )
709 - $headerRows[0] = '<th class="remove" rowspan="' . count( $headerRows ) . '"><img src="' . $wgStylePath . '/amethyst/delete.png" title="' . wfMsgSc( "RemoveHint" ) . '" alt="' . wfMsgSc( "Remove" ) . '"/></th>' . $headerRows[0];
 709+ $headerRows[0] = '<th class="remove" rowspan="' . count( $headerRows ) . '"><img src="' . $wgStylePath . '/amethyst/delete.png" title="' . wfMsgSc( "RemoveHint" ) . '" alt="' . wfMsgSc( "ow_editor_remove" ) . '"/></th>' . $headerRows[0];
710710
711711 if ( $this->repeatInput )
712712 $headerRows[0] .= '<th class="add" rowspan="' . count( $headerRows ) . '">Input rows</th>';
@@ -806,7 +806,7 @@
807807
808808 # + is add new Fo o(but grep this file for Add.png for more)
809809 if ( $allowRemove ) {
810 - $result .= '<td class="add"><img src="' . $wgScriptPath . '/extensions/Wikidata/Images/Add.png" title="' . wfMsgSc( "AddHint" ) . '" alt="Add" onclick="addEmptyRow(this.parentNode.parentNode.id);"/></td>' . EOL;
 810+ $result .= '<td class="add"><img src="' . $wgScriptPath . '/extensions/Wikidata/Images/Add.png" title="' . wfMsgSc( "ow_AddHint" ) . '" alt="' . wfMsgSc( "ow_editor_add" ) . '" onclick="addEmptyRow(this.parentNode.parentNode.id);"/></td>' . EOL;
811811 }
812812
813813 $result .= $this->getStructureAsAddCells( $idPath, $this );
@@ -1951,7 +1951,7 @@
19521952
19531953 # For which class is this add?
19541954 $result .= '<li>' .
1955 - '<h' . $this->headerLevel . '><span id="collapse-' . $recordId . '" class="toggle ' . addCollapsablePrefixToClass( $class ) . '" onclick="toggle(this, event);">' . $this->getExpansionPrefix( $idPath->getClass(), $idPath->getId() ) . ' <img src="' . $wgScriptPath . '/extensions/Wikidata/Images/Add.png" title="Enter new list item to add" alt="Add" onclick="addEmptyRow(this.parentNode.parentNode.id);"/>' . $this->captionEditor->add( $idPath ) . '</span></h' . $this->headerLevel . '>' . EOL;
 1955+ '<h' . $this->headerLevel . '><span id="collapse-' . $recordId . '" class="toggle ' . addCollapsablePrefixToClass( $class ) . '" onclick="toggle(this, event);">' . $this->getExpansionPrefix( $idPath->getClass(), $idPath->getId() ) . ' <img src="' . $wgScriptPath . '/extensions/Wikidata/Images/Add.png" title="' . wfMsgSc( 'ow_AddHintList' ) . '" alt="' . wfMsgSc( "ow_editor_add" ) . '" onclick="addEmptyRow(this.parentNode.parentNode.id);"/>' . $this->captionEditor->add( $idPath ) . '</span></h' . $this->headerLevel . '>' . EOL;
19561956 $idPath->popAttribute();
19571957
19581958 $idPath->pushAttribute( $valueAttribute );

Follow-up revisions

RevisionCommit summaryAuthorDate
r73033Revert r73031 (untested)purodha01:00, 15 September 2010

Status & tagging log