Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion .github/workflows/maintenance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 8 additions & 1 deletion scripts/update_po_headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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

Expand Down
Loading