[pve-devel] [PATCH proxmox-i18n v3 2/3] makefile: prefer using xgettext over msgcat

Maximiliano Sandoval m.sandoval at proxmox.com
Wed Jun 4 11:20:53 CEST 2025


For concatenating .pot files.

>From [1]:

> To concatenate POT files, better use xgettext, not msgcat, because
> msgcat would choke on the undefined charsets in the specified POT
> files.

[1] https://www.gnu.org/software/gettext/manual/html_node/msgcat-Invocation.html

Signed-off-by: Maximiliano Sandoval <m.sandoval at proxmox.com>
---
 Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 0d7c87d..4c43b4e 100644
--- a/Makefile
+++ b/Makefile
@@ -130,7 +130,11 @@ init-%.po: messages.pot
 
 .INTERMEDIATE: messages.pot
 messages.pot: proxmox-widget-toolkit.pot proxmox-mailgateway.pot pve-manager.pot proxmox-backup.pot
-	msgcat $^ > $@
+	xgettext $^ \
+      --package-name="proxmox translations" \
+      --msgid-bugs-address="<support at proxmox.com>" \
+      --copyright-holder="Copyright (C) Proxmox Server Solutions GmbH <support at proxmox.com> & the translation contributors." \
+      --output $@
 
 .PHONY: distclean
 distclean: clean
-- 
2.39.5





More information about the pve-devel mailing list