Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding and enabling new languages from Crowdin #245

Open
wants to merge 47 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
8accc12
adding new languages from Crowdin
yeager Nov 14, 2024
fe60d01
Enabling new languages from Crowdin
yeager Nov 14, 2024
5ae7def
Merge branch 'master' into master
yeager Nov 15, 2024
46f837b
Update sv_SE.json
yeager Nov 15, 2024
aa37ee1
Merge branch 'master' into master
yeager Nov 15, 2024
6c1c9c3
Update sv_SE.json with all new strings
yeager Nov 15, 2024
b9fd425
Update sv_SE.json fix for missing comma
yeager Nov 15, 2024
eec63a1
Merge branch 'GreemDev:master' into master
yeager Nov 17, 2024
f6424b4
Merge branch 'GreemDev:master' into master
yeager Nov 19, 2024
18f00ef
Update ca_ES.json with correct URL
yeager Nov 19, 2024
4a8c724
Update cs_CZ.json with correct URL
yeager Nov 19, 2024
4df9952
Update fi_FI.json with correct URL
yeager Nov 19, 2024
bf7a53f
Update no_NO.json with correct URL
yeager Nov 19, 2024
905362a
Merge branch 'master' into master
yeager Nov 20, 2024
1559bbd
Merge branch 'GreemDev:master' into master
yeager Nov 23, 2024
c39fd42
Updated Swedish translation with the new strings
yeager Nov 23, 2024
71b8c59
Adding Swedish to SettingsSystemView.axaml
yeager Nov 23, 2024
ad37108
Adding Swedish to ErrorApplet.cs
yeager Nov 23, 2024
f20e4cd
Adding Swedish to SystemLanguage.cs
yeager Nov 23, 2024
0a46ea0
Adding Swedish to TitleLanguage.cs
yeager Nov 23, 2024
c660627
Adding Swedish to SystemStateMgr.cs
yeager Nov 23, 2024
61a11b0
Adding Swedish to Language.cs
yeager Nov 23, 2024
d92981c
Adding Swedish to ApplicationControlProperty.cs
yeager Nov 23, 2024
00db031
Adding Swedish to Language.cs
yeager Nov 23, 2024
7422853
Moved Swedish to right place in SettingsSystemView.axaml
yeager Nov 23, 2024
31a71e2
Moved Swedish in ErrorApplet.cs
yeager Nov 23, 2024
74677d8
Moving Swedish in SystemLanguage.cs
yeager Nov 23, 2024
6e279b6
Moving Swedish in SystemStateMgr.cs
yeager Nov 23, 2024
f50cfdd
Adding Swedish to KeyboardLayout.cs
yeager Nov 23, 2024
2253285
Moving Swedish in TitleLanguage.cs
yeager Nov 23, 2024
ea71a9d
Adding SettingsTabSystemSystemLanguageSwedish to sv_SE.json
yeager Nov 23, 2024
768d2de
Adding SettingsTabSystemSystemLanguageSwedish
yeager Nov 23, 2024
070cae3
Small error in sv_SE.json
yeager Nov 23, 2024
82bf073
Adding Finnish to SettingsSystemView.axaml
yeager Nov 24, 2024
98bae40
Adding Finnish to en_US.json
yeager Nov 24, 2024
f555d93
Adding Finnish to Language.cs
yeager Nov 24, 2024
18484ed
Adding Finnish to ApplicationControlProperty.cs
yeager Nov 24, 2024
d903724
Adding Finnish to Language.cs
yeager Nov 24, 2024
10501d9
Adding sv and fi to LanguageCode.cs
yeager Nov 24, 2024
fcd63b8
Adding Finnish to TitleLanguage.cs
yeager Nov 24, 2024
0db6fcb
Adding Finnish to KeyboardLayout.cs
yeager Nov 24, 2024
70757ed
Adding Finnish to SystemLanguage.cs
yeager Nov 24, 2024
97f9612
Adding Finnish to ErrorApplet.cs
yeager Nov 24, 2024
be7cabd
Merge branch 'GreemDev:master' into master
yeager Nov 24, 2024
2927d3a
Merge branch 'GreemDev:master' into master
yeager Nov 26, 2024
ebaed94
Merge branch 'GreemDev:master' into master
yeager Nov 27, 2024
55540bb
Merge branch 'GreemDev:master' into master
yeager Dec 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Ryujinx.HLE/HOS/Applets/Error/ErrorApplet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ private static string SystemLanguageToLanguageKey(SystemLanguage systemLanguage)
SystemLanguage.SimplifiedChinese => "zh-Hans",
SystemLanguage.TraditionalChinese => "zh-Hant",
SystemLanguage.BrazilianPortuguese => "pt-BR",
SystemLanguage.Swedish => "sv",
SystemLanguage.Finnish => "fi",
_ => "en-US",
#pragma warning restore IDE0055
};
Expand Down
2 changes: 2 additions & 0 deletions src/Ryujinx.HLE/HOS/SystemState/KeyboardLayout.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ public enum KeyboardLayout
Korean,
ChineseSimplified,
ChineseTraditional,
Swedish,
Finnish,

