Index: trunk/extensions/Wikidata/Wikidata.i18n.php |
— | — | @@ -96,6 +96,8 @@ |
97 | 97 | 'ow_noedit' => 'You are not permitted to edit pages in the dataset "$1". |
98 | 98 | Please see [[{{MediaWiki:Ow editing policy url}}|our editing policy]].', |
99 | 99 | 'ow_editing_policy_url' => 'Project:Permission policy', |
| 100 | + 'ow_editor_add' => 'Add', |
| 101 | + 'ow_editor_remove' => 'Remove', |
100 | 102 | 'ow_uipref_datasets' => 'Default view:', |
101 | 103 | 'ow_uiprefs' => 'Wikidata', |
102 | 104 | 'ow_none_selected' => 'None selected', |
— | — | @@ -146,6 +148,7 @@ |
147 | 149 | Please check the web address.', |
148 | 150 | |
149 | 151 | 'ow_AddHint' => 'Enter new rows to add', |
| 152 | + 'ow_AddHintList' => 'Enter new list item to add', |
150 | 153 | 'ow_AlternativeDefinition' => 'Alternative definition', |
151 | 154 | 'ow_AlternativeDefinitions' => 'Alternative definitions', |
152 | 155 | 'ow_Annotation' => 'Annotation', |
— | — | @@ -308,6 +311,8 @@ |
309 | 312 | 'ow_searchnoresult' => "Don't translate the word ''Expression'' in ''<nowiki>[[Expression:$1]]</nowiki>''", |
310 | 313 | 'ow_save' => '{{Identical|Save}}', |
311 | 314 | '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.', |
312 | 317 | 'ow_none_selected' => '{{Identical|None selected}}', |
313 | 318 | 'transaction' => "A 'transaction' is a database transaction: a set of database operations considered as a whole.", |
314 | 319 | 'ow_transaction_count' => '{{Identical|Count}}', |
— | — | @@ -321,6 +326,7 @@ |
322 | 327 | 'ow_dm_OK' => '{{Identical|OK}}', |
323 | 328 | 'ow_dm_not_present' => 'Used on [http://www.omegawiki.org/index.php?title=Special:ConceptMapping Special:ConceptMapping]', |
324 | 329 | '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', |
325 | 331 | 'ow_Annotation' => '{{Identical|Annotation}}', |
326 | 332 | 'ow_ClassAttributeAttribute' => '{{Identical|Attribute}}', |
327 | 333 | 'ow_ClassAttributeType' => '{{Identical|Type}}', |
Index: trunk/extensions/Wikidata/OmegaWiki/Editor.php |
— | — | @@ -705,7 +705,7 @@ |
706 | 706 | $headerRows = getStructureAsTableHeaderRows( $visibleStructure, $columnOffset, $idPath ); |
707 | 707 | |
708 | 708 | 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]; |
710 | 710 | |
711 | 711 | if ( $this->repeatInput ) |
712 | 712 | $headerRows[0] .= '<th class="add" rowspan="' . count( $headerRows ) . '">Input rows</th>'; |
— | — | @@ -806,7 +806,7 @@ |
807 | 807 | |
808 | 808 | # + is add new Fo o(but grep this file for Add.png for more) |
809 | 809 | 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; |
811 | 811 | } |
812 | 812 | |
813 | 813 | $result .= $this->getStructureAsAddCells( $idPath, $this ); |
— | — | @@ -1951,7 +1951,7 @@ |
1952 | 1952 | |
1953 | 1953 | # For which class is this add? |
1954 | 1954 | $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; |
1956 | 1956 | $idPath->popAttribute(); |
1957 | 1957 | |
1958 | 1958 | $idPath->pushAttribute( $valueAttribute ); |