[Bugzilla #18988] [i18n] Unify similar messages for translation in R-base.pot#224
[Bugzilla #18988] [i18n] Unify similar messages for translation in R-base.pot#224MichaelChirico wants to merge 2 commits intor-devel:mainfrom
Conversation
Could you write an example of what you specifically have in mind? want to be sure I'm understanding. I didn't specifically prompt around that (this time), though it could be added. one potential issue is that the plain .pot files don't have the code context, so we'd either want to let an agent selectively read source files (difficult because R source locations are not currently copied into the .pot file), or build potools into the loop (which does add the string context to the data frame it builds) |
|
Sometimes messages are built with: stop("A word ", dQuote(variable), " more.")
stop("A word ", sQuote(variable), " more.")And sometimes they use quotes: stop(sprintf('A word "%s" more.', variable))
stop(sprintf("A word '%s' more.", variable))If I am wondering if there are strings that are duplicated with only this kind of differences where translating one (and be more consistent with But given Martin Mächler comment I'm no longer sure that adding more scope to that issue is a good idea. |
https://bugs.r-project.org/show_bug.cgi?id=18988
Testing patch to be submitted, to make sure there's no tests assuming certain messages, and that I didn't make any silly mistakes.