r107560 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107559‎ | r107560 | r107561 >
Date:11:10, 29 December 2011
Author:raymond
Status:ok
Tags:
Comment:
r107557: Consistency tweaks in preparation for adding extension to translatewiki.net:
* i18n file:
** Remove access key text "[alt-e]" from messages. These vary by browsers and are inserted by a MediaWiki function
** article -> page
** Tabs -> spaces
* Extension credits:
** Add path
** Fix description message
Modified paths:
  • /trunk/extensions/TweetANew/TweetANew.i18n.php (modified) (history)
  • /trunk/extensions/TweetANew/TweetANew.php (modified) (history)

Diff [purge]

Index: trunk/extensions/TweetANew/TweetANew.i18n.php
@@ -12,22 +12,22 @@
1313 * @author Gregory Varnum
1414 */
1515 $messages['en'] = array(
16 - 'tweetanew-desc' => 'Tweets when an article is created or edited. Depending on preferences set for the entire wiki, either automatically or from the edit page.',
17 - 'tweetanew-accesskey' => 'e',
18 - 'tweetanew-newaction' => 'Tweet about this new article',
19 - 'tweetanew-newtooltip' => 'Send information about this new article to Twitter [alt-e]',
20 - 'tweetanew-editaction' => 'Tweet about this edit',
21 - 'tweetanew-edittooltip' => 'Send information about this edit to Twitter [alt-e]',
22 - 'tweetanew-minoredit' => 'm',
23 - 'tweetanew-authorcredit' => 'by',
24 - 'tweetanew-newdefault' => 'NEW ARTICLE: $1 - $2',
25 - 'tweetanew-new1' => 'Looks like $1 was created at $2',
26 - 'tweetanew-new2' => '$1 was recently created at $2',
27 - 'tweetanew-new3' => 'Check out $2 - it has a new article on $1',
28 - 'tweetanew-editdefault' => 'UPDATED ARTICLE: $1 - $2',
29 - 'tweetanew-edit1' => 'Looks like $1 was updated at $2',
30 - 'tweetanew-edit2' => '$1 was recently changed at $2',
31 - 'tweetanew-edit3' => 'Check out $2 - it has some new content on $1',
 16+ 'tweetanew-desc' => 'Tweets when an page is created or edited. Depending on preferences set for the entire wiki, either automatically or from the edit page.',
 17+ 'tweetanew-accesskey' => 'e',
 18+ 'tweetanew-newaction' => 'Tweet about this new page',
 19+ 'tweetanew-newtooltip' => 'Send information about this new page to Twitter',
 20+ 'tweetanew-editaction' => 'Tweet about this edit',
 21+ 'tweetanew-edittooltip' => 'Send information about this edit to Twitter',
 22+ 'tweetanew-minoredit' => 'm',
 23+ 'tweetanew-authorcredit' => 'by',
 24+ 'tweetanew-newdefault' => 'NEW PAGE: $1 - $2',
 25+ 'tweetanew-new1' => 'Looks like $1 was created at $2',
 26+ 'tweetanew-new2' => '$1 was recently created at $2',
 27+ 'tweetanew-new3' => 'Check out $2 - it has a new page on $1',
 28+ 'tweetanew-editdefault' => 'UPDATED PAGE: $1 - $2',
 29+ 'tweetanew-edit1' => 'Looks like $1 was updated at $2',
 30+ 'tweetanew-edit2' => '$1 was recently changed at $2',
 31+ 'tweetanew-edit3' => 'Check out $2 - it has some new content on $1',
3232 );
3333
3434 /** Message documentation (Message documentation)
@@ -36,34 +36,34 @@
3737 $messages['qqq'] = array(
3838 'tweetanew-desc' => '{{desc}}',
3939 'tweetanew-accesskey' => 'Access key used for option to tweet from editpage, if otherwise enabled',
40 - 'tweetanew-newaction' => 'Used in editpage as description for option to tweet, if auto-tweet is disabled for new articles',
41 - 'tweetanew-newtooltip' => 'Tooltip describing option to tweet about new article from edit page, if otherwise enabled',
 40+ 'tweetanew-newaction' => 'Used in editpage as description for option to tweet, if auto-tweet is disabled for new page',
 41+ 'tweetanew-newtooltip' => 'Tooltip describing option to tweet about new page from edit page, if otherwise enabled',
4242 'tweetanew-editaction' => 'Used in editpage as description for option to tweet, if auto-tweet is disabled for edits',
4343 'tweetanew-edittooltip' => 'Tooltip describing option to tweet about edit from edit page, if otherwise enabled',
4444 'tweetanew-minoredit' => 'Indicator used when edit is marked as minor, if minor edits are not already skipped - skip following indicator can be removed using MinorSpace setting',
45 - 'tweetanew-authorcredit' => 'Used to provide credit to author of edit or new article',
46 - 'tweetanew-newdefault' => 'Default tweet message used for new articles, if random messages are disabled. Parameters:
47 -* $1 is title of the new article
48 -* $2 is the final URL of the new article - shortened if a service is enabled via this extension',
49 - 'tweetanew-new1' => 'First random tweet message used for new articles, if random messages are enabled. Parameters:
50 -* $1 is title of the new article
51 -* $2 is the final URL of the new article - shortened if a service is enabled via this extension',
52 - 'tweetanew-new2' => 'Second random tweet message used for new articles, if random messages are enabled. Parameters:
53 -* $1 is title of the new article
54 -* $2 is the final URL of the new article - shortened if a service is enabled via this extension',
55 - 'tweetanew-new3' => 'Third random tweet message used for new articles, if random messages are enabled. Parameters:
56 -* $1 is title of the new article
57 -* $2 is the final URL of the new article - shortened if a service is enabled via this extension',
58 - 'tweetanew-editdefault' => 'Default tweet message used for edited articles, if random messages are disabled. Parameters:
59 -* $1 is title of the new article
60 -* $2 is the final URL of the new article - shortened if a service is enabled via this extension',
61 - 'tweetanew-edit1' => 'First random tweet message used for edited articles, if random messages are enabled. Parameters:
62 -* $1 is title of the new article
63 -* $2 is the final URL of the new article - shortened if a service is enabled via this extension',
64 - 'tweetanew-edit2' => 'Second random tweet message used for edited articles, if random messages are enabled. Parameters:
65 -* $1 is title of the new article
66 -* $2 is the final URL of the new article - shortened if a service is enabled via this extension',
67 - 'tweetanew-edit3' => 'Third random tweet message used for edited articles, if random messages are enabled. Parameters:
68 -* $1 is title of the new article
69 -* $2 is the final URL of the new article - shortened if a service is enabled via this extension',
70 -);
\ No newline at end of file
 45+ 'tweetanew-authorcredit' => 'Used to provide credit to author of edit or new page',
 46+ 'tweetanew-newdefault' => 'Default tweet message used for new page, if random messages are disabled. Parameters:
 47+* $1 is title of the new page
 48+* $2 is the final URL of the new page - shortened if a service is enabled via this extension',
 49+ 'tweetanew-new1' => 'First random tweet message used for new pages, if random messages are enabled. Parameters:
 50+* $1 is title of the new page
 51+* $2 is the final URL of the new page - shortened if a service is enabled via this extension',
 52+ 'tweetanew-new2' => 'Second random tweet message used for new pages, if random messages are enabled. Parameters:
 53+* $1 is title of the new page
 54+* $2 is the final URL of the new page - shortened if a service is enabled via this extension',
 55+ 'tweetanew-new3' => 'Third random tweet message used for new pages, if random messages are enabled. Parameters:
 56+* $1 is title of the new page
 57+* $2 is the final URL of the new page - shortened if a service is enabled via this extension',
 58+ 'tweetanew-editdefault' => 'Default tweet message used for edited pages, if random messages are disabled. Parameters:
 59+* $1 is title of the new page
 60+* $2 is the final URL of the new page - shortened if a service is enabled via this extension',
 61+ 'tweetanew-edit1' => 'First random tweet message used for edited pages, if random messages are enabled. Parameters:
 62+* $1 is title of the new page
 63+* $2 is the final URL of the new page - shortened if a service is enabled via this extension',
 64+ 'tweetanew-edit2' => 'Second random tweet message used for edited pages, if random messages are enabled. Parameters:
 65+* $1 is title of the new page
 66+* $2 is the final URL of the new page - shortened if a service is enabled via this extension',
 67+ 'tweetanew-edit3' => 'Third random tweet message used for edited pages, if random messages are enabled. Parameters:
 68+* $1 is title of the new page
 69+* $2 is the final URL of the new page - shortened if a service is enabled via this extension',
 70+);
Index: trunk/extensions/TweetANew/TweetANew.php
@@ -159,11 +159,12 @@
160160 *
161161 */
162162
163 - $wgExtensionCredits['other'][] = array(
 163+$wgExtensionCredits['other'][] = array(
 164+ 'path' => __FILE__,
164165 'name' => 'TweetANew',
165166 'version' => '1.0.20111228-experimental',
166167 'author' => '[https://www.mediawiki.org/wiki/User:Varnent Gregory Varnum] merging extensions by [https://www.mediawiki.org/wiki/User:Joa_ds Joachim De Schrijver], Andrew Fitzgerald, Wendell Gaudencio, and Rohit Keshwani',
167 - 'description' => 'Tweets when an article is created or edited. Depending on preferences set for the entire wiki, either automatically or from the edit page.',
 168+ 'descriptionmsg' => 'tweetanew-desc',
168169 'url' => 'https://www.mediawiki.org/wiki/Extension:TweetANew',
169170 );
170171

Follow-up revisions

RevisionCommit summaryAuthorDate
r107561r107560: Adding extension to translatewiki.netraymond11:14, 29 December 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r107557integrated features of SendToTwitter2 - specifically use of a checkbox when a...varnent10:14, 29 December 2011

Status & tagging log