This API will allow a developer to get/set language information for Content Server.
Error ERROR
Unknown error constant.
Error BAD_TABLE_FORMAT
The pMultilingual table attribute is not in the expected format.
Error DISABLED
The language is disabled.
Error INVALID
The language is invalid.
Error EMPTY
The language name cannot be empty.
Error EMPTY_VALUE
The value cannot be empty.
Error EMPTY_LOCAL
The local language name cannot be empty.
Error INVALID_ASSOC
The name/language assoc is invalid.
Integer OK
Success return constant.
RecArray GetSystemLanguages( CAPICONNECT connection)
Gets the master list of languages defined in Content Server. .
connection | - | The connection to use for the query. |
LanguageCode | the language code in the format xx_YYY (for example: en, en_US) |
LanguageName | the name of the language that the admin user will see |
LanguageNameLocal | the localized name of the language that non-admin users will see |
String GetDefaultLanguage( CAPILOGIN login)
Gets the default metadata language code.
Integer SetDefaultLanguage( CAPILOGIN login) String languageCode
)
Sets the default metadata language code.
login | - | The login to use to set the data. |
languageCode | - | The language code to make default. |
RecArray GetEnabledLanguages( CAPICONNECT connection)
Gets the list of enabled metadata languages.
connection | - | The connection to use for the query. |
LanguageCode | the language code in the format xx_YYY (for example: en, en_US) |
LanguageName | the name of the language that the admin user will see |
LanguageNameLocal | the localized name of the language that non-admin users will see |
Integer InsertLanguage( CAPILOGIN login) String languageCode
) Boolean enabled
)
Adds a language to the pool of available metadata languages.
login | - | The login to use to set the data. |
languageCode | - | The language code to add. |
enabled | - | Optional: true if the language should be enabled (default is false). |
Integer DeleteLanguage( CAPILOGIN login) String languageCode
)
Removes a language from the pool of available metadata languages.
login | - | The login to use to set the data. |
languageCode | - | The language code to remove. |
Integer RenameLanguage( CAPICONNECT connect) String languageCode
) String languageName
) String languageNameLocal
)
Adds a language to the pool of available metadata languages.
connect | - | The connection to use to set the data. |
languageCode | - | The language code to add. |
languageName | - | The new name of the language for the admin user's view. |
languageNameLocal | - | The new name of the language for the localized, non-admin user's view. |
Integer EnableLanguage( CAPILOGIN login) String languageCode
)
Mark the given metadata language as enabled.
login | - | The login to use to set the data. |
languageCode | - | The language code to enable. |
Integer DisableLanguage( CAPILOGIN login) String languageCode
)
Mark the given metadata language as disabled.
login | - | The login to use to set the data. |
languageCode | - | The language code to disable. |
Boolean IsLanguageEnabled( CAPICONNECT connection) String languageCode
)
Checks if the given metadata language is currently enabled.
connection | - | The connection to use to retrieve the data. |
languageCode | - | The language code to check. |
String DetermineCoreValue( CAPILOGIN login) Assoc values
)
Determine the core value from the data given, based on the current language configuration.
login | - | The login to use to retrieve the data. |
values | - | A set of values, keyed by their respective language codes. |
String DetermineCoreLanguageCode( CAPILOGIN login) Assoc values
)
Determine the language code for the core value from the data given, based on the current language configuration.
login | - | The login to use to retrieve the data. |
values | - | A set of values, keyed by their respective language codes. |