MichaelChirico / potools

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

Include "translatable strings" vignette #231

Closed hadley closed 2 years ago

hadley commented 3 years ago

Based off of https://www.gnu.org/software/gettext/manual/html_node/Preparing-Strings.html#Preparing-Strings.

MichaelChirico commented 3 years ago

Agreed this is needed/high value

hadley commented 3 years ago

Feels like probably needs one vignette aimed at developers and one vignette aimed at translators. Translators vignette would include advice about rearranging sprintf() syntax with %1$s and friends (e.g. sprintf("%2$s %1$s", "one", "two")).