Skip to content

Commit

Permalink
feat: chinese added
Browse files Browse the repository at this point in the history
  • Loading branch information
eymenefealtun committed Sep 12, 2023
1 parent ed7d10a commit 7ea9642
Show file tree
Hide file tree
Showing 11 changed files with 40 additions and 9 deletions.
1 change: 1 addition & 0 deletions TarotType.Main/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
<ComboBoxItem Content="Armenian" />
<ComboBoxItem Content="Azerbaijani" />
<ComboBoxItem Content="Bulgarian" />
<ComboBoxItem Content="Chinese" />
<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 @@ -8,7 +8,7 @@
using System.Windows.Threading;
using TarotType.Main.Settings;
using TarotType.Main.Utilities;
using TarotType.Main.Utilities.Words.EnglishFolder;
using TarotType.Main.Utilities.Words.English;
using TarotType.Main.View;

namespace TarotType.Main
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 @@ -130,6 +130,9 @@
<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="Chinese" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Words\Chinese\Chinese.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
3 changes: 0 additions & 3 deletions TarotType.Main/Settings/Preferences.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Media;
using TarotType.Main.Properties;
using TarotType.Main.Utilities;
using TarotType.Main.Utilities.Words;
using TarotType.Main.Utilities.Words.EnglishFolder;

namespace TarotType.Main.Settings
{
Expand Down
9 changes: 7 additions & 2 deletions TarotType.Main/Utilities/SourceManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@
using TarotType.Main.Utilities.Words.Arabic;
using TarotType.Main.Utilities.Words.Armenian;
using TarotType.Main.Utilities.Words.Greek;
using TarotType.Main.Utilities.Words.EnglishFolder;
using TarotType.Main.Settings;
using TarotType.Main.Properties;
using System.Resources;
using TarotType.Main.Utilities.Words.Bulgarian;
using TarotType.Main.Utilities.Words.Georgian;
using TarotType.Main.Utilities.Words.English;
using TarotType.Main.Utilities.Words.Chinese;

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

public enum languages
Expand All @@ -56,7 +60,8 @@ public enum languages
Spanish,
Turkish,
Georgian,
Bulgarian
Bulgarian,
Chinese
}

public enum flowDirections
Expand Down
2 changes: 1 addition & 1 deletion TarotType.Main/Words/Bulgarian/Bulgarian.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace TarotType.Main.Utilities.Words.Azerbaijani
namespace TarotType.Main.Utilities.Words.Bulgarian
{
public class Bulgarian : Language
{
Expand Down
17 changes: 17 additions & 0 deletions TarotType.Main/Words/Chinese/Chinese.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
namespace TarotType.Main.Utilities.Words.Chinese
{
public class Chinese : Language
{

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion TarotType.Main/Words/English/English.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace TarotType.Main.Utilities.Words.EnglishFolder
namespace TarotType.Main.Utilities.Words.English
{
public class English : Language
{
Expand Down
2 changes: 1 addition & 1 deletion TarotType.Main/Words/Georgian/Georgian.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace TarotType.Main.Utilities.Words.Greek
namespace TarotType.Main.Utilities.Words.Georgian
{
public class Georgian : Language
{
Expand Down

0 comments on commit 7ea9642

Please sign in to comment.