Debian Codegraph @

po/Makefile

raw
1 # Short KISS instructions:
2 #
3 # - To add new languages: Add *.po target to LOCALES Make variable below
4 # - Update and merge .po-files: make update-po
5 # - Only update the template .pot-file only: make update-pot
6 # - Run update-potfiles.sh when any new sourcefiles with translatable strings
7 # have been introduced, and then continue with 'make update-po' or
8 # 'make update-pot' respectively.
9 #
10
11 LOCALES=es.po ru.po cy.po de.po da.po fr.po tr.po
12
13 include ../buildsys.mk
14
15 POTTEMPLATE=$(PACKAGE).pot
16
17 update-pot:
18 @echo Updating $(POTTEMPLATE) ...
19 xgettext --default-domain=$(PACKAGE) --language=C \
20 --keyword=_ --keyword=N_ --from-code="utf-8" \
21 --directory=.. --files-from=POTFILES.in -o $(POTTEMPLATE)
22
23 update-po: update-pot
24 @echo Updating .po -files ...
25 @for lang in $(LOCALES); do echo -n "$$lang : "; msgmerge --backup=simple --update "$$lang" $(POTTEMPLATE); done