german translation for galleryfunctions.php (addresses #43)
* add Makefile to generate gettext .pot, .po and .mo files * mark translatable texts in galleryfunctions.php
This commit is contained in:
parent
4090ea5881
commit
fafd016bae
5 changed files with 91 additions and 3 deletions
26
Makefile
Normal file
26
Makefile
Normal file
|
@ -0,0 +1,26 @@
|
|||
OBJECTS = *.php includes/*.php themes/*/*.php dummy/*.php
|
||||
LANGUAGES = de
|
||||
TARGETFILES = $(foreach lang,$(LANGUAGES),locale/$(lang)/LC_MESSAGES/sjqg.mo)
|
||||
POFILES =
|
||||
|
||||
all: $(TARGETFILES) $(POFILES)
|
||||
|
||||
%.mo: %.po
|
||||
msgfmt $< -o $@
|
||||
|
||||
%.po: locale/sjqg.pot
|
||||
if [ ! -d `dirname "$@"` ]; then mkdir -p `dirname "$@"`; fi
|
||||
if [ -f $@ ]; then \
|
||||
msgmerge -U $@ $<; \
|
||||
else \
|
||||
cp $< $@; \
|
||||
fi
|
||||
|
||||
locale/sjqg.pot: $(OBJECTS)
|
||||
xgettext -d sjqg -o sjqg.pot -p locale \
|
||||
--from-code=UTF8 --sort-output \
|
||||
--copyright-holder='Jan Dittberner <jan@dittberner.info>' \
|
||||
--package-name='SJQG' --package-version='0.3' \
|
||||
--language=PHP $(OBJECTS)
|
||||
|
||||
.SECONDARY:
|
Reference in a new issue