From 9ca866101256ba16224730c0036ceb9ca8026f33 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Tue, 12 Dec 2006 16:12:59 +0100 Subject: [PATCH] add GNUmakefile for translation --- Documentation/fr/GNUmakefile | 5 +++++ Documentation/fr/user/GNUmakefile | 5 +++++ Documentation/po/GNUmakefile | 26 ++++++++++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 Documentation/fr/GNUmakefile create mode 100644 Documentation/fr/user/GNUmakefile create mode 100644 Documentation/po/GNUmakefile diff --git a/Documentation/fr/GNUmakefile b/Documentation/fr/GNUmakefile new file mode 100644 index 0000000000..296c7209d3 --- /dev/null +++ b/Documentation/fr/GNUmakefile @@ -0,0 +1,5 @@ +ISOLANG = fr +depth = ../.. +SUBDIRS = user +STEPMAKE_TEMPLATES = documentation +include $(depth)/make/stepmake.make diff --git a/Documentation/fr/user/GNUmakefile b/Documentation/fr/user/GNUmakefile new file mode 100644 index 0000000000..e492cfeb9c --- /dev/null +++ b/Documentation/fr/user/GNUmakefile @@ -0,0 +1,5 @@ +ISOLANG = fr +depth = ../../.. +LOCALSTEPMAKE_TEMPLATES = lilypond ly doclang +include $(depth)/make/stepmake.make + diff --git a/Documentation/po/GNUmakefile b/Documentation/po/GNUmakefile new file mode 100644 index 0000000000..a0a33b15d6 --- /dev/null +++ b/Documentation/po/GNUmakefile @@ -0,0 +1,26 @@ +depth = ../.. + +POT_FILES = $(call src-wildcard,*.pot) +PO_FILES = $(call src-wildcard,*.po) +MO_FILES = $(addprefix $(outdir)/, $(PO_FILES:.po=.mo)) +HELP_CATALOGS = $(PO_FILES:%.po=%) +CATALOGS = $(HELP_CATALOGS:$(DOMAIN)=) +STEPMAKE_TEMPLATES=podir + +include $(depth)/make/stepmake.make + +doc-localedir=$(outdir) +DOMAIN=lilypond-doc + +messages: $(MO_FILES) + for i in $(CATALOGS); do \ + mkdir -p $(doc-localedir)/$$i/LC_MESSAGES; \ + cp $(outdir)/$$i.mo $(doc-localedir)/$$i/LC_MESSAGES/$(DOMAIN).mo; \ + done + +po-update: + $(PYTHON) $(depth)/buildscripts/texi-langutils.py -d $(outdir) -o doc.pot --gettext ../$(depth)/Documentation/user/lilypond.tely + msgmerge -U lilypond-doc.pot $(outdir)/doc.pot + for i in $(CATALOGS); do \ + msgmerge -U $$i.po lilypond-doc.pot; \ + done -- 2.39.5