Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

docs: Divide backend translation section into templates and python.

Vishnu KS182f6578fc84
diff --git a/docs/translating/internationalization.md b/docs/translating/internationalization.md
index 6b3c5706d43..7604b842d0a 100644
--- a/docs/translating/internationalization.md
+++ b/docs/translating/internationalization.md
@@ -131,6 +131,8 @@ behavior of these systems.
## Backend translations
+### Jinja2 templates
+
All user-facing text in the Zulip UI should be generated by an Jinja2 HTML
template so that it can be translated.
@@ -158,6 +160,8 @@ You can instead use:
{% trans %}This string will have {{ value }} inside.{% endtrans %}
```
+### Python
+
A string in Python can be marked for translation using the `_()` function,
which can be imported as follows: