Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update instructions for generating a patch #29

Merged
merged 3 commits into from
Mar 18, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions web/Weblate-server.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,11 @@ To submit a patch file on the translations found in Weblate but not in the trunk

added_files <- setdiff(new_files, old_files)

for (f in added_files) {
if (fread(cmd = paste('pocount --csv', f), sep = ',', fill = TRUE)$`Translated Messages` == 0) {
log_info('dropping empty {f}')
unlink(f)
} else {
log_info('keeping {f}')
}
}
po_counts <- fread(cmd = paste('pocount --csv', paste(added_files, collapse = " ")), sep = ',', fill = TRUE)
po_counts[`Translated Messages` == 0, {
log_info('dropping {.N} empty files:\n {toString(Filename)}')
unlink(Filename)
}]
```

4. Clone the subversion R repo or its git clone from `[email protected]:wch/r-source.git`
Expand Down