Min = Default,
Max = ChineseTraditional,
Expand Down
2 changes: 2 additions & 0 deletions src/Ryujinx.HLE/HOS/SystemState/SystemLanguage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ public enum SystemLanguage
SimplifiedChinese,
TraditionalChinese,
BrazilianPortuguese,
Swedish,
Finnish,
}
}
1 change: 1 addition & 0 deletions src/Ryujinx.HLE/HOS/SystemState/SystemStateMgr.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class SystemStateMgr
"zh-Hans",
"zh-Hant",
"pt-BR",
"sv",
};

internal long DesiredKeyboardLayout { get; private set; }
Expand Down
2 changes: 2 additions & 0 deletions src/Ryujinx.HLE/HOS/SystemState/TitleLanguage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@ public enum TitleLanguage
TraditionalChinese,
SimplifiedChinese,
BrazilianPortuguese,
Swedish,
Finnish,
}
}
2 changes: 2 additions & 0 deletions src/Ryujinx.Horizon/Sdk/Ns/ApplicationControlProperty.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ public enum Language
TraditionalChinese = 13,
SimplifiedChinese = 14,
BrazilianPortuguese = 15,
Swedish = 16,
Finnish = 17,
}

public enum Organization
Expand Down
2 changes: 2 additions & 0 deletions src/Ryujinx.Horizon/Sdk/Settings/Language.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ enum Language : uint
SimplifiedChinese,
TraditionalChinese,
BrazilianPortuguese,
Swedish,
Finnish,
}
}
4 changes: 3 additions & 1 deletion src/Ryujinx.Horizon/Sdk/Settings/LanguageCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ struct LanguageCode
"es-419",
"zh-Hans",
"zh-Hant",
"pt-BR"
"pt-BR",
"sv",
"fi"
};

public Array8<byte> Value;
Expand Down
2 changes: 2 additions & 0 deletions src/Ryujinx.UI.Common/Configuration/System/Language.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@ public enum Language
SimplifiedChinese,
TraditionalChinese,
BrazilianPortuguese,
Swedish,
Finnish,
}
}
785 changes: 785 additions & 0 deletions src/Ryujinx/Assets/Locales/ca_ES.json

Large diffs are not rendered by default.

785 changes: 785 additions & 0 deletions src/Ryujinx/Assets/Locales/cs_CZ.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/Ryujinx/Assets/Locales/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@
"SettingsTabSystemSystemLanguageJapanese": "Japanese",
"SettingsTabSystemSystemLanguageAmericanEnglish": "American English",
"SettingsTabSystemSystemLanguageFrench": "French",
"SettingsTabSystemSystemLanguageFinnish": "Finnish",
"SettingsTabSystemSystemLanguageGerman": "German",
"SettingsTabSystemSystemLanguageItalian": "Italian",
"SettingsTabSystemSystemLanguageSpanish": "Spanish",
Expand All @@ -140,6 +141,7 @@
"SettingsTabSystemSystemLanguageDutch": "Dutch",
"SettingsTabSystemSystemLanguagePortuguese": "Portuguese",
"SettingsTabSystemSystemLanguageRussian": "Russian",
"SettingsTabSystemSystemLanguageSwedish": "Swedish",
"SettingsTabSystemSystemLanguageTaiwanese": "Taiwanese",
"SettingsTabSystemSystemLanguageBritishEnglish": "British English",
"SettingsTabSystemSystemLanguageCanadianFrench": "Canadian French",
Expand Down
785 changes: 785 additions & 0 deletions src/Ryujinx/Assets/Locales/fi_FI.json

