summaryrefslogtreecommitdiff
path: root/src
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 /src
parent5ebc9f2a5ad207b8621e1aacf7bb23d32a7ce772 (diff)
Get it producing .mo files again.
Diffstat (limited to 'src')
-rw-r--r--src/lib/messages.sh7
1 files changed, 6 insertions, 1 deletions
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