aboutsummaryrefslogtreecommitdiff
path: root/common/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/system.h')
-rw-r--r--common/system.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/common/system.h b/common/system.h
index 83d11998a4..4870efc854 100644
--- a/common/system.h
+++ b/common/system.h
@@ -30,6 +30,7 @@
#include "common/noncopyable.h"
#include "common/rect.h"
#include "common/list.h" // For OSystem::getSupportedFormats()
+#include "common/util.h" // For Common::Language
#include "graphics/pixelformat.h"
@@ -1050,6 +1051,25 @@ public:
*/
virtual void logMessage(LogMessageType::Type type, const char *message);
+ /**
+ * Returns the locale of the system.
+ *
+ * This returns the currently set up locale of the system, on which
+ * ScummVM is run.
+ *
+ * In case the locale can not be prepresented by Common::Language the
+ * backend should return Common::UNK_LANG.
+ *
+ * @see Common::Language
+ * @see Common::UNK_LANG
+ *
+ * The default implementation returns Common::UNK_LANG.
+ *
+ *
+ * @return locale of the system
+ */
+ virtual Common::Language getSystemLanguage() const;
+
//@}
};