r75867 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r75866‎ | r75867 | r75868 >
Date:19:22, 2 November 2010
Author:raymond
Status:ok
Tags:
Comment:
First round of i18n tweaks for consistency
Modified paths:
  • /trunk/extensions/WikiSync/WikiSync.alias.php (modified) (history)
  • /trunk/extensions/WikiSync/WikiSync_i18n.php (modified) (history)

Diff [purge]

Index: trunk/extensions/WikiSync/WikiSync_i18n.php
@@ -11,7 +11,7 @@
1212 */
1313 $messages['en'] = array(
1414 'wikisync' => 'Wiki synchronization',
15 - 'wikisync-desc' => 'Provides a [[Special:WikiSync|special page]] to synchronize recent changes of two wikis - local one and remote one.',
 15+ 'wikisync-desc' => 'Provides a [[Special:WikiSync|special page]] to synchronize recent changes of two wikis - local one and remote one',
1616 'wikisync_direction' => 'Please choose the direction of synchronization',
1717 'wikisync_local_root' => 'Local wiki site root',
1818 'wikisync_remote_root' => 'Remote wiki site root',
@@ -19,7 +19,7 @@
2020 'wikisync_clear_log' => 'Clear log',
2121 'wikisync_login_to_remote_wiki' => 'Login to remote wiki',
2222 'wikisync_remote_wiki_root' => 'Remote wiki root',
23 - 'wikisync_remote_wiki_example' => 'path to api.php, for example: http://www.mediawiki.org/w',
 23+ 'wikisync_remote_wiki_example' => 'Path to api.php, for example: http://www.mediawiki.org/w',
2424 'wikisync_remote_wiki_user' => 'Remote wiki user name',
2525 'wikisync_remote_wiki_pass' => 'Remote wiki password',
2626 'wikisync_remote_login_button' => 'Log in',
@@ -29,25 +29,37 @@
3030 'wikisync_log_uploaded_by' => 'Uploaded by [[Special:WikiSync]]',
3131 'wikisync_api_result_unknown_action' => 'Unknown API action',
3232 'wikisync_api_result_exception' => 'Exception occured in local API call',
33 - 'wikisync_api_result_noaccess' => 'Only members of the following groups can perform this action: ($1)',
 33+ 'wikisync_api_result_noaccess' => 'Only members of the following groups can perform this action: $1',
3434 'wikisync_api_result_invalid_parameter' => 'Invalid value of parameter',
3535 'wikisync_api_result_http' => 'HTTP error while querying data from remote API',
3636 'wikisync_api_result_Unsupported' => 'Your version of MediaWiki is unsupported (less than 1.15)',
37 - 'wikisync_api_result_NoName' => 'You didn\'t set the lgname parameter',
 37+ 'wikisync_api_result_NoName' => 'You did not set the lgname parameter',
3838 'wikisync_api_result_Illegal' => 'You provided an illegal username',
39 - 'wikisync_api_result_NotExists' => 'The username you provided doesn\'t exist',
40 - 'wikisync_api_result_EmptyPass' => 'You didn\'t set the lgpassword parameter or you left it empty',
 39+ 'wikisync_api_result_NotExists' => 'The username you provided does not exist',
 40+ 'wikisync_api_result_EmptyPass' => 'You did not set the lgpassword parameter or you left it empty',
4141 'wikisync_api_result_WrongPass' => 'The password you provided is incorrect',
4242 'wikisync_api_result_WrongPluginPass' => 'Same as WrongPass, returned when an authentication plugin rather than MediaWiki itself rejected the password',
4343 'wikisync_api_result_CreateBlocked' => 'The wiki tried to automatically create a new account for you, but your IP address has been blocked from account creation',
44 - 'wikisync_api_result_Throttled' => 'You\'ve logged in too many times in a short time.',
 44+ 'wikisync_api_result_Throttled' => 'You have logged in too many times in a short time.',
4545 'wikisync_api_result_Blocked' => 'User is blocked',
4646 'wikisync_api_result_mustbeposted' => 'The login module requires a POST request',
4747 'wikisync_api_result_NeedToken' => 'Either you did not provide the login token or the sessionid cookie. Request again with the token and cookie given in this response',
48 - 'wikisync_api_result_no_import_rights' => 'This user is not allowed to import xml dump files',
 48+ 'wikisync_api_result_no_import_rights' => 'This user is not allowed to import XML dump files',
4949 'wikisync_api_result_Success' => 'Successfully logged into remote wiki site',
50 - 'wikisync_js_last_op_error' => "Last operation returned an error\nCode: $1\nMsg: $2\nPress [OK] to retry last operation",
51 - 'wikisync_js_synchronization_confirmation' => "Are you sure you want to synchronize\nfrom $1\nto $2\nstarting from revision $3?",
 50+ 'wikisync_js_last_op_error' => 'Last operation returned an error.
 51+
 52+Code: $1
 53+
 54+Message: $2
 55+
 56+Press [OK] to retry last operation',
 57+ 'wikisync_js_synchronization_confirmation' => 'Are you sure you want to synchronize
 58+
 59+from $1
 60+
 61+to $2
 62+
 63+starting from revision $3?',
5264 'wikisync_js_synchronization_success' => 'Synchronization was completed successfully',
5365 'wikisync_js_already_synchronized' => 'Source and destination wikis seems to be already synchronized',
5466 'wikisync_js_sync_to_itself' => 'You cannot synchronize the wiki to itself',
Index: trunk/extensions/WikiSync/WikiSync.alias.php
@@ -6,10 +6,14 @@
77 * @ingroup Extensions
88 */
99
10 -$aliases = array();
 10+$specialPageAliases = array();
1111
1212 /** English */
13 -$aliases['en'] = array(
 13+$specialPageAliases['en'] = array(
1414 'WikiSync' => array( 'WikiSync' ),
1515 );
1616
 17+/**
 18+ * For backwards compatibility with MediaWiki 1.15 and earlier.
 19+ */
 20+$aliases =& $specialPageAliases;

Status & tagging log