summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-07-09 18:53:55 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-07-09 18:56:56 -0400
commit371a7e29d5718cadbe7cd1830050487f60946266 (patch)
tree482a2602c26673b28e2c6e10c9bcaecf499fbaf8
parent5ebc9f2a5ad207b8621e1aacf7bb23d32a7ce772 (diff)
Get it producing .mo files again.
-rw-r--r--po/subdir.mk2
-rw-r--r--src/lib/messages.sh7
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