MichaelChirico / potools

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

Suppress default functions? #226

Closed hadley closed 2 years ago

hadley commented 2 years ago

Is it possible to suppress stop() and friends? I'm in a slightly unusual position with pkgdown where I want to first focus on translating the strings that the viewers of the sites see, rather than the users of the package. So (for now) I don't want to translate messages, just calls to a specific function.

hadley commented 2 years ago

Hack for now:

assignInNamespace("DOMAIN_DOTS_FUNS", character(), ns = "potools")
MichaelChirico commented 2 years ago

Is this the same as / subsumed by #229 ?

hadley commented 2 years ago

229 is more about the workflow, this is about the interface that potools provides. i.e. it should be possible to suppress detection of functions that base R translates in order to facilitate the workflow described there.

hadley commented 2 years ago

Handled by style argument to po_extract().