summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelogexportdialog.cpp
diff options
context:
space:
mode:
authorGravatar Gehad elrobey <gehadelrobey@gmail.com>2015-02-06 11:06:43 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-15 05:55:42 -0800
commitd2990aea6f1a66dffb7124844756b6bf33ccf3fb (patch)
tree8986599a3e0f4367e3271078d839ae0ce817e3e1 /qt-ui/divelogexportdialog.cpp
parent2bd019817ca29d046657c651e84dc21c5482b6e8 (diff)
downloadsubsurface-d2990aea6f1a66dffb7124844756b6bf33ccf3fb.tar.gz
HTML: Fix exporting themes in multilingual environment
Don't compare to static english string, must translate first. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divelogexportdialog.cpp')
-rw-r--r--qt-ui/divelogexportdialog.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/qt-ui/divelogexportdialog.cpp b/qt-ui/divelogexportdialog.cpp
index aff0265de..b672601af 100644
--- a/qt-ui/divelogexportdialog.cpp
+++ b/qt-ui/divelogexportdialog.cpp
@@ -129,8 +129,7 @@ void DiveLogExportDialog::exportHtmlInit(const QString &filename)
copy_and_overwrite(searchPath + "jqplot.canvasTextRenderer.min.js", exportFiles + "jqplot.canvasTextRenderer.min.js");
copy_and_overwrite(searchPath + "jquery.min.js", exportFiles + "jquery.min.js");
copy_and_overwrite(searchPath + "jquery.jqplot.css", exportFiles + "jquery.jqplot.css");
- copy_and_overwrite(searchPath + (ui->themeSelection->currentText() == "Light" ? "light.css" : "sand.css"),
- exportFiles + "theme.css");
+ copy_and_overwrite(searchPath + (ui->themeSelection->currentText() == tr("Light") ? "light.css" : "sand.css"), exportFiles + "theme.css");
}
void DiveLogExportDialog::exportHTMLsettings(const QString &filename)