1
0
mirror of https://github.com/Raymonf/whack.git synced 2024-11-27 17:40:48 +01:00

Make Japanese a setting

This commit is contained in:
Raymonf 2023-03-04 14:48:17 -05:00
parent 396996c4ab
commit 043b8433af
No known key found for this signature in database
GPG Key ID: 438459BF619B037A
2 changed files with 9 additions and 2 deletions

View File

@ -2,6 +2,11 @@ namespace WTT;
public class ExportSettings public class ExportSettings
{ {
/// <summary>
/// Export Japanese message.
/// </summary>
public bool ExportJapaneseMessage { get; set; } = true;
/// <summary> /// <summary>
/// Export English (USA) message. /// Export English (USA) message.
/// </summary> /// </summary>

View File

@ -32,7 +32,8 @@ public class TableExporter
{ {
var tomlTable = new TomlTable(); var tomlTable = new TomlTable();
tomlTable.AddMessage(entry, 0, "JapaneseMessage"); if (_settings.ExportJapaneseMessage)
tomlTable.AddMessage(entry, 0, "JapaneseMessage");
if (_settings.ExportEnglishUSAMessage) if (_settings.ExportEnglishUSAMessage)
tomlTable.AddMessage(entry, 1, "EnglishMessageUSA"); tomlTable.AddMessage(entry, 1, "EnglishMessageUSA");
if (_settings.ExportEnglishSGMessage) if (_settings.ExportEnglishSGMessage)
@ -53,7 +54,8 @@ public class TableExporter
{ {
var tomlTable = new TomlTable(); var tomlTable = new TomlTable();
tomlTable.AddMessage(entry, 3, "JapaneseMessage"); if (_settings.ExportJapaneseMessage)
tomlTable.AddMessage(entry, 3, "JapaneseMessage");
if (_settings.ExportEnglishUSAMessage) if (_settings.ExportEnglishUSAMessage)
tomlTable.AddMessage(entry, 4, "EnglishMessageUSA"); tomlTable.AddMessage(entry, 4, "EnglishMessageUSA");
if (_settings.ExportEnglishSGMessage) if (_settings.ExportEnglishSGMessage)