Qt: Add Chinese (Simplified) translation

This commit is contained in:
Albert Liu 2020-08-14 13:47:23 -07:00
parent 16a4398fdb
commit cd0ac1a2bc
7 changed files with 2057 additions and 1 deletions

View File

@ -9,6 +9,7 @@ The following people have contributed to the project in some way, and are credit
- Anderson Cardoso - Portuguese (Br)
- @bajolzas - Portuguese (Pt)
- posix - @Richard-L - German
- @phoe-nix - Chinese (Simplified)
## Game Compatibility Database
- @Zet-sensei

View File

@ -69,6 +69,7 @@ set(TS_FILES
translations/duckstation-qt_he.ts
translations/duckstation-qt_pt-br.ts
translations/duckstation-qt_pt-pt.ts
translations/duckstation-qt_zh-cn.ts
)
set_source_files_properties(${TS_FILES} PROPERTIES OUTPUT_LOCATION "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/translations")

View File

@ -201,6 +201,9 @@
<QtTs Include="translations\duckstation-qt_pt-pt.ts">
<FileType>Document</FileType>
</QtTs>
<QtTs Include="translations\duckstation-qt_zh-cn.ts">
<FileType>Document</FileType>
</QtTs>
</ItemGroup>
<ItemGroup>
<QtUi Include="autoupdaterdialog.ui">

View File

@ -125,5 +125,8 @@
<None Include="translations\duckstation-qt_he.ts">
<Filter>translations</Filter>
</None>
<None Include="translations\duckstation-qt_zh-cn.ts">
<Filter>translations</Filter>
</None>
</ItemGroup>
</Project>

View File

@ -58,7 +58,8 @@ std::vector<std::pair<QString, QString>> QtHostInterface::getAvailableLanguageLi
{QStringLiteral("Deutsch"), QStringLiteral("de")},
{QStringLiteral("עברית"), QStringLiteral("he")},
{QStringLiteral("português (Pt)"), QStringLiteral("pt-pt")},
{QStringLiteral("português (Br)"), QStringLiteral("pt-br")}};
{QStringLiteral("português (Br)"), QStringLiteral("pt-br")},
{QStringLiteral("简体中文"), QStringLiteral("zh-cn")}};
}
bool QtHostInterface::Initialize()

File diff suppressed because it is too large Load Diff

View File

@ -2,4 +2,5 @@
..\..\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
..\..\dep\msvc\qt\5.15.0\msvc2017_64\bin\lupdate.exe ./ -ts translations\duckstation-qt_zh-cn.ts
pause