Jiri Denemark d317d1d217 docs: Document requirements on format strings in translated messages
Preserving the order of format strings (%s, ...) when translating
messages may be very hard or even impossible depending on the target
language. On the other hand, reordering them requires understanding the
C-format strings which is not something we should expect from
translators. And even if someone reorders format strings in the right
way (by addressing arguments directly using N$), someone else may use a
translation tool that requires format strings in msgid and msgstr to
match exactly and forces these correct formats to be reverted.

As a result of this, we had several reported crashes in some locales
because integers were formatted as strings. So to make such crashes less
likely to happen and to make translating our messages easier, we now
require all messages that are marked for translation to use format
strings that always refer to the same argument no matter where they
appear in a message (e.g., %1$s, %5$llu).

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
2023-04-01 11:40:31 +02:00
..
2023-02-21 10:58:59 +01:00
2022-01-21 10:17:11 +01:00
2023-03-13 17:11:17 +01:00
2023-03-09 14:09:16 +01:00
2023-02-21 10:58:59 +01:00
2022-06-22 15:29:44 +02:00
2022-06-22 15:29:44 +02:00
2022-04-07 15:10:26 +02:00
2022-04-07 15:10:26 +02:00
2022-05-24 12:19:16 +02:00
2023-01-12 11:40:21 +01:00
2022-04-01 16:33:19 +02:00
2022-03-08 17:40:47 +01:00
2022-04-01 16:33:19 +02:00
2022-03-08 17:40:47 +01:00
2017-08-02 15:00:28 -04:00
2022-03-10 17:52:07 +01:00
2021-04-15 15:42:21 +02:00
2022-04-01 16:33:20 +02:00
2022-04-14 11:54:28 +02:00
2022-04-07 15:10:26 +02:00
2022-03-08 17:40:47 +01:00
2022-07-18 11:10:55 +02:00
2022-07-18 11:10:55 +02:00
2022-05-24 12:19:15 +02:00