MichaelChirico / potools

Tools for working with translations in R
https://michaelchirico.github.io/potools/
58 stars 2 forks source link

Check out funny rendering in translate_package .Rd #200

Closed MichaelChirico closed 3 years ago

MichaelChirico commented 3 years ago

Seen now:

Entries for unnamed arguments will look like "fname:...\xarg1,...,xargn". All strings within calls to fname except those supplied to the arguments named among xarg1, ..., xargn will be extracted.

To clarify, consider the how we would (redundantly) specify custom_translation_functions for some of the default messagers, gettext, gettextf, and ngettext: custom_translation_functions = list(R = c("gettext:...\domain", "gettextf:fmt|1", "ngettext:msg1|2,msg2|3")).

Looks off

MichaelChirico commented 3 years ago

It's actually WAI. But still looks odd. Maybe need to reconsider the use of \ as a separator. Opting to just write it out more explicitly for now.