File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232 run : python3 scripts/generate_status_table.py
3333
3434 - name : Update PO file headers
35- run : python3 scripts/update_po_headers.py --merge
35+ run : python3 scripts/update_po_headers.py --merge --no-last-translator
3636
3737 - name : Update TEAM.md contributor counts
3838 run : python3 scripts/team_stats.py --update-teammd
Original file line number Diff line number Diff line change @@ -291,6 +291,11 @@ def main():
291291 action = "store_true" ,
292292 help = "show what would change without writing files" ,
293293 )
294+ parser .add_argument (
295+ "--no-last-translator" ,
296+ action = "store_true" ,
297+ help = "skip updating the Last-Translator: header field" ,
298+ )
294299 args = parser .parse_args ()
295300
296301 files = collect_files (args .paths )
@@ -319,7 +324,9 @@ def main():
319324 new_comment = merge_comment_block (comment , translators )
320325 else :
321326 new_comment = update_comment_block (comment , translators )
322- rebuilt = update_header_entry (entry , last , None )
327+ rebuilt = update_header_entry (
328+ entry , None if args .no_last_translator else last , None
329+ )
323330 if rebuilt is not None :
324331 new_entry = rebuilt
325332
You can’t perform that action at this time.
0 commit comments