Index: trunk/extensions/TranslateSvg/TranslateSvg.i18n.php |
— | — | @@ -1,33 +1,46 @@ |
2 | 2 | <?php |
3 | | - $messages = array(); |
4 | | - |
5 | | - $messages['en'] = array( |
6 | | - 'translatesvg' => 'TranslateSVG', //Ignore |
7 | | - 'translatesvg-desc' => 'A MediaWiki extension that creates a Special page to provide a native-style interface for translating SVGs in line with the SVG1.1 specification.', |
8 | | - 'translatesvg-legend' => 'File path', |
9 | | - 'translatesvg-page' => 'File:', |
10 | | - 'translatesvg-submit' => 'Go', |
11 | | - 'translatesvg-summary' => 'This special page allows you to add, remove and modify translations embedded within a given SVG image file.', |
12 | | - 'translatesvg-add' => 'If your language is not listed already, you can [[#addlanguage|add it]].', |
13 | | - 'translatesvg-xcoordinate-pre' => 'X-coordinate (horizontal): ', |
14 | | - 'translatesvg-ycoordinate-pre' => 'Y-coordinate (vertical): ', |
15 | | - 'translatesvg-specify' => 'Specify new language code (e.g. en, fr, de, es...)', |
16 | | - 'translatesvg-fallbackdesc' => 'Default (no language specified)', |
17 | | - 'translatesvg-qqqdesc' => 'Advice to translators', |
18 | | - 'translatesvg-nodesc' => '(no description)', |
19 | | - ); |
20 | | - |
21 | | - $messages['qqq'] = array( |
22 | | - 'translatesvg-desc' => 'General purpose short description of the extension', |
23 | | - 'translatesvg-legend' => 'Form legend; general description of the purposes of the form (to ask for a file path)', |
24 | | - 'translatesvg-page' => 'Label for a form input', |
25 | | - 'translatesvg-submit' => 'Text of a button to progress onto next stage of the translation', |
26 | | - 'translatesvg-summary' => 'General description of the special page, displayed at the top of it so users know what they are looking at', |
27 | | - 'translatesvg-add' => 'Introduction sentence available to JavaScript-enabled users including a link to add translations in a new language. The anchor (#addlanguage) does not need translation.', |
28 | | - 'translatesvg-xcoordinate-pre' => 'Label for a form input for the adjustment of the X-coordinate (horizontal position) of the text being translated', |
29 | | - 'translatesvg-ycoordinate-pre' => 'Label for a form input for the adjustment of the Y-coordinate (vertical position) of the text being translated', |
30 | | - 'translatesvg-specify' => 'Prompt asking for the two or three letter code (or similar) of the language they wish to translate into', |
31 | | - 'translatesvg-fallbackdesc' => 'The heading of the section that contains translations representing the fallback (default) language. The fallback language is used when translations aren\'t available. Comparable to other language headings such as "English", "Deutsch", etc.', |
32 | | - 'translatesvg-qqqdesc' => 'The heading of the section that contains descriptions of the context of each translation (i.e. translations into the language with code "qqq"). Comparable to other language headings such as "English", "Deutsch", etc.', |
33 | | - 'translatesvg-nodesc' => 'The text that appears next to a translation when no description (translation into language qqq) exists.', |
34 | | - ); |
\ No newline at end of file |
| 3 | +/** |
| 4 | + * Internationalisation for TranslateSVG extension |
| 5 | + * |
| 6 | + * @file |
| 7 | + * @ingroup Extensions |
| 8 | + */ |
| 9 | + |
| 10 | +$messages = array(); |
| 11 | + |
| 12 | +/** English |
| 13 | + * @author jarry1250 |
| 14 | + */ |
| 15 | +$messages['en'] = array( |
| 16 | + 'translatesvg' => 'TranslateSVG', //Ignore |
| 17 | + 'translatesvg-desc' => 'Provides a native-style interface for translating SVGs in line with the SVG1.1 specification', |
| 18 | + 'translatesvg-legend' => 'File path', |
| 19 | + 'translatesvg-page' => 'File:', |
| 20 | + 'translatesvg-submit' => 'Go', |
| 21 | + 'translatesvg-summary' => 'This special page allows you to add, remove and modify translations embedded within a given SVG image file.', |
| 22 | + 'translatesvg-add' => 'If your language is not listed already, you can [[#addlanguage|add it]].', |
| 23 | + 'translatesvg-xcoordinate-pre' => 'X-coordinate (horizontal):', |
| 24 | + 'translatesvg-ycoordinate-pre' => 'Y-coordinate (vertical):', |
| 25 | + 'translatesvg-specify' => 'Specify new language code (e.g. en, fr, de, es...)', |
| 26 | + 'translatesvg-fallbackdesc' => 'Default (no language specified)', |
| 27 | + 'translatesvg-qqqdesc' => 'Advice to translators', |
| 28 | + 'translatesvg-nodesc' => '(no description)', |
| 29 | +); |
| 30 | + |
| 31 | +/** Message documentation (Message documentation) |
| 32 | + * @author jarry1250 |
| 33 | + */ |
| 34 | +$messages['qqq'] = array( |
| 35 | + 'translatesvg-desc' => '{{desc}}', |
| 36 | + 'translatesvg-legend' => 'Form legend; general description of the purposes of the form (to ask for a file path)', |
| 37 | + 'translatesvg-page' => 'Label for a form input', |
| 38 | + 'translatesvg-submit' => 'Text of a button to progress onto next stage of the translation', |
| 39 | + 'translatesvg-summary' => 'General description of the special page, displayed at the top of it so users know what they are looking at', |
| 40 | + 'translatesvg-add' => 'Introduction sentence available to JavaScript-enabled users including a link to add translations in a new language. The anchor (#addlanguage) does not need translation.', |
| 41 | + 'translatesvg-xcoordinate-pre' => 'Label for a form input for the adjustment of the X-coordinate (horizontal position) of the text being translated', |
| 42 | + 'translatesvg-ycoordinate-pre' => 'Label for a form input for the adjustment of the Y-coordinate (vertical position) of the text being translated', |
| 43 | + 'translatesvg-specify' => 'Prompt asking for the two or three letter code (or similar) of the language they wish to translate into', |
| 44 | + 'translatesvg-fallbackdesc' => 'The heading of the section that contains translations representing the fallback (default) language. The fallback language is used when translations aren\'t available. Comparable to other language headings such as "English", "Deutsch", etc.', |
| 45 | + 'translatesvg-qqqdesc' => 'The heading of the section that contains descriptions of the context of each translation (i.e. translations into the language with code "qqq"). Comparable to other language headings such as "English", "Deutsch", etc.', |
| 46 | + 'translatesvg-nodesc' => 'The text that appears next to a translation when no description (translation into language qqq) exists.', |
| 47 | +); |
Index: trunk/extensions/TranslateSvg/TranslateSvg.php |
— | — | @@ -11,9 +11,10 @@ |
12 | 12 | */ |
13 | 13 | |
14 | 14 | $wgExtensionCredits['specialpage'][] = array( |
| 15 | + 'path' => __FILE__, |
15 | 16 | 'name' => 'TranslateSVG', |
16 | 17 | 'author' => 'Harry Burt', |
17 | | - 'url' => 'http://www.mediawiki.org/wiki/Extension:TranslateSvg', |
| 18 | + 'url' => 'https://www.mediawiki.org/wiki/Extension:TranslateSvg', |
18 | 19 | 'descriptionmsg' => 'translatesvg-desc', |
19 | 20 | 'version' => '1.0.0', |
20 | 21 | ); |