mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 13:11:28 +00:00
Un-localize things like 'IPv4', 'PDF', etc.
This commit is contained in:
@@ -81,7 +81,7 @@ SERVICE_COLORS = {'open': '#ffd5d5', # noqa
|
||||
'closed|filtered': '#d5ffd5'} # noqa
|
||||
UNKNOWN_SERVICE_COLOR = '#d5d5d5'
|
||||
|
||||
TRACE_HEADER = [_('TTL'), _('RTT'), _('IP'), _('Hostname')]
|
||||
TRACE_HEADER = ['TTL', 'RTT', 'IP', _('Hostname')]
|
||||
|
||||
TRACE_TEXT = _(
|
||||
"Traceroute on port <b>%s/%s</b> totalized <b>%d</b> known hops.")
|
||||
@@ -581,8 +581,8 @@ class SystemPage(BWScrolledWindow):
|
||||
table.attach(BWSectionLabel(_('Class')), 1, 2, 0, 1)
|
||||
table.attach(BWSectionLabel(_('Values')), 2, 3, 0, 1)
|
||||
|
||||
table.attach(BWSectionLabel(_('TCP *')), 0, 1, 1, 2)
|
||||
table.attach(BWSectionLabel(_('IP ID')), 0, 1, 2, 3)
|
||||
table.attach(BWSectionLabel('TCP *'), 0, 1, 1, 2)
|
||||
table.attach(BWSectionLabel('IP ID'), 0, 1, 2, 3)
|
||||
table.attach(BWSectionLabel(_('TCP Timestamp')), 0, 1, 3, 4)
|
||||
|
||||
tcp = sequences.get('tcp')
|
||||
|
||||
@@ -71,10 +71,10 @@ from zenmapGUI.higwidgets.higdialogs import HIGAlertDialog
|
||||
|
||||
|
||||
TYPES = ((_("By extension"), None, None),
|
||||
(_("PDF"), RadialNet.FILE_TYPE_PDF, ".pdf"),
|
||||
(_("PNG"), RadialNet.FILE_TYPE_PNG, ".png"),
|
||||
(_("PostScript"), RadialNet.FILE_TYPE_PS, ".ps"),
|
||||
(_("SVG"), RadialNet.FILE_TYPE_SVG, ".svg"))
|
||||
("PDF", RadialNet.FILE_TYPE_PDF, ".pdf"),
|
||||
("PNG", RadialNet.FILE_TYPE_PNG, ".png"),
|
||||
("PostScript", RadialNet.FILE_TYPE_PS, ".ps"),
|
||||
("SVG", RadialNet.FILE_TYPE_SVG, ".svg"))
|
||||
# Build a reverse index of extensions to file types, for the "By extension"
|
||||
# file type.
|
||||
EXTENSIONS = {}
|
||||
|
||||
@@ -354,7 +354,7 @@ class HostInfo(object):
|
||||
_("Unknown version")),
|
||||
"service_product": p.get("service_product", ""),
|
||||
"service_extrainfo": p.get("service_extrainfo", ""),
|
||||
"port_state": p.get("port_state", _("Unknown")),
|
||||
"port_state": p.get("port_state", _("unknown")),
|
||||
"protocol": p.get("protocol", "")
|
||||
})
|
||||
return services
|
||||
|
||||
@@ -250,13 +250,13 @@ class UmitCredits(HIGWindow):
|
||||
self.notebook.append_page(
|
||||
self.design_scroll, Gtk.Label.new(_("Design")))
|
||||
self.notebook.append_page(
|
||||
self.soc2007_scroll, Gtk.Label.new(_("SoC 2007")))
|
||||
self.soc2007_scroll, Gtk.Label.new("SoC 2007"))
|
||||
self.notebook.append_page(
|
||||
self.contributors_scroll, Gtk.Label.new(_("Contributors")))
|
||||
self.notebook.append_page(
|
||||
self.translation_scroll, Gtk.Label.new(_("Translation")))
|
||||
self.notebook.append_page(
|
||||
self.nokia_scroll, Gtk.Label.new(_("Maemo")))
|
||||
self.nokia_scroll, Gtk.Label.new("Maemo"))
|
||||
|
||||
self.written_by_scroll.add(self.written_by_text)
|
||||
self.written_by_text.set_wrap_mode(Gtk.WrapMode.NONE)
|
||||
|
||||
@@ -113,7 +113,7 @@ class NmapOutputProperties(HIGDialog):
|
||||
"80/tcp filtered http"],
|
||||
"date": [_("date"), "2006-05-26 11:14 BRT"],
|
||||
"hostname": [_("hostname"), "scanme.nmap.org"],
|
||||
"ip": [_("ip"), "127.0.0.1"]}
|
||||
"ip": ["ip", "127.0.0.1"]}
|
||||
|
||||
for p in self.property_names:
|
||||
settings = self.nmap_highlight.__getattribute__(p)
|
||||
|
||||
@@ -162,13 +162,13 @@ class HostDetails(HIGVBox):
|
||||
self.info_lastboot_label = HIGEntryLabel(na)
|
||||
|
||||
# Addresses expander
|
||||
self.ipv4_label = HIGEntryLabel(_('IPv4:'))
|
||||
self.ipv4_label = HIGEntryLabel('IPv4:')
|
||||
self.info_ipv4_label = HIGEntryLabel(na)
|
||||
|
||||
self.ipv6_label = HIGEntryLabel(_('IPv6:'))
|
||||
self.ipv6_label = HIGEntryLabel('IPv6:')
|
||||
self.info_ipv6_label = HIGEntryLabel(na)
|
||||
|
||||
self.mac_label = HIGEntryLabel(_('MAC:'))
|
||||
self.mac_label = HIGEntryLabel('MAC:')
|
||||
self.info_mac_label = HIGEntryLabel(na)
|
||||
|
||||
self.vendor_label = HIGEntryLabel(_('Vendor:'))
|
||||
|
||||
@@ -398,7 +398,7 @@ class HostOpenPorts(HIGVBox):
|
||||
p["host"].get_hostname(),
|
||||
int(p.get('portid', "0")),
|
||||
p.get('protocol', ""),
|
||||
p.get('port_state', _("Unknown")),
|
||||
p.get('port_state', _("unknown")),
|
||||
get_version_string(p)
|
||||
]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user