Index: branches/RL2/extensions/Gadgets/Gadgets.i18n.php |
— | — | @@ -36,7 +36,7 @@ |
37 | 37 | 'gadgets-not-found' => 'Gadget "$1" not found.', |
38 | 38 | 'gadgets-nosuchaction' => 'No such action', |
39 | 39 | |
40 | | - // Main page |
| 40 | + // All gadgets overview |
41 | 41 | 'gadgets-pagetext' => "Below is a list of gadgets available on this wiki. Users can enable or disable these through their [[Special:Preferences#mw-prefsection-gadgets|preferences page]]. |
42 | 42 | This overview provides easy access to the gadget defintions and system message pages that define each gadget's description and title. |
43 | 43 | |
— | — | @@ -58,13 +58,13 @@ |
59 | 59 | 'gadgets-gadget-delete' => 'Delete gadget', |
60 | 60 | 'gadgets-gadget-delete-tooltip' => 'Delete this gadget', |
61 | 61 | |
62 | | - // Single gadget page |
| 62 | + // Single gadget view |
63 | 63 | 'gadgets-gadget-title' => 'Gadget "$1"', |
64 | 64 | 'gadgets-prop-default-on' => 'This gadget is enabled for everyone by default.', |
65 | 65 | 'gadgets-prop-hidden-on' => 'This is a hidden gadget.', |
66 | 66 | 'gadgets-prop-shared-on' => 'This gadget is shared.', |
67 | 67 | |
68 | | - // Export page |
| 68 | + // Export |
69 | 69 | 'gadgets-export-title' => 'Exporting gadget "$1"', |
70 | 70 | 'gadgets-export-text' => 'To export this gadget, click on "{{int:gadgets-export-download}}" button, save the downloaded file, |
71 | 71 | go to Special:Import on destination wiki and upload it. You must have appropriate permissions on the destination wiki ($3) including the right to edit in the {{ns:Gadget}} and {{ns:Gadget_definition}} namespaces.', |
— | — | @@ -146,29 +146,33 @@ |
147 | 147 | |
148 | 148 | # For Special:Gadgets |
149 | 149 | 'gadgets-title' => '{{Identical|Gadgets}}', |
| 150 | + 'gadgets-nosuchaction' => 'Identical to core: |
| 151 | +* {{mw-msg|nosuchaction}}.', |
| 152 | + |
| 153 | + // All gadgets view |
| 154 | + 'gadgets-message-edit' => 'Used as linktext for the link to edit the cateogory title, gadget title or gadget description. |
| 155 | + |
| 156 | +{{Identical|Edit}}', |
| 157 | + 'gadgets-message-edit-tooltip' => '$1 is full page name', |
| 158 | + 'gadgets-desc-edit-tooltip' => '$1 is full page name', |
| 159 | + 'gadgets-desc-add-tooltip' => '$1 is full page name', |
| 160 | + 'gadgets-gadget-permalink-tooltip' => '$1 is the gadget id', |
| 161 | + 'gadgets-gadget-export-tooltip' => '$1 is the gadget id', |
| 162 | + 'gadgets-gadget-modify-tooltip' => '$1 is the gadget id', |
| 163 | + 'gadgets-gadget-delete-tooltip' => '$1 is the gadget id', |
| 164 | + |
| 165 | + // Export |
150 | 166 | 'gadgets-export' => 'Used on [[Special:Gadgets]]. This is a verb, not a noun. |
151 | 167 | |
152 | 168 | {{Identical|Export}}', |
153 | 169 | 'gadgets-export-download' => 'Use the verb for this message. Submit button. |
154 | 170 | |
155 | 171 | {{Identical|Download}}', |
156 | | - 'gadgets-message-edit' => 'Used as linktext for the link to edit the cateogory title, gadget title or gadget description. |
157 | 172 | |
158 | | -{{Identical|Edit}}', |
159 | | - 'gadgets-message-edit-tooltip' => 'Parameters: |
160 | | -* $1: Page name in the MediaWiki namespace where this message is defined.', |
161 | | - 'gadgets-desc-add' => 'Used as linktext for the link to create gadget description. |
162 | | - |
163 | | -{{Identical|Add}}.', |
164 | | - 'gadgets-desc-add-tooltip' => 'Parameters: |
165 | | -* $1: Page name in the MediaWiki namespace where this message is defined.', |
166 | | - 'gadgets-nosuchaction' => 'Identical to core: |
167 | | -* {{mw-msg|nosuchaction}}.', |
| 173 | + # For the ext.gadgets.gadgetmanager module |
168 | 174 | 'gadgets-gadget-create' => 'Identical to core: |
169 | 175 | * {{mw-msg|vector-view-create}} |
170 | 176 | * {{mw-msg|create}}', |
171 | | - |
172 | | - # For the ext.gadgets.gadgetmanager module |
173 | 177 | 'gadgetmanager-comment-modify' => 'Edit summary used when modifying gadget definition pages through AJAX on [[Special:Gadgets]].', |
174 | 178 | 'gadgetmanager-comment-create' => 'Edit summary used when creating gadget definition pages through AJAX on [[Special:Gadgets]].', |
175 | 179 | |
Index: branches/RL2/extensions/Gadgets/SpecialGadgets.php |
— | — | @@ -108,7 +108,7 @@ |
109 | 109 | $this->getTitle( $gadget->getId() ), |
110 | 110 | wfMessage( 'gadgets-gadget-permalink' )->escaped(), |
111 | 111 | array( |
112 | | - 'title' => wfMessage( 'gadgets-gadget-permalink-tooltip' )->plain(), |
| 112 | + 'title' => wfMessage( 'gadgets-gadget-permalink-tooltip', $gadget->getId() )->plain(), |
113 | 113 | 'class' => 'mw-gadgets-permalink', |
114 | 114 | ) |
115 | 115 | ); |
— | — | @@ -117,7 +117,7 @@ |
118 | 118 | $this->getTitle( "{$gadget->getId()}/export" ), |
119 | 119 | wfMessage( 'gadgets-gadget-export' )->escaped(), |
120 | 120 | array( |
121 | | - 'title' => wfMessage( 'gadgets-gadget-export-tooltip' )->plain(), |
| 121 | + 'title' => wfMessage( 'gadgets-gadget-export-tooltip', $gadget->getId() )->plain(), |
122 | 122 | 'class' => 'mw-gadgets-export', |
123 | 123 | ) |
124 | 124 | |
— | — | @@ -131,7 +131,7 @@ |
132 | 132 | $gadgetDefinitionTitle, |
133 | 133 | wfMessage( 'gadgets-gadget-modify' )->escaped(), |
134 | 134 | array( |
135 | | - 'title' => wfMessage( 'gadgets-gadget-modify-tooltip' )->plain(), |
| 135 | + 'title' => wfMessage( 'gadgets-gadget-modify-tooltip', $gadget->getId() )->plain(), |
136 | 136 | 'class' => 'mw-gadgets-modify', |
137 | 137 | ), |
138 | 138 | array( 'action' => 'edit' ) |
— | — | @@ -143,7 +143,7 @@ |
144 | 144 | $gadgetDefinitionTitle, |
145 | 145 | wfMessage( 'gadgets-gadget-delete' )->escaped(), |
146 | 146 | array( |
147 | | - 'title' => wfMessage( 'gadgets-gadget-delete-tooltip' )->plain(), |
| 147 | + 'title' => wfMessage( 'gadgets-gadget-delete-tooltip', $gadget->getId() )->plain(), |
148 | 148 | 'class' => 'mw-gadgets-delete', |
149 | 149 | ), |
150 | 150 | array( 'action' => 'delete' ) |
— | — | @@ -159,7 +159,7 @@ |
160 | 160 | $editLink = Linker::link( |
161 | 161 | $t, |
162 | 162 | wfMessage( 'gadgets-message-edit' )->escaped(), |
163 | | - array( 'title' => wfMessage( 'gadgets-message-edit-tooltip', $t->getPrefixedText() ) ), |
| 163 | + array( 'title' => wfMessage( 'gadgets-message-edit-tooltip', $t->getPrefixedText() )->plain() ), |
164 | 164 | array( 'action' => 'edit' ) |
165 | 165 | ); |
166 | 166 | $editTitle = '<span class="mw-gadgets-messagelink">' . $editLink . '</span>'; |
— | — | @@ -170,7 +170,7 @@ |
171 | 171 | $editLink = Linker::link( |
172 | 172 | $t, |
173 | 173 | wfMessage( $t->isKnown() ? 'gadgets-desc-edit' : 'gadgets-desc-add' )->escaped(), |
174 | | - array( 'title' => wfMessage( $t->isKnown() ? 'gadgets-desc-edit-tooltip' : 'gadgets-desc-add-tooltip', $t->getPrefixedText() ) ), |
| 174 | + array( 'title' => wfMessage( $t->isKnown() ? 'gadgets-desc-edit-tooltip' : 'gadgets-desc-add-tooltip', $t->getPrefixedText() )->plain() ), |
175 | 175 | array( 'action' => 'edit' ) |
176 | 176 | ); |
177 | 177 | $editDescription = '<span class="mw-gadgets-messagelink">' . $editLink . '</span>'; |