From 1ad63b431ee031c0d4bb6d520d70103a60459d55 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 28 Nov 2010 02:12:33 +0000 Subject: BACKEND: Switch OSystem::getSystemLanguage return type to Common::String. This is done as discussed on -devel. svn-id: r54516 --- common/system.h | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'common/system.h') diff --git a/common/system.h b/common/system.h index 4870efc854..54c6fa8df7 100644 --- a/common/system.h +++ b/common/system.h @@ -30,7 +30,6 @@ #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" @@ -1057,18 +1056,17 @@ public: * 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. + * The format of the locale is language_country. These should match + * the POSIX locale values. * + * For information about POSIX locales read here: + * http://en.wikipedia.org/wiki/Locale#POSIX-type_platforms + * + * The default implementation returns "en_US". * * @return locale of the system */ - virtual Common::Language getSystemLanguage() const; + virtual Common::String getSystemLanguage() const; //@} }; -- cgit v1.2.3