bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[WIP-PATCHES] Lisp (and Scheme) jump format specifier and ngettext


From: Miguel Ángel Arruga Vivas
Subject: [WIP-PATCHES] Lisp (and Scheme) jump format specifier and ngettext
Date: Fri, 20 Nov 2020 13:29:46 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Hello,

I've detected that format checks don't detect correctly some common use
cases for ngettext.  They aren't hard to accommodate when using English,
but lead to unnatural messages on some other languages, e.g. the number
may not be omitted on the translation.  The second patch adds test cases
for that scenario in format-{lisp,scheme}-2.

The third patch is an attempt to solve the issue about the jump, but I'm
not comfortable enough with it, perhaps adding a FAT_UNDEFINED type on
top of the type tower instead of only having FAT_OBJECT is a better
solution from the design perspective?  I'd need a bit of guidance here,
because neither with this patch nor with the current implementation the
following test fails, a check that should be useful too:
--------------------------------------------
# Invalid: narrowing type on the translation
msgid "~a thing"
msgid_plural "~a things"
msgstr[0] "~d thing"
msgstr[1] "~d things"
--------------------------------------------

The first patch is a trivial one, as it seems to me a typo, but I wanted
to check with you before pushing anything, as I've been out for a long
time.  Should I push it already?

Best regards,
Miguel

Attachment: 0001-tests-Fix-typos-on-scheme-format-test.patch
Description: 0001-typos.patch

Attachment: 0002-tests-Add-Common-Lisp-and-Scheme-goto-format-specifi.patch
Description: 0002-tests.patch

Attachment: 0003-format-lisp-format-scheme-Compare-intersection-to-bo.patch
Description: 0003-wip-msgfmt.patch


reply via email to

[Prev in Thread] Current Thread [Next in Thread]