Skip to content

src translations follow-up: Add ngettext support at the C level #40

@MichaelChirico

Description

@MichaelChirico

While this is not used by any CRAN packages the last I checked:

https://github.com/search?p=1&q=org%3Acran+dngettext&type=Code

^ Note that there are some results, but they all appear to just be copy-pastes of the #define of the dngettext macro suggested in WRE.

base does use this a few times:

./src/library/base/po/R.pot:msgid_plural "cannot allocate memory for registered native symbol (%d bytes)"
./src/library/base/po/R.pot:msgid_plural "%d arguments passed to '%s' which requires 1 or 2 arguments"
./src/library/base/po/R.pot:msgid_plural "%d arguments passed to '%s' which requires %d to %d"
./src/library/base/po/R.pot:msgid_plural "the ... list contains fewer than %d elements"
./src/library/base/po/R.pot:msgid_plural "Warning messages:"
./src/library/base/po/R.pot:msgid_plural "There were %d warnings (use warnings() to see them)"
./src/library/base/po/R.pot:msgid_plural "unused arguments %s"
./src/library/base/po/R.pot:msgid_plural "unprotect(): only %d protected items"
./src/library/base/po/R.pot:msgid_plural "R_Reprotect: only %d protected items, can't reprotect index %d"
./src/library/base/po/R.pot:msgid_plural "%d arguments passed to .Internal(%s) which requires %d"
./src/library/base/po/R.pot:msgid_plural " [ reached getOption(\"max.print\") -- omitted %d rows ]\n"
./src/library/base/po/R.pot:msgid_plural "numerical expression has %d elements: only the first used"
./src/library/base/po/R.pot:msgid_plural "%d arguments passed to '%s' which requires %d"

So support will be required to get a complete R translation with translate_package() alone.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions