Skip to content

Fix broken translation builds caused by an empty POT-Creation-Date header - #626

Merged
ralf401 merged 1 commit into
mainfrom
rsc/maintenance/port-POT-date-removal-user-main
Sep 17, 2026
Merged

ralf401 merged 1 commit into
mainfrom
rsc/maintenance/port-POT-date-removal-user-main

Conversation

@ralf401

@ralf401 ralf401 commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Port of the admin-docs fix (zammad-admin-documentation#1307) to the user documentation. The previous approach of keeping the header value empty made Babel's read_po fail with "ValueError: time data '' does not match format '%Y-%m-%d %H:%M'"; Sphinx catches that, logs a single warning and keeps serving the stale .mo, so translated builds silently used outdated translations.

  • Makefile: make gettext now removes the POT-Creation-Date line from locale/user-docs.pot. A missing header is valid for Babel, and msgmerge leaves the .po value untouched when the template provides none, so the header becomes constant and there is nothing left for Weblate to conflict on.
  • All 29 locale/*/LC_MESSAGES/user-docs.po files: one-time repair of the emptied header to the last valid value, 2026-08-28 15:08+0200.

…ader

Port of the admin-docs fix (zammad-admin-documentation#1307) to the user
documentation. The previous approach of keeping the header value empty
made Babel's read_po fail with "ValueError: time data '' does not match
format '%Y-%m-%d %H:%M'"; Sphinx catches that, logs a single warning and
keeps serving the stale .mo, so translated builds silently used outdated
translations.

- Makefile: make gettext now removes the POT-Creation-Date line from
  locale/user-docs.pot. A missing header is valid for Babel, and msgmerge
  leaves the .po value untouched when the template provides none, so the
  header becomes constant and there is nothing left for Weblate to
  conflict on.
- All 29 locale/*/LC_MESSAGES/user-docs.po files: one-time repair of the
  emptied header to the last valid value, 2026-08-28 15:08+0200.

Co-authored-by: Silke Jänichen <sj@zammad.com>
@ralf401 ralf401 self-assigned this Sep 17, 2026
@github-actions

Copy link
Copy Markdown

Artifacts

Produced during runtime

📦 html-6194e8b

@ralf401
ralf401 merged commit 5bdafeb into main Sep 17, 2026
1 check passed
@ralf401
ralf401 deleted the rsc/maintenance/port-POT-date-removal-user-main branch September 17, 2026 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant