mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-27 08:18:41 +00:00
locale: Added docs to SDL_Locale struct, to fix wiki docs.
This commit is contained in:
parent
ca94cb5db0
commit
56846df9b0
1 changed files with 13 additions and 1 deletions
|
|
@ -39,13 +39,25 @@ extern "C" {
|
|||
/* *INDENT-ON* */
|
||||
#endif
|
||||
|
||||
|
||||
/**
|
||||
* A struct to provide locale data.
|
||||
*
|
||||
* Locale data is split into a spoken language, like English, and an optional
|
||||
* country, like Canada. The language will be in ISO-639 format (so English
|
||||
* would be "en"), and the country, if not NULL, will be an ISO-3166 country
|
||||
* code (so Canada would be "CA").
|
||||
*
|
||||
* \since This function is available since SDL 3.2.0.
|
||||
*
|
||||
* \sa SDL_GetPreferredLocales
|
||||
*/
|
||||
typedef struct SDL_Locale
|
||||
{
|
||||
const char *language; /**< A language name, like "en" for English. */
|
||||
const char *country; /**< A country, like "US" for America. Can be NULL. */
|
||||
} SDL_Locale;
|
||||
|
||||
|
||||
/**
|
||||
* Report the user's preferred locale.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue