Merge pull request #394 from gbabin/fix-translations-encoding

Fix translations encoding (issue #165)
This commit is contained in:
Marius Gedminas 2020-05-19 18:53:06 +03:00 committed by GitHub
commit 391bd5882a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 3859 additions and 3884 deletions

View file

@ -2,7 +2,7 @@ XGETTEXT := xgettext
MSGFMT := msgfmt
MSGMERGE := msgmerge
POSOURCES = $(shell find ../linkcheck -name \*.py) \
../linkchecker /usr/lib/python2.7/argparse.py
../linkchecker $(python3 -c 'import argparse; print(argparse.__file__)')
LDIR = ../share/locale
PACKAGE = linkchecker
TEMPLATE = $(PACKAGE).pot
@ -10,7 +10,7 @@ MYMAIL := bastian.kleineidam@web.de
LFILE = LC_MESSAGES/$(PACKAGE).mo
# defined language (add new languages here)
LANGUAGES = de fr es
MOFILES = $(wildcard *.po)
MOFILES = $(wildcard *.mo)
all: $(MOFILES)
@ -27,12 +27,6 @@ $(TEMPLATE): $(POSOURCES)
--msgid-bugs-address=$(MYMAIL) -o $(TEMPLATE) \
--keyword=_n:1,2 $(POSOURCES)
%.mo: %.po
if [ ! -d $(LDIR)/$*/LC_MESSAGES ]; then \
mkdir -p $(LDIR)/$*/LC_MESSAGES; \
fi
$(MSGFMT) -c --statistics -o $(LDIR)/$*/$(LFILE) $<
clean:
@for f in $(LANGUAGES); do rm -f $(LDIR)/$$f/$(LFILE); done
rm -f *.mo *.bak

BIN
po/de.mo

Binary file not shown.

1920
po/de.po

File diff suppressed because it is too large Load diff

BIN
po/es.mo

Binary file not shown.

2016
po/es.po

File diff suppressed because it is too large Load diff

BIN
po/fr.mo

Binary file not shown.

2068
po/fr.po

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff