Skip to content

Commit

Permalink
[plugin manager] Fix metadata parsing language
Browse files Browse the repository at this point in the history
Use QGIS user interface language instead of system language
  • Loading branch information
agiudiceandrea authored and github-actions[bot] committed Dec 5, 2022
1 parent 6a07f3c commit 284ec3b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/pyplugin_installer/installer_data.py
Expand Up @@ -551,7 +551,11 @@ def metadataParser(fct):
def pluginMetadata(fct):
""" calls metadataParser for current l10n.
If failed, fallbacks to the standard metadata """
locale = QLocale.system().name()
overrideLocale = QgsSettings().value('locale/overrideFlag', False, bool)
if not overrideLocale:
locale = QLocale.system().name()
else:
locale = QgsSettings().value('locale/userLocale', '')
if locale and fct in translatableAttributes:
value = metadataParser("{}[{}]".format(fct, locale))
if value:
Expand Down

0 comments on commit 284ec3b

Please sign in to comment.