mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-03-12 20:58:28 +03:00
Avoid string puzzle
Do not join two parts of sentences together, because it is problematic to translate. Instead, use a different sentence depending on the condition. Fixes commit d52c9d1ffa2d8c204fbb2a714f89b007fa6227ec. Reviewed-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Pino Toscano <ptoscano@redhat.com>
This commit is contained in:
parent
637781fca2
commit
b1b9e4b688
@ -187,11 +187,13 @@ class vmmDeleteDialog(vmmGObjectUI):
|
||||
if self.disk:
|
||||
title = _("Deleting the selected storage")
|
||||
text = _('%s') % self.disk.target
|
||||
elif devs:
|
||||
title = _("Deleting virtual machine '%s' and selected storage "
|
||||
"(this may take a while)") % self.vm.get_name()
|
||||
text = title
|
||||
else:
|
||||
title = _("Deleting virtual machine '%s'") % self.vm.get_name()
|
||||
text = title
|
||||
if devs:
|
||||
text = title + _(" and selected storage (this may take a while)")
|
||||
|
||||
|
||||
progWin = vmmAsyncJob(self._async_delete, [self.vm, devs],
|
||||
|
Loading…
x
Reference in New Issue
Block a user