diff --git a/common/lib/capa/capa/templates/jstextline.html b/common/lib/capa/capa/templates/jstextline.html
index 18ca8f8765..ae7ed71ca1 100644
--- a/common/lib/capa/capa/templates/jstextline.html
+++ b/common/lib/capa/capa/templates/jstextline.html
@@ -19,7 +19,7 @@
% endif
- ${status.display_name
+ ${status.display_name}
% if msg:
diff --git a/conf/locale/babel_mako.cfg b/conf/locale/babel_mako.cfg
index 065372d06d..f017d73afa 100644
--- a/conf/locale/babel_mako.cfg
+++ b/conf/locale/babel_mako.cfg
@@ -1,13 +1,30 @@
-# Extraction from Mako templates
-[mako: cms/templates/**.html]
+# Extraction from Mako templates.
+# Mako files can appear in a number of different places. Some we want to
+# extract strings from, some we don't.
+#
+# Extract from these directory trees:
+#
+# cms/templates
+# cms/djangoapps/APPNAME/templates
+# common/templates
+# common/djangoapps/APPNAME/templates
+# lms/templates
+# lms/djangoapps/APPNAME/templates
+# common/lib/capa/capa/templates
+#
+# Don't extract from these directory trees:
+# common/test/test_microsites/test_microsite/templates
+#
+
+[mako: */templates/**.html]
input_encoding = utf-8
-[mako: lms/templates/**.html]
+[mako: */djangoapps/*/templates/**.html]
input_encoding = utf-8
-[mako: lms/templates/**.mustache]
+[mako: */templates/**.mustache]
input_encoding = utf-8
-[mako: common/templates/**.html]
+[mako: */templates/emails/**.txt]
input_encoding = utf-8
-[mako: cms/templates/emails/**.txt]
+[mako: common/lib/capa/capa/templates/**.html]
input_encoding = utf-8
-[mako: lms/templates/emails/**.txt]
+[mako: themes/**.html]
input_encoding = utf-8
diff --git a/conf/locale/babel_underscore.cfg b/conf/locale/babel_underscore.cfg
index 7df8b38a16..0769f65f28 100644
--- a/conf/locale/babel_underscore.cfg
+++ b/conf/locale/babel_underscore.cfg
@@ -1,9 +1,5 @@
# Use this configuration file for extracting strings from .underscore files.
-[underscore: cms/templates/**.underscore]
-input_encoding = utf-8
-[underscore: common/templates/**.underscore]
-input_encoding = utf-8
-[underscore: lms/templates/**.underscore]
+[underscore: **.underscore]
input_encoding = utf-8
[extractors]