Skip to content
ConsoleMonster

API Reference

Class

PromptLabels

Namespace ConsoleMonster.Interactive
Assembly ConsoleMonster
Modifiers sealed

Every built-in word the interactive layer shows: key hints in footers, button captions, validation messages, accessible-mode questions. They follow the prompt's language (TerminalProfile.Language, CONSOLEMONSTER_LANGUAGE or the current UI culture): English, Polish, German, Spanish, French and Italian are built in. Assign PromptLabels.Default to use your own everywhere, or pass labels in InteractiveOptions.Labels; start from PromptLabels.For and PromptLabels.Clone to change a few words. Format strings use String.Format placeholders.

Inheritance

  • Object
  • PromptLabels

Usage

Explore 12 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 4

Accepted by parameters 8

Constructors

public PromptLabels() #

Methods

public PromptLabels Clone() #
Returns: PromptLabels

A copy to modify.

Returns

The copy.

public static PromptLabels For(CultureInfo? language) #
Returns: PromptLabels

The labels for a language: the assigned PromptLabels.Default, otherwise the built-in translation (English when there is none).

Parameters

language System.Globalization.CultureInfo? requiredposition: 0
The language, or null for LabelLanguage.Default.

Returns

The labels; don't modify the shared instance, use PromptLabels.Clone.

public static String Format(String format, params Object?[] args) #
Returns: String

Formats a label with arguments using the invariant culture.

Parameters

