|
|
bb602c |
From 5d31f3a1003b87fc28675febe605d1666af9e215 Mon Sep 17 00:00:00 2001
|
|
|
bb602c |
From: Eric Garver <eric@garver.life>
|
|
|
bb602c |
Date: Fri, 31 Jan 2020 12:24:54 -0500
|
|
|
bb602c |
Subject: [PATCH 144/146] improvement: translations: build target to merge from
|
|
|
bb602c |
master
|
|
|
bb602c |
|
|
|
bb602c |
This new target, merge-po, will automatically merge new translations
|
|
|
bb602c |
from the master branch. It's meant to be run only from the stable
|
|
|
bb602c |
branches.
|
|
|
bb602c |
|
|
|
bb602c |
(cherry picked from commit 8f5998c84dbb35edb477e1a98e274fd43b29bdcd)
|
|
|
bb602c |
(cherry picked from commit fe686a53538ee34e1ba5ef8a178c4b3a0688ee9c)
|
|
|
bb602c |
---
|
|
|
bb602c |
Makefile.am | 13 +++++++++++++
|
|
|
bb602c |
1 file changed, 13 insertions(+)
|
|
|
bb602c |
|
|
|
bb602c |
diff --git a/Makefile.am b/Makefile.am
|
|
|
bb602c |
index 77f461c8bae5..9f3135118ed2 100644
|
|
|
bb602c |
--- a/Makefile.am
|
|
|
bb602c |
+++ b/Makefile.am
|
|
|
bb602c |
@@ -105,6 +105,19 @@ update-po:
|
|
|
bb602c |
ls $(top_srcdir)/po/*.po | sed 's/.*\/po\///;s/.po//' > $(top_srcdir)/po/LINGUAS
|
|
|
bb602c |
$(MAKE) -C po update-po ${PACKAGE_NAME}.pot
|
|
|
bb602c |
|
|
|
bb602c |
+# This merges translations from the upstream master branch.
|
|
|
bb602c |
+# It's only meant to be used from the stable branches. Translations
|
|
|
bb602c |
+# contributions are only done against master.
|
|
|
bb602c |
+merge-po: update-po
|
|
|
bb602c |
+ git fetch -q https://github.com/firewalld/firewalld master; \
|
|
|
bb602c |
+ for po in $(top_srcdir)/po/*.po; do \
|
|
|
bb602c |
+ mv $${po} $${po}.old; \
|
|
|
bb602c |
+ git checkout -q FETCH_HEAD $${po}; \
|
|
|
bb602c |
+ msgcat --use-first -o $${po}.merged $${po} $${po}.old; \
|
|
|
bb602c |
+ mv $${po}.merged $${po}; \
|
|
|
bb602c |
+ git add $${po}; \
|
|
|
bb602c |
+ done
|
|
|
bb602c |
+
|
|
|
bb602c |
clean-po:
|
|
|
bb602c |
@for cat in `cat ${top_srcdir}/po/LINGUAS`; do \
|
|
|
bb602c |
msgattrib --translated --no-fuzzy --no-obsolete --force-po --no-location --clear-previous --strict $(top_srcdir)/po/$$cat.po -o $(top_srcdir)/po/$$cat.out; \
|
|
|
bb602c |
--
|
|
|
bb602c |
2.23.0
|
|
|
bb602c |
|