Re: [PATCH] Add L10N percentages to translation strings.
"Kevin J. McCarthy" <[email protected]> Fri, 1 May 2026 21:11:05 +0800
| Newsgroups | gmane.mail.mutt.devel |
|---|---|
| Message-ID | <afSmaTwgJGZKuzxN@qinghai> |
On Fri, May 01, 2026 at 02:53:57PM +0200, Oswald Buddenhagen via Mutt-dev wrote: >On Fri, May 01, 2026 at 08:41:37PM +0800, Kevin J. McCarthy wrote: >>I could put the initial "%s %s" in each piece, but I still don't >>think it would make it much clearer. >> >dunno, i think it would - adding _() in four places would be easier >to do and more legible than having a dedicated formatter function, >esp. with the verbosity that coding this in c implies at some call >sites. > >>I was already a bit apprehensive about i10n the percentages, so I >>would be reluctant to take on localization of the whole string. >> >i know that feeling, but in case of doubt it's usually better to err >on the side of flexibility. in most cases, translators will simply >copy the source string - no harm done. to be extra-safe, it makes >sense to add these L10N comments that clarify the context and explain >which parts should (not) be localized. in rare cases, it might be >necessary to add a disambiguating argument _inside_ the gettext call >(e.g., to tell apart instances of "%s %s" that are used in different >contexts). Okay, let me take a second look at this tomorrow. I think I understand what you're getting at, that the progress meter parts themselves could be rearranged, with different separators and parenthesis. -- 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----- iQIzBAEBCgAdFiEEiXWpszqjeRA4XFMIre92hIAxa9oFAmn0pmkACgkQre92hIAx a9pfRg/+Nt3iTCqsAxd0/u4MgTDOeE7O4ArPhUa7wsoAZLmQ2itZ7iEHuVw24tyx HpF7CDr1teUXywgzCgVFJ5BN9wgyEBXcRBoNrFn9MZixCKnJtLYceViWdJgk0Bl5 w8hNlw3S+34ubEVB865Hr2t5gsQ/P5DJ20r0ZEBMXczmCRJ3JQpBVLST7xfL6e2v XDWkxG8xQOkQSvUt+fYx2PSqBgBginAT/JUKm9tlGzYK3AvH4N40LH3TM6z0thaw FOdpn6rr/IDlWcD2ys1ar06uxJlH51iVNt1tuAQxOsZQ+9myD4Y3f8qcn52DbUCb B4Eqj7vYMoPJUzIITnPosFlCyhMB3WJHzfxNrpY9E9x6CSR1Z24IwkJ1K4uR+IrB IHio3XsTD+DPxB+SlESCANdvjP9xjv/4dJTbRaN1G7HSPfAn+8VKVIElN74zTjyN /kBJ0jQ8S01FfPU1J+mnB/z7v2lEg8O2moB/gtbof4USzHdnB9sGY2CWHOpnFQ8H i8jAIu5g9M2N6lK/9CJIpfMccKPORb6z4UjpSSjXLVsuTh2iq1lFS2U7++bOcRzA Y46slXtTF4WPqME//7FCpRVvMFxXiix5Ec7TE9NKgOF4UWoQcU/hOTCyOe/Aogc5 EnXtiVvZ8KGfExACUvusja9VMK8OCFujMQAaC4OWoGB8rEfOgV4= =CSZ7 -----END PGP SIGNATURE-----