Commit 626e2228 authored by salaun's avatar salaun
Browse files

New PO files + Makefile


git-svn-id: https://subversion.renater.fr/sympa/trunk@2290 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
parent cf42fe0c
LINGUAS = cs de en_US es et fi fr hu it nl pl pt ro zh_CN zh_TW
MOFILES = $(addsuffix .mo, $(LINGUAS))
DEPENDON = $(shell cd .. ; ls src/*.p? wwsympa/wwsympa.fcgi wwsympa/*.p? wwsympa/tt2/*.tt2 src/etc/tt2/*.tt2 src/etc/mhonarc-ressources src/etc/scenari/*)
MSGMERGE = msgmerge
MSGFMT = msgfmt
XGETTEXT = $(SCRIPTDIR)/xgettext.pl
## Available catalogues (languages)
.SUFFIXES: .po .mo
.mo: .po
.po.mo:
$(MSGFMT) -o $@ $<
all: $(MOFILES)
pot: sympa.pot
sympa.pot:
echo "Updating sympa.pot template file..."
cd .. ;\
$(XGETTEXT) -o po/sympa.pot src/*.p? wwsympa/wwsympa.fcgi wwsympa/*.p? wwsympa/tt2/*.tt2 src/etc/tt2/*.tt2 src/etc/mhonarc-ressources src/etc/scenari/*
install: $(MOFILES)
targetdir='$(DESTDIR)$(LOCALEDIR)'; \
languages='$(LINGUAS)'; \
for lang in $$languages; do \
mkdir -p "$$targetdir/$$lang/LC_MESSAGES" || exit 1; \
dest="$$targetdir/$$lang/LC_MESSAGES/sympa.mo"; \
cat="$$lang.mo"; \
echo "Installing mo file...$$dest"; \
cp -f $$cat $$dest && chmod 644 $$dest || exit 1; \
done
update-po: pot
languages='$(LINGUAS)'; \
for lang in $$languages; do \
$(MSGMERGE) -o "$$lang.po" "$$lang.po" sympa.pot; \
done
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment