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");
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) {

View File

@ -147,7 +147,7 @@
"message":"Block element",
"description":"English: Block element"
},
"netMonitorContextMenuEntry":{
"netLoggerBlockResourcePrompt":{
"message":"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')
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')