Qt: Connect Hebrew translation

This commit is contained in:
Connor McLaughlin 2020-08-15 00:12:47 +10:00
parent c5db7db182
commit 71bd009eed
5 changed files with 18 additions and 11 deletions

View File

@ -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
)

View File

@ -189,14 +189,18 @@
</QtUi>
</ItemGroup>
<ItemGroup>
<QtTs Include="translations\duckstation-qt_pt.ts">
<QtTs Include="translations\duckstation-qt_de.ts">
<FileType>Document</FileType>
</QtTs>
<QtTs Include="translations\duckstation-qt_he.ts">
<FileType>Document</FileType>
</QtTs>
<QtTs Include="translations\duckstation-qt_pt-br.ts">
<FileType>Document</FileType>
</QtTs>
<QtTs Include="translations\duckstation-qt_pt-pt.ts">
<FileType>Document</FileType>
</QtTs>
</ItemGroup>
<ItemGroup>
<None Include="translations\duckstation-qt_de.ts" />
<None Include="translations\duckstation-qt_pt-br.ts" />
<None Include="translations\duckstation-qt_pt-pt.ts" />
</ItemGroup>
<ItemGroup>
<QtUi Include="autoupdaterdialog.ui">

View File

@ -112,9 +112,6 @@
<ItemGroup>
<Image Include="duckstation-qt.ico" />
</ItemGroup>
<ItemGroup>
<QtTs Include="translations\duckstation-qt_pt.ts" />
</ItemGroup>
<ItemGroup>
<None Include="translations\duckstation-qt_pt-br.ts">
<Filter>translations</Filter>
@ -125,5 +122,8 @@
<None Include="translations\duckstation-qt_de.ts">
<Filter>translations</Filter>
</None>
<None Include="translations\duckstation-qt_he.ts">
<Filter>translations</Filter>
</None>
</ItemGroup>
</Project>

View File

@ -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<std::pair<QString, QString>> 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")}};
}

View File

@ -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