From d5b77eb0613c84c4a43f0e8ec23f4ab1d5caaef7 Mon Sep 17 00:00:00 2001
From: wmayer
Date: Sat, 22 Jul 2017 16:50:19 +0200
Subject: [PATCH] make link clickable as suggested in PR 892
---
src/Gui/GraphvizView.cpp | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/src/Gui/GraphvizView.cpp b/src/Gui/GraphvizView.cpp
index 051575dcc1..f8e036cdb1 100644
--- a/src/Gui/GraphvizView.cpp
+++ b/src/Gui/GraphvizView.cpp
@@ -144,6 +144,8 @@ private:
}
+/* TRANSLATOR Gui::GraphvizView */
+
GraphvizView::GraphvizView(App::Document & _doc, QWidget* parent)
: MDIView(0, parent)
, doc(_doc)
@@ -223,16 +225,20 @@ void GraphvizView::updateSvgItem(const App::Document &doc)
dotProc->start(dot, args);
if (!dotProc->waitForStarted()) {
int ret = QMessageBox::warning(Gui::getMainWindow(),
- qApp->translate("Std_ExportGraphviz","Graphviz not found"),
- qApp->translate("Std_ExportGraphviz","Graphviz couldn't be found on your system.\n"
- "Do you want to specify its installation path if it's already installed?"),
+ tr("Graphviz not found"),
+ QString::fromLatin1("
%1 "
+ "%2"
+ "%3
")
+ .arg(tr("Graphviz couldn't be found on your system."))
+ .arg(tr("Read more about it here."))
+ .arg(tr("Do you want to specify its installation path if it's already installed?")),
QMessageBox::Yes, QMessageBox::No);
if (ret == QMessageBox::No) {
disconnectSignals();
return;
}
path = QFileDialog::getExistingDirectory(Gui::getMainWindow(),
- qApp->translate("Std_ExportGraphviz","Graphviz installation path"));
+ tr("Graphviz installation path"));
if (path.isEmpty()) {
disconnectSignals();
return;
@@ -271,8 +277,8 @@ void GraphvizView::svgFileRead(const QByteArray & data)
svgItem->setSharedRenderer(renderer);
else {
QMessageBox::warning(getMainWindow(),
- qApp->translate("Std_ExportGraphviz","Graphviz failed"),
- qApp->translate("Std_ExportGraphviz","Graphviz failed to create an image file"));
+ tr("Graphviz failed"),
+ tr("Graphviz failed to create an image file"));
disconnectSignals();
}
}