r106775 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106774‎ | r106775 | r106776 >
Date:10:20, 20 December 2011
Author:raymond
Status:ok
Tags:
Comment:
r106718: Consistency tweaks in preparation for adding extension to translatewiki.net:
* i18n file:
** Tweak description message
** Fix indention
** Add header
* Extension credits:
** http -> https for mediawiki.org
** Add path
Modified paths:
  • /trunk/extensions/TranslateSvg/TranslateSvg.i18n.php (modified) (history)
  • /trunk/extensions/TranslateSvg/TranslateSvg.php (modified) (history)

Diff [purge]

Index: trunk/extensions/TranslateSvg/TranslateSvg.i18n.php
@@ -1,33 +1,46 @@
22 <?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 @@
1212 */
1313
1414 $wgExtensionCredits['specialpage'][] = array(
 15+ 'path' => __FILE__,
1516 'name' => 'TranslateSVG',
1617 'author' => 'Harry Burt',
17 - 'url' => 'http://www.mediawiki.org/wiki/Extension:TranslateSvg',
 18+ 'url' => 'https://www.mediawiki.org/wiki/Extension:TranslateSvg',
1819 'descriptionmsg' => 'translatesvg-desc',
1920 'version' => '1.0.0',
2021 );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r106718Prepare for internationalisationjarry125022:52, 19 December 2011

Status & tagging log