company logo

Fixed text translation

In order to use fixed text strings in a program, the odaba::Application::translate() function might be called. When being called from within the C++ API (see ODABA class reference odaba::Application).

When no text entry has been created for the referenced string or when the text entry does not provide translation for the selected language, the text string passed will be returned as text value.

In order to change the default application language, one may call odaba::Application::translationLanguage() from within OSI, C++ or C# programs.

// DSC_Language=English

translate("This is an error message");          // -->This is an error message!

translationLanguage("German");

translate("This is an error message");          // -->Das ist eine Fehlernachricht!

translate("This is an error message","English");// -->This is an error message!

// no translation to Spanish available

translate("This is an error message","Spanish");// -->This is an error message