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.LogAllMessages, false);
|
||||
SetSetting(eSettings.SkipAllMessages, false);
|
||||
SetSetting(eSettings.SafeSessionsOnConsoleExit, false);
|
||||
SetSetting(eSettings.SaveSessionsOnConsoleExit, false);
|
||||
|
||||
this.BotCommands = new List<BotCommand>();
|
||||
|
||||
@ -167,8 +167,8 @@ namespace TelegramBotBase
|
||||
this.Sessions.LoadSessionStates(this.StateMachine);
|
||||
}
|
||||
|
||||
//Enable auto session safe
|
||||
if (this.GetSetting(eSettings.SafeSessionsOnConsoleExit, false))
|
||||
//Enable auto session saving
|
||||
if (this.GetSetting(eSettings.SaveSessionsOnConsoleExit, false))
|
||||
{
|
||||
TelegramBotBase.Tools.Console.SetHandler(() =>
|
||||
{
|
||||
|
||||
@ -45,6 +45,9 @@ namespace TelegramBotBase.Controls
|
||||
|
||||
public bool DeletePreviousMessage { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// Parsemode of the message.
|
||||
/// </summary>
|
||||
public ParseMode MessageParseMode { get; set; } = ParseMode.Default;
|
||||
|
||||
/// <summary>
|
||||
@ -53,7 +56,7 @@ namespace TelegramBotBase.Controls
|
||||
public bool EnablePaging { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// Aktueller Seitenindex
|
||||
/// Index of the current page
|
||||
/// </summary>
|
||||
public int CurrentPageIndex { get; set; } = 0;
|
||||
|
||||
@ -63,6 +66,9 @@ namespace TelegramBotBase.Controls
|
||||
|
||||
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; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -25,9 +25,9 @@ namespace TelegramBotBase.Enums
|
||||
|
||||
|
||||
/// <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>
|
||||
SafeSessionsOnConsoleExit = 4
|
||||
SaveSessionsOnConsoleExit = 4
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user