summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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