mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-10 04:39:11 +00:00
Style
This commit is contained in:
parent
8582a5eb7c
commit
230509be28
1 changed files with 2 additions and 11 deletions
|
@ -32,17 +32,8 @@ namespace Ryujinx.Ava.Common.Locale
|
||||||
|
|
||||||
public void Load()
|
public void Load()
|
||||||
{
|
{
|
||||||
// Load the system Language Code.
|
string localeLanguageCode = string.IsNullOrEmpty(ConfigurationState.Instance.Ui.LanguageCode.Value) ?
|
||||||
string localeLanguageCode = CultureInfo.CurrentCulture.Name.Replace('-', '_');
|
DefaultLanguageCode : ConfigurationState.Instance.Ui.LanguageCode.Value;
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(ConfigurationState.Instance.Ui.LanguageCode.Value))
|
|
||||||
{
|
|
||||||
localeLanguageCode = ConfigurationState.Instance.Ui.LanguageCode.Value;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
localeLanguageCode = DefaultLanguageCode;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Load en_US as default, if the target language translation is incomplete.
|
// Load en_US as default, if the target language translation is incomplete.
|
||||||
LoadDefaultLanguage();
|
LoadDefaultLanguage();
|
||||||
|
|
Loading…
Reference in a new issue