From 71bd009eed7dd392ad2d9958c17f37c1be1daac3 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 15 Aug 2020 00:12:47 +1000 Subject: [PATCH] Qt: Connect Hebrew translation --- src/duckstation-qt/CMakeLists.txt | 1 + src/duckstation-qt/duckstation-qt.vcxproj | 16 ++++++++++------ .../duckstation-qt.vcxproj.filters | 6 +++--- src/duckstation-qt/qthostinterface.cpp | 3 ++- src/duckstation-qt/update_translations.bat | 3 ++- 5 files changed, 18 insertions(+), 11 deletions(-) diff --git a/src/duckstation-qt/CMakeLists.txt b/src/duckstation-qt/CMakeLists.txt index 2e1ea28d7..7958c00cf 100644 --- a/src/duckstation-qt/CMakeLists.txt +++ b/src/duckstation-qt/CMakeLists.txt @@ -66,6 +66,7 @@ set(SRCS set(TS_FILES translations/duckstation-qt_de.ts + translations/duckstation-qt_he.ts translations/duckstation-qt_pt-br.ts translations/duckstation-qt_pt-pt.ts ) diff --git a/src/duckstation-qt/duckstation-qt.vcxproj b/src/duckstation-qt/duckstation-qt.vcxproj index e4f1f8593..e61b166da 100644 --- a/src/duckstation-qt/duckstation-qt.vcxproj +++ b/src/duckstation-qt/duckstation-qt.vcxproj @@ -189,14 +189,18 @@ - + + Document + + + Document + + + Document + + Document - - - - - diff --git a/src/duckstation-qt/duckstation-qt.vcxproj.filters b/src/duckstation-qt/duckstation-qt.vcxproj.filters index ce67f9945..c54b781d7 100644 --- a/src/duckstation-qt/duckstation-qt.vcxproj.filters +++ b/src/duckstation-qt/duckstation-qt.vcxproj.filters @@ -112,9 +112,6 @@ - - - translations @@ -125,5 +122,8 @@ translations + + translations + \ No newline at end of file diff --git a/src/duckstation-qt/qthostinterface.cpp b/src/duckstation-qt/qthostinterface.cpp index 239cb0bd2..134e27d39 100644 --- a/src/duckstation-qt/qthostinterface.cpp +++ b/src/duckstation-qt/qthostinterface.cpp @@ -1,4 +1,4 @@ -#include "qthostinterface.h" +#include "qthostinterface.h" #include "common/assert.h" #include "common/audio_stream.h" #include "common/byte_stream.h" @@ -56,6 +56,7 @@ std::vector> QtHostInterface::getAvailableLanguageLi { return {{QStringLiteral("English"), QStringLiteral("")}, {QStringLiteral("Deutsch"), QStringLiteral("de")}, + {QStringLiteral("עברית"), QStringLiteral("he")}, {QStringLiteral("Portuguese (Pt)"), QStringLiteral("pt-pt")}, {QStringLiteral("Portuguese (Br)"), QStringLiteral("pt-br")}}; } diff --git a/src/duckstation-qt/update_translations.bat b/src/duckstation-qt/update_translations.bat index cefea1569..11599a454 100644 --- a/src/duckstation-qt/update_translations.bat +++ b/src/duckstation-qt/update_translations.bat @@ -1,4 +1,5 @@ ..\..\dep\msvc\qt\5.15.0\msvc2017_64\bin\lupdate.exe ./ -ts translations\duckstation-qt_de.ts +..\..\dep\msvc\qt\5.15.0\msvc2017_64\bin\lupdate.exe ./ -ts translations\duckstation-qt_he.ts ..\..\dep\msvc\qt\5.15.0\msvc2017_64\bin\lupdate.exe ./ -ts translations\duckstation-qt_pt-br.ts ..\..\dep\msvc\qt\5.15.0\msvc2017_64\bin\lupdate.exe ./ -ts translations\duckstation-qt_pt-pt.ts -pause \ No newline at end of file +pause