mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Add love.system.getPreferredLocales()
This commit is contained in:
@@ -114,6 +114,19 @@ public:
|
||||
**/
|
||||
bool hasBackgroundMusic() const;
|
||||
|
||||
/**
|
||||
* Gets the list of locales in order of user preference.
|
||||
*
|
||||
* The returned string from this function has format of
|
||||
* xx_YY where 'xx' is ISO-639 language code and 'YY' is
|
||||
* the ISO-3166 country code if available. If country
|
||||
* code is unavailable, then it simply returns the language.
|
||||
*
|
||||
* @return List user preferred locales or empty if the current
|
||||
* platform does not support this function.
|
||||
*/
|
||||
virtual std::vector<std::string> getPreferredLocales() const = 0;
|
||||
|
||||
static bool getConstant(const char *in, PowerState &out);
|
||||
static bool getConstant(PowerState in, const char *&out);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user