Qt: Connect Spanish translation

This commit is contained in:
Connor McLaughlin 2020-08-15 11:37:45 +10:00
parent 9c413275c2
commit 9bac40d6d8
5 changed files with 17 additions and 15 deletions

View File

@ -10,6 +10,8 @@ The following people have contributed to the project in some way, and are credit
- @bajolzas - Portuguese (Pt)
- posix - @Richard-L - German
- @phoe-nix - Chinese (Simplified)
- Sorer - @MojoJojoDojo - Hebrew
- Hipnosis183 - Spanish
## Game Compatibility Database
- @Zet-sensei

View File

@ -66,6 +66,7 @@ set(SRCS
set(TS_FILES
translations/duckstation-qt_de.ts
translations/duckstation-qt_es.ts
translations/duckstation-qt_he.ts
translations/duckstation-qt_pt-br.ts
translations/duckstation-qt_pt-pt.ts

View File

@ -210,6 +210,9 @@
<FileType>Document</FileType>
</QtUi>
</ItemGroup>
<ItemGroup>
<None Include="translations\duckstation-qt_es.ts" />
</ItemGroup>
<Target Name="CopyCommonDataFiles" AfterTargets="Build" Inputs="@(CommonDataFiles)" Outputs="@(CommonDataFiles -> '$(BinaryOutputDir)%(RecursiveDir)%(Filename)%(Extension)')">
<Message Text="Copying common data files" Importance="High" />
<Copy SourceFiles="@(CommonDataFiles)" DestinationFolder="$(BinaryOutputDir)\%(RecursiveDir)" SkipUnchangedFiles="true" />

View File

@ -113,19 +113,14 @@
<Image Include="duckstation-qt.ico" />
</ItemGroup>
<ItemGroup>
<None Include="translations\duckstation-qt_pt-br.ts">
<Filter>translations</Filter>
</None>
<None Include="translations\duckstation-qt_pt-pt.ts">
<Filter>translations</Filter>
</None>
<None Include="translations\duckstation-qt_de.ts">
<Filter>translations</Filter>
</None>
<None Include="translations\duckstation-qt_he.ts">
<Filter>translations</Filter>
</None>
<None Include="translations\duckstation-qt_zh-cn.ts">
<QtTs Include="translations\duckstation-qt_de.ts" />
<QtTs Include="translations\duckstation-qt_he.ts" />
<QtTs Include="translations\duckstation-qt_pt-br.ts" />
<QtTs Include="translations\duckstation-qt_pt-pt.ts" />
<QtTs Include="translations\duckstation-qt_zh-cn.ts" />
</ItemGroup>
<ItemGroup>
<None Include="translations\duckstation-qt_es.ts">
<Filter>translations</Filter>
</None>
</ItemGroup>

View File

@ -56,9 +56,10 @@ std::vector<std::pair<QString, QString>> QtHostInterface::getAvailableLanguageLi
{
return {{QStringLiteral("English"), QStringLiteral("")},
{QStringLiteral("Deutsch"), QStringLiteral("de")},
{QStringLiteral("Español"), QStringLiteral("es")},
{QStringLiteral("עברית"), QStringLiteral("he")},
{QStringLiteral("português (Pt)"), QStringLiteral("pt-pt")},
{QStringLiteral("português (Br)"), QStringLiteral("pt-br")},
{QStringLiteral("Português (Pt)"), QStringLiteral("pt-pt")},
{QStringLiteral("Português (Br)"), QStringLiteral("pt-br")},
{QStringLiteral("简体中文"), QStringLiteral("zh-cn")}};
}