mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-11 07:30:56 +00:00
5e4141a628
The new script adds reference and context to the strings, identifies them with more correctness and has blacklisting capabilities to ignore strings that need no translation.
24 lines
600 B
Makefile
24 lines
600 B
Makefile
PREFIX ?= /usr/local
|
|
LOCALEDIR ?= ${PREFIX}/share/locale
|
|
TOMBFILE = LC_MESSAGES/tomb.mo
|
|
|
|
all:
|
|
@rm -f tomb.pot
|
|
@perl generate_translatable_strings.pl > tomb.pot
|
|
@echo "Strings generated in tomb.pot"
|
|
|
|
.PHONY: install
|
|
install: es.mo ru.mo fr.mo de.mo
|
|
install -Dm644 es.mo ${DESTDIR}${LOCALEDIR}/es_ES/${TOMBFILE}
|
|
install -Dm644 ru.mo ${DESTDIR}${LOCALEDIR}/ru_RU/${TOMBFILE}
|
|
install -Dm644 fr.mo ${DESTDIR}${LOCALEDIR}/fr_FR/${TOMBFILE}
|
|
install -Dm644 de.mo ${DESTDIR}${LOCALEDIR}/de_DE/${TOMBFILE}
|
|
@echo "Translations installed."
|
|
|
|
%.mo: %.po
|
|
msgfmt -o $@ $<
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
@rm -f *.mo
|