mirror of
https://github.com/zulip/zulip.git
synced 2025-10-26 17:43:58 +00:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user