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) - Anderson Cardoso - Portuguese (Br)
- @bajolzas - Portuguese (Pt) - @bajolzas - Portuguese (Pt)
- posix - @Richard-L - German - posix - @Richard-L - German
- @phoe-nix - Chinese (Simplified)
## Game Compatibility Database ## Game Compatibility Database
- @Zet-sensei - @Zet-sensei

View file

@ -69,6 +69,7 @@ set(TS_FILES
translations/duckstation-qt_he.ts translations/duckstation-qt_he.ts
translations/duckstation-qt_pt-br.ts translations/duckstation-qt_pt-br.ts
translations/duckstation-qt_pt-pt.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") 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"> <QtTs Include="translations\duckstation-qt_pt-pt.ts">
<FileType>Document</FileType> <FileType>Document</FileType>
</QtTs> </QtTs>
<QtTs Include="translations\duckstation-qt_zh-cn.ts">
<FileType>Document</FileType>
</QtTs>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<QtUi Include="autoupdaterdialog.ui"> <QtUi Include="autoupdaterdialog.ui">

View file

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

View file

@ -58,7 +58,8 @@ std::vector<std::pair<QString, QString>> QtHostInterface::getAvailableLanguageLi
{QStringLiteral("Deutsch"), QStringLiteral("de")}, {QStringLiteral("Deutsch"), QStringLiteral("de")},
{QStringLiteral("עברית"), QStringLiteral("he")}, {QStringLiteral("עברית"), QStringLiteral("he")},
{QStringLiteral("português (Pt)"), QStringLiteral("pt-pt")}, {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() 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_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-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_pt-pt.ts
..\..\dep\msvc\qt\5.15.0\msvc2017_64\bin\lupdate.exe ./ -ts translations\duckstation-qt_zh-cn.ts
pause pause