format System.String requiredposition: 0
The format string (one of this object's properties).
args System.Object?[] requiredposition: 1
The arguments.

Returns

The formatted text.

Properties

public static PromptLabels Default { get; set; } #

The labels used when none are passed: the assigned ones, otherwise the translation for LabelLanguage.Default.

public String KeyMove { get; set; } #

Key hint: move the focus.

public String KeySelect { get; set; } #

Key hint: choose the focused item.

public String KeyToggle { get; set; } #

Key hint: toggle the focused item.

public String KeyConfirm { get; set; } #

Key hint: accept the answer.

public String KeyCancel { get; set; } #

Key hint: cancel the prompt.

public String KeyBack { get; set; } #

Key hint: go back.

public String KeyFilter { get; set; } #

Key hint: start filtering.

public String KeyClearFilter { get; set; } #

Key hint: clear the filter.

public String KeyAll { get; set; } #

Key hint: select all.

public String KeyNone { get; set; } #

Key hint: select none.

public String KeyInvert { get; set; } #

Key hint: invert the selection.

public String KeySelectedOnly { get; set; } #

Key hint: show only selected items.

public String KeyPage { get; set; } #

Key hint: page through the list.

public String KeyExpand { get; set; } #

Key hint: expand or collapse a group.

public String KeyNext { get; set; } #

Key hint: next field or page.

public String KeyPrevious { get; set; } #

Key hint: previous field or page.

public String KeyPalette { get; set; } #

Key hint: open the command palette.

public String KeyHelp { get; set; } #

Key hint: show every key.

public String KeyHome { get; set; } #

Key hint: go to the first page of the app.

public String KeyQuit { get; set; } #

Key hint: leave the app.

public String KeyReveal { get; set; } #

Key hint: show a masked value.

public String KeyHide { get; set; } #

Key hint: mask the value again.

public String KeyComplete { get; set; } #

Key hint: complete a path.

public String KeyStep { get; set; } #

Key hint: step a number up or down.

public String KeyOpen { get; set; } #

Key hint: open the focused item.

public String KeyEdit { get; set; } #

Key hint: change the focused value.

public String KeyPane { get; set; } #

Key hint: move between panes.

public String KeyHistory { get; set; } #

Key hint: earlier answers.

public String KeyYesNo { get; set; } #

Key hint: answer yes or no.

public String KeyRun { get; set; } #

Key hint: run the action.

public String KeySort { get; set; } #

Key hint: sort a grid by the next column.

public String KeyOrder { get; set; } #

Key hint: reverse a grid's sort order.

public String KeyColumns { get; set; } #

Key hint: choose a grid's columns.

public String KeyDetails { get; set; } #

Key hint: the focused row's details.

public String KeyDone { get; set; } #

Key hint: finish and return the selection.

public String GridRows { get; set; } #

The grid's row count: {0} shown of {1}.

public String GridSelected { get; set; } #

The grid's selection count.

public String Columns { get; set; } #

The column chooser's title.

public String KeyNewLine { get; set; } #

Key hint: a new line in a multi-line text box.

public String KeySave { get; set; } #

Key hint: save a multi-line text.

public String EndWithEmptyLine { get; set; } #

The line-mode hint of a multi-line answer.

public String MaximumLength { get; set; } #

Too long: {0} characters at most.

public String MaximumLines { get; set; } #

Too many lines: {0} at most.

public String TextAreaCounter { get; set; } #

The counter under a multi-line text box: {0} lines, {1} characters.

public String KeyStop { get; set; } #

Footer label for ctrl+c during a run.

public String KeyFix { get; set; } #

Footer label for Enter on a blocked Run button (it opens the item that fixes the first problem).

public String Yes { get; set; } #

The answer "yes".

public String No { get; set; } #

The answer "no".

public String TypeToFilter { get; set; } #

Placeholder of a filter box.

public String NoMatches { get; set; } #

A filter matched nothing.

public String SelectedCount { get; set; } #

The live selection count: {0} selected of {1}.

public String Shown { get; set; } #

How many items a filter shows: {0}.

public String More { get; set; } #

More items above or below the visible part of a list: {0}.

public String Loading { get; set; } #

Options are loading.

public String StillLoading { get; set; } #

A page cannot move on while a field's options are still loading.

public String LoadFailed { get; set; } #

Loading failed: {0}.

public String Cancelled { get; set; } #

A prompt was cancelled.

public String Required { get; set; } #

A value is required.

public String NotANumber { get; set; } #

The text is not a number.

public String NotAWholeNumber { get; set; } #

The text is not a whole number.

public String Minimum { get; set; } #

The number is too small: {0} is the minimum.

public String Maximum { get; set; } #

The number is too large: {0} is the maximum.

public String MinimumLength { get; set; } #

Too short: {0} characters at least.

public String InvalidFormat { get; set; } #

The answer does not match the expected pattern.

public String MinimumSelected { get; set; } #

Too few items selected: {0}.

public String MaximumSelected { get; set; } #

Too many items selected: {0}.

public String PathNotFound { get; set; } #

A path does not exist: {0}.

public String FileExpected { get; set; } #

A folder was chosen where a file is expected.

public String FolderExpected { get; set; } #

A file was chosen where a folder is expected.

public String Disabled { get; set; } #

The focused item is disabled: {0} is the reason.

public String NonInteractiveNeedsValue { get; set; } #

Non-interactive and no default: {0} the prompt, {1} the parameter.

public String NonInteractiveNeedsDefault { get; set; } #

Non-interactive and no default, without a parameter: {0} the prompt.

public String Review { get; set; } #

The review page title.

public String EquivalentCommand { get; set; } #

The equivalent command heading.

public String Run { get; set; } #

The run button.

public String CopyCommand { get; set; } #

The copy-command button.

public String SavePreset { get; set; } #

The save-preset button.

public String Back { get; set; } #

The back button.

public String Next { get; set; } #

The next button.

public String Done { get; set; } #

The finish button of a form without a review page.

public String PresetName { get; set; } #

The question for a preset name.

public String PresetSaved { get; set; } #

A preset was saved: {0}.

public String PresetApplied { get; set; } #

A preset was applied: {0}.

public String Presets { get; set; } #

The presets heading.

public String NoPresets { get; set; } #

No presets exist yet.

public String CommandCopied { get; set; } #

The command was copied.

public String CopyFailed { get; set; } #

The clipboard could not be reached.

public String TypeToConfirm { get; set; } #

Typed confirmation: {0} is the text to type.

public String TypedMismatch { get; set; } #

The typed confirmation does not match: {0} is the expected text.

public String Keys { get; set; } #

The key map heading.

public String Commands { get; set; } #

The command palette heading.

public String SearchCommands { get; set; } #

The palette's placeholder.

public String GoTo { get; set; } #

The palette group of menu items.

public String AppCommands { get; set; } #

The palette group of app commands (home, keys, exit).

public String ToFix { get; set; } #

How many problems block a review's run: {0}.

public String OneProblem { get; set; } #

The problem count on a blocked Run button when there is one problem.

public String AnyKeyCloses { get; set; } #

The hint on dialogs that close on any key (the key map, action output).

public String KeyClose { get; set; } #

Footer label for closing a dialog.

public String Output { get; set; } #

The title of the dialog that shows what an action wrote.

public String EarlierLines { get; set; } #

The line above action output when older lines are not shown: {0} is how many.

public String DiscardFormChanges { get; set; } #

The question when leaving a form opened from a menu with changes that were not saved.

public String Discard { get; set; } #

The button that discards unsaved form changes.

public String ManyProblems { get; set; } #

The problem count on a blocked Run button: {0} is the number of problems.

public String Home { get; set; } #

The home breadcrumb.

public String Exit { get; set; } #

The exit item.

public String DiscardChanges { get; set; } #

The question before leaving with unsaved changes.

public String Preview { get; set; } #

The preview pane title.

public String Results { get; set; } #

The results heading after a run.

public String NextActions { get; set; } #

The next-actions heading after a run.

public String PressEnterToRun { get; set; } #

The press-enter hint of an action item.

public String EnterNumber { get; set; } #

Accessible mode: the question for a numbered choice.

public String EnterNumbers { get; set; } #

Accessible mode: the question for several numbered choices.

public String NotAChoice { get; set; } #

Accessible mode: the answer was not one of the numbers: {0}.

public String AnswerYesNo { get; set; } #

A yes/no answer was neither: {0} the yes key, {1} the no key.

public String DefaultHint { get; set; } #

Accessible mode: default value hint: {0}.

public String SelectedHint { get; set; } #

Accessible mode: currently selected: {0}.

public String GroupHeading { get; set; } #

Group headings in accessible mode: {0}.

public String Unavailable { get; set; } #

A menu item whose action is unavailable: {0}.

public String KeyPlay { get; set; } #

Replay player key hint: play or pause.

public String KeyFrame { get; set; } #

Replay player key hint: step one frame.

public String KeySpeed { get; set; } #

Replay player key hint: change the speed.

public String KeyMarker { get; set; } #

Replay player key hint: jump to the next or previous marker.

public String KeyFailure { get; set; } #

Replay player key hint: jump to the next or previous failure.

public String KeyWarning { get; set; } #

Replay player key hint: jump to the next or previous warning.

public String KeyLogEntry { get; set; } #

Replay player key hint: jump to the next or previous log entry.

public String KeySearch { get; set; } #

Replay player key hint: search the log.

public String ReplayPlaying { get; set; } #

Replay player state: playing.

public String ReplayPaused { get; set; } #

Replay player state: paused.

public String ReplayNoMore { get; set; } #

Replay player: nothing further in the requested direction.

public String ReplayNoMatch { get; set; } #

Replay player: no log entry contains the search text {0}.

public String ReplaySearch { get; set; } #

Replay player: placeholder of the log search box.