Make captions in credits translatable, too
authorWuzzy <Wuzzy2@mail.ru>
Thu, 13 Dec 2018 21:25:36 +0100
changeset 14435 5b5aff91cebb
parent 14434 e64b9ea24cd8
child 14436 6f6d9fe79830
Make captions in credits translatable, too
QTfrontend/ui/widget/about.cpp
--- a/QTfrontend/ui/widget/about.cpp	Thu Dec 13 21:19:17 2018 +0100
+++ b/QTfrontend/ui/widget/about.cpp	Thu Dec 13 21:25:36 2018 +0100
@@ -151,14 +151,14 @@
                 // section
                 if (!firstSection)
                     out = out + "</ul>\n";
-                out = out + "<h2>" + task + "</h2>\n<ul>\n";
+                out = out + "<h2>" + HWApplication::translate("credits", task.toLatin1().constData()) + "</h2>\n<ul>\n";
                 firstSection = false;
             }
             else if(type == "U")
             {
                 // subsection
                 out = out + "</ul>\n";
-                out = out + "<h3>" + task + "</h3>\n<ul>\n";
+                out = out + "<h3>" + HWApplication::translate("credits", task.toLatin1().constData()) + "</h3>\n<ul>\n";
             }
             else if(type == "M")
             {