Index: trunk/extensions/SpecialForm/SpecialForm.body.php |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
20 | 20 | * |
21 | 21 | * @author Evan Prodromou <evan@vinismo.com> |
22 | | - * @addtogroup Extensions |
| 22 | + * @ingroup Extensions |
23 | 23 | */ |
24 | 24 | |
25 | 25 | if (!defined('MEDIAWIKI')) { |
— | — | @@ -27,8 +27,7 @@ |
28 | 28 | |
29 | 29 | require_once('XmlFunctions.php'); |
30 | 30 | |
31 | | -class SpecialForm extends SpecialPage |
32 | | -{ |
| 31 | +class SpecialForm extends SpecialPage { |
33 | 32 | function SpecialForm() { |
34 | 33 | SpecialPage::SpecialPage("Form"); |
35 | 34 | self::loadMessages(); |
— | — | @@ -492,6 +491,4 @@ |
493 | 492 | return ''; |
494 | 493 | } |
495 | 494 | } |
496 | | -} |
497 | | - |
498 | | -?> |
| 495 | +} |
\ No newline at end of file |
Index: trunk/extensions/SpecialForm/SpecialForm.i18n.php |
— | — | @@ -18,11 +18,14 @@ |
19 | 19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
20 | 20 | * |
21 | 21 | * @author Evan Prodromou <evan@vinismo.com> |
22 | | - * @addtogroup Extensions |
| 22 | + * @ingroup Extensions |
23 | 23 | */ |
24 | 24 | |
25 | 25 | $messages = array(); |
26 | 26 | |
| 27 | +/** English |
| 28 | + * @author Evan Prodromou <evan@vinismo.com> |
| 29 | + */ |
27 | 30 | $messages['en'] = array( |
28 | 31 | 'form' => 'Form', |
29 | 32 | 'formnoname' => 'No form name', |
— | — | @@ -153,6 +156,31 @@ |
154 | 157 | 'formbadpagename' => 'Fuŝa paĝnomo', |
155 | 158 | ); |
156 | 159 | |
| 160 | +/** Finnish (Suomi) |
| 161 | + * @author Jack Phoenix |
| 162 | + */ |
| 163 | +$messages['fi'] = array( |
| 164 | + 'form' => 'Lomake', |
| 165 | + 'formnoname' => 'Ei lomakkeen nimeä', |
| 166 | + 'formnonametext' => 'Sinun tulee antaa lomakkeen nimi, kuten "Special:Form/Lomakkeennimi".', |
| 167 | + 'formbadname' => 'Huono lomakkeen nimi', |
| 168 | + 'formbadnametext' => 'Haluamallasi nimellä ei ole lomaketta.', |
| 169 | + 'formpattern' => '$1-lomake', |
| 170 | + 'formtemplatepattern' => '$1', # Do not translate this message |
| 171 | + 'formtitlepattern' => 'Lisää uusi $1', |
| 172 | + 'formsave' => 'Tallenna', |
| 173 | + 'formindexmismatch' => 'Tällä lomakkeella on yhteensopimattomat nimi- ja mallinekaavat alkaen riviltä $1.', |
| 174 | + 'formarticleexists' => 'Sivu on jo olemassa', |
| 175 | + 'formarticleexiststext' => 'Sivu [[$1]] on jo olemassa.', |
| 176 | + 'formbadpagename' => 'Huono sivun nimi', |
| 177 | + 'formbadpagenametext' => 'Antamasi lomakkeen tiedot tekevät huonon sivun nimen, "$1".', |
| 178 | + 'formrequiredfieldpluralerror' => 'Kentät $1 ovat pakollisia tälle lomakkeelle. Ole hyvä ja täytä ne.', |
| 179 | + 'formrequiredfielderror' => 'Kenttä $1 on pakollinen tälle lomakkeelle. Ole hyvä ja täytä se.', |
| 180 | + 'formsavesummary' => 'Uusi sivu käyttäen [[Special:Form/$1]]', |
| 181 | + 'formsaveerror' => 'Virhe lomaketta tallennettaessa', |
| 182 | + 'formsaveerrortext' => 'Tuntematon virhe tapahtui sivua \'$1\' tallennettaessa.', |
| 183 | +); |
| 184 | + |
157 | 185 | $messages['fr'] = array( |
158 | 186 | 'form' => 'Formulaire', |
159 | 187 | 'formnoname' => 'Aucun nom', |
Index: trunk/extensions/SpecialForm/SpecialForm.setup.php |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
20 | 20 | * |
21 | 21 | * @author Evan Prodromou <evan@vinismo.com> |
22 | | - * @addtogroup Extensions |
| 22 | + * @ingroup Extensions |
23 | 23 | */ |
24 | 24 | |
25 | 25 | if (!defined('MEDIAWIKI')) { |
— | — | @@ -36,11 +36,13 @@ |
37 | 37 | # Typo in versions of MW earlier than 1.11.x (?) |
38 | 38 | $wgHooks['LangugeGetSpecialPageAliases'][] = 'formLocalizedPageName'; # Add any aliases for the special page. |
39 | 39 | |
40 | | -$wgExtensionCredits['specialpage'][] = array('name' => 'Form', |
41 | | - 'version' => SPECIALFORM_VERSION, |
42 | | - 'author' => 'Evan Prodromou', |
43 | | - 'url' => 'http://www.mediawiki.org/wiki/Extension:Form', |
44 | | - 'description' => 'A form interface to start new articles'); |
| 40 | +$wgExtensionCredits['specialpage'][] = array( |
| 41 | + 'name' => 'Form', |
| 42 | + 'version' => SPECIALFORM_VERSION, |
| 43 | + 'author' => 'Evan Prodromou', |
| 44 | + 'url' => 'http://www.mediawiki.org/wiki/Extension:Form', |
| 45 | + 'description' => 'A form interface to start new articles' |
| 46 | +); |
45 | 47 | |
46 | 48 | function formLocalizedPageName(&$specialPageArray, $code) { |
47 | 49 | # The localized title of the special page is among the messages of the extension: |
— | — | @@ -52,6 +54,4 @@ |
53 | 55 | $specialPageArray['Form'][] = $title->getDBkey(); |
54 | 56 | |
55 | 57 | return true; |
56 | | -} |
57 | | - |
58 | | -?> |
| 58 | +} |
\ No newline at end of file |