From: Maximiliano Sandoval <m.sandoval@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH proxmox-i18n v3 2/3] makefile: prefer using xgettext over msgcat
Date: Wed, 4 Jun 2025 11:20:53 +0200 [thread overview]
Message-ID: <20250604092054.180984-3-m.sandoval@proxmox.com> (raw)
In-Reply-To: <20250604092054.180984-1-m.sandoval@proxmox.com>
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@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@proxmox.com>" \
+ --copyright-holder="Copyright (C) Proxmox Server Solutions GmbH <support@proxmox.com> & the translation contributors." \
+ --output $@
.PHONY: distclean
distclean: clean
--
2.39.5
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
next prev parent reply other threads:[~2025-06-04 9:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-04 9:20 [pve-devel] [PATCH proxmox-i18n v3 0/3] Use xgettext to extract translatable strings Maximiliano Sandoval
2025-06-04 9:20 ` [pve-devel] [PATCH proxmox-i18n v3 1/3] d/control: declare a depdendency on gettext Maximiliano Sandoval
2025-06-04 9:20 ` Maximiliano Sandoval [this message]
2025-06-04 9:20 ` [pve-devel] [PATCH proxmox-i18n v3 3/3] makefile: use xgettext to extract translatable strings Maximiliano Sandoval
2025-06-04 17:16 ` [pve-devel] applied-series: [PATCH proxmox-i18n v3 0/3] Use " Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250604092054.180984-3-m.sandoval@proxmox.com \
--to=m.sandoval@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.