Skip to content
ConsoleMonster
Class

WidgetLabels

ConsoleMonster.Localization

Namespace
ConsoleMonster.Localization
Assembly
ConsoleMonster
Modifiers
sealed

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

Constructors

public WidgetLabels() #

Methods

public WidgetLabels Clone() #

A copy to modify.

Returns

WidgetLabels The copy.
public static WidgetLabels For(CultureInfo? language) #

The labels for a language (cached; unknown languages get English).

Parameters

language System.Globalization.CultureInfo? required
The language, or null for LabelLanguage.Default.

Returns

WidgetLabels The labels; don't modify the cached instance, use WidgetLabels.Clone.
public static string Format(string format, params object?[] args) #

Formats a label with the invariant digits the widgets already formatted.

Parameters

format string required
The label.
args object?[] required
The values.

Returns

string The text.
public string StatusWord(StatusKind status) #

The badge word for a status.

Parameters

status ConsoleMonster.Styling.StatusKind required
The status.

Returns

string The word.
public string Warnings(int count) #

Selects the warning label for a count.

Parameters

count int required
The warning count.

Returns

string The localized format string.

Properties

public string ErrorLabel { get; set; } #

The compact error label.

public string CommandLine { get; set; } #

A source location without a script file.

public string InnerErrorCount { get; set; } #

The folded inner-exception count.

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 string HiddenStackLines { get; set; } #

Number of runtime stack lines omitted from an exception message.

public string HiddenStackLine { get; set; } #

One runtime stack line omitted from an exception message.

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 StatusRun { get; set; } #

The status badge for running work.

public string StatusPass { get; set; } #

The status badge for a pass.

public string StatusFail { get; set; } #

The status badge for a failure.

public string StatusWarn { get; set; } #

The status badge for a warning.

public string StatusSkip { get; set; } #

The status badge for a skip.

public string StatusInfo { get; set; } #

The status badge for information.

public string StatusWait { get; set; } #

The status badge for pending work.

public string WaitingForWork { get; set; } #

Lanes before the first lane arrives.

public string MoreCount { get; set; } #

Rows that did not fit: +{0} more.

public string MoreRowsCount { get; set; } #

Rows of a grid that did not fit, where the cells per row vary: +{0} more rows.

public string DoneCount { get; set; } #

Finished rows in a summary: {0} done.

public string QueuedCount { get; set; } #

Waiting rows in a summary: {0} queued.

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 FailedCount { get; set; } #

Failed rows in a summary: {0} failed.

public string Done { get; set; } #

A finished row.

public string DoneIn { get; set; } #

A finished row with its duration: done in {0}.

public string Queued { get; set; } #

A waiting row.

public string AllDoneIn { get; set; } #

Everything finished: {0} done in {1}.

public string Started { get; set; } #

A started task in stream output.

public string TookDuration { get; set; } #

A duration in stream output: 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 Phase { get; set; } #

A phase in stream output: phase {0}.

public string TimeLeft { get; set; } #

Estimated time left: {0} left.

public string PerSecond { get; set; } #

A rate: {0}/s.

public string Showing { get; set; } #

A table cut short: Showing {0} of {1}.

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 OneGroup { get; set; } #

One group, after "Showing": {0} group.

public string ManyGroups { get; set; } #

Several groups, after "Showing": {0} groups.

public string OneRecord { get; set; } #

One record (cards).

public string ManyRecords { get; set; } #

Several records (cards).

public string OneHiddenColumn { get; set; } #

One hidden column: +{0} column ({1}).

public string ManyHiddenColumns { get; set; } #

Several hidden columns: +{0} columns ({1}).

public string Total { get; set; } #

The totals row of a table.

public string Subtotal { get; set; } #

A group's subtotal row.

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 Needs { get; set; } #

The minimum size alone: needs {0}.

public string Stop { get; set; } #

The dashboard footer hint for Ctrl+C.

public string Stopped { get; set; } #

The dashboard status after Ctrl+C stopped its run.

