diff --git a/src/i18n.py b/src/i18n.py index 4557fb758..d428e8e2d 100644 --- a/src/i18n.py +++ b/src/i18n.py @@ -1,5 +1,5 @@ ### -# Copyright (c) 2010-2021, Valentin Lorentz +# Copyright (c) 2010-2024, Valentin Lorentz # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -263,15 +263,14 @@ class _PluginInternationalization: """Main function. This is the function which is called when a plugin runs _()""" + if untranslated.__class__ is InternationalizedString: + untranslated = untranslated._origin + normalizedUntranslated = normalize(untranslated, True) try: string = self._translate(normalizedUntranslated) return self._addTracker(string, untranslated) except KeyError: - pass - if untranslated.__class__ is InternationalizedString: - return untranslated._original - else: return untranslated def _translate(self, string):