Localization and translations
The Tollium GetTid API
- STRING FUNCTION GetCanonicalTid(STRING tid)
Returns the canonical tid for a tid (eg tollium:tilde.xxx for ~xxx)
- STRING FUNCTION GetHTMLTid(STRING tid, STRING p1, STRING p2, STRING p3, STRING p4)
Get the HTML text for a tid in the current language
- STRING FUNCTION GetHTMLTidForLanguage(STRING languagecode, STRING tid, STRING p1, STRING p2, STRING p3, STRING p4)
Get the HTML text for a tid in the current language
- MACRO PTR FUNCTION GetMissingTidCallback()
Get the current missing tid callback
- STRING FUNCTION GetTid(STRING tid, STRING p1, STRING p2, STRING p3, STRING p4)
Get the text for a tid in the current language
- STRING FUNCTION GetTidForLanguage(STRING languagecode, STRING tid, STRING p1, STRING p2, STRING p3, STRING p4)
Get the text for a tid for a specific language
- STRING FUNCTION GetTIDLanguage()
Returns the current language
- STRING ARRAY FUNCTION GetTIDList(STRING gid)
Returns the list of tids defined in a group in the current language
- STRING ARRAY FUNCTION GetTIDListForLanguage(STRING langcode, STRING gid)
Returns the list of tids defined in a group
- STRING FUNCTION ParseXMLTidPtr(STRING resourcename, STRING currentgid, OBJECT el, STRING attrname)
Parse a title/tid combination, considering any groupid, default module and name/cellname rules. Returns an empty string if unset, ':' prefixed string for untranslated texts, and otherwise a module:tid combination
- MACRO SetMissingTidCallback(MACRO PTR callback)
Sets the callback called when a missing tid is encountered
- MACRO SetTIDLanguage(STRING language)
Sets the current language