Index: trunk/extensions/UsabilityInitiative/PrefSwitch/PrefSwitch.classes.php |
— | — | @@ -293,7 +293,7 @@ |
294 | 294 | public static function save( $question, $request ) { |
295 | 295 | $answer = $request->getVal( "prefswitch-survey-{$question}", null ); |
296 | 296 | return array( |
297 | | - 'pss_answer' => $answer |
| 297 | + 'pss_answer' => $answer, |
298 | 298 | 'pss_answer_data' => $answer == 'true' || $answer == 'false' ? |
299 | 299 | $request->getVal( "prefswitch-survey-{$question}-if{$answer}", null ) : null, |
300 | 300 | ); |
Index: trunk/extensions/UsabilityInitiative/PrefSwitch/PrefSwitch.i18n.php |
— | — | @@ -16,9 +16,9 @@ |
17 | 17 | 'prefswitch-desc' => 'Allow users to swtich sets of preferences', |
18 | 18 | 'prefswitch-survey-true' => 'Yes', |
19 | 19 | 'prefswitch-survey-false' => 'No', |
20 | | - 'prefswitch-survey-submit-off' => 'Turn New Features Off', |
| 20 | + 'prefswitch-survey-submit-off' => 'Turn new features off', |
21 | 21 | 'prefswitch-survey-cancel-off' => 'If you would like to continue using the new features, you can return to $1.', |
22 | | - 'prefswitch-survey-submit-feedback' => 'Send Feedback', |
| 22 | + 'prefswitch-survey-submit-feedback' => 'Send feedback', |
23 | 23 | 'prefswitch-survey-cancel-feedback' => 'If you don\'t want to provide feedback, you can return to $1.', |
24 | 24 | 'prefswitch-survey-question-likedislike' => 'What did you like about the new features? What did you dislike about the features?', |
25 | 25 | 'prefswitch-survey-question-whyoff' => 'Why are you turning off the new features? (Please select all that apply.)', |
— | — | @@ -61,6 +61,9 @@ |
62 | 62 | 'prefswitch-title-off' => 'Turn New Features Off', |
63 | 63 | 'prefswitch-title-switched-off' => 'Thanks', |
64 | 64 | 'prefswitch-title-feedback' => 'Give Feedback', |
| 65 | + 'prefswitch-success-on' => 'New features are now turned on.', |
| 66 | + 'prefswitch-success-off' => 'New features are now turned off.', |
| 67 | + 'prefswitch-success-feedback' => 'Your feedback has been sent.', |
65 | 68 | 'prefswitch-return' => '<hr> |
66 | 69 | Return to <span class="plainlinks">[$1 $2]</span>.', |
67 | 70 | 'prefswitch-main' => 'We\'ve been working hard to make things easier for our users. We\'re excited to share some improvements, including a new look and feel and simplified editing features. Improving the usability of the site is an ongoing effort here at Wikimedia and we\'ll be sharing more updates in the future. |
Index: trunk/extensions/UsabilityInitiative/PrefSwitch/SpecialPrefSwitch.php |
— | — | @@ -201,7 +201,7 @@ |
202 | 202 | 'method' => 'post', |
203 | 203 | 'action' => $this->getTitle()->getLinkURL( $query ), |
204 | 204 | 'class' => 'prefswitch-survey', |
205 | | - 'id' => "prefswitch-survey-{$name}", |
| 205 | + 'id' => "prefswitch-survey-{$mode}" |
206 | 206 | ) |
207 | 207 | ); |
208 | 208 | $html .= Xml::hidden( 'mode', $mode ); |