1
0
Files
electrum/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
..
2024-09-18 15:48:38 +00:00
2025-06-12 21:02:58 +02:00
2024-05-30 13:08:13 +00:00
2025-05-28 10:42:59 +02:00
2025-02-19 14:29:02 +01:00
2025-04-02 16:21:59 +00:00
2025-06-26 14:10:18 +00:00
2025-04-23 16:09:31 +02:00
2024-11-29 17:09:29 +08:00
2023-04-24 12:58:26 +00:00
2024-04-24 14:14:31 +00:00
2024-05-20 16:57:11 +02:00
2023-12-04 14:15:39 +08:00
2025-04-23 16:09:31 +02: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
2025-04-23 16:09:31 +02:00