i18n: Rename email subject files so i18n detects them.

Apparently, when we renamed these files to no longer have a .txt
extension, we accidentally removed them from the set of strings for
translation, because `manage.py makemessages` by default only
processes .txt and .html files under the templates/ directory.

Fix this by adding a .txt extension.
This commit is contained in:
Tim Abbott
2018-12-17 09:58:43 -08:00
parent b2fc017671
commit b29d66f34b
16 changed files with 7 additions and 7 deletions

View File

@@ -57,7 +57,7 @@ def build_email(template_prefix: str, to_user_ids: Optional[List[int]]=None,
})
def render_templates() -> Tuple[str, str, str]:
subject = loader.render_to_string(template_prefix + '.subject',
subject = loader.render_to_string(template_prefix + '.subject.txt',
context=context,
using='Jinja2_plaintext').strip().replace('\n', '')
message = loader.render_to_string(template_prefix + '.txt',