summaryrefslogtreecommitdiffstats
path: root/OPS.MIX
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2021-02-20 13:08:54 -0800
committerKevin McCarthy <kevin@8t8.us>2021-02-21 14:47:25 -0800
commit7fd331fd980f01b81765cf949c0fa1eb518d0b34 (patch)
tree22199d5f18930092cdf2b8fe94b8e4a6f30ad7a9 /OPS.MIX
parentd4e13e4b1fb809105c19da1001179a7c9b6919d1 (diff)
Scan OPS files directly for gettext translation strings.
Previously, gettext's po/Makefile.in.in was modified to separately scan and merge a generated file: keymap_alldefs.h. Gettext doesn't recommend nor provide support for scanning generated files. However, there is no reason we have to scan the generated file. Instead move the N_() markers and L10N comments into the OPS files. Then simply add the OPS files to po/POTFILES.in. Add a '--language=C' option to xgettext to avoid a warning about the OPS files not have any known language suffix. Modify gen_defs and doc/gen-map-doc to deal with the new format of the OPS files.
Diffstat (limited to 'OPS.MIX')
-rw-r--r--OPS.MIX56
1 files changed, 49 insertions, 7 deletions
diff --git a/OPS.MIX b/OPS.MIX
index a836226c..b24fc3ca 100644
--- a/OPS.MIX
+++ b/OPS.MIX
@@ -1,7 +1,49 @@
-OP_MIX_USE "accept the chain constructed"
-OP_MIX_APPEND "append a remailer to the chain"
-OP_MIX_INSERT "insert a remailer into the chain"
-OP_MIX_DELETE "delete a remailer from the chain"
-OP_MIX_CHAIN_PREV "select the previous element of the chain"
-OP_MIX_CHAIN_NEXT "select the next element of the chain"
-OP_COMPOSE_MIX "send the message through a mixmaster remailer chain"
+/* This file is used to generate keymap_defs.h and the manual.
+ *
+ * The Mutt parser scripts scan lines that start with 'OP_'
+ * So please ensure multi-line comments have leading whitespace,
+ * or at least don't start with OP_.
+ *
+ * Gettext also scans this file for translation strings, so
+ * help strings should be surrounded by N_("....")
+ * and have a translator comment line above them.
+ *
+ * All OPS* files (but not keymap_defs.h) should be listed
+ * in po/POTFILES.in.
+ */
+
+/* L10N: Help screen description for OP_MIX_USE
+ mixmaster menu: <accept>
+ */
+OP_MIX_USE N_("accept the chain constructed")
+
+/* L10N: Help screen description for OP_MIX_APPEND
+ mixmaster menu: <append>
+ */
+OP_MIX_APPEND N_("append a remailer to the chain")
+
+/* L10N: Help screen description for OP_MIX_INSERT
+ mixmaster menu: <insert>
+ */
+OP_MIX_INSERT N_("insert a remailer into the chain")
+
+/* L10N: Help screen description for OP_MIX_DELETE
+ mixmaster menu: <delete>
+ */
+OP_MIX_DELETE N_("delete a remailer from the chain")
+
+/* L10N: Help screen description for OP_MIX_CHAIN_PREV
+ mixmaster menu: <chain-prev>
+ */
+OP_MIX_CHAIN_PREV N_("select the previous element of the chain")
+
+/* L10N: Help screen description for OP_MIX_CHAIN_NEXT
+ mixmaster menu: <chain-next>
+ */
+OP_MIX_CHAIN_NEXT N_("select the next element of the chain")
+
+/* L10N: Help screen description for OP_COMPOSE_MIX
+ compose menu: <mix>
+ */
+OP_COMPOSE_MIX N_("send the message through a mixmaster remailer chain")
+