Re: [PATCH] Add L10N percentages to translation strings.

Oswald Buddenhagen via Mutt-dev <[email protected]> Fri, 1 May 2026 12:19:34 +0200
Newsgroups gmane.mail.mutt.devel
Message-ID <[email protected]>
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.

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.