ArlecchinoStrings class
Namespace: Arlecchino.Hosting · Assembly: Arlecchino
Every piece of text the framework itself draws, as delegates with English defaults. They are called on the frames that need them, so pointing them elsewhere switches language with nothing to rebuild.
public sealed class ArlecchinoStrings
Constructors
| Member | Summary |
|---|---|
ArlecchinoStrings() |
Properties
| Member | Summary |
|---|---|
ColorHue | Label of the hue channel. |
ColorLightness | Label of the lightness channel. |
ColorSaturation | Label of the saturation channel. |
CommandPaletteTitle | Title of the command palette. |
CommandUnknown | Shown when a key pressed in the palette belongs to no command. |
Empty | Stands in for a value that has not been set, in forms and fields. |
FilePicker | Text of the file picker, which has enough of its own to be grouped separately. |
Filter | What the filter line above a list is called. What has been typed is drawn after it by the list itself, since it carries a caret and a selection of its own. |
FormEdit | Hint for opening the field under the cursor. |
FormMove | Hint for moving between form fields. |
FormReset | Hint for clearing the field under the cursor. |
HelpClose | Line under the title, saying how to leave. |
HelpCommandsSection | Heading over the application's own commands. |
HelpFrameworkSection | Heading over the keys the framework itself answers to. |
HelpKeys | What each key the framework answers to does, in the order the screen lists them. |
HelpNoCommands | Shown in place of the command list when the application registered none. |
HelpScreenSection | Heading over the commands of the screen the help was opened from, given its route. |
HelpTitle | Title of the screen listing every key. |
HintCommands | What the hints box calls the command palette. The framework adds the line itself, beside the key that opens it, whenever there is at least one command to show. |
KeysTitle | Title of the hints box. |
ListPosition | Where the cursor is in a list that does not fit on screen. The position is one-based, since it is read by a person rather than an index. |
LogEmpty | Shown in the log overlay while nothing has been logged. |
LogHints | The key line under the log overlay. |
LogTitle | Title of the log overlay, with how many lines are held. |
LogWithoutProviders | Shown in the log overlay instead, when the host has no logging provider at all. The overlay shows what a provider writes to the console, so without one there is nothing for it to ever show. |
ModalChoiceHints | Footer of a single-choice list. |
ModalColorHints | Footer of the color picker. |
ModalCommandHints | Footer of the command palette. |
ModalDateHints | Footer of a date field. |
ModalMessageHints | The key line under a dialog that only has something to say. |
ModalMultiChoiceHints | Footer of a multi-choice list. |
ModalNotificationHints | The key line under an opened notification that has something to do about it. |
ModalNumberHints | Footer of a number field. |
ModalSliderHints | Footer of a slider. |
ModalTextAreaHints | The key line under the multi-line text dialog. |
ModalTextHints | Footer of a text field. |
ModalTimeHints | Footer of a time field. |
ModalToggleHints | Footer of a yes/no dialog. |
No | The negative chip of a yes/no dialog. |
NotANumber | Shown when a number field holds something that will not parse. |
NotAUrl | Shown when a link field holds something that is not an http address. |
NotAnEmail | Shown when an email field holds something that is not an address. |
NothingMatches | Shown in place of a list when the filter matches nothing. |
NotificationsClear | Hint for throwing the list away. |
NotificationsClose | Hint for leaving the screen. |
NotificationsCount | Line under that title, saying how many are held. |
NotificationsEmpty | Shown when nothing has been said lately. |
NotificationsOpen | Hint for reading one notification in full. |
NotificationsTitle | Title of the notifications screen. |
OutOfRange | Shown when a number is outside its bounds. The values arrive already formatted, affixes included. |
SelectedCount | How many options are marked, shown in the title of a multi-choice list. |
TerminalMinimum | Introduces the required size in that notice. |
TerminalSize | Formats a window size, used for both the current and the required one. |
TerminalTooSmall | Headline of the notice that replaces the view in a too-small window. |
ViewFailed | Shown on the output line when a view or a callback throws. The application keeps running, so this is what the user sees instead of a crash. |
Yes | The affirmative chip of a yes/no dialog. |
Constructors in detail
ArlecchinoStrings()
public ArlecchinoStrings();
Properties in detail
ColorHue
public Func<string> ColorHue { get; set; }
Label of the hue channel.
Type Func<TResult><string>
ColorLightness
public Func<string> ColorLightness { get; set; }
Label of the lightness channel.
Type Func<TResult><string>
ColorSaturation
public Func<string> ColorSaturation { get; set; }
Label of the saturation channel.
Type Func<TResult><string>
CommandPaletteTitle
public Func<string> CommandPaletteTitle { get; set; }
Title of the command palette.
Type Func<TResult><string>
CommandUnknown
public Func<string, string> CommandUnknown { get; set; }
Shown when a key pressed in the palette belongs to no command.
Type Func<T, TResult><string, string>
Empty
public Func<string> Empty { get; set; }
Stands in for a value that has not been set, in forms and fields.
Type Func<TResult><string>
FilePicker
public ArlecchinoStrings+FilePickerStrings FilePicker { get; set; }
Text of the file picker, which has enough of its own to be grouped separately.
Type FilePickerStrings
Filter
public Func<string> Filter { get; set; }
What the filter line above a list is called. What has been typed is drawn after it by the list itself, since it carries a caret and a selection of its own.
Type Func<TResult><string>
FormEdit
public Func<string> FormEdit { get; set; }
Hint for opening the field under the cursor.
Type Func<TResult><string>
FormMove
public Func<string> FormMove { get; set; }
Hint for moving between form fields.
Type Func<TResult><string>
FormReset
public Func<string> FormReset { get; set; }
Hint for clearing the field under the cursor.
Type Func<TResult><string>
HelpClose
public Func<string> HelpClose { get; set; }
Line under the title, saying how to leave.
Type Func<TResult><string>
HelpCommandsSection
public Func<string> HelpCommandsSection { get; set; }
Heading over the application's own commands.
Type Func<TResult><string>
HelpFrameworkSection
public Func<string> HelpFrameworkSection { get; set; }
Heading over the keys the framework itself answers to.
Type Func<TResult><string>
HelpKeys
public Func<ArlecchinoKeymap, IReadOnlyList<ValueTuple<KeyBinding, string>>> HelpKeys { get; set; }
What each key the framework answers to does, in the order the screen lists them.
Type Func<T, TResult><ArlecchinoKeymap, IReadOnlyList<T><ValueTuple<T1, T2><KeyBinding, string>>>
HelpNoCommands
public Func<string> HelpNoCommands { get; set; }
Shown in place of the command list when the application registered none.
Type Func<TResult><string>
HelpScreenSection
public Func<string, string> HelpScreenSection { get; set; }
Heading over the commands of the screen the help was opened from, given its route.
Type Func<T, TResult><string, string>
HelpTitle
public Func<string> HelpTitle { get; set; }
Title of the screen listing every key.
Type Func<TResult><string>
HintCommands
public Func<string> HintCommands { get; set; }
What the hints box calls the command palette. The framework adds the line itself, beside the key that opens it, whenever there is at least one command to show.
Type Func<TResult><string>
KeysTitle
public Func<string> KeysTitle { get; set; }
Title of the hints box.
Type Func<TResult><string>
ListPosition
public Func<int, int, string> ListPosition { get; set; }
Where the cursor is in a list that does not fit on screen. The position is one-based, since it is read by a person rather than an index.
Type Func<T1, T2, TResult><int, int, string>
LogEmpty
public Func<string> LogEmpty { get; set; }
Shown in the log overlay while nothing has been logged.
Type Func<TResult><string>
LogHints
public Func<string> LogHints { get; set; }
The key line under the log overlay.
Type Func<TResult><string>
LogTitle
public Func<int, string> LogTitle { get; set; }
Title of the log overlay, with how many lines are held.
Type Func<T, TResult><int, string>
LogWithoutProviders
public Func<string> LogWithoutProviders { get; set; }
Shown in the log overlay instead, when the host has no logging provider at all. The overlay shows what a provider writes to the console, so without one there is nothing for it to ever show.
Type Func<TResult><string>
ModalChoiceHints
public Func<string> ModalChoiceHints { get; set; }
Footer of a single-choice list.
Type Func<TResult><string>
ModalColorHints
public Func<string> ModalColorHints { get; set; }
Footer of the color picker.
Type Func<TResult><string>
ModalCommandHints
public Func<string> ModalCommandHints { get; set; }
Footer of the command palette.
Type Func<TResult><string>
ModalDateHints
public Func<string> ModalDateHints { get; set; }
Footer of a date field.
Type Func<TResult><string>
ModalMessageHints
public Func<string> ModalMessageHints { get; set; }
The key line under a dialog that only has something to say.
Type Func<TResult><string>
ModalMultiChoiceHints
public Func<string> ModalMultiChoiceHints { get; set; }
Footer of a multi-choice list.
Type Func<TResult><string>
ModalNotificationHints
public Func<string> ModalNotificationHints { get; set; }
The key line under an opened notification that has something to do about it.
Type Func<TResult><string>
ModalNumberHints
public Func<string> ModalNumberHints { get; set; }
Footer of a number field.
Type Func<TResult><string>
ModalSliderHints
public Func<string> ModalSliderHints { get; set; }
Footer of a slider.
Type Func<TResult><string>
ModalTextAreaHints
public Func<string> ModalTextAreaHints { get; set; }
The key line under the multi-line text dialog.
Type Func<TResult><string>
ModalTextHints
public Func<string> ModalTextHints { get; set; }
Footer of a text field.
Type Func<TResult><string>
ModalTimeHints
public Func<string> ModalTimeHints { get; set; }
Footer of a time field.
Type Func<TResult><string>
ModalToggleHints
public Func<string> ModalToggleHints { get; set; }
Footer of a yes/no dialog.
Type Func<TResult><string>
No
public Func<string> No { get; set; }
The negative chip of a yes/no dialog.
Type Func<TResult><string>
NotANumber
public Func<string> NotANumber { get; set; }
Shown when a number field holds something that will not parse.
Type Func<TResult><string>
NotAUrl
public Func<string> NotAUrl { get; set; }
Shown when a link field holds something that is not an http address.
Type Func<TResult><string>
NotAnEmail
public Func<string> NotAnEmail { get; set; }
Shown when an email field holds something that is not an address.
Type Func<TResult><string>
NothingMatches
public Func<string> NothingMatches { get; set; }
Shown in place of a list when the filter matches nothing.
Type Func<TResult><string>
NotificationsClear
public Func<string> NotificationsClear { get; set; }
Hint for throwing the list away.
Type Func<TResult><string>
NotificationsClose
public Func<string> NotificationsClose { get; set; }
Hint for leaving the screen.
Type Func<TResult><string>
NotificationsCount
public Func<int, string> NotificationsCount { get; set; }
Line under that title, saying how many are held.
Type Func<T, TResult><int, string>
NotificationsEmpty
public Func<string> NotificationsEmpty { get; set; }
Shown when nothing has been said lately.
Type Func<TResult><string>
NotificationsOpen
public Func<string> NotificationsOpen { get; set; }
Hint for reading one notification in full.
Type Func<TResult><string>
NotificationsTitle
public Func<string> NotificationsTitle { get; set; }
Title of the notifications screen.
Type Func<TResult><string>
OutOfRange
public Func<string, string, string> OutOfRange { get; set; }
Shown when a number is outside its bounds. The values arrive already formatted, affixes included.
Type Func<T1, T2, TResult><string, string, string>
SelectedCount
public Func<int, string> SelectedCount { get; set; }
How many options are marked, shown in the title of a multi-choice list.
Type Func<T, TResult><int, string>
TerminalMinimum
public Func<string> TerminalMinimum { get; set; }
Introduces the required size in that notice.
Type Func<TResult><string>
TerminalSize
public Func<int, int, string> TerminalSize { get; set; }
Formats a window size, used for both the current and the required one.
Type Func<T1, T2, TResult><int, int, string>
TerminalTooSmall
public Func<string> TerminalTooSmall { get; set; }
Headline of the notice that replaces the view in a too-small window.
Type Func<TResult><string>
ViewFailed
public Func<string, string> ViewFailed { get; set; }
Shown on the output line when a view or a callback throws. The application keeps running, so this is what the user sees instead of a crash.
Type Func<T, TResult><string, string>
Yes
public Func<string> Yes { get; set; }
The affirmative chip of a yes/no dialog.
Type Func<TResult><string>