mirror of
https://github.com/Royce551/FRESHMusicPlayer.git
synced 2025-01-22 10:51:52 -05:00
Add Arabic support
This commit is contained in:
parent
a8bca4016a
commit
a2f589795b
6 changed files with 12 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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" />
|
||||
|
|
|
@ -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"/>
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue