Closed HenrikBengtsson closed 3 years ago
You can use the custom_translation_functions
argument
Yep! Let me know if the write-up here needs improvement:
https://github.com/MichaelChirico/potools#customized-translators
Thank you both. Using:
res <- potools::translate_package(custom_translation_functions = list(R = "stopf:fmt|1"))
works great.
... Let me know if the write-up here needs improvement: ...
The ?potools::translate_package
page LGTM. But, assuming most people with use translate_package()
and not get_message_data()
[correct?], I think it would help if the README.md would use translate_package()
instead of get_message_data()
for the example.
stopf()
and warningf()
are now handled automatically by po_extract()
, so I think this can be closed.
Hi, I use internal utility functions like:
so that I can write:
Is it possible to have
potools::translate_package()
detect these calls and produce pot entries for them?