diff options
| author | Christoph Berg <myon@debian.org> | 2020-03-31 17:57:07 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2020-03-31 17:57:07 +0200 |
| commit | c2bdd8f8d96bf5329672163cc0905a22589d26d3 (patch) | |
| tree | 76ce2d78c98a958f97dfb6128fee9c529a2a55aa /locale/Makefile | |
| parent | b255867dd3e05fff714c5d3325c02596bf5854c8 (diff) | |
New upstream version 20200227+py3+20200213upstream/20200227+py3+20200213
Diffstat (limited to 'locale/Makefile')
| -rw-r--r-- | locale/Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/locale/Makefile b/locale/Makefile new file mode 100644 index 0000000..5271862 --- /dev/null +++ b/locale/Makefile @@ -0,0 +1,28 @@ +LOCALES = en_US pl it nl de hu ru pt_BR fr uk_UA es_ES +MOFILES = $(patsubst %,%/LC_MESSAGES/CHIRP.mo,$(LOCALES)) + +COPY="Dan Smith <dsmith@danplanet.com>" +PKG=CHIRP +XGT_OPTS=--copyright-holder=$(COPY) --package-name=$(PKG) + +all: $(MOFILES) + +clean: + rm -f $(MOFILES) *~ *.orig + find . -name '*.mo' -exec rm -f "{}" \; + find * -depth -type d -exec rmdir "{}" \; + +chirpui.pot: + /usr/bin/find ../chirp/ui -name '*.py' > .files + xgettext -L Python -k_ -o chirpui.pot -f .files $(XGT_OPTS) + +%.po: chirpui.pot + if [ -f $@ ]; then \ + msgmerge -U $@ chirpui.pot; \ + else \ + msginit --input=chirpui.pot --locale=$(@:%.po=%); \ + fi + +%/LC_MESSAGES/CHIRP.mo: %.po + mkdir -p $(shell dirname $@) + msgfmt --output-file=$@ $^ |
