diff --git a/.github/workflows/maintenance.yml b/.github/workflows/maintenance.yml index b9685eeb9..c65bf9ec1 100644 --- a/.github/workflows/maintenance.yml +++ b/.github/workflows/maintenance.yml @@ -32,7 +32,7 @@ jobs: run: python3 scripts/generate_status_table.py - name: Update PO file headers - run: python3 scripts/update_po_headers.py --merge + run: python3 scripts/update_po_headers.py --merge --no-last-translator - name: Update TEAM.md contributor counts run: python3 scripts/team_stats.py --update-teammd diff --git a/scripts/update_po_headers.py b/scripts/update_po_headers.py index b626d440e..60385282e 100644 --- a/scripts/update_po_headers.py +++ b/scripts/update_po_headers.py @@ -291,6 +291,11 @@ def main(): action="store_true", help="show what would change without writing files", ) + parser.add_argument( + "--no-last-translator", + action="store_true", + help="skip updating the Last-Translator: header field", + ) args = parser.parse_args() files = collect_files(args.paths) @@ -319,7 +324,9 @@ def main(): new_comment = merge_comment_block(comment, translators) else: new_comment = update_comment_block(comment, translators) - rebuilt = update_header_entry(entry, last, None) + rebuilt = update_header_entry( + entry, None if args.no_last_translator else last, None + ) if rebuilt is not None: new_entry = rebuilt