public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH proxmox-i18n 0/2] make: add targets to update specific PO files
@ 2026-03-02  9:51 Maximiliano Sandoval
  2026-03-02  9:51 ` [PATCH proxmox-i18n 1/2] " Maximiliano Sandoval
  2026-03-02  9:51 ` [PATCH proxmox-i18n 2/2] make: cleanup update-po-% target Maximiliano Sandoval
  0 siblings, 2 replies; 3+ messages in thread
From: Maximiliano Sandoval @ 2026-03-02  9:51 UTC (permalink / raw)
  To: pve-devel

Adds a new target to only update a given PO file and cleanups the command a bit.
I had to run this manually when updating translations, this helps a bit.

Maximiliano Sandoval (2):
  make: add targets to update specific PO files
  make: cleanup update-po-% target

 Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

-- 
2.47.3





^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH proxmox-i18n 1/2] make: add targets to update specific PO files
  2026-03-02  9:51 [PATCH proxmox-i18n 0/2] make: add targets to update specific PO files Maximiliano Sandoval
@ 2026-03-02  9:51 ` Maximiliano Sandoval
  2026-03-02  9:51 ` [PATCH proxmox-i18n 2/2] make: cleanup update-po-% target Maximiliano Sandoval
  1 sibling, 0 replies; 3+ messages in thread
From: Maximiliano Sandoval @ 2026-03-02  9:51 UTC (permalink / raw)
  To: pve-devel

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---
 Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index 16aab328..3ca56fd2 100644
--- a/Makefile
+++ b/Makefile
@@ -187,11 +187,11 @@ update_pot: submodule
 	$(call xtrpotupdate,proxmox-yew-widget-toolkit,proxmox-yew-widget-toolkit/src/lib.rs)
 	for i in $(EXCLUDED_PWT_FILES); do mv -f proxmox-yew-widget-toolkit/src/$$i.org proxmox-yew-widget-toolkit/src/$$i; done
 
+.PHONY: update-po-%
+update-po-%: update_pot messages.pot
+	msgmerge -s -v $*.po messages.pot >$*.po.tmp && mv $*.po.tmp $*.po
 
-do_update:
-	$(MAKE) update_pot
-	$(MAKE) messages.pot
-	for i in $(LINGUAS); do echo -n "$$i: "; msgmerge -s -v $$i.po messages.pot >$$i.po.tmp && mv $$i.po.tmp $$i.po; done;
+do_update: $(addprefix update-po-, $(LINGUAS))
 
 update:
 	git submodule foreach 'git pull --ff-only origin master'
-- 
2.47.3





^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH proxmox-i18n 2/2] make: cleanup update-po-% target
  2026-03-02  9:51 [PATCH proxmox-i18n 0/2] make: add targets to update specific PO files Maximiliano Sandoval
  2026-03-02  9:51 ` [PATCH proxmox-i18n 1/2] " Maximiliano Sandoval
@ 2026-03-02  9:51 ` Maximiliano Sandoval
  1 sibling, 0 replies; 3+ messages in thread
From: Maximiliano Sandoval @ 2026-03-02  9:51 UTC (permalink / raw)
  To: pve-devel

We use the complete options and take advantage of the --update option to
update in-place.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 3ca56fd2..1ed42fe0 100644
--- a/Makefile
+++ b/Makefile
@@ -189,7 +189,7 @@ update_pot: submodule
 
 .PHONY: update-po-%
 update-po-%: update_pot messages.pot
-	msgmerge -s -v $*.po messages.pot >$*.po.tmp && mv $*.po.tmp $*.po
+	msgmerge --sort-output --verbose --update $*.po messages.pot
 
 do_update: $(addprefix update-po-, $(LINGUAS))
 
-- 
2.47.3





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-03-02  9:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-02  9:51 [PATCH proxmox-i18n 0/2] make: add targets to update specific PO files Maximiliano Sandoval
2026-03-02  9:51 ` [PATCH proxmox-i18n 1/2] " Maximiliano Sandoval
2026-03-02  9:51 ` [PATCH proxmox-i18n 2/2] make: cleanup update-po-% target Maximiliano Sandoval

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal