OTRS API Reference JavaScript

Namespace: Core.Language

Core. Language

Provides functions for translating strings in JavaScript functions.
Author:
  • OTRS AG
Source:

Methods

(static) DecimalSeparatorGet() → {String}

Returns decimal separator for selected language.
Source:
Returns:
Decimal separator for current language
Type
String

(static) Load(LanguageMetaData, TranslationData)

Load translation data for the specified language for later use.
Parameters:
Name Type Description
LanguageMetaData Object The language meta data, like date format strings.
TranslationData Object The language data hash, the key is the original string, the value its translation.
Source:

(static) Translate(TranslateString, …Parameteropt) → {String}

Translate the given string.
Parameters:
Name Type Attributes Description
TranslateString String String to translate.
Parameter String <optional>
<repeatable>
Multiple parameters that replace %s in TranslateString.
Source:
Returns:
The translated string.
Type
String