Manage translations
Use C# APIs to read or write the translated strings inside the LocalizationDictionary
objects.
The APIs are supplied by the InformationModel
static class.
LocalizedText
class
Every API has an instance of the
LocalizedText
C# class among its own arguments, which identifies a key/line or specific string translated in a LocalizationDictionary
. It contains the following properties:
NamespaceIndex
(int)-
Identifier of the namespace of the project to which the
LocalizationDictionary
belongs.Tip: If theLocalizationDictionary
is in the same NetLogic project, you do not need to specify theNamespaceIndex
in the construction of aLocalizedText
. TextId
(string)- A key with which the translations of a string can be associated.
LocaleId
(string)- A locale ID. For example:
en-US
. Text
(string)- A translated string.