OSID Logo
OSID Specifications
locale package
Version 3.1.0
Interfaceosid.locale.TranslationAdminSession
Implementsosid.OsidSession
Used Byosid.locale.LocaleManager
osid.locale.LocaleProxyManager
Description

This session defines methods to translate and format text between a source and target locale.

MethodgetSourceLanguageType
Description

Gets the source language used in this session.

Returnosid.type.Type the source language
Compliancemandatory This method must be implemented.
MethodgetSourceScriptType
Description

Gets the source script used in this session.

Returnosid.type.Type the source script
Compliancemandatory This method must be implemented.
MethodgetTargetLanguageType
Description

Gets the target language used in this session.

Returnosid.type.Type the target language
Compliancemandatory This method must be implemented.
MethodgetTargetScriptType
Description

Gets the target script used in this session.

Returnosid.type.Type the target script
Compliancemandatory This method must be implemented.
MethodcanUpdateTranslation
Description

Tests if this user can update localization strings. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer notification operations.

Returnboolean false if changing translation is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodaddTranslation
Description

Adds or updates a string translation.

ParametersstringsourceText the source string
stringtargetText the translated string
ErrorsNULL_ARGUMENT sourceText or targetText is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodremoveTranslation
Description

Removes a translation.

ParametersstringsourceText the source string
ErrorsNULL_ARGUMENT sourceText is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.