MichaelChirico / potools

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

why is po_update() separate from po_extract()? #307

Open maelle opened 10 months ago

maelle commented 10 months ago

I might be missing something obvious but why is po_update() separate from po_extract() when we always have to run it after po_extract()?

MichaelChirico commented 10 months ago

They're definitely closely related... One reason to keep them separate is we might prefer the translator to do po_update() themselves because of the fuzzy/deprecated messages. The package author may have no context on whether a fuzzy message still makes sense after the update.

@hadley I notice now po_update() is not mentioned in either of the new vignettes. Do you have notes handy on the design here / should we add an explanation to the vignette(s)?

hadley commented 10 months ago

Hmmmm, good question. Maybe po_extract() could automatically run po_update() if there are existing translations?