Index: trunk/extensions/Blackout/skins/ProtestSopa.php |
— | — | @@ -12,12 +12,20 @@ |
13 | 13 | * to show the actual HTML output |
14 | 14 | */ |
15 | 15 | public function execute() { |
| 16 | + $header = wfMsg( 'blackout-protestsopa-header' ); |
| 17 | + $message1 = wfMsg( 'blackout-protestsopa-message1' ); |
| 18 | + $message2 = wfMsg( 'blackout-protestsopa-message2' ); |
| 19 | + $message3 = wfMsg( 'blackout-protestsopa-message3' ); |
| 20 | + $action = wfMsg( 'blackout-protestsopa-action' ); |
| 21 | + $actionmsg = wfMsg( 'blackout-protestsopa-actionmsg' ); |
| 22 | + $join = wfMsg( 'blackout-protestsopa-join' ); |
16 | 23 | ?> |
17 | 24 | |
18 | 25 | <html> |
19 | 26 | <head> |
20 | 27 | <link href='http://fonts.googleapis.com/css?family=Six+Caps' rel='stylesheet' type='text/css'> |
21 | 28 | <link href='http://fonts.googleapis.com/css?family=Stint+Ultra+Condensed' rel='stylesheet' type='text/css'> |
| 29 | + <title><?php echo $header ?></title> |
22 | 30 | <style> |
23 | 31 | body { |
24 | 32 | color: #fff; |
— | — | @@ -81,19 +89,17 @@ |
82 | 90 | <body> |
83 | 91 | <div> |
84 | 92 | <hr> |
85 | | - <p class="save">SAVE THE INTERNET.</p> |
86 | | - <p>This site has been taken down in protest of bills currently being considered in the US |
87 | | - House and Senate. Called <a class="bills" href="http://thomas.loc.gov/cgi-bin/bdquery/z?d112:h.r.3261:">SOPA</a> and |
88 | | - <a class="bills" href="http://www.opencongress.org/bill/112-s968/show">PIPA</a>,<br /> these bills threaten |
89 | | - to destroy the Internet as we know it.</p> |
90 | | - <p>If either one passes, your favorite sites could disappear forever.</p> |
| 93 | + <p class="save"><?php echo $header ?></p> |
| 94 | + <p><?php echo $message1 ?> <a class="bills" href="http://thomas.loc.gov/cgi-bin/bdquery/z?d112:h.r.3261:">SOPA</a> & |
| 95 | + <a class="bills" href="http://www.opencongress.org/bill/112-s968/show">PIPA</a>,<br /> <?php echo $message2 ?></p> |
| 96 | + <p><?php echo $message3 ?></p> |
91 | 97 | <hr> |
92 | 98 | <a href="http://americancensorship.org/modal/call-form-moz.html"> |
93 | | - <p class="act">ACT NOW.</p> |
| 99 | + <p class="act"><?php echo $action ?></p> |
94 | 100 | </a> |
95 | | - <p><span><a class="link" href="http://americancensorship.org/modal/call-form-moz.html">CALL YOUR SENATOR AND ASK THEM TO VOTE "NO" FOR PIPA</a></span> |
| 101 | + <p><span><a class="link" href="http://americancensorship.org/modal/call-form-moz.html"><?php echo $actionmsg ?></a></span> |
96 | 102 | |
97 | | - <span> <a class="link" href="https://github.com/SaraJo/SOPA-PIPA-Protest-Page">JOIN US</a></p> |
| 103 | + <span> <a class="link" href="https://www.mediawiki.org/wiki/Extension:Blackout"><?php echo $join ?></a></p> |
98 | 104 | |
99 | 105 | <div> |
100 | 106 | </body> |
Index: trunk/extensions/Blackout/skins/SopaStrike.php |
— | — | @@ -12,15 +12,37 @@ |
13 | 13 | * to show the actual HTML output |
14 | 14 | */ |
15 | 15 | public function execute() { |
| 16 | + $title = wfMsg( 'blackout-sopastrike-title' ); |
| 17 | + $ogdesc = wfMsg( 'blackout-sopastrike-ogdesc' ); |
| 18 | + $message1 = wfMsg( 'blackout-sopastrike-message1' ); |
| 19 | + $message2 = wfMsg( 'blackout-sopastrike-message2' ); |
| 20 | + $message3 = wfMsg( 'blackout-sopastrike-message3' ); |
| 21 | + $name = wfMsg( 'allmessagesname' ); |
| 22 | + $email = wfMsg( 'email' ); |
| 23 | + $address = wfMsg( 'blackout-sopastrike-address' ); |
| 24 | + $zipcode = wfMsg( 'blackout-sopastrike-zipcode' ); |
| 25 | + $action = wfMsg( 'blackout-sopastrike-action' ); |
| 26 | + $actionmsg1 = wfMsg( 'blackout-sopastrike-actionmsg1' ); |
| 27 | + $actionmsg2 = wfMsg( 'blackout-sopastrike-actionmsg2' ); |
| 28 | + $join = wfMsg( 'blackout-sopastrike-join' ); |
| 29 | + $add = wfMsg( 'blackout-sopastrike-add' ); |
| 30 | + $learn = wfMsg( 'blackout-sopastrike-learn' ); |
| 31 | + $video = wfMsg( 'blackout-sopastrike-video' ); |
| 32 | + $orgpage = wfMsg( 'blackout-sopastrike-orgpage' ); |
| 33 | + $infographic = wfMsg( 'blackout-sopastrike-infographic' ); |
| 34 | + $ocsopa = wfMsg( 'blackout-sopastrike-ocsopa' ); |
| 35 | + $ocpipa = wfMsg( 'blackout-sopastrike-ocpipa' ); |
| 36 | + $disclaimer = wfMsg( 'blackout-sopastrike-disclaimer' ); |
| 37 | + $privacy = wfMsg( 'blackout-sopastrike-privacy' ); |
16 | 38 | ?> |
17 | 39 | |
18 | 40 | <!DOCTYPE html> |
19 | 41 | <html> |
20 | 42 | <head> |
21 | 43 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
22 | | - <title>Strike Against SOPA & PIPA</title> |
23 | | - <meta property="og:title" content="Strike Against Sopa!"> |
24 | | - <meta property="og:description" content="Internet goes on strike — blackout everywhere. On Wed Jan 18, many of your favorites sites will be unavailable to you to stop web censorship. Call your congressperson today."> |
| 44 | + <title><?php echo $title ?></title> |
| 45 | + <meta property="og:title" content="<?php echo $title ?>"> |
| 46 | + <meta property="og:description" content="<?php echo $ogdesc ?>"> |
25 | 47 | <meta property="og:image" content="http://sopastrike.com/images/newspaper-folded.jpg"> |
26 | 48 | <meta property="og:url" content="http://sopastrike.com/strike"> |
27 | 49 | <link rel="stylesheet" type="text/css" href="http://sopastrike.com/strike/strike.css"> |
— | — | @@ -32,34 +54,33 @@ |
33 | 55 | <div id="strike-wrapper"> |
34 | 56 | <div> |
35 | 57 | <img src="http://sopastrike.com/strike/strike-paper.jpg" width="570" height="350" id="paper"> |
36 | | - <h1>Today, we are striking against censorship. <strong>Join us in this historic moment:</strong> tell Congress to stop this bill now!</h1> |
| 58 | + <h1><?php echo $message1 ?> <strong><?php echo $message2 ?></strong> <?php echo $message3 ?></h1> |
37 | 59 | </div> |
38 | 60 | <form action="http://act.fightforthefuture.org/page/s/sopa-strike-modal" method="post"> |
39 | 61 | <div id="info"> |
40 | | - <input size="16" id="firstname" name="firstname" type="text" placeholder="Name"> |
41 | | - <input type="email" class="text" size="48" id="email" name="email" placeholder="Email"> |
42 | | - |
43 | | - <input size="48" id="addr1" name="addr1" type="text" placeholder="Address"> |
44 | | - <input size="5" id="zip" name="zip" type="text" placeholder="Zipcode"> |
45 | | - <button type="submit"><span>Write Congress Now!</span></button> |
| 62 | + <input size="16" id="firstname" name="firstname" type="text" placeholder="<?php echo $name ?>"> |
| 63 | + <input type="email" class="text" size="48" id="email" name="email" placeholder="<?php echo $email ?>"> |
| 64 | + <input size="48" id="addr1" name="addr1" type="text" placeholder="<?php echo $address ?>"> |
| 65 | + <input size="5" id="zip" name="zip" type="text" placeholder="<?php echo $zipcode ?>"> |
| 66 | + <button type="submit"><span><?php echo $action ?></span></button> |
46 | 67 | </div> |
47 | 68 | <div id="letter"> |
48 | | - <textarea id="custom-285" name="custom-285">I am writing to you as a voter in your district. I urge you to oppose the Senate version of S. 968, the PROTECT IP Act. The PROTECT IP Act is dangerous, ineffective, and short-sighted. The House version -- just introduced by Rep. Goodlatte -- is far worse. |
| 69 | + <textarea id="custom-285" name="custom-285"><?php echo $actionmsg1 ?> |
49 | 70 | |
50 | | - Over coming days you'll be hearing from the many businesses, advocacy organizations, and ordinary Americans who oppose this legislation because of the myriad ways in which it will stifle free speech and innovation. We hope you'll take our concerns to heart and oppose this legislation. |
| 71 | + <?php echo $actionmsg2 ?> |
51 | 72 | </textarea> |
52 | 73 | </div> |
53 | 74 | |
54 | 75 | </form> |
55 | 76 | |
56 | | - <h1><a href="http://sopastrike.com/">Join The Strike!</a> and <a href="https://www.mediawiki.org/wiki/Extension:Blackout">add this to your site</a></h1> |
57 | | - <p><strong>Learn More:</strong> |
58 | | - <a href="http://fightforthefuture.org/pipa">Watch the video</a> · |
59 | | - <a href="http://americancensorship.org/">American Censorship page</a> · |
60 | | - <a href="http://americancensorship.org/infographic.html">View the Infographic</a> <br> |
61 | | - <a href="http://www.opencongress.org/bill/112-h3261/show">Read SOPA on OpenCongress</a> · |
62 | | - <a href="http://www.opencongress.org/bill/112-s968/show">Read PIPA on OpenCongress</a> |
63 | | - <p>Fight For The Future may contact you about future campaigns. <br>We will never share your email with anyone. <a href="http://fightforthefuture.org/privacy">Privacy Policy</a></p> |
| 77 | + <h1><a href="http://sopastrike.com/"><?php echo $join ?></a> & <a href="https://www.mediawiki.org/wiki/Extension:Blackout"><?php echo $add ?></a></h1> |
| 78 | + <p><strong><?php echo $learn ?></strong> |
| 79 | + <a href="http://fightforthefuture.org/pipa"><?php echo $video ?></a> · |
| 80 | + <a href="http://americancensorship.org/"><?php echo $orgpage ?></a> · |
| 81 | + <a href="http://americancensorship.org/infographic.html"><?php echo $infographic ?></a> <br> |
| 82 | + <a href="http://www.opencongress.org/bill/112-h3261/show"><?php echo $ocsopa ?></a> · |
| 83 | + <a href="http://www.opencongress.org/bill/112-s968/show"><?php echo $ocpipa ?></a> |
| 84 | + <p><?php echo $disclaimer ?> <a href="http://fightforthefuture.org/privacy"><?php echo $privacy ?></a><br/> </p> |
64 | 85 | </div> |
65 | 86 | </body> |
66 | 87 | </html> |
Index: trunk/extensions/Blackout/skins/StopSopa.php |
— | — | @@ -12,6 +12,8 @@ |
13 | 13 | * to show the actual HTML output |
14 | 14 | */ |
15 | 15 | public function execute() { |
| 16 | + $header = wfMsgExt( 'blackout-stopsopa-header' ); |
| 17 | + $message = wfMsgExt( 'blackout-stopsopa-message' ); |
16 | 18 | ?> |
17 | 19 | |
18 | 20 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
— | — | @@ -21,7 +23,7 @@ |
22 | 24 | |
23 | 25 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
24 | 26 | |
25 | | - <title>STOP SOPA!</title> |
| 27 | + <title><?php echo $header ?></title> |
26 | 28 | |
27 | 29 | <style type="text/css" media="all"> |
28 | 30 | html, |
— | — | @@ -143,12 +145,12 @@ |
144 | 146 | |
145 | 147 | <div id="text-shadow-box"> |
146 | 148 | <div id="tsb-box"></div> |
147 | | - <p id="tsb-text">STOP SOPA!</p> |
148 | | - <p id="tsb-link"><a href="http://americancensorship.org/">STOP SOPA!</a></p> |
| 149 | + <p id="tsb-text"><?php $header ?></p> |
| 150 | + <p id="tsb-link"><a href="http://americancensorship.org/"><?php echo $header ?></a></p> |
149 | 151 | <div id="tsb-wall"> |
150 | 152 | <div id="tsb-ie"></div> |
151 | 153 | |
152 | | - <p>This site has gone dark today in protest of the U.S. Stop Online Piracy Act (SOPA) and PROTECT-IP Act (PIPA). The U.S. Congress is about to censor the Internet, even though the vast majority of Americans are opposed. We need to kill these bills to protect our rights to free speech, privacy, and prosperity. Learn more at <a href="http://americancensorship.org/">AmericanCensorship.org</a></p> |
| 154 | + <p><?php echo $message ?> <a href="http://americancensorship.org/">AmericanCensorship.org</a></p> |
153 | 155 | </div> |
154 | 156 | <div id="tsb-spot"></div> |
155 | 157 | </div> |
Index: trunk/extensions/Blackout/Blackout.i18n.php |
— | — | @@ -0,0 +1,57 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Internationalisation file for extension Blackout |
| 5 | + * |
| 6 | + * @addtogroup Extensions |
| 7 | + * @license GPL |
| 8 | + */ |
| 9 | + |
| 10 | +$messages = array(); |
| 11 | + |
| 12 | +/** English |
| 13 | + * @author Gregory Varnum |
| 14 | + */ |
| 15 | +$messages['en'] = array( |
| 16 | + 'blackout-desc' => 'For use during blackouts in protest to SOPA/PIPA and Internet censorship', |
| 17 | + 'blackout-stopsopa-header' => 'STOP SOPA!', |
| 18 | + 'blackout-stopsopa-message' => 'This site has gone dark today in protest of the U.S. Stop Online Piracy Act (SOPA) and PROTECT-IP Act (PIPA). The U.S. Congress is about to censor the Internet, even though the vast majority of Americans are opposed. We need to kill these bills to protect our rights to free speech, privacy, and prosperity. Learn more at', |
| 19 | + 'blackout-protestsopa-header' => 'SAVE THE INTERNET.', |
| 20 | + 'blackout-protestsopa-message1' => 'This site has been taken down in protest of bills currently being considered in the US House and Senate. Called', |
| 21 | + 'blackout-protestsopa-message2' => 'these bills threaten to destroy the Internet as we know it.', |
| 22 | + 'blackout-protestsopa-message3' => 'If either one passes, your favorite sites could disappear forever.', |
| 23 | + 'blackout-protestsopa-action' => 'ACT NOW.', |
| 24 | + 'blackout-protestsopa-actionmsg' => 'CALL YOUR SENATOR AND ASK THEM TO VOTE "NO" FOR PIPA', |
| 25 | + 'blackout-protestsopa-join' => 'JOIN US', |
| 26 | + 'blackout-sopastrike-title' => 'Strike Against SOPA and PIPA!', |
| 27 | + 'blackout-sopastrike-ogdesc' => 'Internet goes on strike — blackout everywhere. Today, many of your favorite sites will be unavailable to you in an effort to stop web censorship. Call your congressperson today.', |
| 28 | + 'blackout-sopastrike-message1' => 'Today, we are striking against censorship.', |
| 29 | + 'blackout-sopastrike-message2' => 'Join us in this historic moment:', |
| 30 | + 'blackout-sopastrike-message3' => 'tell Congress to stop this bill now!', |
| 31 | + 'blackout-sopastrike-address' => 'Address', |
| 32 | + 'blackout-sopastrike-zipcode' => 'Zip code', |
| 33 | + 'blackout-sopastrike-action' => 'Write Congress Now!', |
| 34 | + 'blackout-sopastrike-actionmsg1' => 'I am writing to you as a voter in your district. I urge you to oppose the Senate version of S. 968, the PROTECT IP Act. The PROTECT IP Act is dangerous, ineffective, and short-sighted. The House version -- just introduced by Rep. Goodlatte -- is far worse.', |
| 35 | + 'blackout-sopastrike-actionmsg2' => 'Over coming days you will be hearing from the many businesses, advocacy organizations, and ordinary Americans who oppose this legislation because of the myriad ways in which it will stifle free speech and innovation. We hope you will take our concerns to heart and oppose this legislation.', |
| 36 | + 'blackout-sopastrike-join' => 'Join The Strike!', |
| 37 | + 'blackout-sopastrike-add' => 'add this to your site', |
| 38 | + 'blackout-sopastrike-learn' => 'Learn More:', |
| 39 | + 'blackout-sopastrike-video' => 'Watch the video', |
| 40 | + 'blackout-sopastrike-orgpage' => 'American Censorship page', |
| 41 | + 'blackout-sopastrike-infographic' => 'View the Infographic', |
| 42 | + 'blackout-sopastrike-ocsopa' => 'Read SOPA on OpenCongress', |
| 43 | + 'blackout-sopastrike-ocpipa' => 'Read PIPA on OpenCongress', |
| 44 | + 'blackout-sopastrike-disclaimer' => 'Fight For The Future may contact you about future campaigns. We will never share your email with anyone.', |
| 45 | + 'blackout-sopastrike-privacy' => 'Privacy Policy', |
| 46 | + |
| 47 | + |
| 48 | +); |
| 49 | + |
| 50 | +/** Message documentation (Message documentation) |
| 51 | + * @author Gregory Varnum |
| 52 | + */ |
| 53 | +$messages['qqq'] = array( |
| 54 | + 'blackout-desc' => '{{desc}}', |
| 55 | + 'blackout-stopsopa-header' => 'Header used on StopSopa skin', |
| 56 | + 'blackout-stopsopa-message' => 'Message used on StopSopa skin', |
| 57 | +); |
| 58 | + |
Property changes on: trunk/extensions/Blackout/Blackout.i18n.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 59 | + native |
Index: trunk/extensions/Blackout/Blackout.php |
— | — | @@ -5,10 +5,11 @@ |
6 | 6 | * https://www.mediawiki.org/wiki/Extension:Blackout |
7 | 7 | * |
8 | 8 | * @addtogroup Extensions |
9 | | - * @author Gregory Varnum utilizing work by jorm and MediaWiki developers for the Wikimedia Foundation's SOPA/PIPA protest |
| 9 | + * @author John Du Hart and Gregory Varnum utilizing work by jorm and MediaWiki developers for the Wikimedia Foundation's SOPA/PIPA protest |
10 | 10 | * @license GPL |
11 | 11 | * |
12 | 12 | * Thank you to *** for feedback, bug reporting and cleaning up code |
| 13 | + * Thank you to Raymond and others mentioned in TweetANew.i18n.php for translation work |
13 | 14 | * |
14 | 15 | */ |
15 | 16 | |
— | — | @@ -32,7 +33,7 @@ |
33 | 34 | * $wgBlackout['Skin'] |
34 | 35 | * - Change the blackout skin |
35 | 36 | * * ProtestSopa (Default) |
36 | | - * * SopStrike |
| 37 | + * * SopaStrike |
37 | 38 | * * StopSopa |
38 | 39 | * |
39 | 40 | * $wgBlackout['Whitelist'][] |
— | — | @@ -56,6 +57,7 @@ |
57 | 58 | $dir = dirname(__FILE__) . '/'; |
58 | 59 | |
59 | 60 | $wgAutoloadClasses['Blackout'] = $dir . 'Blackout.body.php'; |
| 61 | +$wgExtensionMessagesFiles['Blackout'] = $dir . 'Blackout.i18n.php'; |
60 | 62 | |
61 | 63 | $skinDir = $dir . 'skins/'; |
62 | 64 | $wgAutoloadClasses['SkinProtestSopa'] = $skinDir . 'ProtestSopa.php'; |
— | — | @@ -67,9 +69,9 @@ |
68 | 70 | */ |
69 | 71 | $wgExtensionCredits['other'][] = array( |
70 | 72 | 'name' => 'Blackout', |
71 | | - 'version' => '1.0.20120117', |
72 | | - 'author' => array('[https://www.mediawiki.org/wiki/User:Varnent Gregory Varnum]', 'John Du Hart', '...'), |
73 | | - 'description' => 'For use during blackouts in protest to SOPA/PIPA and Internet censorship.', |
| 73 | + 'version' => '1.0.20120118', |
| 74 | + 'author' => array('[https://www.mediawiki.org/wiki/User:Johnduhart John Du Hart]', '[https://www.mediawiki.org/wiki/User:Varnent Gregory Varnum]', '...'), |
| 75 | + 'descriptionmsg' => 'blackout-desc', |
74 | 76 | 'url' => 'https://www.mediawiki.org/wiki/Extension:Blackout', |
75 | 77 | ); |
76 | 78 | |