From 4898c415f6ac5f68d3c9c0bdf566dd4437e7ea10 Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Mon, 18 Mar 2024 09:29:50 -0700 Subject: [PATCH] Update Weblate-server.qmd --- web/Weblate-server.qmd | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/Weblate-server.qmd b/web/Weblate-server.qmd index f7630ca..bc257f5 100644 --- a/web/Weblate-server.qmd +++ b/web/Weblate-server.qmd @@ -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') @@ -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.