cohtml.Net.ILocalizationManager
Takes care of translating text between different locales.
Inherits from SystemIDisposable
Public Classes
Section titled “Public Classes”| Name | |
|---|---|
| class | TranslationData The struct should be used by the implementer to set the translated text. Use this struct only in the context of a ILocalizationManager.OnTranslate call. |
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| virtual void | Dispose() |
| ILocalizationManager() | |
| virtual void | Translate(string key, ILocalizationManager.TranslationData data) DEPRECATED. Use the overload with TranslationData instead. Translates the given text in the currently selected language. The returned value must be UTF-8 encoded and outlive the method - it’s safe to delete the string on the next call to this method or after the system has been uninitialized. Return nullptr if there’s no translation for the text. Your application must take care of tracking the current locale and translating the text according to it. |
| delegate void | SwigDelegateILocalizationManager_0(string key, global.System.IntPtr data, global.System.IntPtr swigId) |
Protected Attributes
Section titled “Protected Attributes”| Name | |
|---|---|
| bool | swigCMemOwn |
Public Functions Documentation
Section titled “Public Functions Documentation”function Dispose
Section titled “function Dispose”virtual void Dispose()function ILocalizationManager
Section titled “function ILocalizationManager”ILocalizationManager()function Translate
Section titled “function Translate”virtual void Translate( string key, ILocalizationManager.TranslationData data)DEPRECATED. Use the overload with TranslationData instead. Translates the given text in the currently selected language. The returned value must be UTF-8 encoded and outlive the method - it’s safe to delete the string on the next call to this method or after the system has been uninitialized. Return nullptr if there’s no translation for the text. Your application must take care of tracking the current locale and translating the text according to it.
Parameters:
- key the key to the text that needs translation
Return: the translation of the given text, encoded in UTF-8
function SwigDelegateILocalizationManager_0
Section titled “function SwigDelegateILocalizationManager_0”delegate void SwigDelegateILocalizationManager_0( string key, global.System.IntPtr data, global.System.IntPtr swigId)Protected Attributes Documentation
Section titled “Protected Attributes Documentation”variable swigCMemOwn
Section titled “variable swigCMemOwn”bool swigCMemOwn;© 2026 Coherent Labs. All rights reserved.