Don't compare to static english string, must translate first.
Signed-off-by: Gehad elrobey <[email protected]>
---
qt-ui/divelogexportdialog.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/qt-ui/divelogexportdialog.cpp b/qt-ui/divelogexportdialog.cpp
index aff0265..b672601 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)
--
1.9.1
_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface