From c896982efb19028c57400e81d46cc0fe9eea5681 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Wed, 4 Dec 2019 12:41:40 +0800 Subject: [PATCH] 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. --- src/base/search/searchpluginmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/search/searchpluginmanager.cpp b/src/base/search/searchpluginmanager.cpp index 77520c35b..d18e9a98f 100644 --- a/src/base/search/searchpluginmanager.cpp +++ b/src/base/search/searchpluginmanager.cpp @@ -318,7 +318,7 @@ SearchHandler *SearchPluginManager::startSearch(const QString &pattern, const QS QString SearchPluginManager::categoryFullName(const QString &categoryName) { - static const QHash categoryTable { + const QHash categoryTable { {"all", tr("All categories")}, {"movies", tr("Movies")}, {"tv", tr("TV shows")},