]> Kevux Git Server - rit/commit
gitk: commit translation files without file information
authorJohannes Sixt <j6t@kdbg.org>
Mon, 2 Mar 2026 08:14:48 +0000 (09:14 +0100)
committerJohannes Sixt <j6t@kdbg.org>
Tue, 3 Mar 2026 21:04:08 +0000 (22:04 +0100)
commite7db0670ee0f66f7c975cd1ec3bd0f6898287b0c
tree8247fedbc1a012e6d472d046ec786961443c64e7
parentde4201af7d57b2da6981884e969fe1e6d327108c
gitk: commit translation files without file information

File information in the translation files is only helpful for the
translators, but is not needed to compile the message catalogs. On top
of that, file information is rather volatile and leads to large patches
that do not carry essential information. For this reason, Git project
has opted to remove the file information from its translation files.
Let's do that in this project, too.

Rewrite the update-po target to generate *.po files that do contain
file information for the benefit of translators. Configure a clean
filter under the name "gettext-no-location", which is the same that
the Git project uses. It is expected that translators have already
configured their repository suitably. Nevertheless, write a reminder
as part of the update-po target.

Apply the clean-filter to the translation files.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
16 files changed:
Makefile
po/.gitattributes [new file with mode: 0644]
po/ca.po
po/de.po
po/es.po
po/fr.po
po/hu.po
po/it.po
po/ja.po
po/pt_br.po
po/pt_pt.po
po/ru.po
po/sv.po
po/ta.po
po/vi.po
po/zh_cn.po