diff confirmcommentdialog.cpp @ 155:edab92f3ea0b

* Add translation support -- useful for proper plural handling even in English
author Chris Cannam
date Thu, 02 Dec 2010 21:13:53 +0000
parents 1721c580c10e
children ef5feb0d648f
line wrap: on
line diff
--- a/confirmcommentdialog.cpp	Thu Dec 02 18:04:21 2010 +0000
+++ b/confirmcommentdialog.cpp	Thu Dec 02 21:13:53 2010 +0000
@@ -87,7 +87,7 @@
     if (files.size() <= 10) {
         text = buildFilesText(introText, files);
     } else {
-        text = "<qt>" + introTextWithCount.arg(files.size()) + "</qt>";
+        text = "<qt>" + introTextWithCount + "</qt>";
     }
     return (QMessageBox::information(parent,
                                      title,
@@ -107,7 +107,7 @@
     if (files.size() <= 10) {
         text = buildFilesText(introText, files);
     } else {
-        text = "<qt>" + introTextWithCount.arg(files.size()) + "</qt>";
+        text = "<qt>" + introTextWithCount + "</qt>";
     }
     return (QMessageBox::warning(parent,
                                  title,
@@ -151,7 +151,7 @@
     if (files.size() <= 10) {
         text = buildFilesText(introText, files);
     } else {
-        text = "<qt>" + introTextWithCount.arg(files.size());
+        text = "<qt>" + introTextWithCount;
     }
     text += tr("<p>Please enter your comment:</qt>");
     return confirmAndComment(parent, title, text, comment, longComment);