diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2014-08-10 10:12:29 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-08-11 08:21:19 -0700 |
commit | 3a46657f4cae439972afe9b3d248525baf35898d (patch) | |
tree | 9650368820f267e168888d3597566f01410bbc72 /qt-ui/divelogexportdialog.cpp | |
parent | 108fc892ca101929b101da08e02a6a587f7ca080 (diff) | |
download | subsurface-3a46657f4cae439972afe9b3d248525baf35898d.tar.gz |
HTML: export Translated strings to JSON files.
First step towards multilingual export. Use the existing translation API
to translate and save words to JSON file.
Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divelogexportdialog.cpp')
-rw-r--r-- | qt-ui/divelogexportdialog.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/divelogexportdialog.cpp b/qt-ui/divelogexportdialog.cpp index 9ea203055..99669d6d4 100644 --- a/qt-ui/divelogexportdialog.cpp +++ b/qt-ui/divelogexportdialog.cpp @@ -95,6 +95,7 @@ void DiveLogExportDialog::exportHtmlInit(const QString &filename) QString json_dive_data = exportFiles + QDir::separator() + "file.json"; QString json_settings = exportFiles + QDir::separator() + "settings.json"; + QString translation = exportFiles + QDir::separator() + "translation.json"; QString stat_file = exportFiles + QDir::separator() + "stat.json"; QString photos_directory = exportFiles + QDir::separator() + "photos" + QDir::separator(); mainDir.mkdir(photos_directory); @@ -102,6 +103,7 @@ void DiveLogExportDialog::exportHtmlInit(const QString &filename) exportHTMLsettings(json_settings); exportHTMLstatistics(stat_file); + export_translation(translation.toUtf8().data()); export_HTML(json_dive_data.toUtf8().data(), photos_directory.toUtf8().data(), ui->exportSelectedDives->isChecked(), ui->exportListOnly->isChecked()); |