Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Sealed class: RT.Lingo.TrString

Summary

Represents a translatable string.

Constructors

Default constructor (required for Classify).
TrString(string translation)
Constructs a new translatable string given the specified translation.

Instance methods

ConsoleColoredString
Color(ConsoleColor? foreground, ConsoleColor? background = null)
Returns the translation in the specified console color.
string
Fmt(params object[] args)
Formats a string using string.Format(string, object[]).
IEnumerable<object>
FmtEnumerable(params object[] args)
Formats a string using ConsoleExtensions.FmtEnumerable(this string, params object[]).
string
  • Overrides: object.ToString()
Returns the translation.

Operators

TrString
implicit operator TrString(string translation)
Implicit cast from string to TrString.
stringImplicit cast from TrString to string.

Instance fields

stringContains the original text this string was last translated from, or for the original language, null.
stringContains the current translation of this string, or for the original language, the current original text.