API Reference
WidgetLabels
The built-in words that widgets render: status badges, "+3 more", "Showing 5 of 20", "done in 12s", "window too small" and the like. Each render context resolves them for its language (TerminalProfile.Language, CONSOLEMONSTER_LANGUAGE or the current UI culture); English, Polish, German, Spanish, French and Italian are built in. Assign WidgetLabels.Override to replace them everywhere, or change a property on a copy from WidgetLabels.For. Format strings take {0}, {1} placeholders.
Inheritance
- Object
- WidgetLabels
Usage
Explore 5 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 5
- Property RenderContext.Labels
- Method WidgetLabels.Clone
- Method WidgetLabels.For
- Property WidgetLabels.Current
- Property WidgetLabels.Override
Constructors
public WidgetLabels() #Methods
public static WidgetLabels For(CultureInfo? language) #WidgetLabelsThe labels for a language (cached; unknown languages get English).
Parameters
- language System.Globalization.CultureInfo?
- The language, or null for LabelLanguage.Default.
Returns
The labels; don't modify the cached instance, use WidgetLabels.Clone.
public static String Format(String format, params Object?[] args) #StringFormats a label with the invariant digits the widgets already formatted.
Parameters
- format System.String
- The label.
- args System.Object?[]
- The values.
Returns
The text.
public String StatusWord(StatusKind status) #StringThe badge word for a status.
Parameters
- status ConsoleMonster.Styling.StatusKind
- The status.
Returns
The word.
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
public static WidgetLabels? Override { get; set; } #Labels used everywhere instead of the translated ones, or null (default) to follow the language.
public static WidgetLabels Current { get; } #The labels for code that renders without a context (stream lines of live widgets): the ones a live session set for its render thread, otherwise WidgetLabels.For the default language.
public String DoneIn { get; set; } #A finished row with its duration: done in {0}.
public String StepCounts { get; set; } #Step counts in stream output: {0} passed, {1} failed, {2} warnings.
public String SkippedCount { get; set; } #Skipped steps in stream output: {0} skipped.
public String GroupOf { get; set; } #A group heading whose rows are cut short: {0} of {1} (rows shown of the group's rows).
public String GroupsShowing { get; set; } #The groups of a table cut short, after "Showing": {0} of {1} groups.
public String ManyGroups { get; set; } #Several groups, after "Showing": {0} groups.
public String Never { get; set; } #A date that never happened (DateTime.MinValue/MaxValue).
public String WindowTooSmall { get; set; } #A window below the layout's minimum: window too small: {0}, needs {1}.
public String OneMoreFrame { get; set; } #One hidden stack frame: + {0} more frame.
public String ManyMoreFrames { get; set; } #Several hidden stack frames: + {0} more frames.
public String OneFrameworkFrame { get; set; } #One hidden framework frame: + {0} framework frame.
public String ManyFrameworkFrames { get; set; } #Several hidden framework frames: + {0} framework frames.
public String TestsFinishedWithFailures { get; set; } #A test run that finished with failures.
public String TestsOneMoreFailure { get; set; } #One failure not shown: + {0} more failure.
public String TestsManyMoreFailures { get; set; } #Failures not shown: + {0} more failures.
public String TestsNoneFinished { get; set; } #The slowest list before any test finished.
public String TestsResultsByFile { get; set; } #The title of the per-file summary table.
public String TestsInconclusive { get; set; } #The outcome of an inconclusive run.
public String TestsExpected { get; set; } #The expected value of a failed assertion.
public String TestsInconclusiveCount { get; set; } #Inconclusive tests: {0} inconclusive.
public String TestsOneBlockFailed { get; set; } #One failed block: {0} block failed.
public String TestsManyBlocksFailed { get; set; } #Failed blocks: {0} blocks failed.
public String TestsDoneOfTotal { get; set; } #Tests run of the total: {0} of {1}.
public String TestsStatusRunning { get; set; } #The dashboard status while tests run.
public String TestsStatusFailed { get; set; } #The dashboard status after failures.
public String TestsStatusInconclusive { get; set; } #The dashboard status of an inconclusive run.
public String TestsStatusPassed { get; set; } #The dashboard status of a passed run.
public String RenderError { get; set; } #A frame that failed to render: render error at {0}: {1}.
public String WatchEvery { get; set; } #The heading of a watched command: Every {0}: with the interval.
public String ChangesNotCompared { get; set; } #Properties left out of a comparison because reading them stalled: {0} not compared.
public String ChangesProperty { get; set; } #The property column of a change table.
public String ChangesSeeDiff { get; set; } #A long value shown as a line diff below the table.
public String ChangesConfirm { get; set; } #The question before applying changes.
public String Members { get; set; } #The members of an inspected object: {0} members.
public String MoreUnknown { get; set; } #A collection cut short without a known count.
public String MoreColumns { get; set; } #Hidden columns of an inspected collection: +{0} more columns.