Skip to content

Commit

Permalink
feat: swedish added
Browse files Browse the repository at this point in the history
  • Loading branch information
eymenefealtun committed Sep 14, 2023
1 parent b65403f commit 0e38b12
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 2 deletions.
1 change: 1 addition & 0 deletions TarotType.Main/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
<ComboBoxItem Content="Persian" />
<ComboBoxItem Content="Serbian" />
<ComboBoxItem Content="Spanish" />
<ComboBoxItem Content="Swedish" />
<ComboBoxItem Content="Turkish" />
</ComboBox>
</StackPanel>
Expand Down
7 changes: 7 additions & 0 deletions TarotType.Main/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions TarotType.Main/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@
<data name="Spanish" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Words\Spanish\Spanish.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data>
<data name="Swedish" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Words\Swedish\Swedish.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data>
<data name="Turkish" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Words\Turkish\Turkish.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data>
Expand Down
6 changes: 5 additions & 1 deletion TarotType.Main/Utilities/SourceManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
using TarotType.Main.Utilities.Words.English;
using TarotType.Main.Utilities.Words.Chinese;
using TarotType.Main.Words.Serbian;
using System.Windows.Media;
using TarotType.Main.Utilities.Words.Swedish;

namespace TarotType.Main.Utilities
{
Expand Down Expand Up @@ -47,6 +49,7 @@ public SourceManager()
{ new Bulgarian(), languages.Bulgarian},
{ new Chinese(), languages.Chinese},
{ new Serbian(), languages.Serbian},
{ new Swedish(), languages.Swedish},
};

public enum languages
Expand All @@ -64,7 +67,8 @@ public enum languages
Georgian,
Bulgarian,
Chinese,
Serbian
Serbian,
Swedish
}

public enum flowDirections
Expand Down
2 changes: 1 addition & 1 deletion TarotType.Main/Words/Spanish/Spanish.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
public class Spanish : Language
{
string _path = @"Words\Spanish\Spanish-636.598.txt";
string _path = @"Words\Spanish\Spanish.txt";
SourceManager.flowDirections _flowDirection = SourceManager.flowDirections.left;
public override SourceManager.flowDirections FlowDirection()
{
Expand Down
18 changes: 18 additions & 0 deletions TarotType.Main/Words/Swedish/Swedish.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
namespace TarotType.Main.Utilities.Words.Swedish
{
public class Swedish : Language
{
string _path = @"Words\Swedish\Swedish.txt";
SourceManager.flowDirections _flowDirection = SourceManager.flowDirections.left;

public override SourceManager.flowDirections FlowDirection()
{
return _flowDirection;
}

public override string Path()
{
return _path;
}
}
}
1 change: 1 addition & 0 deletions TarotType.Main/Words/Swedish/Swedish.txt

Large diffs are not rendered by default.

0 comments on commit 0e38b12

Please sign in to comment.