WidgetLabels
ConsoleMonster.Localization
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) #The labels for a language (cached; unknown languages get English).
Parameters
- language System.Globalization.CultureInfo?
- The language, or null for LabelLanguage.Default.
public static string Format(string format, params object?[] args) #Formats a label with the invariant digits the widgets already formatted.
Parameters
- format string
- The label.
- args object?[]
- The values.
Returns
string The text.public string StatusWord(StatusKind status) #The badge word for a status.
Parameters
- status ConsoleMonster.Styling.StatusKind
- The status.
Returns
string The word.public string Warnings(int count) #Selects the warning label for a count.
Parameters
- count int
- The warning count.
Returns
string The localized format string.Inherited Methods
Properties
public string OneInnerError { get; set; } #The folded count for one inner exception.
public string GetErrorDetails { get; set; } #A PowerShell 7 next-step hint below compact errors.
public string ErrorCause { get; set; } #Prefix for the innermost distinct message in a compact error.
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 MoreRowsCount { get; set; } #Rows of a grid that did not fit, where the cells per row vary: +{0} more rows.
public string RunningCount { get; set; } #Running rows in a summary: {0} running.
public string RetriedCount { get; set; } #Run items that needed another attempt: {0} retried.
public string RetryAttempt { get; set; } #A run item's repeated attempt: retry {0} of {1}.
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 Stopped { get; set; } #The dashboard status after Ctrl+C stopped its run.
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 TestsTimeColumn { get; set; } #The time the tests took (the sum of their durations, not the run's clock).
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 OneWarningCount { get; set; } #The warning counter when exactly one warning is present.
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 ChangesMissing { get; set; } #An absent property, distinct from a present null or empty value.
public string ChangesEmpty { get; set; } #A present property whose value is null or empty, so a narrow card still lists it.
public string ChangesCaseOnly { get; set; } #A case-only difference ignored for equality.
public string ChangesCaseOnlyCount { get; set; } #The count of ignored case-only property differences.
public string ChangesBaseline { get; set; } #The reference column label in a baseline matrix.
public string ChangesStatus { get; set; } #The status column of a baseline matrix.
public string ChangesMissingOn { get; set; } #A row missing on a number of objects.
public string ChangesOnePropertyShown { get; set; } #The baseline footer when one property row is shown.
public string ChangesPropertiesShown { get; set; } #The number of property rows actually shown in a baseline matrix.
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 TreeCycle { get; set; } #A tree node that repeats an item already on its path: (cycle).
public string TreeDepthLimit { get; set; } #Children not followed past a tree's depth limit: … (depth limit).
public string TreeNodeLimit { get; set; } #The end of a tree that reached its node limit: … (node limit reached).
public string MoreColumns { get; set; } #Hidden columns of an inspected collection: +{0} more columns.
public string HelpCommands { get; set; } #Command-line command catalog heading.
public string HelpOptions { get; set; } #Command-line option catalog heading.
public string HelpRequired { get; set; } #Required-option description prefix.
public string HelpDefault { get; set; } #Default-value annotation, with the value in placeholder zero.
public string TailFollowing { get; set; } #The live tail is following its newest entries.
public string TailPaused { get; set; } #The live tail is paused on earlier history.
public string TailPauseMarker { get; set; } #Marker before the paused state in Unicode-capable terminals.
public string TailNewLines { get; set; } #Applied log rows received since following was paused.
public string TailPausedShort { get; set; } #A paused log panel inside an app, where the full-screen wording does not fit.
public string TailNewShort { get; set; } #Lines received since a log panel inside an app was paused.
public string TailKeyHistory { get; set; } #Footer label for the key that scrolls a log panel back through its history.
public string TailKeyFollow { get; set; } #Footer label for the key that returns a paused log panel to its newest line.
public string TailFiltered { get; set; } #Before the active log filter's tag, level and text.
public string TailCounts { get; set; } #History lines evicted after being applied.
public string TailKeys { get; set; } #Keyboard navigation hints, with theme-token markup for accent keys and muted descriptions.
public string TailSessionFailed { get; set; } #A live tail failed in its session.
public string TailViewFailed { get; set; } #A live tail could not update or render its view.
public string TailReaderReturnedNull { get; set; } #A source reader returned a null collection.
public string TailReaderReturnedNullEntry { get; set; } #A source reader returned a null entry.
public string StatusError { get; set; } #The badge word for StatusKind.Error.
public string StatusInvestigate { get; set; } #The badge word for StatusKind.Investigate.
public string StatusNotRun { get; set; } #The badge word for StatusKind.NotRun.
public string ErrorCount { get; set; } #Items that could not run to a verdict: {0} errored.
public string InvestigateCount { get; set; } #Items that need a human look: {0} to investigate.
public string TestsErrorColumn { get; set; } #The error column of a test summary.
public string TestsInvestigateColumn { get; set; } #The investigate column of a test summary.
public string TestsNotRunColumn { get; set; } #The not-run column of a test summary.
public string TestsSeverityColumn { get; set; } #The worst-severity column of a test summary.
public string TestsResults { get; set; } #The title of a test summary grouped by the records' group.
public string TestsGroup { get; set; } #The first column of a test summary grouped by the records' group.
public string TestsReport { get; set; } #The label before the report path at the end of a test summary.
public string TestsErrored { get; set; } #The outcome of a run with errors and no failures.
public string TestsInvestigate { get; set; } #The outcome of a run with results to investigate.
public string TestsStatusErrored { get; set; } #The header status of a finished run with errors.
public string TestsToInvestigate { get; set; } #The heading of the results to investigate after the failures.
public string TestsStatusInvestigate { get; set; } #The header status of a finished run with results to investigate.