SpringCard LibCs for .NET  18.10.10
A set of utilities to simplify the development of .NET application
SpringCard.LibCs.Translation Class Reference

Static Public Member Functions

static void LoadContext (string context)
 Returns the cached ResourceManager instance used by this class. More...
 
static string T (string context, string text, CultureInfo culture)
 
static string T (string context, string text, string lang)
 
static string T (string text, CultureInfo culture)
 
static string T (string text, string lang)
 
static string T (string text)
 
static string Translate (string context, string text, CultureInfo culture)
 
static string T (string t, params object[] parameters)
 Looks up a localized string and formats it with the parameters provided; used to mark string for translation as well. More...
 
static string T (CultureInfo info, string t, params object[] parameters)
 Looks up a localized string and formats it with the parameters provided; used to mark string for translation as well. More...
 
static string M (string t)
 Marks a string for future translation, does not translate it now. More...
 
static string TK (string key, string defaultMessage=null, string translationFile="Translations")
 

Properties

static string ResourcesDirectory [get, set]
 Resources directory used to retrieve files from. More...
 
static string FileFormat [get, set]
 Format of the file based on culture and resource name. More...
 
static System.Globalization.CultureInfo Culture [get, set]
 Overrides the current thread's CurrentUICulture property for all resource lookups using this strongly typed resource class. More...
 

Member Function Documentation

◆ LoadContext()

static void SpringCard.LibCs.Translation.LoadContext ( string  context)
static

Returns the cached ResourceManager instance used by this class.

◆ M()

static string SpringCard.LibCs.Translation.M ( string  t)
static

Marks a string for future translation, does not translate it now.

◆ T() [1/2]

static string SpringCard.LibCs.Translation.T ( string  t,
params object []  parameters 
)
static

Looks up a localized string and formats it with the parameters provided; used to mark string for translation as well.

◆ T() [2/2]

static string SpringCard.LibCs.Translation.T ( CultureInfo  info,
string  t,
params object []  parameters 
)
static

Looks up a localized string and formats it with the parameters provided; used to mark string for translation as well.

Property Documentation

◆ Culture

System.Globalization.CultureInfo SpringCard.LibCs.Translation.Culture
staticgetset

Overrides the current thread's CurrentUICulture property for all resource lookups using this strongly typed resource class.

◆ FileFormat

string SpringCard.LibCs.Translation.FileFormat
staticgetset

Format of the file based on culture and resource name.

◆ ResourcesDirectory

string SpringCard.LibCs.Translation.ResourcesDirectory
staticgetset

Resources directory used to retrieve files from.


The documentation for this class was generated from the following file: