Index: trunk/extensions/RefHelper/RefHelper.i18n.php |
— | — | @@ -1,33 +1,42 @@ |
2 | 2 | <?php |
| 3 | +/** |
| 4 | + * Internationalisation file for extension RefHelper. |
| 5 | + * |
| 6 | + * @addtogroup Extensions |
| 7 | +*/ |
| 8 | + |
3 | 9 | $messages = array(); |
4 | 10 | |
5 | 11 | $messages['en'] = array( |
6 | 12 | 'refhelper' => 'Reference helper', |
7 | 13 | 'refsearch' => 'Reference search', /* not sure how to use the below */ |
| 14 | + 'refhelper-desc' => 'Helps to create pages for references', |
8 | 15 | 'refhelper-refsearch' => 'Reference search', |
9 | 16 | 'refhelper-refcreate_legend' => 'Create new reference', |
10 | | - 'refhelper-refsearch_legend' => 'Search Pubmed for references', |
| 17 | + 'refhelper-refsearch_legend' => 'Search PubMed for references', |
11 | 18 | 'refhelper-refcreate_another' => 'Create another reference', |
12 | 19 | 'refhelper-refcreate_autocomment' => 'Automated page creation.', |
13 | | - 'refhelper-refcreate_success' => 'The page [[$1]] didn\'t exist and has been created.', |
| 20 | + 'refhelper-refcreate_success' => "The page [[$1]] didn't exist and has been created.", |
14 | 21 | 'refhelper-refcreate_failure' => 'The page [[$1]] already exists!', |
15 | | - 'refhelper-label_workspace' => 'Workspace (copy and paste area)', |
16 | | - 'refhelper-label_authorforename' => 'Author $1\'s first name', |
17 | | - 'refhelper-label_authorsurname' => 'Surname', |
18 | | - 'refhelper-title' => 'Title', |
19 | | - 'refhelper-journal' => 'Journal', |
20 | | - 'refhelper-volume' => 'Volume', |
21 | | - 'refhelper-pages' => 'Pages', |
22 | | - 'refhelper-year' => 'Year', |
23 | | - 'refhelper-refname' => 'Ref Name', |
24 | | - 'refhelper-category' => 'Category $1', |
| 22 | + 'refhelper-label_workspace' => 'Workspace (copy and paste area):', |
| 23 | + 'refhelper-label_authorforename' => "Author $1's first name:", |
| 24 | + 'refhelper-label_authorsurname' => 'Surname:', |
| 25 | + 'refhelper-title' => 'Title:', |
| 26 | + 'refhelper-journal' => 'Journal:', |
| 27 | + 'refhelper-volume' => 'Volume:', |
| 28 | + 'refhelper-pages' => 'Pages:', |
| 29 | + 'refhelper-year' => 'Year:', |
| 30 | + 'refhelper-refname' => 'Ref name:', |
| 31 | + 'refhelper-category' => 'Category $1:', |
25 | 32 | 'refhelper-create' => 'Create', |
26 | 33 | 'refhelper-search' => 'Search', |
27 | 34 | 'refhelper-toolbox_link_create' => 'Create reference', |
28 | 35 | 'refhelper-toolbox_link_search' => 'Create reference from search', |
29 | | - 'refhelper-newarticle_nocitation' => 'There is currently no citation with this name. ', |
30 | | - 'refhelper-newarticle_suggestions' => "If there is a matching citation from below, you can create this page by clicking on the corresponding \"Create\" button.\n<h2>Suggestions</h2>\n", |
31 | | - 'refhelper-newarticle_nosuggestions' => "Unfortunately, I was unable to suggest any references. You can [[Special:RefHelper|add the reference manually]] or [[Special:RefSearch|search for the citation to add]].\n", |
| 36 | + 'refhelper-newarticle_nocitation' => 'There is currently no citation with this name.', |
| 37 | + 'refhelper-newarticle_suggestions' => 'If there is a matching citation from below, you can create this page by clicking on the corresponding "Create" button. |
| 38 | + |
| 39 | +<h2>Suggestions</h2>', |
| 40 | + 'refhelper-newarticle_nosuggestions' => 'Unfortunately, I was unable to suggest any references. |
| 41 | +You can [[Special:RefHelper|add the reference manually]] or [[Special:RefSearch|search for the citation to add]].', |
| 42 | +); |
32 | 43 | |
33 | | -); |
34 | | -?> |
Index: trunk/extensions/RefHelper/RefHelper.php |
— | — | @@ -18,11 +18,12 @@ |
19 | 19 | } |
20 | 20 | |
21 | 21 | $wgExtensionCredits['specialpage'][] = array( |
| 22 | + 'path' => __FILE__, |
22 | 23 | 'name' => 'RefHelper', |
23 | 24 | 'author' => 'Jonathan Williford', |
24 | | - 'url' => 'http://neurov.is/on', |
| 25 | + 'url' => 'http://www.mediawiki.org/wiki/Extension:RefHelper', |
25 | 26 | 'description' => 'This extension helps create pages for references.', |
26 | | - 'descriptionmsg' => 'This extension helps create pages for references.', |
| 27 | + 'descriptionmsg' => 'refhelper-desc', |
27 | 28 | 'version' => '0.0.2', |
28 | 29 | ); |
29 | 30 | |
— | — | @@ -56,3 +57,6 @@ |
57 | 58 | $wgExtensionAliasesFiles['RefHelper'] = $dir . 'RefHelper.alias.php'; |
58 | 59 | $wgSpecialPages['RefHelper'] = 'RefHelper'; |
59 | 60 | $wgSpecialPages['RefSearch'] = 'RefSearch'; |
| 61 | +$wgSpecialPageGroups['RefHelper'] = 'other'; |
| 62 | +$wgSpecialPageGroups['RefSearch'] = 'other'; |
| 63 | + |
Index: trunk/extensions/RefHelper/RefHelper.create.php |
— | — | @@ -14,7 +14,7 @@ |
15 | 15 | private function addTableRow( &$out, $varname, $varval, $label, $size = 50 ) { |
16 | 16 | $out->addHTML( Xml::openElement('tr')); |
17 | 17 | $out->addHTML( Xml::openElement('td',array('class'=>'mw-label'))); |
18 | | - $out->addHTML( Xml::element('label',array('for'=>$varname),"$label:")); |
| 18 | + $out->addHTML( Xml::element('label',array('for'=>$varname),"$label")); |
19 | 19 | $out->addHTML( Xml::closeElement('td')); |
20 | 20 | $out->addHTML( Xml::openElement('td')); |
21 | 21 | $out->addHTML( Xml::input($varname,$size,$varval,array('id'=>"inp_$varname"))); |
— | — | @@ -27,7 +27,7 @@ |
28 | 28 | private function add2ColTableRow( &$out, $varname1, $varname2, $varval1, $varval2, $label1, $label2 ) { |
29 | 29 | $out->addHTML( Xml::openElement('tr')); |
30 | 30 | $out->addHTML( Xml::openElement('td',array('class'=>'mw-label'))); |
31 | | - $out->addHTML( Xml::element('label', array('for'=>$varname1),"$label1:")); |
| 31 | + $out->addHTML( Xml::element('label', array('for'=>$varname1),"$label1")); |
32 | 32 | $out->addHTML( Xml::closeElement('td')); |
33 | 33 | $out->addHTML( Xml::openElement('td')); |
34 | 34 | $out->addHTML( Xml::input($varname1,15,$varval1,array('id'=>"inp_$varname1",'oninput'=>'updateFirstName(event)'))); |
Index: trunk/extensions/RefHelper/RefHelper.alias.php |
— | — | @@ -5,4 +5,4 @@ |
6 | 6 | $aliases['en'] = array( |
7 | 7 | 'RefHelper' => array( 'RefHelper' ), |
8 | 8 | ); |
9 | | -?> |
| 9 | + |
Index: trunk/extensions/Translate/groups/mediawiki-defines.txt |
— | — | @@ -870,6 +870,9 @@ |
871 | 871 | Redirect |
872 | 872 | ignored = redirect-addnewaccount, redirect-userlogincomplete, redirect-userlogoutcomplete |
873 | 873 | |
| 874 | +Ref Helper |
| 875 | +aliasfile = RefHelper/RefHelper.alias.php |
| 876 | + |
874 | 877 | Refresh Special |
875 | 878 | aliasfile = RefreshSpecial/RefreshSpecial.alias.php |
876 | 879 | |