Hadley Wickham
Hadley Wickham
Hmmmm, good question. Maybe `po_extract()` could automatically run `po_update()` if there are existing translations?
Maybe prepend the last contiguous block of `#.` comments that occur before the translated string?
The joys of snapshot testing!
You mean like `“”` vs `""`? Is this a different system to `options(useFancyQuotes)` + `shQuote()`?
I think your example got slightly mangled — your explanation is correctly but the code doesn't show it. ``` r options(useFancyQuotes = FALSE) sQuote('hi') #> [1] "'hi'" Sys.setenv(LANGUAGE='en@quot') gettext("candidate point...
See my workflow proposal in #242; I think `translate_package()` currently tries to do too much. I have implemented `po_compile()` (`.po` -> `.mo`) in #234, and `po_create()`/`po_update()` (`.pot` -> `.po`) in...
I like the idea of taking either `-` or `_` and then always generating `_` on disk. Maybe `withr::set_language()` should also be agnostic to this.
Would be good to figure out what's going wrong here.
Yeah, that sounds reasonable at a high level. I'd want to see a PR implementing a very minimal version though, just to think more about it before we fully commit.