1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 14:11:29 +00:00

Update translatable strings: use named placeholders

This commit is contained in:
dmiller
2025-05-20 15:25:12 +00:00
parent 3591d0d970
commit f84f4b9879
11 changed files with 143 additions and 136 deletions

View File

@@ -896,9 +896,12 @@ This scan has not been run yet. Start the scan with the "Scan" button first.'))
message_format=_("Can't save Zenmap configuration"),
# newline before path to help avoid weird line wrapping
secondary_text=_(
'An error occurred when saving to\n%s'
'\nThe error was: %s.'
) % (Path.user_config_file, config_parser.failed))
'An error occurred when saving to\n%(configfile)s'
'\nThe error was: %(error)s.'
) % {
configfile = Path.user_config_file,
error = config_parser.failed
})
alert.run()
alert.destroy()
@@ -943,9 +946,10 @@ This scan has not been run yet. Start the scan with the "Scan" button first.'))
d = HIGAlertDialog(parent=self,
message_format=_("Can't find documentation files"),
secondary_text=_("""\
There was an error loading the documentation file %s (%s). See the \
online documentation at %s.\
""") % (doc_path, str(e), APP_DOCUMENTATION_SITE))
There was an error loading the documentation file %(helpfile)s (%(error)s). See the \
online documentation at %(url)s.\
""") % {
helpfile = doc_path, error = str(e), url = APP_DOCUMENTATION_SITE})
d.run()
d.destroy()