mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-16 23:42:39 +01:00
Rename 'Block Resource' i18n key (prepping to add it to request logger)
This commit is contained in:
parent
992af976d0
commit
73cec697ea
@ -2037,7 +2037,7 @@ vAPI.contextMenu.registerForNetMonitor = function(eventName, toolbox, panel) {
|
|||||||
var insertBeforeMenuItem = doc.getElementById("request-menu-context-separator");
|
var insertBeforeMenuItem = doc.getElementById("request-menu-context-separator");
|
||||||
|
|
||||||
if (menuPopup && insertBeforeMenuItem) {
|
if (menuPopup && insertBeforeMenuItem) {
|
||||||
var menuitem = vAPI.contextMenu.createContextMenuItem(doc, vAPI.i18n('netMonitorContextMenuEntry'));
|
var menuitem = vAPI.contextMenu.createContextMenuItem(doc, vAPI.i18n('netLoggerBlockResourcePrompt'));
|
||||||
menuitem.addEventListener('command', function() {
|
menuitem.addEventListener('command', function() {
|
||||||
var selectedRequest = panel.panelWin.NetMonitorView.RequestsMenu.selectedAttachment;
|
var selectedRequest = panel.panelWin.NetMonitorView.RequestsMenu.selectedAttachment;
|
||||||
if (selectedRequest) {
|
if (selectedRequest) {
|
||||||
|
@ -147,7 +147,7 @@
|
|||||||
"message":"Block element",
|
"message":"Block element",
|
||||||
"description":"English: Block element"
|
"description":"English: Block element"
|
||||||
},
|
},
|
||||||
"netMonitorContextMenuEntry":{
|
"netLoggerBlockResourcePrompt":{
|
||||||
"message":"Block resource",
|
"message":"Block resource",
|
||||||
"description":"English: Block resource"
|
"description":"English: Block resource"
|
||||||
},
|
},
|
||||||
|
@ -24,7 +24,7 @@ source_locale_dir = pj(build_dir, '_locales')
|
|||||||
target_locale_dir = pj(build_dir, 'locale')
|
target_locale_dir = pj(build_dir, 'locale')
|
||||||
language_codes = []
|
language_codes = []
|
||||||
descriptions = OrderedDict({})
|
descriptions = OrderedDict({})
|
||||||
title_case_strings = ['pickerContextMenuEntry', 'netMonitorContextMenuEntry']
|
title_case_strings = ['pickerContextMenuEntry', 'netLoggerBlockResourcePrompt']
|
||||||
|
|
||||||
for alpha2 in sorted(os.listdir(source_locale_dir)):
|
for alpha2 in sorted(os.listdir(source_locale_dir)):
|
||||||
locale_path = pj(source_locale_dir, alpha2, 'messages.json')
|
locale_path = pj(source_locale_dir, alpha2, 'messages.json')
|
||||||
|
Loading…
Reference in New Issue
Block a user