Add Arabic support

This commit is contained in:
Royce551 2021-07-09 12:30:49 -05:00
parent a8bca4016a
commit a2f589795b
6 changed files with 12 additions and 2 deletions

View file

@ -30,7 +30,8 @@ namespace FRESHMusicPlayer.ViewModels
new("Automatic", "automatic"),
new("English", "en"),
new("German", "de"),
new("Vietnamese", "vi")
new("Vietnamese", "vi"),
new("Arabic (Saudi Arabia)", "ar")
};
public string Version => MainWindowViewModel.ProjectName;

View file

@ -289,6 +289,7 @@
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<EmbeddedResource Include="Properties\Resources.ar.resx" />
<EmbeddedResource Include="Properties\Resources.da.resx" />
<EmbeddedResource Include="Properties\Resources.de.resx" />
<EmbeddedResource Include="Properties\Resources.nl.resx" />

View file

@ -60,6 +60,7 @@
<ComboBoxItem Content="Turkish"/>
<ComboBoxItem Content="Dutch"/>
<ComboBoxItem Content="Danish"/>
<ComboBoxItem Content="Arabic (Saudi Arabia)"/>
</ComboBox>
</Grid>
<CheckBox x:Name="General_TrackingCheck" Content="{x:Static resx:Resources.SETTINGS_PLAYBACKTRACKING}" FontSize="14" Foreground="{StaticResource PrimaryTextColor}" Checked="General_TrackingChanged" Unchecked="General_TrackingChanged"/>

View file

@ -65,6 +65,9 @@ namespace FRESHMusicPlayer.Pages
case "da":
General_LanguageCombo.SelectedIndex = (int)LanguageCombo.Danish;
break;
case "ar":
General_LanguageCombo.SelectedIndex = (int)LanguageCombo.Arabic;
break;
}
switch (App.Config.Theme)
{
@ -176,6 +179,9 @@ namespace FRESHMusicPlayer.Pages
case (int)LanguageCombo.Danish:
App.Config.Language = "da";
break;
case (int)LanguageCombo.Arabic:
App.Config.Language = "ar";
break;
}
SetAppRestartNeeded(App.Config.Language != workingConfig.Language);
}
@ -276,7 +282,8 @@ namespace FRESHMusicPlayer.Pages
Portuguese,
Turkish,
Dutch,
Danish
Danish,
Arabic
}
public enum UpdateCombo
{