Florianschmidtwelzow has uploaded a new change for review. https://gerrit.wikimedia.org/r/217901
Change subject: Change link target from histry to protection log ...................................................................... Change link target from histry to protection log When an user clicks the edit pencil and the page is protected, give a link with the protection log for this page as a target, instead of the history. Bug: T95305 Change-Id: Ia99afed0402e58fb8fcec64b3d2c9642cb8fb541 --- M i18n/en.json M i18n/qqq.json M includes/Resources.php M resources/mobile.editor/init.js 4 files changed, 7 insertions(+), 7 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend refs/changes/01/217901/1 diff --git a/i18n/en.json b/i18n/en.json index 15ac1bb..5e481ae 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -140,8 +140,8 @@ "mobile-frontend-editor-redlink-leave": "No, thanks.", "mobile-frontend-editor-redlink-explain": "This page has not yet been created on {{SITENAME}}.", "mobile-frontend-editor-redlink-create": "Create page", - "mobile-frontend-editor-showhistory": "Show history", - "mobile-frontend-editor-protected": "This page is protected. You can consult the history page to see wherther a reason was given or not.", + "mobile-frontend-editor-showprotectlog": "Show protection log", + "mobile-frontend-editor-protected": "This page is protected. You can consult the protection log to see whether a reason was given or not.", "mobile-frontend-enable-images": "Enable images on mobile site", "mobile-frontend-errorreport-button-label": "Report an error", "mobile-frontend-errorreport-error": "Error, feedback could not be posted.", diff --git a/i18n/qqq.json b/i18n/qqq.json index ed79d6b..c2414da 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -136,7 +136,7 @@ "mobile-frontend-editor-redlink-leave": "Used as a message for a link, that the user doesn't want to edit a page, that does not exist yet.\n{{Identical|No thanks}}", "mobile-frontend-editor-redlink-explain": "Question for the user, if he want to edit a page, which link he clicked and that does not exist yet, or not.", "mobile-frontend-editor-redlink-create": "Label for a create page button.\n{{Identical|Create page}}", - "mobile-frontend-editor-showhistory": "Label for a link redirect the user to the page history.", + "mobile-frontend-editor-showprotectlog": "Label for a link redirect the user to the protection log.", "mobile-frontend-editor-protected": "Message that appears when a user is unable to edit a page and clicks edit icon.", "mobile-frontend-enable-images": "Unused at this time.\n\nSee also:\n* {{msg-mw|Mobile-frontend-disable-images}}", "mobile-frontend-errorreport-button-label": "Label for button for submitting an error report. Keep this short.", diff --git a/includes/Resources.php b/includes/Resources.php index 2f677fe..9e61523 100644 --- a/includes/Resources.php +++ b/includes/Resources.php @@ -571,7 +571,7 @@ 'mobile-frontend-editor-redlink-leave', 'mobile-frontend-editor-redlink-explain' => array( 'parse' ), 'mobile-frontend-editor-protected', - 'mobile-frontend-editor-showhistory', + 'mobile-frontend-editor-showprotectlog', 'cancel', ), 'scripts' => array( diff --git a/resources/mobile.editor/init.js b/resources/mobile.editor/init.js index 77615a2..dd2c99d 100644 --- a/resources/mobile.editor/init.js +++ b/resources/mobile.editor/init.js @@ -304,12 +304,12 @@ * @ignore */ function disableEditor() { - var title = mw.Title.newFromText( mw.config.get( 'wgPageName' ) ), + var title = mw.Title.newFromText( 'Special:Log' ), drawerOptions = { progressiveButton: new Button( { progressive: true, - label: mw.msg( 'mobile-frontend-editor-showhistory' ), - href: title.getUrl( { action: 'history' } ) + label: mw.msg( 'mobile-frontend-editor-showprotectlog' ), + href: title.getUrl( { type: 'protect', page: mw.config.get( 'wgPageName' ) } ) } ).options, closeAnchor: new Anchor( { progressive: true, -- To view, visit https://gerrit.wikimedia.org/r/217901 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia99afed0402e58fb8fcec64b3d2c9642cb8fb541 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/MobileFrontend Gerrit-Branch: master Gerrit-Owner: Florianschmidtwelzow <florian.schmidt.wel...@t-online.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits