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:
Pino Toscano 2020-01-06 14:29:00 +01:00 committed by Cole Robinson
parent 637781fca2
commit b1b9e4b688

View File

@ -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],