multilang: return original string if missing (#37487)

should return og if not there
This commit is contained in:
Shane Smiskol
2026-02-28 21:50:59 -08:00
committed by GitHub
parent d634894300
commit d44fde7117
+1 -1
View File
@@ -181,7 +181,7 @@ class Multilang:
self.setup()
def tr(self, text: str) -> str:
return self._translations.get(text, text)
return self._translations.get(text, text) or text
def trn(self, singular: str, plural: str, n: int) -> str:
if singular in self._plurals: