SC_ClientConfig_SetLanguages()

Sets languages supported by the game.

Synopsis:

#include <scoreloop/sc_client_config.h>
 
SC_DEPRECATED SC_PUBLISHED_WEAKLY SC_Error_t SC_ClientConfig_SetLanguages(SC_ClientConfig_h self, const char *languages)

Since:

BlackBerry 10.3.0

Deprecated in BlackBerry 10.3.0

Arguments:

languages

A comma-separated list of languages the game supports. e.g., for English, pass "en". This parameter is mandatory if the game supports localization of Awards. The current language on the device is intersected with the given list and all Scoreloop supported languages. If an intersection is found, the intersected language will be used. If there is no intersection the first language from the given list is used. English ("en") will be used if NULL is passed. Example: List of languages supported by game: ['en', 'en_US', 'de', 'pl']. For exemplary OS language, following language from the list will be used: en_US -> en_US, en_UK -> en, pl_PL -> pl, de -> de, it -> en.

self

Opaque handle for the current client instance.

languages

A coma separated list of language codes.

Library:

libscoreloopcore (For the qcc command, use the -l scoreloopcore option to link against this library)

Description:

Note that the awards bundle needs to be localized to all given languages.

Returns:

SC_Error_t A return code (A value of SC_OK indicates success, any other value indicates an error).

Last modified: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus