mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-19 23:40:29 +00:00
Merge pull request #394 from gbabin/fix-translations-encoding
Fix translations encoding (issue #165)
This commit is contained in:
commit
391bd5882a
8 changed files with 3859 additions and 3884 deletions
10
po/Makefile
10
po/Makefile
|
|
@ -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
BIN
po/de.mo
Binary file not shown.
BIN
po/es.mo
BIN
po/es.mo
Binary file not shown.
BIN
po/fr.mo
BIN
po/fr.mo
Binary file not shown.
1729
po/linkchecker.pot
1729
po/linkchecker.pot
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue