Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3536
HideRevision.php.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 9:31 PM
2014-11-21 21:31:46 (UTC+0)
Size
2 KB
Referenced Files
None
Subscribers
None
HideRevision.php.diff
View Options
*** HideRevision.php.old 2006-12-24 21:32:43.000000000 +0100
--- HideRevision.php 2006-12-24 21:47:38.000000000 +0100
***************
*** 49,102 ****
* Adds the special page for the action form.
*/
function hrSetup() {
$GLOBALS['wgHooks']['ArticleViewHeader'][] = 'hrArticleViewHeaderHook';
$GLOBALS['wgHooks']['DiffViewHeader'][] = 'hrDiffViewHeaderHook';
$GLOBALS['wgHooks']['UndeleteShowRevision'][] = 'hrUndeleteShowRevisionHook';
-
- $GLOBALS['wgMessageCache']->addMessages(
- array(
- 'hiderevision' => 'Permanently hide revisions',
-
- // Empty form
- 'hiderevision-prompt' => 'Revision number to remove:',
- 'hiderevision-continue' => 'Continue',
-
- // Confirmation form
- 'hiderevision-text' =>
- "This should '''only''' be used for the following cases:
- * Inappropriate personal information
- *: ''home addresses and telephone numbers, social security numbers, etc''
-
- '''Abuse of this system will result in loss of privileges.'''
-
- Removed items will not be visible to anyone through the web site,
- but the deletions are logged and can be restored manually by a
- database administrator if you make a mistake.",
- 'hiderevision-reason' => 'Reason (will be logged privately):',
- 'hiderevision-submit' => 'Hide this data permanently',
-
- // Tab displayed to allowed users on old revision display
- 'hiderevision-tab' => 'Hide revision',
-
- // Status & errors on action
- 'hiderevision-norevisions' => 'No revisions specified to delete.',
- 'hiderevision-noreason' => 'You must decribe the reason for this removal.',
-
- 'hiderevision-status' => 'Revision $1: $2',
- 'hiderevision-success' => 'Archived and deleted successfully.',
- 'hiderevision-error-missing' => 'Not found in database.',
- 'hiderevision-error-current' => 'Cannot delete the latest edit to a page. Revert this change first.',
- 'hiderevision-error-delete' => 'Could not archive; was it previously deleted?',
-
- 'hiderevision-archive-status' => 'Deleted revision from $1: $2',
-
- // Logging
- 'oversight-log-hiderev' => 'removed an edit from $1',
-
- // Oversight review page
- 'oversight' => 'Oversight',
- 'oversight-view' => 'details',
- ) );
}
--- 49,64 ----
* Adds the special page for the action form.
*/
function hrSetup() {
+
+ /*Traduction)*/
+ global $wgMessageCache, $wgHideRevisionMessages ;
+ require_once( 'HideRevision.i18n.php');
+ foreach( $wgHideRevisionMessages as $key => $value ) {
+ $wgMessageCache->addMessages( $wgHideRevisionMessages[$key], $key );}
+
$GLOBALS['wgHooks']['ArticleViewHeader'][] = 'hrArticleViewHeaderHook';
$GLOBALS['wgHooks']['DiffViewHeader'][] = 'hrDiffViewHeaderHook';
$GLOBALS['wgHooks']['UndeleteShowRevision'][] = 'hrUndeleteShowRevisionHook';
}
File Metadata
Details
Attached
Mime Type
text/x-python
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3103
Default Alt Text
HideRevision.php.diff (2 KB)
Attached To
Mode
T10371: French translations for Oversight extension
Attached
Detach File
Event Timeline
Log In to Comment