mirror of https://github.com/gorhill/uBlock.git
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");
|
||||
|
||||
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() {
|
||||
var selectedRequest = panel.panelWin.NetMonitorView.RequestsMenu.selectedAttachment;
|
||||
if (selectedRequest) {
|
||||
|
|
|
@ -147,7 +147,7 @@
|
|||
"message":"Block element",
|
||||
"description":"English: Block element"
|
||||
},
|
||||
"netMonitorContextMenuEntry":{
|
||||
"netLoggerBlockResourcePrompt":{
|
||||
"message":"Block resource",
|
||||
"description":"English: Block resource"
|
||||
},
|
||||
|
|
|
@ -24,7 +24,7 @@ source_locale_dir = pj(build_dir, '_locales')
|
|||
target_locale_dir = pj(build_dir, 'locale')
|
||||
language_codes = []
|
||||
descriptions = OrderedDict({})
|
||||
title_case_strings = ['pickerContextMenuEntry', 'netMonitorContextMenuEntry']
|
||||
title_case_strings = ['pickerContextMenuEntry', 'netLoggerBlockResourcePrompt']
|
||||
|
||||
for alpha2 in sorted(os.listdir(source_locale_dir)):
|
||||
locale_path = pj(source_locale_dir, alpha2, 'messages.json')
|
||||
|
|
Loading…
Reference in New Issue