blob: b49874d7b2b9674f940215b79c0c62f1a3393319 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Short KISS instructions:
#
# - To add new languages: Add *.po target to LOCALES Make variable below
# - Update and merge .po-files: make update-po
# - Only update the template .pot-file only: make update-pot
# - Run update-potfiles.sh when any new sourcefiles with translatable strings
# have been introduced, and then continue with 'make update-po' or
# 'make update-pot' respectively.
#
LOCALES = be.po \
ca.po \
cs.po \
de.po \
el.po \
es.po \
es_AR.po \
es_MX.po \
et.po \
eu.po \
fi.po \
fr.po \
gl.po \
hu.po \
id_ID.po \
it.po \
ja.po \
ko.po \
ky.po \
lt.po \
lv.po \
pl.po \
pt_BR.po \
pt_PT.po \
ru.po \
si.po \
sk.po \
sr_RS.po \
ta.po \
uk.po \
zh_CN.po \
zh_TW.po
include ../extra.mk
include ../buildsys.mk
POTTEMPLATE=$(PACKAGE).pot
update-pot:
@echo Updating $(POTTEMPLATE) ...
xgettext --default-domain=$(PACKAGE) --language=C \
--keyword=_ --keyword=N_ --from-code="utf-8" \
--msgid-bugs-address="http://redmine.audacious-media-player.org/" \
--directory=.. --files-from=POTFILES.in -o $(POTTEMPLATE)
update-po: update-pot
@echo Updating .po -files ...
@for lang in $(LOCALES); do echo -n "$$lang : "; msgmerge --backup=simple --update "$$lang" $(POTTEMPLATE); done
|