diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2015-02-06 11:06:43 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-02-17 08:52:16 -0800 |
commit | 043ab5b02c2d4cc060d14b7dd49a6db7cfe390c9 (patch) | |
tree | 70306d6683e59fd6369f27c54a7124e242ce090c | |
parent | 9e92d27bd0b05d8f8ebbad26901470baa00e77fe (diff) | |
download | subsurface-043ab5b02c2d4cc060d14b7dd49a6db7cfe390c9.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>
-rw-r--r-- | qt-ui/divelogexportdialog.cpp | 3 |
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) |