Skip to content

Commit

Permalink
feat: romanian added
Browse files Browse the repository at this point in the history
  • Loading branch information
eymenefealtun committed Sep 18, 2023
1 parent 33398a3 commit 1f9c96f
Show file tree
Hide file tree
Showing 7 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 @@ -48,6 +48,7 @@
<ComboBoxItem Content="Hebrew" />
<ComboBoxItem Content="Kurdish" />
<ComboBoxItem Content="Persian" />
<ComboBoxItem Content="Romanian" />
<ComboBoxItem Content="Serbian" />
<ComboBoxItem Content="Spanish" />
<ComboBoxItem Content="Swedish" />
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="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="Romanian" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Words\Romanian\Romanian.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>
Expand Down
3 changes: 3 additions & 0 deletions TarotType.Main/Utilities/SourceManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
using TarotType.Main.Utilities.Words.Swedish;
using TarotType.Main.Utilities.Words.Finnish;
using TarotType.Main.Utilities.Words.Hebrew;
using TarotType.Main.Utilities.Words.Romanian;

namespace TarotType.Main.Utilities
{
Expand Down Expand Up @@ -49,6 +50,7 @@ public SourceManager()
{ new Hebrew(), languages.Hebrew},
{ new Kurdish(), languages.Kurdish},
{ new Persian(), languages.Persian},
{ new Romanian(), languages.Romanian},
{ new Serbian(), languages.Serbian},
{ new Spanish(), languages.Spanish},
{ new Swedish(), languages.Swedish},
Expand All @@ -71,6 +73,7 @@ public enum languages
Hebrew,
Kurdish,
Persian,
Romanian,
Serbian,
Spanish,
Swedish,
Expand Down
2 changes: 1 addition & 1 deletion TarotType.Main/Words/Kurdish/Kurdish.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
public class Kurdish : Language
{
string _path = @"Words\Kurdish\Kurdish-959.txt";
string _path = @"Words\Kurdish\Kurdish.txt";
SourceManager.flowDirections _flowDirection = SourceManager.flowDirections.left;
public override SourceManager.flowDirections FlowDirection()
{
Expand Down
20 changes: 20 additions & 0 deletions TarotType.Main/Words/Romanian/Romanian.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
namespace TarotType.Main.Utilities.Words.Romanian
{
public class Romanian : Language
{

string _path = @"Words\Romanian\Romanian.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/Romanian/Romanian.txt

Large diffs are not rendered by default.

0 comments on commit 1f9c96f

Please sign in to comment.