Index: trunk/extensions/WikiSync/WikiSync_i18n.php |
— | — | @@ -11,7 +11,7 @@ |
12 | 12 | */ |
13 | 13 | $messages['en'] = array( |
14 | 14 | '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', |
16 | 16 | 'wikisync_direction' => 'Please choose the direction of synchronization', |
17 | 17 | 'wikisync_local_root' => 'Local wiki site root', |
18 | 18 | 'wikisync_remote_root' => 'Remote wiki site root', |
— | — | @@ -19,7 +19,7 @@ |
20 | 20 | 'wikisync_clear_log' => 'Clear log', |
21 | 21 | 'wikisync_login_to_remote_wiki' => 'Login to remote wiki', |
22 | 22 | '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', |
24 | 24 | 'wikisync_remote_wiki_user' => 'Remote wiki user name', |
25 | 25 | 'wikisync_remote_wiki_pass' => 'Remote wiki password', |
26 | 26 | 'wikisync_remote_login_button' => 'Log in', |
— | — | @@ -29,25 +29,37 @@ |
30 | 30 | 'wikisync_log_uploaded_by' => 'Uploaded by [[Special:WikiSync]]', |
31 | 31 | 'wikisync_api_result_unknown_action' => 'Unknown API action', |
32 | 32 | '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', |
34 | 34 | 'wikisync_api_result_invalid_parameter' => 'Invalid value of parameter', |
35 | 35 | 'wikisync_api_result_http' => 'HTTP error while querying data from remote API', |
36 | 36 | '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', |
38 | 38 | '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', |
41 | 41 | 'wikisync_api_result_WrongPass' => 'The password you provided is incorrect', |
42 | 42 | 'wikisync_api_result_WrongPluginPass' => 'Same as WrongPass, returned when an authentication plugin rather than MediaWiki itself rejected the password', |
43 | 43 | '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.', |
45 | 45 | 'wikisync_api_result_Blocked' => 'User is blocked', |
46 | 46 | 'wikisync_api_result_mustbeposted' => 'The login module requires a POST request', |
47 | 47 | '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', |
49 | 49 | '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?', |
52 | 64 | 'wikisync_js_synchronization_success' => 'Synchronization was completed successfully', |
53 | 65 | 'wikisync_js_already_synchronized' => 'Source and destination wikis seems to be already synchronized', |
54 | 66 | 'wikisync_js_sync_to_itself' => 'You cannot synchronize the wiki to itself', |
Index: trunk/extensions/WikiSync/WikiSync.alias.php |
— | — | @@ -6,10 +6,14 @@ |
7 | 7 | * @ingroup Extensions |
8 | 8 | */ |
9 | 9 | |
10 | | -$aliases = array(); |
| 10 | +$specialPageAliases = array(); |
11 | 11 | |
12 | 12 | /** English */ |
13 | | -$aliases['en'] = array( |
| 13 | +$specialPageAliases['en'] = array( |
14 | 14 | 'WikiSync' => array( 'WikiSync' ), |
15 | 15 | ); |
16 | 16 | |
| 17 | +/** |
| 18 | + * For backwards compatibility with MediaWiki 1.15 and earlier. |
| 19 | + */ |
| 20 | +$aliases =& $specialPageAliases; |