1
0
Fork 0
forked from len0rd/rockbox

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://svn.rockbox.org/rockbox/trunk@29207 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2011-02-04 23:28:34 +00:00
parent 3419422c23
commit 988b3083df
6 changed files with 60 additions and 56 deletions

View file

@ -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();