Localizations
- adding localizations in english and german for default controls - updating default controls
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace TelegramBotBase.Localizations
|
||||
{
|
||||
public static class Default
|
||||
{
|
||||
|
||||
public static Localization Language = new English();
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace TelegramBotBase.Localizations
|
||||
{
|
||||
public class English : Localization
|
||||
{
|
||||
public English() : base()
|
||||
{
|
||||
Values["Language"] = "English";
|
||||
Values["ButtonGrid_Title"] = "Menu";
|
||||
Values["ButtonGrid_NoItems"] = "There are no items.";
|
||||
Values["ButtonGrid_CurrentPage"] = "Page {0} of {1}";
|
||||
Values["CalendarPicker_Title"] = "Pick date";
|
||||
Values["TreeView_Title"] = "Select node";
|
||||
Values["TreeView_LevelUp"] = "🔼 level up";
|
||||
Values["ToggleButton_On"] = "On";
|
||||
Values["ToggleButton_Off"] = "Off";
|
||||
Values["ToggleButton_Title"] = "Toggle";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace TelegramBotBase.Localizations
|
||||
{
|
||||
public class German : Localization
|
||||
{
|
||||
public German() : base()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace TelegramBotBase.Localizations
|
||||
{
|
||||
public class Localization
|
||||
{
|
||||
public Dictionary<String, String> Values = new Dictionary<string, string>();
|
||||
|
||||
public String this[String key]
|
||||
{
|
||||
get
|
||||
{
|
||||
return Values[key];
|
||||
}
|
||||
}
|
||||
|
||||
public Localization()
|
||||
{
|
||||
Values["Language"] = "Deutsch (German)";
|
||||
Values["ButtonGrid_Title"] = "Menü";
|
||||
Values["CalendarPicker_Title"] = "Datum auswählen";
|
||||
Values["CalendarPicker_PreviousPage"] = "◀️";
|
||||
Values["CalendarPicker_NextPage"] = "▶️";
|
||||
Values["TreeView_Title"] = "Knoten auswählen";
|
||||
Values["TreeView_LevelUp"] = "🔼 Stufe hoch";
|
||||
Values["ToggleButton_On"] = "An";
|
||||
Values["ToggleButton_Off"] = "Aus";
|
||||
Values["ToggleButton_OnIcon"] = "⚫";
|
||||
Values["ToggleButton_OffIcon"] = "⚪";
|
||||
Values["ToggleButton_Title"] = "Schalter";
|
||||
Values["PromptDialog_Back"] = "Zurück";
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user