Files
pallectrum/electrum
SomberNight d16c625019 i18n: syntax-check translations at runtime
We often call str.format() on translated strings.
E.g. `_("time left: {} seconds").format(t1)`
If the translated string has a different format syntax, this can raise at runtime.

This PR adds some runtime checks that try to ensure the source string and the translated string
have a similar format syntax. If the checks fail, `_()` will "reject" the translation by
returning the source string.

fixes https://github.com/spesmilo/electrum/issues/10010
ref https://github.com/spesmilo/electrum/issues/10007#issue-3203378250
2025-07-07 13:54:11 +00:00
..
2025-06-12 21:02:58 +02:00
2025-05-28 10:42:59 +02:00
2025-06-26 14:10:18 +00:00
2025-06-26 14:10:18 +00:00
2025-06-13 16:50:58 +00:00
2025-06-29 22:25:56 +00:00
2025-05-28 10:46:00 +02:00