Index: trunk/extensions/Wikidata/SpecialLanguages.i18n.php |
— | — | @@ -76,9 +76,20 @@ |
77 | 77 | 'ow_none_selected' => 'None selected', |
78 | 78 | |
79 | 79 | 'transaction' => 'Wikidata: Transaction log', |
| 80 | + 'ow_transaction_from_transaction' => 'From transaction:', |
| 81 | + 'ow_transaction_count' => 'Count:', |
| 82 | + 'ow_transaction_user' => 'User name:', |
| 83 | + 'ow_transaction_show_rollback' => 'Show roll back controls:', |
| 84 | + 'ow_transaction_rollback_button' => 'Roll back', |
| 85 | + 'ow_transaction_rollback_header' => 'Roll back', |
| 86 | + 'ow_transaction_no_action' => 'Do nothing', |
| 87 | + 'ow_transaction_previous_version' => 'Previous version', |
| 88 | + 'ow_transaction_restore' => 'Restore', |
| 89 | + 'ow_transaction_remove' => 'Remove', |
80 | 90 | 'ow_transaction_operation' => 'Operation', |
81 | 91 | 'ow_transaction_is_latest' => 'Is latest', |
82 | 92 | 'ow_transaction_class_member' => 'Class member', |
| 93 | + 'ow_transaction_object' => 'Object', |
83 | 94 | |
84 | 95 | 'conceptmapping' => 'Wikidata: Concept mapping', |
85 | 96 | 'ow_conceptmapping_title' => 'Concept Mapping', |
Index: trunk/extensions/Wikidata/OmegaWiki/forms.php |
— | — | @@ -156,7 +156,7 @@ |
157 | 157 | '<div class="suggest-drop-down" style="position: relative"><div id="'. $name .'-suggest-div" style="position: absolute; left: 0px; top: 0px; border: 1px solid #000000; display: none; background-color: white; padding: 4px">' . |
158 | 158 | '<div><table><tr><td>' . |
159 | 159 | // '<input type="text" id="'. $name .'-suggest-text" autocomplete="off" onkeyup="suggestTextChanged(this)" style="width: 300px"></input>' . |
160 | | - '</td><td><a id="'. $name .'-suggest-clear" href="javascript:void(0)" onclick="suggestClearClicked(event, this)">Clear</a></td><td><a id="'. $name .'-suggest-close" href="#'. $name . '-suggest-link" onclick="suggestCloseClicked(event, this)">[X]</a></td></tr></table></div>' . |
| 160 | + '</td><td><a id="'. $name .'-suggest-clear" href="javascript:void(0)" onclick="suggestClearClicked(event, this)">' . wfMsg('ow_suggest_clear') . '</a></td><td><a id="'. $name .'-suggest-close" href="#'. $name . '-suggest-link" onclick="suggestCloseClicked(event, this)">[X]</a></td></tr></table></div>' . |
161 | 161 | '<div>' . $suggestions . |
162 | 162 | //<table id="'. $name .'-suggest-table"><tr><td></td></tr></table> |
163 | 163 | '</div>'. |
Index: trunk/extensions/Wikidata/OmegaWiki/SpecialTransaction.php |
— | — | @@ -80,10 +80,10 @@ |
81 | 81 | '<div class="option-panel">'. |
82 | 82 | '<table cellpadding="0" cellspacing="0">' . |
83 | 83 | '<tr>' . |
84 | | - '<th>' . wfMsgSc("summary") . ': </th>' . |
| 84 | + '<th>' . wfMsg("summary") . ': </th>' . |
85 | 85 | '<td class="option-field">' . getTextBox("summary") .'</td>' . |
86 | 86 | '</tr>' . |
87 | | - '<tr><th/><td>'. getSubmitButton("roll-back", "Roll back") .'</td></tr>'. |
| 87 | + '<tr><th/><td>'. getSubmitButton("roll-back", wfMsg('ow_transaction_rollback_button')) .'</td></tr>'. |
88 | 88 | '</table>' . |
89 | 89 | '</div>'. |
90 | 90 | '</form>' |
— | — | @@ -105,7 +105,7 @@ |
106 | 106 | |
107 | 107 | return getOptionPanel( |
108 | 108 | array( |
109 | | - "From transaction:" => |
| 109 | + wfMsg('ow_transaction_from_transaction') => |
110 | 110 | getSuggest( |
111 | 111 | 'from-transaction', |
112 | 112 | 'transaction', |
— | — | @@ -114,13 +114,13 @@ |
115 | 115 | getTransactionLabel($fromTransactionId), |
116 | 116 | array(0, 2, 3) |
117 | 117 | ), |
118 | | - "Count:" => |
| 118 | + wfMsg('ow_transaction_count') => |
119 | 119 | getSelect('transaction-count', |
120 | 120 | $countOptions, |
121 | 121 | $transactionCount |
122 | 122 | ), |
123 | | - "User name:" => getTextBox('user-name', $userName), |
124 | | - "Show roll back controls:" => getCheckBox('show-roll-back-options', $showRollBackOptions) |
| 123 | + wfMsg('ow_transaction_user') => getTextBox('user-name', $userName), |
| 124 | + wfMsg('ow_transaction_show_rollback') => getCheckBox('show-roll-back-options', $showRollBackOptions) |
125 | 125 | ) |
126 | 126 | ); |
127 | 127 | } |
— | — | @@ -133,7 +133,7 @@ |
134 | 134 | $o->isLatest = new Attribute('is-latest', wfMsg('ow_transaction_is_latest'), 'boolean'); |
135 | 135 | |
136 | 136 | $o->rollBackStructure = new Structure($o->isLatest, $o->operation); |
137 | | - $o->rollBack = new Attribute('roll-back', 'Roll back', $o->rollBackStructure); |
| 137 | + $o->rollBack = new Attribute('roll-back', wfMsg('ow_transaction_rollback_header'), $o->rollBackStructure); |
138 | 138 | |
139 | 139 | $o->addTransactionId = new Attribute('add-transaction-id', 'Add transaction ID', 'identifier'); |
140 | 140 | |
— | — | @@ -143,7 +143,7 @@ |
144 | 144 | $o->translatedContentId = new Attribute('translated-content-id', 'Translated content ID', 'object-id'); |
145 | 145 | |
146 | 146 | $o->rollBackTranslatedContentStructure = new Structure($o->isLatest, $o->operation, $o->translatedContentHistory); |
147 | | - $o->rollBackTranslatedContent = new Attribute('roll-back', 'Roll back', $o->rollBackTranslatedContentStructure); |
| 147 | + $o->rollBackTranslatedContent = new Attribute('roll-back', wfMsg('ow_transaction_rollback_header'), $o->rollBackTranslatedContentStructure); |
148 | 148 | |
149 | 149 | $o->updatedDefinitionStructure = new Structure( |
150 | 150 | $o->rollBackTranslatedContent, |
— | — | @@ -183,7 +183,7 @@ |
184 | 184 | $o->isLatest |
185 | 185 | ); |
186 | 186 | |
187 | | - $o->updatedRelations = new Attribute('updated-relations', 'Relations', $o->updatedRelationsStructure); |
| 187 | + $o->updatedRelations = new Attribute('updated-relations', wfMsg('ow_Relations'), $o->updatedRelationsStructure); |
188 | 188 | |
189 | 189 | $o->classMember = new Attribute('class-member', wfMsg('ow_transaction_class_member'), $o->definedMeaningReferenceStructure); |
190 | 190 | |
— | — | @@ -217,7 +217,7 @@ |
218 | 218 | |
219 | 219 | |
220 | 220 | |
221 | | - $o->objectId = new Attribute('object-id', 'Object', 'object-id'); |
| 221 | + $o->objectId = new Attribute('object-id', wfMsg('ow_transaction_object'), 'object-id'); |
222 | 222 | $o->valueId = new Attribute('value-id', 'Value identifier', 'object-id'); |
223 | 223 | $o->attribute = new Attribute('attribute', wfMsg('ow_ClassAttributeAttribute'), $o->definedMeaningReferenceStructure); |
224 | 224 | |
— | — | @@ -294,10 +294,10 @@ |
295 | 295 | $o->isLatest |
296 | 296 | ); |
297 | 297 | |
298 | | - $o->updatedClassAttributes = new Attribute('updated-class-attributes', 'Class attributes', $o->updatedClassAttributesStructure); |
| 298 | + $o->updatedClassAttributes = new Attribute('updated-class-attributes', wfMsg('ow_ClassAttributes'), $o->updatedClassAttributesStructure); |
299 | 299 | |
300 | 300 | $o->alternativeDefinitionText = new Attribute('alternative-definition-text', wfMsg('ow_Definition'), $o->translatedTextStructure); |
301 | | - $o->source = new Attribute('source', 'Source', $o->definedMeaningReferenceStructure); |
| 301 | + $o->source = new Attribute('source', wfMsg('ow_Source'), $o->definedMeaningReferenceStructure); |
302 | 302 | |
303 | 303 | $o->updatedAlternativeDefinitionsStructure = new Structure( |
304 | 304 | $o->rollBack, |
— | — | @@ -310,7 +310,7 @@ |
311 | 311 | $o->isLatest |
312 | 312 | ); |
313 | 313 | |
314 | | - $o->updatedAlternativeDefinitions = new Attribute('updated-alternative-definitions', 'Alternative definitions', $o->updatedAlternativeDefinitionsStructure); |
| 314 | + $o->updatedAlternativeDefinitions = new Attribute('updated-alternative-definitions', wfMsg('ow_AlternativeDefinitions'), $o->updatedAlternativeDefinitionsStructure); |
315 | 315 | |
316 | 316 | |
317 | 317 | $o->updatedAlternativeDefinitionTextStructure = new Structure( |
Index: trunk/extensions/Wikidata/OmegaWiki/Editor.php |
— | — | @@ -2067,14 +2067,14 @@ |
2068 | 2068 | $operation = $value->operation; |
2069 | 2069 | |
2070 | 2070 | if ($isLatest) { |
2071 | | - $options = array('do-nothing' => 'Do nothing'); |
| 2071 | + $options = array('do-nothing' => wfMsg('ow_transaction_no_action')); |
2072 | 2072 | |
2073 | 2073 | if ($this->hasValueFields) { |
2074 | | - $previousVersionLabel = 'Previous version'; |
| 2074 | + $previousVersionLabel = wfMsg('ow_transaction_previous_version'); |
2075 | 2075 | $rollBackChangeHandler = 'rollBackOptionChanged(this);'; |
2076 | 2076 | } |
2077 | 2077 | else { |
2078 | | - $previousVersionLabel = 'Restore'; |
| 2078 | + $previousVersionLabel = wfMsg('ow_transaction_restore'); |
2079 | 2079 | $rollBackChangeHandler = ''; |
2080 | 2080 | } |
2081 | 2081 | |
— | — | @@ -2082,7 +2082,7 @@ |
2083 | 2083 | $options['previous-version'] = $previousVersionLabel; |
2084 | 2084 | |
2085 | 2085 | if ($operation != 'Removed') |
2086 | | - $options['remove'] = 'Remove'; |
| 2086 | + $options['remove'] = wfMsg('ow_transaction_remove'); |
2087 | 2087 | |
2088 | 2088 | $result = getSelect($idPath->getId(), $options, 'do-nothing', $rollBackChangeHandler); |
2089 | 2089 | |