1
0
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:
Chris 2015-05-14 16:04:05 -06:00
parent 992af976d0
commit 73cec697ea
3 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -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"
}, },

View File

@ -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')