From 371a7e29d5718cadbe7cd1830050487f60946266 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 9 Jul 2017 18:53:55 -0400 Subject: Get it producing .mo files again. --- po/subdir.mk | 2 +- src/lib/messages.sh | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/po/subdir.mk b/po/subdir.mk index 6c4120b..3cddb5d 100644 --- a/po/subdir.mk +++ b/po/subdir.mk @@ -4,7 +4,7 @@ include $(topsrcdir)/build-aux/Makefile.head.mk locale = $(notdir $(srcdir)) domains = $(patsubst %.po,%,$(filter %.po,$(files.src.src))) -$(outdir)/%.mo: $(srcdir)/%.po $(call at.path,../%.po) +$(outdir)/%.mo: $(srcdir)/%.po $(call at.path,$(srcdir)/../%.pot) msgfmt -o $@ $< $(DESTDIR)$(localedir)/$(locale)/LC_MESSAGES/%.mo: $(outdir)/%.mo diff --git a/src/lib/messages.sh b/src/lib/messages.sh index 37ee1b8..f28ce7c 100644 --- a/src/lib/messages.sh +++ b/src/lib/messages.sh @@ -124,7 +124,12 @@ bullet() { # # A heading MUST end with a colon (':'), this is how it knows that it # is a heading. Similarly, a flag MUST NOT end with a colon. -flag() { +# +# NB: The opening curly brace is on a separate line because otherwise +# xgettext gets confused when parsing this file. It's a dumb bug in +# GNU xgettext. +flag() +{ local args=("$@") declare -i flaglen=0 -- cgit v1.2.2