Skip to content

Commit

Permalink
feat: bulgarian added
Browse files Browse the repository at this point in the history
refactor: right margin of word panel increased
  • Loading branch information
eymenefealtun committed Sep 8, 2023
1 parent ee6442c commit ed7d10a
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 3 deletions.
1 change: 1 addition & 0 deletions TarotType.Main/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
<ComboBoxItem Content="Arabic" />
<ComboBoxItem Content="Armenian" />
<ComboBoxItem Content="Azerbaijani" />
<ComboBoxItem Content="Bulgarian" />
<ComboBoxItem Content="English" />
<ComboBoxItem Content="French" />
<ComboBoxItem Content="Georgian" />
Expand Down
2 changes: 1 addition & 1 deletion TarotType.Main/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ private void RefreshStack(StackPanel panel, List<Label> labels)

_resultWordArray = WordManager.GetRandomWord();

int currentLength = 0;
int currentLength = 10;



Expand Down
3 changes: 3 additions & 0 deletions TarotType.Main/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@
<data name="Azerbaijani" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Words\Azerbaijani\Azerbaijani.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data>
<data name="Bulgarian" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Words\Bulgarian\Bulgarian.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data>
<data name="English" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Words\English\English.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
</data>
Expand Down
4 changes: 3 additions & 1 deletion TarotType.Main/Utilities/SourceManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public SourceManager()
{ new Spanish(), languages.Spanish},
{ new Turkish(), languages.Turkish},
{ new Georgian(), languages.Georgian},
{ new Bulgarian(), languages.Bulgarian},
};

public enum languages
Expand All @@ -54,7 +55,8 @@ public enum languages
Persian,
Spanish,
Turkish,
Georgian
Georgian,
Bulgarian
}

public enum flowDirections
Expand Down
2 changes: 1 addition & 1 deletion TarotType.Main/Words/Azerbaijani/Azerbaijani.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
public class Azerbaijani : Language
{

string _path = @"Words\Azerbaijani\Azerbaijani-38.503.txt";
string _path = @"Words\Azerbaijani\Azerbaijani.txt";
SourceManager.flowDirections _flowDirection = SourceManager.flowDirections.left;
public override SourceManager.flowDirections FlowDirection()
{
Expand Down
17 changes: 17 additions & 0 deletions TarotType.Main/Words/Bulgarian/Bulgarian.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
namespace TarotType.Main.Utilities.Words.Azerbaijani
{
public class Bulgarian : Language
{

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

Large diffs are not rendered by default.

0 comments on commit ed7d10a

Please sign in to comment.