From b38aa4f4240073361048cba020b40688f719a346 Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Sun, 27 Jun 2010 18:47:43 +0200 Subject: Missing i18n calls in the downloads page Also, make the "Open file" feature, that was commented out, work (the solution might be a bit hackish though^^) --- src/newtabpage.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/newtabpage.cpp b/src/newtabpage.cpp index 9c381f97..cbdbe306 100644 --- a/src/newtabpage.cpp +++ b/src/newtabpage.cpp @@ -568,6 +568,7 @@ void NewTabPage::downloadsPage() KUrl u = KUrl(item.destUrlString); QString fName = u.fileName(); QString dir = QL1S("file://") + u.directory(); + QString file = dir + '/' + fName; KIconLoader *loader = KIconLoader::global(); QString iconPath = "file://" + loader->iconPath(KMimeType::iconNameForUrl(u), KIconLoader::Desktop); @@ -585,13 +586,12 @@ void NewTabPage::downloadsPage() div.appendInside("
"); div.appendInside(markup("a")); - div.lastChild().setAttribute("href" , dir); - div.lastChild().setPlainText("Browse dir"); + div.lastChild().setAttribute("href", dir); + div.lastChild().setPlainText(i18n("Open directory")); - /* TODO : make this link work div.appendInside(" - "); div.appendInside(markup("a")); - div.lastChild().setAttribute("href" , u.toMimeDataString()); - div.lastChild().setPlainText("Open file");*/ + div.lastChild().setAttribute("href", file); + div.lastChild().setPlainText(i18n("Open file")); } } -- cgit v1.2.1