Skip to content

Commit

Permalink
Merge pull request #31 from r-devel/fix
Browse files Browse the repository at this point in the history
Be sure to exclude deleted files when running sed
  • Loading branch information
MichaelChirico authored Mar 18, 2024
2 parents 782c0a5 + 4898c41 commit 2fceb33
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions web/Weblate-server.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,7 @@ The basic idea is to compare the Weblate repo (which copies the R subversion rep
# SUMMARIZE the changed translations, and delete empty .po files
set_branch('weblate/master')
weblate_po_files <- po_files()
weblate_summary <- po_counts(weblate_po_files)
weblate_summary <- po_counts(po_files())
set_branch('svn/master')
svn_summary <- po_counts(po_files())
set_branch('master')
Expand Down Expand Up @@ -201,7 +200,7 @@ The basic idea is to compare the Weblate repo (which copies the R subversion rep
}]
# REPLACE 'Report-Msgid-Bugs-To' metadata field pointing to #core-translation-po-bugs
system2("sed", c("-i", "'s/sourcestringbugs.o40l9j@zapiermail.com/bugs.r-project.org/'", weblate_po_files))
system2("sed", c("-i", "'s/sourcestringbugs.o40l9j@zapiermail.com/bugs.r-project.org/'", po_summary$filename))
```

4. Generate a patch file from the diff, going back to the most recent commit with translations merged, e.g.
Expand Down

0 comments on commit 2fceb33

Please sign in to comment.