Index: trunk/extensions/WikiLove/WikiLove.php |
— | — | @@ -83,6 +83,9 @@ |
84 | 84 | // messages for default options, because we want to use them in the default |
85 | 85 | // options module, but also for the user in the user options module |
86 | 86 | $wgWikiLoveOptionMessages = array( |
| 87 | + 'wikilove-type-barnstars', |
| 88 | + 'wikilove-type-food', |
| 89 | + 'wikilove-type-kittens', |
87 | 90 | 'wikilove-type-makeyourown', |
88 | 91 | ); |
89 | 92 | |
Index: trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.defaultOptions.js |
— | — | @@ -12,9 +12,9 @@ |
13 | 13 | defaultImage: 'Trophy.png', |
14 | 14 | |
15 | 15 | types: { |
16 | | - // example type, could be removed later (also no i18n) |
| 16 | + // example type, could be removed later |
17 | 17 | 'barnstar': { |
18 | | - name: 'Barnstars', // name of the type (appears in the types menu) |
| 18 | + name: mw.msg( 'wikilove-type-barnstars' ), // name of the type (appears in the types menu) |
19 | 19 | select: 'Select a barnstar:', // subtype select label |
20 | 20 | subtypes: { // some different subtypes |
21 | 21 | // note that when not using subtypes you should use these subtype options |
— | — | @@ -240,7 +240,7 @@ |
241 | 241 | icon: mw.config.get( 'wgExtensionAssetsPath' ) + '/WikiLove/modules/ext.wikiLove/images/icons/wikilove-icon-barnstar.png' // icon for left-side menu |
242 | 242 | }, |
243 | 243 | 'food': { |
244 | | - name: 'Food and drink', // name of the type (appears in the types menu) |
| 244 | + name: mw.msg( 'wikilove-type-food' ), // name of the type (appears in the types menu) |
245 | 245 | select: 'Select food or drink item:', // subtype select label |
246 | 246 | text: '{| style="background-color: $5; border: 1px solid $6;"\n\ |
247 | 247 | |style="vertical-align: middle; padding: 5px;" | [[$3|$4]]\n\ |
— | — | @@ -341,7 +341,7 @@ |
342 | 342 | icon: mw.config.get( 'wgExtensionAssetsPath' ) + '/WikiLove/modules/ext.wikiLove/images/icons/wikilove-icon-food.png' |
343 | 343 | }, |
344 | 344 | 'kitten': { |
345 | | - name: 'Kittens', |
| 345 | + name: mw.msg( 'wikilove-type-kittens' ), |
346 | 346 | fields: [ 'header', 'message' ], |
347 | 347 | header: 'A kitten for you!', |
348 | 348 | text: '[[$3|left|150px]]\n$1\n\n~~~~\n<br style="clear: both"/>', // $3 is the image filename |
Index: trunk/extensions/WikiLove/WikiLove.i18n.php |
— | — | @@ -35,6 +35,9 @@ |
36 | 36 | 'wikilove-preview' => 'Preview', |
37 | 37 | 'wikilove-notify' => 'Notify the user by e-mail', |
38 | 38 | 'wikilove-button-send' => 'Send WikiLove', |
| 39 | + 'wikilove-type-barnstars' => 'Barnstars', |
| 40 | + 'wikilove-type-food' => 'Food and drink', |
| 41 | + 'wikilove-type-kittens' => 'Kittens', |
39 | 42 | 'wikilove-type-makeyourown' => 'Make your own', |
40 | 43 | 'wikilove-err-header' => 'Please enter a header.', |
41 | 44 | 'wikilove-err-title' => 'Please enter a title.', |
— | — | @@ -63,6 +66,9 @@ |
64 | 67 | 'wikilove-image-example' => 'The filename should be an actual image on Wikimedia Commons.', |
65 | 68 | 'wikilove-button-preview' => 'Button text. Verb.', |
66 | 69 | 'wikilove-preview' => 'Title. Noun.', |
| 70 | + 'wikilove-type-barnstars' => 'Label for a button. Should be no longer than 22 characters.', |
| 71 | + 'wikilove-type-food' => 'Label for a button. Should be no longer than 22 characters.', |
| 72 | + 'wikilove-type-kittens' => 'Label for a button. Should be no longer than 22 characters.', |
67 | 73 | 'wikilove-type-makeyourown' => 'Label for a button. Should be no longer than 22 characters.', |
68 | 74 | 'wikilove-commons-text' => "\$1 gets replaced by a link with ''wikilove-commons-link'' (\"Wikimedia Commons\") as caption and ''wikilove-commons-url'' as URL.", |
69 | 75 | 'wikilove-commons-url' => 'This URL can be changed to point at a localised page on Wikimedia Commons.', |