mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
string changes
This commit is contained in:
parent
501aa41609
commit
437ca3bec2
@ -203,8 +203,10 @@ class MainWindow(QMainWindow):
|
|||||||
|
|
||||||
path_map = {x['path']: x for x in p}
|
path_map = {x['path']: x for x in p}
|
||||||
is_folder = fname and os.path.isdir(fname)
|
is_folder = fname and os.path.isdir(fname)
|
||||||
w = _('folder') if is_folder else _('file')
|
if is_folder:
|
||||||
dmsg = _('Could not open the {0}: "{1}". It is already opened in the following programs:').format(w, fname) + '<div>'
|
dmsg = _('Could not open the folder: "{}". It is already opened in the following programs:').format(fname)
|
||||||
|
else:
|
||||||
|
dmsg = _('Could not open the file: "{}". It is already opened in the following programs:').format(fname)
|
||||||
for path, x in path_map.items():
|
for path, x in path_map.items():
|
||||||
dmsg += '<div>' + prepare_string_for_xml(f'{x["app_name"]}: {path}')
|
dmsg += '<div>' + prepare_string_for_xml(f'{x["app_name"]}: {path}')
|
||||||
msg = prepare_string_for_xml(msg)
|
msg = prepare_string_for_xml(msg)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user