mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-28 08:54:13 -04:00
Fixed set of default language in LanguageSupport::localize. Use value of language map instead of key.
This commit is contained in:
parent
33fc4308c4
commit
eb4f482a4e
1 changed files with 1 additions and 1 deletions
|
@ -261,6 +261,6 @@ bool LanguageSupport::localize(const QString &languageCode)
|
|||
{
|
||||
if (!isValidLanguageCode(languageCode))
|
||||
return false;
|
||||
QLocale::setDefault(locales().key(languageCode));
|
||||
QLocale::setDefault(locales()[languageCode]);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue