From ab7f10ea52bb40e1c037f78717b5aa8b97a3b805 Mon Sep 17 00:00:00 2001 From: Ruben D Date: Thu, 22 Mar 2018 00:20:10 +0100 Subject: [PATCH] Make model checker warning easier to translate It's often more clear to have a variable name in there so that the translator knows what'll be filled in for the variable. Contributes to issue CURA-4557. --- plugins/ModelChecker/ModelChecker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/ModelChecker/ModelChecker.py b/plugins/ModelChecker/ModelChecker.py index 229eff1c7f..8557fb8380 100644 --- a/plugins/ModelChecker/ModelChecker.py +++ b/plugins/ModelChecker/ModelChecker.py @@ -64,11 +64,11 @@ class ModelChecker(QObject, Extension): def showWarningMessage(self, warning_nodes): caution_message = Message(catalog.i18nc( "@info:status", - "Some models may not be printed optimal due to object size and chosen material [%s].\n" + "Some models may not be printed optimal due to object size and chosen material for models: {model_names}.\n" "Tips that may be useful to improve the print quality:\n" "1) Use rounded corners\n" "2) Turn the fan off (only if the are no tiny details on the model)\n" - "3) Use a different material") % ", ".join([n.getName() for n in warning_nodes]), + "3) Use a different material").format(model_names = ", ".join([n.getName() for n in warning_nodes])), lifetime = 0, title = catalog.i18nc("@info:title", "Model Checker Warning")) caution_message.show()