potools icon indicating copy to clipboard operation
potools copied to clipboard

Tools for working with translations in R

Results 58 potools issues
Sort by recently updated
recently updated
newest added

The following message seems to be missing from `data.table.pot`: https://github.com/Rdatatable/data.table/blob/b7f2106efe038d93577f427f34c06d9c00b4c486/src/fread.c#L2775 The code seems to consider this message to be subject to a `# notranslate` exclusion: https://github.com/MichaelChirico/potools/blob/0dc529285c4f54a86d0755317d9304d735c3858f/R/get_src_messages.R#L255 ``` debug: src_messages =...

Noticed while browsing https://github.com/Rdatatable/data.table/blob/master/po/pt_BR.po

bug

Just observed in data.table https://github.com/Rdatatable/data.table/commit/f9c2824b2ce1820c04713e10ba8d4d482cdc2e91 ```r potools::po_extract(custom_translation_functions = list(R = c('catf:fmt|1', 'stopf:fmt|1', 'messagef:fmt|1', 'warningf:fmt|1'))) ``` ```diff -#: AllS4.R:2 +#: AllS4.R:2 AllS4.R:2 #, c-format msgid "data.table package loaded. When developing don't...

bug

{data.table} uses `Pl_`: https://github.com/Rdatatable/data.table/blob/f6dca2d3247b1ca460b59d1eb13b2ebfeab2e259/src/po.h#L4-L9 This should be supported.

enhancement

Possibly related to #316. As seen in {data.table} (many examples, e.g. in src/fread.c)

Akin to the similar sentinel in {lintr}, convenient for the same reasons.

enhancement

From running on {data.table} at https://github.com/Rdatatable/data.table/commit/f6dca2d3247b1ca460b59d1eb13b2ebfeab2e259 ```r potools::po_extract( custom_translation_functions = list( R = 'catf:fmt|1', src = c('STOP:1', 'DTWARN:1', 'DTPRINT:1', 'snprintf:3') ) ) ``` I may be just forgetting how `po_extract()`...

bug

We encountered a [use case in pkgdown](https://github.com/r-lib/pkgdown/pull/2933#issuecomment-3417382081) where we wanted to extract information (e.g. `Language-Team`) from package *.po files to build a table of available languages in a vignette. But...

enhancement