@@ -240,7 +240,7 @@ void DesktopFileAMParser::updateActions()
240240 auto actionNames = m_applicationInterface->actionName ();
241241
242242 for (auto action : actions) {
243- auto localeName = actionNames.value (action). value (currentLanguageCode );
243+ auto localeName = getLocaleName (currentLanguageCode, actionNames.value (action));
244244 auto fallbackDefaultName = actionNames.value (action).value (DEFAULT_KEY);
245245 m_actions.append ({action, localeName.isEmpty () ? fallbackDefaultName : localeName});
246246 }
@@ -250,7 +250,7 @@ void DesktopFileAMParser::updateLocalName()
250250{
251251 QString currentLanguageCode = QLocale::system ().name ();
252252 auto names = m_applicationInterface->name ();
253- auto localeName = names. value (currentLanguageCode);
253+ auto localeName = getLocaleName (currentLanguageCode, names );
254254 auto fallbackName = names.value (DEFAULT_KEY);
255255 m_name = localeName.isEmpty () ? fallbackName : localeName;
256256}
@@ -264,7 +264,7 @@ void DesktopFileAMParser::updateLocalGenericName()
264264{
265265 QString currentLanguageCode = QLocale::system ().name ();
266266 auto genericNames = m_applicationInterface->genericName ();
267- auto localeGenericName = genericNames. value (currentLanguageCode);
267+ auto localeGenericName = getLocaleName (currentLanguageCode, genericNames );
268268 auto fallBackGenericName = genericNames.value (DEFAULT_KEY);
269269 m_genericName = localeGenericName.isEmpty () ? fallBackGenericName : localeGenericName;
270270}
0 commit comments