From 86a9d76cdd96efcf00369e44d55176fa82d42ec5 Mon Sep 17 00:00:00 2001 From: lappelhans Date: Wed, 9 Jan 2008 20:34:14 +0000 Subject: [PATCH] *translate Finished and aborted *use translation to let the column width fit every languange git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/KDE/kdenetwork@759014 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kget/core/transfergroup.cpp | 4 ++-- kget/ui/transferhistory.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kget/core/transfergroup.cpp b/kget/core/transfergroup.cpp index 5ad28a9ce..802eef1a1 100644 --- a/kget/core/transfergroup.cpp +++ b/kget/core/transfergroup.cpp @@ -109,9 +109,9 @@ void TransferGroup::remove(Transfer * transfer) kDebug(5001) << transfer->statusText(); if (transfer->statusText() == "Finished") - e.setAttribute("State", "Finished"); + e.setAttribute("State", i18nc("the transfer is finished", "Finished")); else - e.setAttribute("State", "Aborted"); + e.setAttribute("State", i18nc("the transfer is aborted", "Aborted")); if (!file.open(QIODevice::ReadWrite)) KMessageBox::error(0, i18n("History-File cannot be opened correctly!"), i18n("Error"), 0); diff --git a/kget/ui/transferhistory.cpp b/kget/ui/transferhistory.cpp index f61249d6b..2d20e73b9 100644 --- a/kget/ui/transferhistory.cpp +++ b/kget/ui/transferhistory.cpp @@ -49,7 +49,7 @@ TransferHistory::TransferHistory(QWidget *parent) m_treeWidget->setColumnWidth(1, 200); m_treeWidget->setColumnWidth(2, font->width(QDateTime::currentDateTime().toString())); m_treeWidget->setColumnWidth(3, font->width("150 MiB")); - m_treeWidget->setColumnWidth(4, font->width("Finished")); + m_treeWidget->setColumnWidth(4, font->width(i18nc("the transfer is finished", "Finished"))); m_hboxLayout = widget.hboxLayout; m_searchBar = widget.searchBar; m_searchBar->setTreeWidget(m_treeWidget); -- 2.11.4.GIT