-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathTranslation.cs
More file actions
65 lines (57 loc) · 2.78 KB
/
Translation.cs
File metadata and controls
65 lines (57 loc) · 2.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
using System.ComponentModel;
using SSMenuSystem.Configs;
#if EXILED
using Exiled.API.Interfaces;
#endif
namespace SSMenuSystem
{
/// <summary>
/// The translation configs.
/// </summary>
public class Translation
#if EXILED
: ITranslation
#endif
{
/// <summary>
/// On the main-menu, button displayed to open a menu where {0} = menu name.
/// </summary>
[Description("On the main-menu, button displayed to open a menu where {0} = menu name.")]
public LabelButton OpenMenu { get; set; } = new("Open {0}", "Open");
/// <summary>
/// the button displayed when menu is opened.
/// </summary>
[Description("the button displayed when menu is opened.")]
public LabelButton ReturnToMenu { get; set; } = new("Return to menu", "Return");
/// <summary>
/// The button that displayed when sub-menu is opened (return to related menu) where {0} = menu name.
/// </summary>
[Description("The button that displayed when sub-menu is opened (return to related menu) where {0} = menu name.")]
public LabelButton ReturnTo { get; set; } = new("Return to {0}", "Return");
/// <summary>
/// The reload button.
/// </summary>
[Description("The reload button.")]
public LabelButton ReloadButton { get; set; } = new("Reload menus", "Reload");
/// <summary>
/// The global keybinding header, with label and hint. Disabled temporary.
/// </summary>
[Description("The global keybinding header, with label and hint. Disabled temporary.")]
public GroupHeader GlobalKeybindingTitle { get; set; } = new("Global Keybinding", "don't take a look at this (nah seriously it's just to make some keybindings global)");
/// <summary>
/// Text displayed when an error is occured (to avoid client crash + explain why it's don't work). Can accept TextMeshPro tags.
/// </summary>
[Description("Text displayed when an error is occured (to avoid client crash + explain why it's don't work). Can accept TextMeshPro tags.")]
public string ServerError { get; set; } = "INTERNAL SERVER ERROR";
/// <summary>
/// Title of sub-menus when there is one.
/// </summary>
[Description("Title of sub-menus when there is one.")]
public GroupHeader SubMenuTitle { get; set; } = new("Sub-Menus", null);
/// <summary>
/// Translation when player doesn't have permission to see total errors (= see a part of code name).
/// </summary>
[Description("Translation when player doesn't have permission to see total errors (= see a part of code name).")]
public string NoPermission { get; set; } = "insufficient permissions to see the full errors";
}
}