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:
parent
396996c4ab
commit
043b8433af
@ -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>
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user