Class LocalizationHelper
Inheritance
System.Object
LocalizationHelper
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Vortex.Connector.dll
Syntax
public static class LocalizationHelper
Fields
pattern
Declaration
static readonly string pattern
Field Value
Type |
Description |
System.String |
|
rgx
Declaration
static readonly Regex rgx
Field Value
Type |
Description |
System.Text.RegularExpressions.Regex |
|
Methods
CleanUpLocalizationTokens(String)
Declaration
static string CleanUpLocalizationTokens(string localized)
Parameters
Type |
Name |
Description |
System.String |
localized |
|
Returns
Type |
Description |
System.String |
|
CreateTranslationTable(IEnumerable<String>, List<Localizables>)
Declaration
public static List<Localizables> CreateTranslationTable(IEnumerable<string> input, List<Localizables> list = null)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
input |
|
System.Collections.Generic.List<Localizables> |
list |
|
Returns
Type |
Description |
System.Collections.Generic.List<Localizables> |
|
CreateTranslationTable(String, List<Localizables>)
Declaration
public static List<Localizables> CreateTranslationTable(string input, List<Localizables> list = null)
Parameters
Type |
Name |
Description |
System.String |
input |
|
System.Collections.Generic.List<Localizables> |
list |
|
Returns
Type |
Description |
System.Collections.Generic.List<Localizables> |
|
CreateTranslationTables(IEnumerable<String>, IEnumerable<String>, String)
Declaration
public static void CreateTranslationTables(IEnumerable<string> localizables, IEnumerable<string> cultures, string folder)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
localizables |
|
System.Collections.Generic.IEnumerable<System.String> |
cultures |
|
System.String |
folder |
|
GetLocalizables(String, List<LocalizableItem>)
Declaration
public static List<LocalizableItem> GetLocalizables(string input, List<LocalizableItem> localizables = null)
Parameters
Type |
Name |
Description |
System.String |
input |
|
System.Collections.Generic.List<LocalizableItem> |
localizables |
|
Returns
GetTranslatable(String, List<LocalizableItem>)
Declaration
static IEnumerable<LocalizableItem> GetTranslatable(string input, List<LocalizableItem> localizables = null)
Parameters
Type |
Name |
Description |
System.String |
input |
|
System.Collections.Generic.List<LocalizableItem> |
localizables |
|
Returns
LoadLocalizer(String, String)
Declaration
public static LocalizerDictionary LoadLocalizer(string folder, string culture = null)
Parameters
Type |
Name |
Description |
System.String |
folder |
|
System.String |
culture |
|
Returns
SaveLocalizer(String, LocalizerDictionary, CultureInfo)
Declaration
public static void SaveLocalizer(string folder, LocalizerDictionary localizer, CultureInfo culture = null)
Parameters
Type |
Name |
Description |
System.String |
folder |
|
LocalizerDictionary |
localizer |
|
System.Globalization.CultureInfo |
culture |
|
TranslationTableFileName(String, String)
Declaration
static string TranslationTableFileName(string folder, string culture)
Parameters
Type |
Name |
Description |
System.String |
folder |
|
System.String |
culture |
|
Returns
Type |
Description |
System.String |
|