path: root/rbutil/rbutilqt/configure.cpp
diff options
authorDominik Riebeling <>2011-02-04 23:28:34 +0000
committerDominik Riebeling <>2011-02-04 23:28:34 +0000
commit988b3083df91d88848ec637664e2d8b9ed26a489 (patch)
tree07186d46e09da918d246ecbe2d86f3e49440f9e5 /rbutil/rbutilqt/configure.cpp
parent3419422c239758fc6002e56e6be3c034bc8dbe8e (diff)
Replace list of languages with map.
- Use ISO codes as keys for voice languages instead of enumeration. - Instead of trying to select a suitable voicefile language from the UI language use the ISO codes stored as UI language and match against the mapping. - Always store the selected UI language. Fixes the voicefile creation language lookup to fail if the language used is the system language. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/configure.cpp')
1 files changed, 3 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/configure.cpp b/rbutil/rbutilqt/configure.cpp
index 7ed74f1b9e..e5ea699257 100644
--- a/rbutil/rbutilqt/configure.cpp
+++ b/rbutil/rbutilqt/configure.cpp
@@ -131,9 +131,10 @@ void Config::accept()
if(RbSettings::value(RbSettings::Language).toString() != language
&& !language.isEmpty()) {
QMessageBox::information(this, tr("Language changed"),
- tr("You need to restart the application for the changed language to take effect."));
- RbSettings::setValue(RbSettings::Language, language);
+ tr("You need to restart the application for the changed language "
+ "to take effect."));
+ RbSettings::setValue(RbSettings::Language, language);
// mountpoint
QString mp = ui.mountPoint->text();