public string CausedBy { get; set; } #

An inner exception heading.

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 OneMoreLine { get; set; } #

One more line of code: + {0} more line.

public string ManyMoreLines { get; set; } #

More lines of code: + {0} more lines.

public string OneItem { get; set; } #

One item in a collection.

public string ManyItems { get; set; } #

Several items in a collection.

public string TestsTitle { get; set; } #

The test-run dashboard title.

public string TestsFinished { get; set; } #

A finished test run.

public string TestsFinishedWithFailures { get; set; } #

A test run that finished with failures.

public string TestsDiscovering { get; set; } #

A test run before the first file.

public string TestsStarting { get; set; } #

A test run between files.

public string TestsNoFailures { get; set; } #

The failure list of a clean run.

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 TestsFile { get; set; } #

The file column.

public string TestsCount { get; set; } #

The test count column.

public string TestsPassedColumn { get; set; } #

The passed column.

public string TestsFailedColumn { get; set; } #

The failed column.

public string TestsSkippedColumn { get; set; } #

The skipped column.

public string TestsTimeColumn { get; set; } #

The time the tests took (the sum of their durations, not the run's clock).

public string TestsFailures { get; set; } #

The failures heading.

public string TestsFailed { get; set; } #

The outcome of a failed run.

public string TestsInconclusive { get; set; } #

The outcome of an inconclusive run.

public string TestsPassed { get; set; } #

The outcome of a passed run.

public string TestsExpected { get; set; } #

The expected value of a failed assertion.

public string TestsActual { get; set; } #

The actual value of a failed assertion.

public string TestsPassedCount { get; set; } #

Passed tests: {0} passed.

public string TestsInconclusiveCount { get; set; } #

Inconclusive tests: {0} inconclusive.

public string TestsNotRunCount { get; set; } #

Tests not run: {0} not run.

public string TestsOneBlockFailed { get; set; } #

One failed block: {0} block failed.

public string TestsManyBlocksFailed { get; set; } #

Failed blocks: {0} blocks failed.

public string TestsDoneCount { get; set; } #

Tests run: {0} tests.

public string TestsDoneOfTotal { get; set; } #

Tests run of the total: {0} of {1}.

public string TestsSlowest { get; set; } #

The slowest tests panel.

public string TestsDurations { get; set; } #

The durations panel.

public string TestsFiles { get; set; } #

The files panel.

public string TestsFilesDone { get; set; } #

Files done: {0} of {1} done.

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 ChangesAdded { get; set; } #

Added objects: +{0} added.

public string ChangesRemoved { get; set; } #

Removed objects: -{0} removed.

public string ChangesChanged { get; set; } #

Changed objects: ~{0} changed.

public string ChangesUnchanged { get; set; } #

Unchanged objects: {0} unchanged.

public string EarlierCount { get; set; } #

Items before a window: +{0} earlier.

public string WarningCount { get; set; } #

Items with a warning: {0} warnings.

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 ChangesSame { get; set; } #

A row equal to the baseline.

public string ChangesDiffers { get; set; } #

A row different from the baseline.

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 ChangesMatchingHidden { get; set; } #

Matching property rows hidden from a baseline matrix, with the PowerShell option to include them.

public string ChangesItem { get; set; } #

The item column of a change table.

public string ChangesProperty { get; set; } #

The property column of a change table.

public string ChangesBefore { get; set; } #

The old value column.

public string ChangesAfter { get; set; } #

The new value column.

public string ChangesSeeDiff { get; set; } #

A long value shown as a line diff below the table.

public string ChangesNone { get; set; } #

A comparison without changes.

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 HelpUsage { get; set; } #

Command-line usage section heading.

public string HelpCommands { get; set; } #

Command-line command catalog heading.

public string HelpValues { get; set; } #

Command-line value catalog heading.

public string HelpOptions { get; set; } #

Command-line option catalog heading.

public string HelpExamples { get; set; } #

Command-line examples 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.