aboutsummaryrefslogtreecommitdiff
path: root/common/localization.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/localization.cpp')
-rw-r--r--common/localization.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/localization.cpp b/common/localization.cpp
index c4c76c3b99..afd31b8d22 100644
--- a/common/localization.cpp
+++ b/common/localization.cpp
@@ -20,6 +20,7 @@
*/
#include "common/localization.h"
+#include "common/translation.h"
namespace Common {
@@ -54,4 +55,12 @@ void getLanguageYesNo(Language id, KeyCode &keyYes, KeyCode &keyNo) {
}
}
+void getLanguageYesNo(KeyCode &keyYes, KeyCode &keyNo) {
+#ifdef USE_TRANSLATION
+ getLanguageYesNo(Common::parseLanguageFromLocale(TransMan.getCurrentLanguage().c_str()), keyYes, keyNo);
+#else
+ getLanguageYesNo(Common::EN_ANY, keyYes, keyNo);
+#endif
+}
+
} // End of namespace Common