Class TranslationIndexer
- Inheritance
-
TranslationIndexer
- Implements
-
- Inherited Members
-
- Namespace
- TabularEditor.TOMWrapper
- Assembly
- TOMWrapper.dll
[TypeConverter(typeof(IndexerConverter))]
public sealed class TranslationIndexer : IEnumerable<string>, IEnumerable
- Extension Methods
-
Properties
DefaultValue
public string DefaultValue { get; }
Property Value
IsEmpty
public bool IsEmpty { get; }
Property Value
this[string]
public string this[string cultureName] { get; set; }
Parameters
Type |
Name |
Description |
string |
cultureName |
|
Property Value
this[Culture]
public string this[Culture culture] { get; set; }
Parameters
Type |
Name |
Description |
Culture |
culture |
|
Property Value
Keys
public IEnumerable<string> Keys { get; }
Property Value
Summary
public string Summary { get; }
Property Value
TranslatedCount
public int TranslatedCount { get; }
Property Value
Methods
Clear()
Clears all translated values for the object.
Contains(Culture)
public bool Contains(Culture culture)
Parameters
Type |
Name |
Description |
Culture |
culture |
|
Returns
Copy()
public Dictionary<string, string> Copy()
Returns
CopyFrom(IDictionary<string, string>)
public void CopyFrom(IDictionary<string, string> source)
Parameters
CopyFrom(TranslationIndexer, Func<string, string>)
Copy translations from another translation collection.
public void CopyFrom(TranslationIndexer translations, Func<string, string> mutator = null)
Parameters
GetDisplayName(string)
Gets the value to display for a given key. Note, this is not the value of the object represented by the key.
public string GetDisplayName(string key)
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
GetEnumerator()
public IEnumerator<string> GetEnumerator()
Returns
GetTranslatedCultures()
public IEnumerable<Culture> GetTranslatedCultures()
Returns
Refresh()
Reset()
Resets the translations of the object. Caption translations are removed, making the object appear with
the base name in all locales. Display Folder and Description translations are set to the untranslated
value of the object.
SetAll(string)
Sets all translations to the specified value.
public void SetAll(string value)
Parameters
Type |
Name |
Description |
string |
value |
|
ToJson()
Returns