Skip to content

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

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

ralf401 merged 1 commit into
pre-releasefrom
rsc/maintenance/port-POT-date-removal-user

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.

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.
@ralf401 ralf401 self-assigned this Sep 17, 2026
@github-actions

Copy link
Copy Markdown

Artifacts

Produced during runtime

📦 html-3382374

@ralf401
ralf401 merged commit fa9c392 into pre-release Sep 17, 2026
1 check passed
@ralf401
ralf401 deleted the rsc/maintenance/port-POT-date-removal-user branch September 17, 2026 07:50
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