mirror of
https://github.com/Raymonf/whack.git
synced 2024-11-24 00:20:10 +01:00
Make Japanese a setting
This commit is contained in:
parent
396996c4ab
commit
043b8433af
@ -2,6 +2,11 @@ namespace WTT;
|
||||
|
||||
public class ExportSettings
|
||||
{
|
||||
/// <summary>
|
||||
/// Export Japanese message.
|
||||
/// </summary>
|
||||
public bool ExportJapaneseMessage { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// Export English (USA) message.
|
||||
/// </summary>
|
||||
|
@ -32,6 +32,7 @@ public class TableExporter
|
||||
{
|
||||
var tomlTable = new TomlTable();
|
||||
|
||||
if (_settings.ExportJapaneseMessage)
|
||||
tomlTable.AddMessage(entry, 0, "JapaneseMessage");
|
||||
if (_settings.ExportEnglishUSAMessage)
|
||||
tomlTable.AddMessage(entry, 1, "EnglishMessageUSA");
|
||||
@ -53,6 +54,7 @@ public class TableExporter
|
||||
{
|
||||
var tomlTable = new TomlTable();
|
||||
|
||||
if (_settings.ExportJapaneseMessage)
|
||||
tomlTable.AddMessage(entry, 3, "JapaneseMessage");
|
||||
if (_settings.ExportEnglishUSAMessage)
|
||||
tomlTable.AddMessage(entry, 4, "EnglishMessageUSA");
|
||||
|
Loading…
Reference in New Issue
Block a user