Skip to content

Commit 60c379e

Browse files
committed
new version of glue doesn't like lists, needs env
1 parent f1e6118 commit 60c379e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/Weblate-server.qmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ The basic idea is to compare the Weblate repo (which copies the R subversion rep
195195
log_info('Dropping {.N} empty files:')
196196
.SD[, by = package, {
197197
log_level(INFO, 'From package {blue(.BY$package)}:')
198-
log_level(INFO, ' {toString(green(basename(filename)))}', .topenv = .SD) # NB: Need .SD since data.table doesn't pick up the variable from the string
198+
log_level(INFO, ' {toString(green(basename(filename)))}', .topenv = list2env(.SD)) # NB: Need .SD since data.table doesn't pick up the variable from the string
199199
}]
200200
unlink(filename)
201201
NULL
@@ -209,7 +209,7 @@ The basic idea is to compare the Weblate repo (which copies the R subversion rep
209209
log_info('New translations in {.N} files')
210210
.SD[, by = package, {
211211
log_level(INFO, 'From package {blue(.BY$package)}:')
212-
log_level(INFO, ' {sprintf("%s [+%s]", green(format(basename(filename))), red(format(n_newly_translated)))}', .topenv = .SD)
212+
log_level(INFO, ' {sprintf("%s [+%s]", green(format(basename(filename))), red(format(n_newly_translated)))}', .topenv = list2env(.SD))
213213
}]
214214
NULL
215215
}]

0 commit comments

Comments
 (0)