Large diffs are not rendered by default.

785 changes: 785 additions & 0 deletions src/Ryujinx/Assets/Locales/no_NO.json

Large diffs are not rendered by default.

870 changes: 870 additions & 0 deletions src/Ryujinx/Assets/Locales/sv_SE.json

Large diffs are not rendered by default.

14 changes: 12 additions & 2 deletions src/Ryujinx/Ryujinx.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -113,18 +113,23 @@

<ItemGroup>
<None Remove="Assets\Locales\ar_SA.json" />
<None Remove="Assets\Locales\ca_ES.json" />
<None Remove="Assets\Locales\cs_CZ.json" />
<None Remove="Assets\Locales\de_DE.json" />
<None Remove="Assets\Locales\el_GR.json" />
<None Remove="Assets\Locales\en_US.json" />
<None Remove="Assets\Locales\es_ES.json" />
<None Remove="Assets\Locales\fi_FI.json" />
<None Remove="Assets\Locales\fr_FR.json" />
<None Remove="Assets\Locales\he_IL.json" />
<None Remove="Assets\Locales\de_DE.json" />
<None Remove="Assets\Locales\it_IT.json" />
<None Remove="Assets\Locales\ja_JP.json" />
<None Remove="Assets\Locales\ko_KR.json" />
<None Remove="Assets\Locales\no_NO.json" />
<None Remove="Assets\Locales\pl_PL.json" />
<None Remove="Assets\Locales\pt_BR.json" />
<None Remove="Assets\Locales\ru_RU.json" />
<None Remove="Assets\Locales\sv_SE.json" />
<None Remove="Assets\Locales\th_TH.json" />
<None Remove="Assets\Locales\tr_TR.json" />
<None Remove="Assets\Locales\uk_UA.json" />
Expand All @@ -140,18 +145,23 @@

<ItemGroup>
<EmbeddedResource Include="Assets\Locales\ar_SA.json" />
<EmbeddedResource Include="Assets\Locales\ca_ES.json" />
<EmbeddedResource Include="Assets\Locales\cs_CZ.json" />
<EmbeddedResource Include="Assets\Locales\de_DE.json" />
<EmbeddedResource Include="Assets\Locales\el_GR.json" />
<EmbeddedResource Include="Assets\Locales\en_US.json" />
<EmbeddedResource Include="Assets\Locales\es_ES.json" />
<EmbeddedResource Include="Assets\Locales\fi_FI.json" />
<EmbeddedResource Include="Assets\Locales\fr_FR.json" />
<EmbeddedResource Include="Assets\Locales\he_IL.json" />
<EmbeddedResource Include="Assets\Locales\de_DE.json" />
<EmbeddedResource Include="Assets\Locales\it_IT.json" />
<EmbeddedResource Include="Assets\Locales\ja_JP.json" />
<EmbeddedResource Include="Assets\Locales\ko_KR.json" />
<EmbeddedResource Include="Assets\Locales\no_NO.json" />
<EmbeddedResource Include="Assets\Locales\pl_PL.json" />
<EmbeddedResource Include="Assets\Locales\pt_BR.json" />
<EmbeddedResource Include="Assets\Locales\ru_RU.json" />
<EmbeddedResource Include="Assets\Locales\sv_SE.json" />
<EmbeddedResource Include="Assets\Locales\th_TH.json" />
<EmbeddedResource Include="Assets\Locales\tr_TR.json" />
<EmbeddedResource Include="Assets\Locales\uk_UA.json" />
Expand Down
6 changes: 6 additions & 0 deletions src/Ryujinx/UI/Views/Settings/SettingsSystemView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@
<ComboBoxItem>
<TextBlock Text="{ext:Locale SettingsTabSystemSystemLanguageBrazilianPortuguese}" />
</ComboBoxItem>
<ComboBoxItem>
<TextBlock Text="{ext:Locale SettingsTabSystemSystemLanguageSwedish}" />
</ComboBoxItem>
<ComboBoxItem>
<TextBlock Text="{ext:Locale SettingsTabSystemSystemLanguageFinnish}" />
</ComboBoxItem>
</ComboBox>
</StackPanel>
<StackPanel
Expand Down
Loading