Skip to content

Commit

Permalink
feat: serbian added
Browse files Browse the repository at this point in the history
  • Loading branch information
eymenefealtun committed Sep 13, 2023
1 parent 7ea9642 commit b65403f
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 1 deletion.
1 change: 1 addition & 0 deletions TarotType.Main/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
<ComboBoxItem Content="Greek" />
<ComboBoxItem Content="Kurdish" />
<ComboBoxItem Content="Persian" />
<ComboBoxItem Content="Serbian" />
<ComboBoxItem Content="Spanish" />
<ComboBoxItem Content="Turkish" />
</ComboBox>
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 @@ -151,6 +151,9 @@
<data name="Persian" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Words\Persian\Persian.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data>
<data name="Serbian" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Words\Serbian\Serbian.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data>
<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>
Expand Down
5 changes: 4 additions & 1 deletion TarotType.Main/Utilities/SourceManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
using TarotType.Main.Utilities.Words.Georgian;
using TarotType.Main.Utilities.Words.English;
using TarotType.Main.Utilities.Words.Chinese;
using TarotType.Main.Words.Serbian;

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

public enum languages
Expand All @@ -61,7 +63,8 @@ public enum languages
Turkish,
Georgian,
Bulgarian,
Chinese
Chinese,
Serbian
}

public enum flowDirections
Expand Down
20 changes: 20 additions & 0 deletions TarotType.Main/Words/Serbian/Serbian.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using TarotType.Main.Utilities;
using TarotType.Main.Utilities.Words;

namespace TarotType.Main.Words.Serbian
{
internal class Serbian : Language
{
string _path = @"Words\Serbian\Serbian.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/Serbian/Serbian.txt

Large diffs are not rendered by default.

0 comments on commit b65403f

Please sign in to comment.