Localization updates
- small localization updates - correction in enumration from safe to save
This commit is contained in:
parent
efe5fef7d0
commit
5e87d00c58
@ -75,7 +75,7 @@ namespace TelegramBotBase
|
|||||||
SetSetting(eSettings.NavigationMaximum, 10);
|
SetSetting(eSettings.NavigationMaximum, 10);
|
||||||
SetSetting(eSettings.LogAllMessages, false);
|
SetSetting(eSettings.LogAllMessages, false);
|
||||||
SetSetting(eSettings.SkipAllMessages, false);
|
SetSetting(eSettings.SkipAllMessages, false);
|
||||||
SetSetting(eSettings.SafeSessionsOnConsoleExit, false);
|
SetSetting(eSettings.SaveSessionsOnConsoleExit, false);
|
||||||
|
|
||||||
this.BotCommands = new List<BotCommand>();
|
this.BotCommands = new List<BotCommand>();
|
||||||
|
|
||||||
@ -167,8 +167,8 @@ namespace TelegramBotBase
|
|||||||
this.Sessions.LoadSessionStates(this.StateMachine);
|
this.Sessions.LoadSessionStates(this.StateMachine);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Enable auto session safe
|
//Enable auto session saving
|
||||||
if (this.GetSetting(eSettings.SafeSessionsOnConsoleExit, false))
|
if (this.GetSetting(eSettings.SaveSessionsOnConsoleExit, false))
|
||||||
{
|
{
|
||||||
TelegramBotBase.Tools.Console.SetHandler(() =>
|
TelegramBotBase.Tools.Console.SetHandler(() =>
|
||||||
{
|
{
|
||||||
|
|||||||
@ -45,6 +45,9 @@ namespace TelegramBotBase.Controls
|
|||||||
|
|
||||||
public bool DeletePreviousMessage { get; set; } = true;
|
public bool DeletePreviousMessage { get; set; } = true;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Parsemode of the message.
|
||||||
|
/// </summary>
|
||||||
public ParseMode MessageParseMode { get; set; } = ParseMode.Default;
|
public ParseMode MessageParseMode { get; set; } = ParseMode.Default;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -53,7 +56,7 @@ namespace TelegramBotBase.Controls
|
|||||||
public bool EnablePaging { get; set; } = false;
|
public bool EnablePaging { get; set; } = false;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Aktueller Seitenindex
|
/// Index of the current page
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int CurrentPageIndex { get; set; } = 0;
|
public int CurrentPageIndex { get; set; } = 0;
|
||||||
|
|
||||||
@ -63,6 +66,9 @@ namespace TelegramBotBase.Controls
|
|||||||
|
|
||||||
public String NoItemsLabel = Localizations.Default.Language["ButtonGrid_NoItems"];
|
public String NoItemsLabel = Localizations.Default.Language["ButtonGrid_NoItems"];
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Layout of the buttons which should be displayed always on top.
|
||||||
|
/// </summary>
|
||||||
public List<ButtonBase> HeadLayoutButtonRow { get; set; }
|
public List<ButtonBase> HeadLayoutButtonRow { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@ -25,9 +25,9 @@ namespace TelegramBotBase.Enums
|
|||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Does stick to the console event handler and safes all sessions on exit.
|
/// Does stick to the console event handler and saves all sessions on exit.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
SafeSessionsOnConsoleExit = 4
|
SaveSessionsOnConsoleExit = 4
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user