]> git.donarmstrong.com Git - lilypond.git/commitdiff
add GNUmakefile for translation
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 12 Dec 2006 15:12:59 +0000 (16:12 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 12 Dec 2006 15:12:59 +0000 (16:12 +0100)
Documentation/fr/GNUmakefile [new file with mode: 0644]
Documentation/fr/user/GNUmakefile [new file with mode: 0644]
Documentation/po/GNUmakefile [new file with mode: 0644]

diff --git a/Documentation/fr/GNUmakefile b/Documentation/fr/GNUmakefile
new file mode 100644 (file)
index 0000000..296c720
--- /dev/null
@@ -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 (file)
index 0000000..e492cfe
--- /dev/null
@@ -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 (file)
index 0000000..a0a33b1
--- /dev/null
@@ -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