Skip to content

Commit 782c0a5

Browse files
Merge pull request #30 from r-devel/revert-msgid-bugs
Add a step about reverting Report-Msgid-Bugs-To
2 parents dbde43a + 5c08d74 commit 782c0a5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

web/Weblate-server.qmd

+7-2
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ The basic idea is to compare the Weblate repo (which copies the R subversion rep
150150
git fetch svn master # retrieve the latest from SVN
151151
```
152152

153-
3. Drop empty translation files to reduce noise, e.g. something like:
153+
3. Revert unwanted changes to reduce noise, e.g. something like:
154154

155155
```r
156156
library(data.table)
@@ -166,8 +166,10 @@ The basic idea is to compare the Weblate repo (which copies the R subversion rep
166166
}
167167
set_branch <- \(branch) system2('git', c('checkout', branch))
168168
169+
# SUMMARIZE the changed translations, and delete empty .po files
169170
set_branch('weblate/master')
170-
weblate_summary <- po_counts(po_files())
171+
weblate_po_files <- po_files()
172+
weblate_summary <- po_counts(weblate_po_files)
171173
set_branch('svn/master')
172174
svn_summary <- po_counts(po_files())
173175
set_branch('master')
@@ -197,6 +199,9 @@ The basic idea is to compare the Weblate repo (which copies the R subversion rep
197199
}]
198200
NULL
199201
}]
202+
203+
# REPLACE 'Report-Msgid-Bugs-To' metadata field pointing to #core-translation-po-bugs
204+
system2("sed", c("-i", "'s/[email protected]/bugs.r-project.org/'", weblate_po_files))
200205
```
201206

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

0 commit comments

Comments
 (0)