proper plurals for en_US
[quassel.git] / src / uisupport / multilineedit.cpp
index 874dce8..4c5759f 100644 (file)
@@ -637,11 +637,9 @@ void MultiLineEdit::on_returnPressed(const QString & text) {
       if(line.isEmpty())
         continue;
       addToHistory(line);
-    }
-    reset();
-    foreach(const QString &line, text.split('\n', QString::SkipEmptyParts)) {
       emit textEntered(line);
     }
+    reset();
     _tempHistory.clear();
   } else {
     emit noTextEntered();
@@ -660,7 +658,7 @@ void MultiLineEdit::on_textChanged() {
       clear();
 
       if(lines.count() >= 4) {
-        QString msg = tr("Do you really want to paste %n lines?", "", lines.count());
+        QString msg = tr("Do you really want to paste %n line(s)?", "", lines.count());
         msg += "<p>";
         for(int i = 0; i < 4; i++) {
           msg += Qt::escape(lines[i].left(40));