From 2c9ea8dd8a766c1518d2d09e711bde3d7e52270e Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 1 May 2009 01:44:22 +0200 Subject: i18n plural bugs. Courtesy patch of Kristol Baf --- src/history.cpp | 2 +- src/mainview.cpp | 2 +- src/mainwindow.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/history.cpp b/src/history.cpp index ee21a8f2..afcb477a 100644 --- a/src/history.cpp +++ b/src/history.cpp @@ -1177,7 +1177,7 @@ QVariant HistoryTreeModel::data(const QModelIndex &index, int role) const } if (index.column() == 1) { - return QString::number(rowCount(index.sibling(index.row(), 0))) + i18n(" items") ; + return i18np("1 item", "%1 items", rowCount(index.sibling(index.row(), 0))); } } } diff --git a/src/mainview.cpp b/src/mainview.cpp index 274d15de..bb016872 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -340,7 +340,7 @@ WebView *MainView::newWebView(bool makeCurrent) if (makeCurrent) { - setCurrentWidget(webView); // this method does NOT take owneship of webView + setCurrentWidget(webView); // this method does NOT take ownership of webView } emit tabsChanged(); diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index be2198bd..7ac0125c 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -888,7 +888,7 @@ bool MainWindow::queryClose() int answer = KMessageBox::questionYesNoCancel( this, - i18n("Are you sure you want to close the window?\n" "You have %1 tab(s) open" , m_view->count()), + i18n("Are you sure you want to close the window?\n" "You have %1 tabs open" , m_view->count()), i18n("Are you sure you want to close the window?"), KStandardGuiItem::quit(), KGuiItem(i18n("C&lose Current Tab"), KIcon("tab-close")), -- cgit v1.2.1