Re: [PATCH] Add L10N percentages to translation strings.
"Kevin J. McCarthy" <[email protected]> Fri, 1 May 2026 20:20:41 +0800
| Newsgroups | gmane.mail.mutt.devel |
|---|---|
| Message-ID | <afSamX8FuX7xTMFf@qinghai> |
On Fri, May 01, 2026 at 12:19:34PM +0200, Oswald Buddenhagen via Mutt-dev wrote:
>the subject and (lack of) description left me guessing what this patch
>even is about, so you may want to expand it.
>
>also, to be super-pedantic, you are adding "i18n of percentages". l10n
>is the process of populating the .po files with actual translations.
>this affects the naming in the code as well.
The L10N flags on the comments end up as comments to the translators.
>On Fri, May 01, 2026 at 12:47:11PM +0800, Kevin J. McCarthy wrote:
>>+++ b/curs_lib.c
>>- mutt_message("%s %s/%s (%d%%)", progress->msg, posstr, progress->sizestr,
>>+ mutt_buffer_addstr(messagefmt, "/%s (");
>>+ mutt_buffer_addstr(messagefmt, mutt_l10n_percentage());
>>+ mutt_buffer_addstr(messagefmt, ")");
>>
>it's kind of funny to see that in a patch that improves i18n, because
>such word puzzles are about as i18n-hostile as it gets. of course it
>doesn't actually matter here, because that format string isn't i18n'd
>- but maybe it should be? conventions on ordering and parenthesizing
>things vary between locales.
This was suggested by a translator, I merely cleaned it up. So
apparently it's useful to at least one of the Mutt translators.
I don't think doing it for the whole format string would help. Maybe
you were being funny too, though?
--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEiXWpszqjeRA4XFMIre92hIAxa9oFAmn0mpkACgkQre92hIAx a9psfBAAjVkzScg4gyiUtQ6N5WYF1mucpGjBAdnZJV7GtSipoEwYLPUPAS7Rv/80 TtetUeeG3OTSCgQ3WP240R9B1z4JfBT9WT/sk5VT/AuZpeQ/HpFUvsunkxdpE+UZ qiEGMcowksmvUuWka6FHVWMg9kXPIzyr7QoX79HFxIF0A2omhvb0uRERW+iRm5Ic gvBHtFhwdXFQ5UT/RFWJRehg3NvBfd/ifwaAZ5mKARs28YmH5Zr0H8h9N2GqT2ap v5quE8DVnBI3sE2uQmmAUtYcjdfQP/LMAoMx9bw/HiOpMDNHpcn15KrRi0MRhswg 9QcxxwsDrCCeVWDSom5ucwnhnrBCrBa6wmSudOzHxIQdX5hMjYHyTN6claSpVDgH YuI730XJV5Ufxh/jLzaqRHP+5PG+YQ6RC8POFND9lTUKVJVONqPb9LguTLw/2Bce odYICTqk9I0Q7DpuwWGJcVdhfjIFceOdCOb7IC65mnKWUHmsZOWN/58rOmavEiU2 K9lmWF8aNZIPunwClGGm8+/Zz2CLVhbi1VdwT86/ki6D0nkhBmxebcSdt6sQFiee sCyh8iOJ7hoPTY0yS8/Tkxxvc8Ii6MAuVLI6RLHOzUc8e9BYL/vzRO/Jrti+NuI4 LN7ZXo/fsTRNwe8wKQsZbO6F9nNEf/q7FecdXp4L5R/8SDqQ2Ao= =Hb/w -----END PGP SIGNATURE-----