summaryrefslogtreecommitdiffstats
path: root/po/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'po/Makefile')
-rw-r--r--po/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/po/Makefile b/po/Makefile
index b24f7fab..b4da7608 100644
--- a/po/Makefile
+++ b/po/Makefile
@@ -6,6 +6,8 @@ PGOAL = mdkonline
GOALS = $(PGOAL).pot $(foreach a, $(LANGS), $(a).mo)
PL_FILES = ../mdkonline ../mdkupdate ../mdkapplet
+POFILES = $(shell ls *.po)
+
# $(foreach a, $(LANGS), $($(a).mo))
@@ -29,3 +31,10 @@ clean:
--keyword=I_ --keyword=i18n \
--language=perl -o $@ $(PL_FILES)
+merge: $(PGOAL).pot
+ @for n in $(POFILES); do \
+ echo "Merging $$n"; \
+ msgmerge "$$n" $< > "$$n"t; \
+ mv -f "$$n"t "$$n"; \
+ done
+