Xavier Morel
9ebbfdac73
[FIX] *: incorrect translations markings
...
Fixes a large number of cases where strings are translated then
formatted, instead of letting `_()` do the formatting internally,
which allows it to recover from incorrect translations (missing,
broken, or extra placeholders).
Also
- removes translation markers entirely when there's nothing to
translate e.g. `_("%s - %s")` is not useful
- fixes a few messes which lead to only partial translatability
(DRY is generally a bad idea when translations are involved, even
more so when you don't make the variable part translatable)
- fixes a few nearby issues noticed at the same time
- replaces a few `"%s"` by `%r`, which should automatically quote
strings relatively appropriately
- fixes translated strings which use `\` to escape a newline (in order
to fill-paragraph): `\` escapes only the newline, if the
continuation string is indented this results in a bunch of spaces
ending in the string to translate, which is pretty garbage for the
translator, using implicit concatenation works much better
Note: some of the updates revert f-string parameters to %, because
babel (2.9) apparently has trouble with f-strings and blows up trying
to extract them.
Not in scope:
Helping translators fix translatable strings e.g. any translation
string with more than one placeholder probably should use keyword
placeholders
- Provides more context / data to the translator to make sense of the
sentence.
- Allows reordering the translated terms, which can be necessary
depending on the sentence and language.
closes odoo/odoo#139314
Related: odoo/enterprise#49311
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com >
2023-10-23 16:45:09 +00:00
..
2023-10-23 16:45:09 +00:00
2023-10-16 09:21:17 +00:00
2023-10-23 16:45:09 +00:00
2023-10-20 09:35:06 +00:00
2023-10-11 08:18:49 +00:00
2023-10-18 18:27:28 +00:00
2023-10-20 16:20:50 +00:00
2023-10-11 08:18:49 +00:00
2023-10-11 08:18:49 +00:00
2023-10-23 16:45:09 +00:00
2023-10-20 14:59:16 +00:00
2023-10-23 16:45:09 +00:00
2023-10-16 07:58:42 +00:00
2023-10-20 09:35:21 +00:00
2023-10-18 13:39:09 +00:00
2023-10-23 16:45:09 +00:00
2023-10-23 16:45:09 +00:00
2023-10-23 16:45:09 +00:00
2023-10-13 14:14:05 +00:00
2023-10-23 16:45:09 +00:00
2023-10-11 08:18:49 +00:00
2023-10-21 03:53:38 +00:00
2023-10-16 09:21:17 +00:00
2023-10-23 13:11:27 +00:00
2023-10-23 16:45:09 +00:00
2023-10-16 09:21:17 +00:00
2023-10-20 11:21:56 +00:00
2023-10-23 16:45:09 +00:00
2023-10-16 09:21:17 +00:00
2023-10-23 16:45:09 +00:00
2023-10-11 08:18:49 +00:00
2023-10-23 16:45:09 +00:00
2023-10-13 07:33:49 +00:00
2023-10-19 11:59:47 +00:00
2023-10-18 12:05:17 +00:00
2023-10-13 07:33:49 +00:00
2023-10-23 16:45:09 +00:00
2023-10-23 16:45:09 +00:00
2023-10-23 16:45:09 +00:00
2023-10-16 07:58:45 +00:00
2023-10-11 08:18:49 +00:00
2023-10-23 16:45:09 +00:00
2023-10-23 16:45:09 +00:00
2023-10-19 19:08:12 +00:00
2023-10-20 23:37:36 +00:00
2023-10-12 16:12:09 +00:00
2023-10-23 16:45:09 +00:00
2023-10-19 14:47:18 +00:00
2023-10-18 16:52:05 +00:00
2023-10-11 08:18:49 +00:00
2023-10-12 16:11:59 +00:00
2023-10-18 15:26:33 +00:00
2023-10-20 11:21:56 +00:00
2023-10-23 07:17:48 +00:00
2023-10-23 16:45:09 +00:00
2023-10-16 10:39:50 +00:00
2023-10-11 17:01:59 +00:00
2023-10-23 16:45:09 +00:00
2023-10-19 14:47:18 +00:00
2023-10-12 16:12:02 +00:00
2023-10-23 16:45:09 +00:00
2023-10-23 16:45:09 +00:00
2023-10-16 09:21:17 +00:00
2023-10-20 09:35:27 +00:00
2023-10-20 19:12:40 +00:00
2023-10-23 16:45:09 +00:00
2023-10-23 09:05:08 +00:00
2023-10-20 19:12:40 +00:00
2023-10-11 08:18:49 +00:00
2023-10-23 16:45:09 +00:00
2023-10-18 12:05:15 +00:00
2023-10-23 16:45:09 +00:00
2023-10-20 11:22:01 +00:00
2023-10-16 13:11:10 +00:00
2023-10-18 15:26:31 +00:00
2023-10-16 09:21:11 +00:00
2023-10-16 09:21:11 +00:00
2023-10-14 03:27:09 +00:00
2023-10-20 09:35:06 +00:00
2023-10-23 16:45:09 +00:00
2023-10-11 08:18:49 +00:00
2023-10-20 19:12:44 +00:00
2023-10-20 23:37:48 +00:00
2023-10-20 19:12:44 +00:00
2023-10-11 08:18:49 +00:00
2023-10-18 15:26:31 +00:00
2023-10-20 19:12:40 +00:00
2023-10-23 16:45:09 +00:00
2023-10-23 16:45:09 +00:00
2023-10-11 08:18:49 +00:00
2023-10-18 15:26:31 +00:00
2023-10-11 08:18:49 +00:00
2023-10-11 08:18:49 +00:00
2023-10-11 08:18:49 +00:00
2023-10-11 08:18:49 +00:00
2023-10-23 16:45:09 +00:00
2023-10-23 16:45:09 +00:00
2023-10-18 15:26:31 +00:00
2023-10-11 08:18:49 +00:00
2023-10-11 08:18:49 +00:00
2023-10-20 23:37:38 +00:00
2023-10-20 23:37:38 +00:00
2023-10-20 23:37:38 +00:00
2023-10-20 11:22:01 +00:00
2023-10-11 08:18:49 +00:00
2023-10-23 16:45:09 +00:00
2023-10-11 08:18:49 +00:00
2023-10-16 17:20:44 +00:00
2023-10-11 08:18:49 +00:00
2023-10-12 09:49:42 +00:00
2023-10-20 19:12:47 +00:00
2023-10-11 08:18:49 +00:00
2023-10-21 02:22:48 +00:00
2023-10-11 08:18:49 +00:00
2023-10-12 14:44:52 +00:00
2023-10-23 16:45:09 +00:00
2023-10-11 08:18:49 +00:00
2023-10-23 16:45:09 +00:00
2023-10-19 19:08:15 +00:00
2023-10-23 16:45:09 +00:00
2023-10-11 08:18:49 +00:00
2023-10-10 17:26:34 +00:00
2023-10-13 19:14:53 +00:00
2023-10-18 13:39:15 +00:00
2023-10-18 15:26:28 +00:00
2023-10-23 16:45:09 +00:00
2023-10-16 09:21:17 +00:00
2023-10-11 08:18:49 +00:00
2023-10-19 19:08:12 +00:00
2023-10-20 19:12:43 +00:00
2023-10-13 07:33:49 +00:00
2023-10-23 16:45:09 +00:00
2023-10-16 09:21:17 +00:00
2023-10-18 16:52:08 +00:00
2023-10-11 20:21:46 +00:00
2023-10-23 16:45:09 +00:00
2023-10-20 14:59:09 +00:00
2023-10-23 16:45:09 +00:00
2023-10-11 08:18:49 +00:00
2023-10-11 08:18:49 +00:00
2023-10-11 08:18:49 +00:00
2023-10-11 08:18:49 +00:00
2023-10-11 06:59:49 +00:00
2023-10-18 21:21:15 +00:00
2023-10-20 09:35:21 +00:00
2023-10-16 17:20:42 +00:00
2023-10-18 18:27:28 +00:00
2023-10-18 16:52:01 +00:00
2023-10-19 14:47:34 +00:00
2023-10-23 16:45:09 +00:00
2023-10-20 09:35:21 +00:00
2023-10-23 16:45:09 +00:00
2023-10-18 15:26:31 +00:00
2023-10-23 16:45:09 +00:00
2023-10-18 15:26:31 +00:00
2023-10-18 15:26:31 +00:00
2023-10-11 08:18:49 +00:00
2023-10-23 16:45:09 +00:00
2023-10-19 18:02:17 +00:00
2023-10-23 16:45:09 +00:00
2023-10-18 15:26:31 +00:00
2023-10-23 14:21:43 +00:00
2023-10-12 16:11:56 +00:00
2023-10-18 15:26:31 +00:00
2023-10-10 15:42:52 +00:00
2023-10-23 16:45:09 +00:00
2023-10-11 08:18:49 +00:00
2023-10-23 16:45:09 +00:00
2023-10-20 23:37:36 +00:00
2023-10-20 23:37:36 +00:00
2023-10-23 16:45:09 +00:00
2023-10-19 19:08:12 +00:00
2023-10-23 16:45:09 +00:00
2023-10-23 16:45:09 +00:00
2023-10-11 08:18:49 +00:00
2023-10-20 18:06:40 +00:00
2023-10-10 12:34:56 +00:00
2023-10-23 16:45:09 +00:00
2023-10-19 19:08:12 +00:00
2023-10-23 16:45:09 +00:00
2023-10-23 16:45:09 +00:00
2023-10-17 05:28:53 +00:00
2023-10-20 23:37:36 +00:00
2023-10-20 23:37:36 +00:00
2023-10-10 19:34:06 +00:00
2023-10-18 13:39:19 +00:00
2023-10-20 09:35:11 +00:00
2023-10-17 08:53:06 +00:00
2023-10-11 08:18:49 +00:00
2023-10-23 16:45:09 +00:00
2023-10-23 16:45:09 +00:00
2023-10-23 16:45:09 +00:00
2023-10-23 16:45:09 +00:00
2023-10-16 09:21:17 +00:00
2023-10-16 09:21:17 +00:00
2023-10-23 16:45:09 +00:00
2023-10-20 23:37:50 +00:00
2023-10-19 14:47:31 +00:00
2023-10-20 14:59:19 +00:00
2023-10-19 10:45:53 +00:00
2023-10-19 10:45:53 +00:00
2023-10-20 23:37:36 +00:00
2023-10-19 10:45:53 +00:00
2023-10-19 10:45:53 +00:00
2023-10-19 10:45:53 +00:00
2023-10-19 10:45:53 +00:00
2023-10-19 10:45:53 +00:00
2023-10-20 09:35:28 +00:00
2023-10-19 10:45:53 +00:00
2023-10-19 10:45:53 +00:00
2023-10-19 10:45:53 +00:00
2023-10-19 10:45:53 +00:00
2023-10-23 16:45:09 +00:00
2023-10-23 16:45:09 +00:00
2023-10-23 16:45:09 +00:00
2023-10-23 16:45:09 +00:00
2023-10-16 07:58:44 +00:00
2023-10-23 16:45:09 +00:00
2023-10-20 09:35:12 +00:00
2023-10-20 23:37:44 +00:00
2023-10-13 07:33:49 +00:00
2023-10-18 13:39:06 +00:00
2023-10-20 23:37:44 +00:00
2023-10-20 23:37:44 +00:00
2023-10-13 19:14:53 +00:00
2023-10-13 07:33:49 +00:00
2023-10-19 22:01:48 +00:00
2023-10-14 03:27:03 +00:00
2023-10-23 16:45:09 +00:00
2023-10-16 09:21:17 +00:00
2023-10-23 13:11:23 +00:00
2023-10-23 13:11:28 +00:00
2023-10-20 11:22:17 +00:00
2023-10-13 21:11:52 +00:00
2023-10-23 16:45:09 +00:00
2023-10-16 09:21:17 +00:00
2023-10-11 08:18:49 +00:00
2023-10-20 22:10:39 +00:00
2023-10-23 16:45:09 +00:00
2023-10-16 09:21:17 +00:00
2023-10-20 22:10:39 +00:00
2023-10-23 16:45:09 +00:00
2023-10-23 16:45:09 +00:00
2023-10-16 09:21:17 +00:00
2023-10-20 22:10:39 +00:00
2023-10-13 09:17:45 +00:00
2023-10-16 09:21:17 +00:00
2023-10-23 16:45:09 +00:00
2023-10-16 09:21:17 +00:00
2023-10-16 09:21:17 +00:00
2023-10-23 16:45:09 +00:00
2023-10-19 19:08:11 +00:00
2023-10-16 09:21:17 +00:00
2023-10-16 09:21:17 +00:00
2023-10-20 09:35:21 +00:00
2023-10-23 16:45:09 +00:00
2023-10-16 09:21:17 +00:00
2023-10-16 09:21:17 +00:00
2023-10-20 20:52:42 +00:00
2023-10-19 14:47:36 +00:00
2023-10-11 08:18:49 +00:00
2023-10-10 17:26:31 +00:00
2023-10-16 09:21:17 +00:00
2023-10-16 09:21:17 +00:00
2023-10-23 16:45:09 +00:00
2023-10-19 14:47:14 +00:00
2023-10-23 16:45:09 +00:00