mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-07 14:24:14 +01:00
make: new target 'update-lang' to update the PO files for a languages against latest sources
With the new target, it is now easy to update all translations in the project for a language against latest code with the simple command, run from the top directory: make update-lang PO=<lang> Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
2429d5e196
commit
a9a0d2ac85
@@ -19,7 +19,14 @@ SUFFIXES = .po .mo
|
||||
all-local: $(CATALOGS)
|
||||
|
||||
|
||||
.PHONY: update-lang
|
||||
|
||||
if HAVE_XGETTEXT
|
||||
update-lang: $(DOMAIN).pot
|
||||
$(AM_V_GEN)$(top_srcdir)/script/generate-po-from-template.sh \
|
||||
-n "$(PACKAGE_NAME)" -v "$(PACKAGE_VERSION)" -b "$(PACKAGE_BUGREPORT)" \
|
||||
-t "$(DOMAIN).pot" "$(srcdir)/$(PO).po"
|
||||
|
||||
$(DOMAIN).pot: $(POTFILES)
|
||||
$(AM_V_GEN)$(XGETTEXT) --default-domain=$(DOMAIN) \
|
||||
--add-comments --keyword=_ --keyword=N_ $(POTFILES)
|
||||
|
||||
Reference in New Issue
Block a user