Sha256: d1c264f3f4d7b52ce725099e123da4754959967fb7e2247cf1b1cc79f959315d

Contents?: true

Size: 948 Bytes

Versions: 73

Compression:

Stored size: 948 Bytes

Contents

#
# Makefile for PO merging and MO generation
#

POTFILE = katello.pot
POFILES = $(shell find . -name '*.po')
MOFILES = $(patsubst %.po,%.mo,$(POFILES))
POXFILES = $(patsubst %.po,%.pox,$(POFILES))

%.mo: %.po
	msgfmt -o $@ $<

# Generate MO files from PO files
all-mo: $(MOFILES)

# Check for malformed strings
# TODO - enable endwhitespace, endpunc, puncspacing, options filters
%.pox: %.po
	msgfmt -c $<
	pofilter --nofuzzy -t variables -t blank -t urls -t emails -t long -t newlines \
		-t options -t printf -t validchars --gnome $< > $@
	! grep -q msgid $@

check: $(POXFILES)

# Merge PO files
update-po:
	for f in $(shell find ./ -name "*.po") ; do \
		msgmerge -N --backup=none -U $$f ${POTFILE} ; \
	done

# Unify duplicate translations
uniq-po:
	for f in $(shell find ./ -name "*.po") ; do \
		msguniq $$f -o $$f ; \
	done

# Remove all MO files
clean:
	-rm -f messages.mo
	find . \( -name "*.mo" -o -name "*.pox" \) -exec rm -f '{}' ';'

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
katello-3.9.1 locale/Makefile
katello-3.9.0 locale/Makefile
katello-3.8.1 locale/Makefile
katello-3.9.0.rc2 locale/Makefile
katello-3.9.0.rc1 locale/Makefile
katello-3.7.1.1 locale/Makefile
katello-3.7.1 locale/Makefile
katello-3.8.0 locale/Makefile
katello-3.8.0.rc3 locale/Makefile
katello-3.8.0.rc2 locale/Makefile
katello-3.7.0 locale/Makefile
katello-3.8.0.rc1 locale/Makefile
katello-3.7.0.rc2 locale/Makefile
katello-3.7.0.rc1 locale/Makefile
katello-3.5.2 locale/Makefile
katello-3.6.0 locale/Makefile
katello-3.6.0.1.rc2 locale/Makefile
katello-3.6.0.rc2 locale/Makefile
katello-3.6.0.rc1 locale/Makefile
katello-3.5.1.1 locale/Makefile