Fix incorrect translation displayed after language change

It is expected in WebUI that the language change applies immediately
(without a program restart) and this static caching prevents that.
This commit is contained in:
Chocobo1 2019-12-04 12:41:40 +08:00 committed by sledgehammer999
parent 93fe20afcd
commit 5a518d2f35
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2

View file

@ -318,7 +318,7 @@ SearchHandler *SearchPluginManager::startSearch(const QString &pattern, const QS
QString SearchPluginManager::categoryFullName(const QString &categoryName)
{
static const QHash<QString, QString> categoryTable {
const QHash<QString, QString> categoryTable {
{"all", tr("All categories")},
{"movies", tr("Movies")},
{"tv", tr("TV shows")},