Index: trunk/extensions/TranslationNotifications/LCADFT.i18n.php |
— | — | @@ -1,95 +0,0 @@ |
2 | | -<?php |
3 | | -/** |
4 | | - * Translations for the translator outreach features. |
5 | | - * |
6 | | - * @file |
7 | | - * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
8 | | - */ |
9 | | - |
10 | | -$messages = array(); |
11 | | - |
12 | | -/** English |
13 | | - * @author Niklas Laxström |
14 | | - */ |
15 | | -$messages['en'] = array( |
16 | | - 'translatorsignup' => 'Translator signup', |
17 | | - 'lcadft-desc' => 'Allows translators sign up for translation notifications', |
18 | | - 'lcadft-info' => 'User information', |
19 | | - 'lcadft-username' => 'Username:', |
20 | | - 'lcadft-emailstatus' => 'E-mail status:', |
21 | | - 'lcadft-email-confirmed' => 'Your e-mail address is confirmed', |
22 | | - 'lcadft-email-unconfirmed' => 'Your e-mail address is not confirmed. $1', |
23 | | - 'lcadft-email-notset' => 'You have not provided an e-mail address. You can do that in your [[Special:Preferences|preferences]].', |
24 | | - 'lcadft-languages' => 'Languages', |
25 | | - 'lcadft-lang' => 'Language #$1', |
26 | | - 'lcadft-nolang' => 'Choose a language', |
27 | | - 'lcadft-contact' => 'Preferred contact methods', |
28 | | - 'lcadft-cmethod-email' => 'E-mail', |
29 | | - 'lcadft-cmethod-talkpage' => 'Talk page', |
30 | | - 'lcadft-cmethod-talkpage-elsewhere' => 'Talk page on other wiki', |
31 | | - 'lcadft-cmethod-feed' => 'Feed', |
32 | | - 'lcadft-cmethod-no' => 'Do not contact me', |
33 | | - 'lcadft-frequency' => 'Contact frequency', |
34 | | - 'lcadft-freq-always' => 'When there is something new to translate', |
35 | | - 'lcadft-freq-week' => 'At most once a week', |
36 | | - 'lcadft-freq-month' => 'At most once a month', |
37 | | - 'lcadft-freq-weekly' => 'Weekly digest', |
38 | | - 'lcadft-freq-monthly' => 'Monthly digest', |
39 | | - 'lcadft-submit' => 'Sign up', |
40 | | -); |
41 | | - |
42 | | -$messages['qqq'] = array( |
43 | | - 'lcadft' => 'Special page header', |
44 | | - 'lcadft-desc' => '{{desc}}', |
45 | | - 'lcadft-info' => 'Fieldset header', |
46 | | - 'lcadft-username' => 'Label followed by username', |
47 | | - 'lcadft-emailstatus' => 'Label', |
48 | | - 'lcadft-email-unconfirmed' => 'Parameters: |
49 | | -* $1 is a button which can be used to send confirmation email. Button text is {{msg-mw|mediawiki:confirmemail_send}}.', |
50 | | - 'lcadft-languages' => 'Fieldset header', |
51 | | - 'lcadft-lang' => 'Label for select, $1 is a numbeer', |
52 | | - 'lcadft-nolang' => 'First option in a language select', |
53 | | - 'lcadft-contact' => 'Fieldset header', |
54 | | - 'lcadft-cmethod-email' => 'Check option label', |
55 | | - 'lcadft-cmethod-talkpage' => 'Check option label', |
56 | | - 'lcadft-cmethod-talkpage-elsewhere' => 'Check option label', |
57 | | - 'lcadft-cmethod-feed' => 'Check option label', |
58 | | - 'lcadft-cmethod-no' => 'Check option label', |
59 | | - 'lcadft-frequency' => 'Fieldset header', |
60 | | - 'lcadft-freq-always' => 'Radio option label', |
61 | | - 'lcadft-freq-week' => 'Radio option label', |
62 | | - 'lcadft-freq-month' => 'Radio option label', |
63 | | - 'lcadft-freq-weekly' => 'Radio option label', |
64 | | - 'lcadft-freq-monthly' => 'Radio option label', |
65 | | - 'lcadft-submit' => 'Submit button text', |
66 | | -); |
67 | | - |
68 | | -/** Hebrew |
69 | | - * @author amire80 |
70 | | - */ |
71 | | -$messages['he'] = array( |
72 | | - 'translatorsignup' => 'רישום מתרגמים', |
73 | | - 'lcadft-desc' => 'רישום מתרגמים לעדכונים על מיזמי תרגום', |
74 | | - 'lcadft-info' => 'מידע על המשתמש', |
75 | | - 'lcadft-username' => 'שם משתמש:', |
76 | | - 'lcadft-emailstatus' => 'מצב דוא"ל:', |
77 | | - 'lcadft-email-confirmed' => 'הדוא"ל שלך מאומת', |
78 | | - 'lcadft-email-unconfirmed' => 'הדוא"ל שלך אינו מאומת. $1', |
79 | | - 'lcadft-email-notset' => 'לא נתת כתובת דוא"ל. אפשר לעשות את זה ב[[Special:Preferences|העדפות]] שלך.', |
80 | | - 'lcadft-languages' => 'שפות', |
81 | | - 'lcadft-lang' => 'שפה מס\' $1', |
82 | | - 'lcadft-nolang' => 'בחירת שפה', |
83 | | - 'lcadft-contact' => 'דרכי התקשרות מועדפות', |
84 | | - 'lcadft-cmethod-email' => 'דוא"ל', |
85 | | - 'lcadft-cmethod-talkpage' => 'דף שיחה', |
86 | | - 'lcadft-cmethod-talkpage-elsewhere' => 'דף שיחה בוויקי אחר', |
87 | | - 'lcadft-cmethod-feed' => 'הזנה', |
88 | | - 'lcadft-cmethod-no' => 'לא ליצור אתי קשר', |
89 | | - 'lcadft-frequency' => 'תדירות ההתקשרות', |
90 | | - 'lcadft-freq-always' => 'כשיש מה לתרגם', |
91 | | - 'lcadft-freq-week' => 'לכל היותר פעם בשבוע', |
92 | | - 'lcadft-freq-month' => 'לכל היותר פעם בחודש', |
93 | | - 'lcadft-freq-weekly' => 'סיכום שבועי', |
94 | | - 'lcadft-freq-monthly' => 'סיכום חודשי', |
95 | | - 'lcadft-submit' => 'רישום', |
96 | | -); |
Index: trunk/extensions/TranslationNotifications/LCADFT.php |
— | — | @@ -1,39 +0,0 @@ |
2 | | -<?php |
3 | | -if ( !defined( 'MEDIAWIKI' ) ) die(); |
4 | | -/** |
5 | | - * An extension to keep in touch with translators |
6 | | - * |
7 | | - * @file |
8 | | - * @ingroup Extensions |
9 | | - * |
10 | | - * @author Niklas Laxström |
11 | | - * @copyright Copyright © 2012, Niklas Laxström |
12 | | - * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
13 | | - */ |
14 | | - |
15 | | -/** |
16 | | - * Extension credits properties. |
17 | | - */ |
18 | | -$wgExtensionCredits['specialpage'][] = array( |
19 | | - 'path' => __FILE__, |
20 | | - 'name' => 'LCADFT', |
21 | | - 'version' => '2012-02-20', |
22 | | - 'author' => array( 'Niklas Laxström' ), |
23 | | - 'descriptionmsg' => 'lcadft-desc', |
24 | | - #'url' => 'https://www.mediawiki.org/wiki/Extension:', |
25 | | -); |
26 | | - |
27 | | -$dir = dirname( __FILE__ ); |
28 | | -$wgSpecialPages['TranslatorSignup'] = 'SpecialTranslatorSignup'; |
29 | | -$wgSpecialPageGroups['TranslatorSignup'] = 'login'; |
30 | | -$wgExtensionMessagesFiles['LCADFT'] = "$dir/LCADFT.i18n.php"; |
31 | | -$wgExtensionMessagesFiles['LCADFT-alias'] = "$dir/LCADFT.alias.php"; |
32 | | -$wgAutoloadClasses['SpecialTranslatorSignup'] = "$dir/SpecialTranslatorSignup.php"; |
33 | | - |
34 | | -$wgLCADFTContactMethods = array( |
35 | | - 'email' => true, |
36 | | - 'talkpage' => true, |
37 | | - 'talkpage-elsewhere' => false, |
38 | | - 'feed' => false, |
39 | | - 'no' => true, |
40 | | -); |
Index: trunk/extensions/TranslationNotifications/LCADFT.alias.php |
— | — | @@ -1,14 +0,0 @@ |
2 | | -<?php |
3 | | -/** |
4 | | - * Aliases for special pages of LCADFT extension. |
5 | | - * |
6 | | - * @file |
7 | | - * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
8 | | - */ |
9 | | - |
10 | | -$specialPageAliases = array(); |
11 | | - |
12 | | -/** English (English) */ |
13 | | -$specialPageAliases['en'] = array( |
14 | | - 'TranslatorSignup' => array( 'TranslatorSignup' ), |
15 | | -); |
Index: trunk/extensions/TranslationNotifications/SpecialTranslatorSignup.php |
— | — | @@ -25,10 +25,10 @@ |
26 | 26 | } |
27 | 27 | |
28 | 28 | $context = $this->getContext(); |
29 | | - $htmlForm = new HtmlForm( $this->getDataModel(), $context, 'lcadft' ); |
30 | | - $htmlForm->setId( 'lcadft-form' ); |
31 | | - $htmlForm->setSubmitText( $context->msg( 'lcadft-submit' )->text() ); |
32 | | - $htmlForm->setSubmitID( 'lcadft-submit' ); |
| 29 | + $htmlForm = new HtmlForm( $this->getDataModel(), $context, 'translationnotifications' ); |
| 30 | + $htmlForm->setId( 'translationnotifications-form' ); |
| 31 | + $htmlForm->setSubmitText( $context->msg( 'translationnotifications-submit' )->text() ); |
| 32 | + $htmlForm->setSubmitID( 'translationnotifications-submit' ); |
33 | 33 | $htmlForm->setSubmitCallback( array( $this, 'formSubmit' ) ); |
34 | 34 | $htmlForm->show(); |
35 | 35 | |
— | — | @@ -46,28 +46,28 @@ |
47 | 47 | ); |
48 | 48 | } |
49 | 49 | public function getDataModel() { |
50 | | - global $wgLCADFTContactMethods, $wgLang; |
| 50 | + global $wgTranslationNotificationsContactMethods, $wgLang; |
51 | 51 | |
52 | 52 | $m['username'] = array( |
53 | 53 | 'type' => 'info', |
54 | | - 'label-message' => 'lcadft-username', |
| 54 | + 'label-message' => 'translationnotifications-username', |
55 | 55 | 'default' => $this->getUser()->getName(), |
56 | 56 | 'section' => 'info', |
57 | 57 | ); |
58 | 58 | |
59 | 59 | $user = $this->getUser(); |
60 | 60 | if ( $user->isEmailConfirmed() ) { |
61 | | - $status = $this->msg( 'lcadft-email-confirmed' )->parse(); |
| 61 | + $status = $this->msg( 'translationnotifications-email-confirmed' )->parse(); |
62 | 62 | } elseif ( trim( $user->getEmail() ) !== '' ) { |
63 | 63 | $submit = Xml::submitButton( $this->msg( 'confirmemail_send' )->text(), array( 'name' => 'x' ) ); |
64 | | - $status = $this->msg( 'lcadft-email-unconfirmed' )->rawParams( $submit )->parse(); |
| 64 | + $status = $this->msg( 'translationnotifications-email-unconfirmed' )->rawParams( $submit )->parse(); |
65 | 65 | } else { |
66 | | - $status = $this->msg( 'lcadft-email-notset' )->parse(); |
| 66 | + $status = $this->msg( 'translationnotifications-email-notset' )->parse(); |
67 | 67 | } |
68 | 68 | |
69 | 69 | $m['emailstatus'] = array( |
70 | 70 | 'type' => 'info', |
71 | | - 'label-message' => 'lcadft-emailstatus', |
| 71 | + 'label-message' => 'translationnotifications-emailstatus', |
72 | 72 | 'default' => $status, |
73 | 73 | 'section' => 'info', |
74 | 74 | 'raw' => true, |
— | — | @@ -83,32 +83,32 @@ |
84 | 84 | $options[$display] = $code; |
85 | 85 | } |
86 | 86 | |
87 | | - $options = array( wfMessage( 'lcadft-nolang' )->plain() => '' ) + $options; |
| 87 | + $options = array( wfMessage( 'translationnotifications-nolang' )->plain() => '' ) + $options; |
88 | 88 | |
89 | 89 | for ( $i = 1; $i < 4; $i++ ) { |
90 | 90 | $m["lang-$i"] = array( |
91 | 91 | 'type' => 'select', |
92 | | - 'label-message' => array( "lcadft-lang", $wgLang->formatNum( $i ) ), |
| 92 | + 'label-message' => array( "translationnotifications-lang", $wgLang->formatNum( $i ) ), |
93 | 93 | 'section' => 'languages', |
94 | 94 | 'options' => $options, |
95 | | - 'default' => $user->getOption( "lcadft-lang-$i" ), |
| 95 | + 'default' => $user->getOption( "translationnotifications-lang-$i" ), |
96 | 96 | ); |
97 | 97 | |
98 | 98 | if ( $i === 1 ) { |
99 | | - $m["lang-$i"]['default'] = $user->getOption( "lcadft-lang-$i", $wgLang->getCode() ); |
| 99 | + $m["lang-$i"]['default'] = $user->getOption( "translationnotifications-lang-$i", $wgLang->getCode() ); |
100 | 100 | $m["lang-$i"]['required'] = true; |
101 | 101 | } |
102 | 102 | } |
103 | 103 | |
104 | | - foreach ( $wgLCADFTContactMethods as $method => $value ) { |
| 104 | + foreach ( $wgTranslationNotificationsContactMethods as $method => $value ) { |
105 | 105 | if ( $value === false ) { |
106 | 106 | continue; |
107 | 107 | } |
108 | 108 | |
109 | 109 | $m["cmethod-$method"] = array( |
110 | 110 | 'type' => 'check', |
111 | | - 'label-message' => "lcadft-cmethod-$method", |
112 | | - 'default' => $user->getOption( "lcadft-cmethod-$method" ), |
| 111 | + 'label-message' => "translationnotifications-cmethod-$method", |
| 112 | + 'default' => $user->getOption( "translationnotifications-cmethod-$method" ), |
113 | 113 | 'section' => 'contact', |
114 | 114 | ); |
115 | 115 | if ( $method === 'email' ) { |
— | — | @@ -118,7 +118,7 @@ |
119 | 119 | if ( $method === 'talkpage-elsewhere' ) { |
120 | 120 | $m['cmethod-talkpage-elsewhere-loc'] = array( |
121 | 121 | 'type' => 'select', |
122 | | - 'default' => $user->getOption( 'lcadft-cmethod-talkpage-elsewhere-loc' ), |
| 122 | + 'default' => $user->getOption( 'translationnotifications-cmethod-talkpage-elsewhere-loc' ), |
123 | 123 | 'section' => 'contact', |
124 | 124 | 'options' => $this->getOtherWikis(), |
125 | 125 | ); |
— | — | @@ -127,14 +127,14 @@ |
128 | 128 | |
129 | 129 | $m['freq'] = array( |
130 | 130 | 'type' => 'radio', |
131 | | - 'default' => $user->getOption( 'lcadft-freq', 'always' ), |
| 131 | + 'default' => $user->getOption( 'translationnotifications-freq', 'always' ), |
132 | 132 | 'section' => 'frequency', |
133 | 133 | 'options' => array( |
134 | | - $this->msg( 'lcadft-freq-always' )->text() => 'always', |
135 | | - $this->msg( 'lcadft-freq-week' )->text() => 'week', |
136 | | - $this->msg( 'lcadft-freq-month' )->text() => 'month', |
137 | | - $this->msg( 'lcadft-freq-weekly' )->text() => 'weekly', |
138 | | - $this->msg( 'lcadft-freq-monthly' )->text() => 'monthly', |
| 134 | + $this->msg( 'translationnotifications-freq-always' )->text() => 'always', |
| 135 | + $this->msg( 'translationnotifications-freq-week' )->text() => 'week', |
| 136 | + $this->msg( 'translationnotifications-freq-month' )->text() => 'month', |
| 137 | + $this->msg( 'translationnotifications-freq-weekly' )->text() => 'weekly', |
| 138 | + $this->msg( 'translationnotifications-freq-monthly' )->text() => 'monthly', |
139 | 139 | ), |
140 | 140 | ); |
141 | 141 | return $m; |
— | — | @@ -150,7 +150,7 @@ |
151 | 151 | } |
152 | 152 | |
153 | 153 | foreach ( $formData as $key => $value ) { |
154 | | - $user->setOption( "lcadft-$key", $value ); |
| 154 | + $user->setOption( "translationnotifications-$key", $value ); |
155 | 155 | } |
156 | 156 | $user->saveSettings(); |
157 | 157 | } |
Index: trunk/extensions/TranslationNotifications/TranslationNotifications.alias.php |
— | — | @@ -0,0 +1,14 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Aliases for special pages of TranslationNotifications extension. |
| 5 | + * |
| 6 | + * @file |
| 7 | + * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
| 8 | + */ |
| 9 | + |
| 10 | +$specialPageAliases = array(); |
| 11 | + |
| 12 | +/** English (English) */ |
| 13 | +$specialPageAliases['en'] = array( |
| 14 | + 'TranslatorSignup' => array( 'TranslatorSignup' ), |
| 15 | +); |
Property changes on: trunk/extensions/TranslationNotifications/TranslationNotifications.alias.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 16 | + native |
Index: trunk/extensions/TranslationNotifications/TranslationNotifications.i18n.php |
— | — | @@ -0,0 +1,95 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Translations for the translator outreach features. |
| 5 | + * |
| 6 | + * @file |
| 7 | + * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
| 8 | + */ |
| 9 | + |
| 10 | +$messages = array(); |
| 11 | + |
| 12 | +/** English |
| 13 | + * @author Niklas Laxström |
| 14 | + */ |
| 15 | +$messages['en'] = array( |
| 16 | + 'translatorsignup' => 'Translator signup', |
| 17 | + 'translationnotifications-desc' => 'Allows translators sign up for translation notifications', |
| 18 | + 'translationnotifications-info' => 'User information', |
| 19 | + 'translationnotifications-username' => 'Username:', |
| 20 | + 'translationnotifications-emailstatus' => 'E-mail status:', |
| 21 | + 'translationnotifications-email-confirmed' => 'Your e-mail address is confirmed', |
| 22 | + 'translationnotifications-email-unconfirmed' => 'Your e-mail address is not confirmed. $1', |
| 23 | + 'translationnotifications-email-notset' => 'You have not provided an e-mail address. You can do that in your [[Special:Preferences|preferences]].', |
| 24 | + 'translationnotifications-languages' => 'Languages', |
| 25 | + 'translationnotifications-lang' => 'Language #$1', |
| 26 | + 'translationnotifications-nolang' => 'Choose a language', |
| 27 | + 'translationnotifications-contact' => 'Preferred contact methods', |
| 28 | + 'translationnotifications-cmethod-email' => 'E-mail', |
| 29 | + 'translationnotifications-cmethod-talkpage' => 'Talk page', |
| 30 | + 'translationnotifications-cmethod-talkpage-elsewhere' => 'Talk page on other wiki', |
| 31 | + 'translationnotifications-cmethod-feed' => 'Feed', |
| 32 | + 'translationnotifications-cmethod-no' => 'Do not contact me', |
| 33 | + 'translationnotifications-frequency' => 'Contact frequency', |
| 34 | + 'translationnotifications-freq-always' => 'When there is something new to translate', |
| 35 | + 'translationnotifications-freq-week' => 'At most once a week', |
| 36 | + 'translationnotifications-freq-month' => 'At most once a month', |
| 37 | + 'translationnotifications-freq-weekly' => 'Weekly digest', |
| 38 | + 'translationnotifications-freq-monthly' => 'Monthly digest', |
| 39 | + 'translationnotifications-submit' => 'Sign up', |
| 40 | +); |
| 41 | + |
| 42 | +$messages['qqq'] = array( |
| 43 | + 'translatorsignup' => 'Special page header', |
| 44 | + 'translationnotifications-desc' => '{{desc}}', |
| 45 | + 'translationnotifications-info' => 'Fieldset header', |
| 46 | + 'translationnotifications-username' => 'Label followed by username', |
| 47 | + 'translationnotifications-emailstatus' => 'Label', |
| 48 | + 'translationnotifications-email-unconfirmed' => 'Parameters: |
| 49 | +* $1 is a button which can be used to send confirmation email. Button text is {{msg-mw|mediawiki:confirmemail_send}}.', |
| 50 | + 'translationnotifications-languages' => 'Fieldset header', |
| 51 | + 'translationnotifications-lang' => 'Label for select, $1 is a numbeer', |
| 52 | + 'translationnotifications-nolang' => 'First option in a language select', |
| 53 | + 'translationnotifications-contact' => 'Fieldset header', |
| 54 | + 'translationnotifications-cmethod-email' => 'Check option label', |
| 55 | + 'translationnotifications-cmethod-talkpage' => 'Check option label', |
| 56 | + 'translationnotifications-cmethod-talkpage-elsewhere' => 'Check option label', |
| 57 | + 'translationnotifications-cmethod-feed' => 'Check option label', |
| 58 | + 'translationnotifications-cmethod-no' => 'Check option label', |
| 59 | + 'translationnotifications-frequency' => 'Fieldset header', |
| 60 | + 'translationnotifications-freq-always' => 'Radio option label', |
| 61 | + 'translationnotifications-freq-week' => 'Radio option label', |
| 62 | + 'translationnotifications-freq-month' => 'Radio option label', |
| 63 | + 'translationnotifications-freq-weekly' => 'Radio option label', |
| 64 | + 'translationnotifications-freq-monthly' => 'Radio option label', |
| 65 | + 'translationnotifications-submit' => 'Submit button text', |
| 66 | +); |
| 67 | + |
| 68 | +/** Hebrew |
| 69 | + * @author amire80 |
| 70 | + */ |
| 71 | +$messages['he'] = array( |
| 72 | + 'translatorsignup' => 'רישום מתרגמים', |
| 73 | + 'translationnotifications-desc' => 'רישום מתרגמים לעדכונים על מיזמי תרגום', |
| 74 | + 'translationnotifications-info' => 'מידע על המשתמש', |
| 75 | + 'translationnotifications-username' => 'שם משתמש:', |
| 76 | + 'translationnotifications-emailstatus' => 'מצב דוא"ל:', |
| 77 | + 'translationnotifications-email-confirmed' => 'הדוא"ל שלך מאומת', |
| 78 | + 'translationnotifications-email-unconfirmed' => 'הדוא"ל שלך אינו מאומת. $1', |
| 79 | + 'translationnotifications-email-notset' => 'לא נתת כתובת דוא"ל. אפשר לעשות את זה ב[[Special:Preferences|העדפות]] שלך.', |
| 80 | + 'translationnotifications-languages' => 'שפות', |
| 81 | + 'translationnotifications-lang' => 'שפה מס\' $1', |
| 82 | + 'translationnotifications-nolang' => 'בחירת שפה', |
| 83 | + 'translationnotifications-contact' => 'דרכי התקשרות מועדפות', |
| 84 | + 'translationnotifications-cmethod-email' => 'דוא"ל', |
| 85 | + 'translationnotifications-cmethod-talkpage' => 'דף שיחה', |
| 86 | + 'translationnotifications-cmethod-talkpage-elsewhere' => 'דף שיחה בוויקי אחר', |
| 87 | + 'translationnotifications-cmethod-feed' => 'הזנה', |
| 88 | + 'translationnotifications-cmethod-no' => 'לא ליצור אתי קשר', |
| 89 | + 'translationnotifications-frequency' => 'תדירות ההתקשרות', |
| 90 | + 'translationnotifications-freq-always' => 'כשיש מה לתרגם', |
| 91 | + 'translationnotifications-freq-week' => 'לכל היותר פעם בשבוע', |
| 92 | + 'translationnotifications-freq-month' => 'לכל היותר פעם בחודש', |
| 93 | + 'translationnotifications-freq-weekly' => 'סיכום שבועי', |
| 94 | + 'translationnotifications-freq-monthly' => 'סיכום חודשי', |
| 95 | + 'translationnotifications-submit' => 'רישום', |
| 96 | +); |
Property changes on: trunk/extensions/TranslationNotifications/TranslationNotifications.i18n.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 97 | + native |
Index: trunk/extensions/TranslationNotifications/TranslationNotifications.php |
— | — | @@ -0,0 +1,39 @@ |
| 2 | +<?php |
| 3 | +if ( !defined( 'MEDIAWIKI' ) ) die(); |
| 4 | +/** |
| 5 | + * An extension to keep in touch with translators |
| 6 | + * |
| 7 | + * @file |
| 8 | + * @ingroup Extensions |
| 9 | + * |
| 10 | + * @author Niklas Laxström |
| 11 | + * @copyright Copyright © 2012, Niklas Laxström |
| 12 | + * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
| 13 | + */ |
| 14 | + |
| 15 | +/** |
| 16 | + * Extension credits properties. |
| 17 | + */ |
| 18 | +$wgExtensionCredits['specialpage'][] = array( |
| 19 | + 'path' => __FILE__, |
| 20 | + 'name' => 'TranslationNotifications', |
| 21 | + 'version' => '2012-03-02', |
| 22 | + 'author' => array( 'Niklas Laxström' ), |
| 23 | + 'descriptionmsg' => 'translationnotifications-desc', |
| 24 | + #'url' => 'https://www.mediawiki.org/wiki/Extension:TranslationNotifications', |
| 25 | +); |
| 26 | + |
| 27 | +$dir = dirname( __FILE__ ); |
| 28 | +$wgSpecialPages['TranslatorSignup'] = 'SpecialTranslatorSignup'; |
| 29 | +$wgSpecialPageGroups['TranslatorSignup'] = 'login'; |
| 30 | +$wgExtensionMessagesFiles['TranslationNotifications'] = "$dir/TranslationNotifications.i18n.php"; |
| 31 | +$wgExtensionMessagesFiles['TranslationNotificationsAlias'] = "$dir/TranslationNotifications.alias.php"; |
| 32 | +$wgAutoloadClasses['SpecialTranslatorSignup'] = "$dir/SpecialTranslatorSignup.php"; |
| 33 | + |
| 34 | +$wgTranslationNotificationsContactMethods = array( |
| 35 | + 'email' => true, |
| 36 | + 'talkpage' => true, |
| 37 | + 'talkpage-elsewhere' => false, |
| 38 | + 'feed' => false, |
| 39 | + 'no' => true, |
| 40 | +); |
Property changes on: trunk/extensions/TranslationNotifications/TranslationNotifications.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 41 | + native |