Skip to main content

EOS_Platform_GetActiveLocaleCode

Function EOS_Platform_GetActiveLocaleCode 

Source
pub unsafe extern "C" fn EOS_Platform_GetActiveLocaleCode(
    Handle: EOS_HPlatform,
    LocalUserId: EOS_EpicAccountId,
    OutBuffer: *mut c_char,
    InOutBufferLength: *mut i32,
) -> EOS_EResult
Expand description

Get the active locale code that the SDK will send to services which require it. This returns the override value otherwise it will use the locale code of the given user. This is used for localization. This follows ISO 639.

@param LocalUserId The account to use for lookup if no override exists. @param OutBuffer The buffer into which the character data should be written. The buffer must be long enough to hold a string of EOS_LOCALECODE_MAX_LENGTH. @param InOutBufferLength The size of the OutBuffer in characters. The input buffer should include enough space to be null-terminated. When the function returns, this parameter will be filled with the length of the string copied into OutBuffer.

@return An EOS_EResult that indicates whether the active locale code string was copied into the OutBuffer.

  • EOS_Success if the information is available and passed out in OutBuffer
  • EOS_InvalidParameters if you pass a null pointer for the out parameter
  • EOS_NotFound if there is neither an override nor an available locale code for the user.
  • EOS_LimitExceeded - The OutBuffer is not large enough to receive the locale code string. InOutBufferLength contains the required minimum length to perform the operation successfully.

@see eos_ecom.h @see EOS_LOCALECODE_MAX_LENGTH