Index: trunk/extensions/Sternograph/Sternograph.i18n.php |
— | — | @@ -5,10 +5,29 @@ |
6 | 6 | $messages = array(); |
7 | 7 | |
8 | 8 | /** |
| 9 | + * English |
| 10 | + */ |
| 11 | +$messages['en'] = array( |
| 12 | + 'sternograph-desc' => '<nowiki><sterno></nowiki> tags for transcripts of spokens words (plays, interviews, etc)', |
| 13 | + 'sternograph-empty' => '<$1> tag cannot be empty.', |
| 14 | + 'sternograph-nested' => '<$1> tag cannot be nested.', |
| 15 | + 'sternograph-speaker-is' => '<$1> speaker block lines must have $2 character.', |
| 16 | + |
| 17 | + 'sternograph-speaker-pre' => '', |
| 18 | + 'sternograph-speaker-post' => ': ', |
| 19 | + 'sternograph-block-pre' => '', |
| 20 | + 'sternograph-block-post' => '', |
| 21 | + 'sternograph-inline-pre' => '[', |
| 22 | + 'sternograph-inline-post' => ']', |
| 23 | + 'sternograph-context-pre' => '—', |
| 24 | + 'sternograph-context-post' => '' |
| 25 | +); |
| 26 | + |
| 27 | +/** |
9 | 28 | * Translation documentation. |
10 | 29 | */ |
11 | 30 | $messages['qqq'] = array( |
12 | | - 'sternograph-descriptionmsg'=>'Description of the Sternograph extension; displayed on the Special:Extensions page only.', |
| 31 | + 'sternograph-desc'=>'Description of the Sternograph extension; displayed on the Special:Extensions page only.', |
13 | 32 | 'sternograph-empty' => 'Error message when an empty tag is detected on the wiki-formatted page. The tag name to display is parsed to this function as the first parameter.', |
14 | 33 | 'sternograph-nested'=>'Error message when a sternograph tag occurs within an existing sternograph tag on the wiki-formatted page. The tag name to display is the first parameter.', |
15 | 34 | 'sternograph-speaker-is' => 'Error message when a speaker block does not contain the speaker delimeter on the wiki-formatted page. The tag name to display is the first parameter; the character that is required is the second parameter.', |
— | — | @@ -23,21 +42,3 @@ |
24 | 43 | 'sternograph-context-post'=>'Text that will always occur after the context block in the formatted text. This text is formatted by the sternographContext CSS class.' |
25 | 44 | ); |
26 | 45 | |
27 | | -/** |
28 | | - * English |
29 | | - */ |
30 | | -$messages['en'] = array( |
31 | | - 'sternograph-descriptionmsg'=>'<sterno> tags for transcripts of spokens words (plays, interviews, etc).', |
32 | | - 'sternograph-empty' => '<$1> tag cannot be empty.', |
33 | | - 'sternograph-nested'=>'<$1> tag cannot be nested.', |
34 | | - 'sternograph-speaker-is' => '<$1> speaker block lines must have $2 character.', |
35 | | - |
36 | | - 'sternograph-speaker-pre'=>'', |
37 | | - 'sternograph-speaker-post'=>': ', |
38 | | - 'sternograph-block-pre'=>'', |
39 | | - 'sternograph-block-post'=>'', |
40 | | - 'sternograph-inline-pre'=>'[', |
41 | | - 'sternograph-inline-post'=>']', |
42 | | - 'sternograph-context-pre'=>'—', |
43 | | - 'sternograph-context-post'=>'' |
44 | | -); |
Index: trunk/extensions/Sternograph/Sternograph.php |
— | — | @@ -9,7 +9,7 @@ |
10 | 10 | 'version' => '1.1', |
11 | 11 | 'author' =>'Smoke 003723', |
12 | 12 | 'url' => 'http://www.mediawiki.org/wiki/Extension:Sternograph', |
13 | | - 'descriptionmsg' => 'sternograph-descriptionmsg' |
| 13 | + 'descriptionmsg' => 'sternograph-desc' |
14 | 14 | ); |
15 | 15 | |
16 | 16 | function efSternograph(&$parser){ |