- "contains" (langString::contains)
A member function of the langString data type. It verifies if the langString contains the given language.
- "count" (langString::count)
A member function of the langString data type. It returns the number of languages in the langString.
- "setText" (langString::setText)
The function sets a text of a langString to the given string.
- "text" (langString::text)
The function returns the text of a langString. The given parameter defines the language that is returned.
- errorText()
Returns the text for the error code. This function should not be used anymore but remains included for reasons of compatibility. Instead of this function, use the functions getCatStr() or getErrorText(). These functions allow the definition of own error messages dependent on specific error codes. The error codes are saved in the file _errors.cat in the directory <wincc_oa_path>/msg/<lang>, respectively in the same file in the project directory.
- getActiveLang()
Returns the active language. The function getActiveLangId() provides the same functionality but returns an OaLanguage enum.
- getActiveLangId()
Returns the active language as an OaLanguage Enum. This function is the same as getActiveLang() but uses the OaLanguage Enum as return value.
- getAllLangIds()
Returns a vector of all languages available in WinCC OA.
- getCatStr()
This function exports a catalog entry.
- getGlobalLangId()
Returns the sequence number of a project language from the lang.dir file <wincc_oa_path>/nls. This means that you pass an index of a project language (from the config file) as a parameter and the sequence number of this language from thelang.dir file will be returned.
- getLangIdx()
The function getLangIdx() returns the sequence number of the passed language (language that has been passed as a parameter) from the project config file. If you, for example, pass the language ID "ru_RU.utf8" (Russian) as a parameter and this language is on the third place in the config file, the function returns 2. The function returns 2 instead of 3 because the index of the languages in the config file starts at 0.
- getLocale()
Returns the language identifier
- getMetaLang()
Returns the index of the meta language.
- getNoOfLangs()
Gets the number of languages currently available.
- getProjectLangIds()
Returns a vector of all languages available within the project.
- langEditor()
Opens a language editor (langEditor)
- setLangString()
Sets an entry of a langString to a string.
- switchLang()
Function for switching the language at runtime in a user interface.
- translate()
Translates a term.
- writeDictionary()
Writes the internal translation table to a file.