mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 01:16:19 +00:00
i18n: Atomize translation tags.
Makes the i18n strings in this file much easier to translate by splitting them into smaller chunks (which avoids having a lot of code in the tagged strings), and adds a string that was missing as well.
This commit is contained in:
committed by
Tim Abbott
parent
5a0911980e
commit
5b0b9feb7d
@@ -81,28 +81,33 @@
|
|||||||
<td class="definition">{% trans %}Exclude messages with topic <span class="operator_value">topic</span>{% endtrans %}</td>
|
<td class="definition">{% trans %}Exclude messages with topic <span class="operator_value">topic</span>{% endtrans %}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
{% trans %}
|
|
||||||
<p>You can use any combination of these search operators in a single query. For example:</p>
|
<p>{% trans %}You can use any combination of these search operators in a single query. Consider the following example:{% endtrans %}</p>
|
||||||
|
|
||||||
|
{% set placeholder_stream = _("streamname") %}
|
||||||
|
{% set placeholder_email = _("user@example.com") %}
|
||||||
|
{% set placeholder_keyword = _("keyword") %}
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|
||||||
<span class="operator">
|
<span class="operator">
|
||||||
stream:<span class="operator_value">streamname</span>
|
stream:<span class="operator_value">{{ placeholder_email }}</span>
|
||||||
sender:<span class="operator_value">user@example.com</span>
|
sender:<span class="operator_value">{{ placeholder_email }}</span>
|
||||||
<span class="operator_value">keyword</span>
|
<span class="operator_value">{{ placeholder_keyword }}</span>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
would search for messages sent by
|
{% trans %}
|
||||||
<span class="operator_value">user@example.com</span>
|
That query would search for messages sent by
|
||||||
|
<span class="operator_value">{{ placeholder_email }}</span>
|
||||||
to stream
|
to stream
|
||||||
<span class="operator_value">streamname</span>
|
<span class="operator_value">{{ placeholder_stream }}</span>
|
||||||
containing the keyword
|
containing the keyword
|
||||||
<span class="operator_value">keyword</span>.
|
<span class="operator_value">{{ placeholder_keyword }}</span>.
|
||||||
</p>
|
|
||||||
{% endtrans %}
|
{% endtrans %}
|
||||||
|
</p>
|
||||||
<hr/>
|
<hr/>
|
||||||
<a href="/help/search-for-messages#search-operators" target="_blank">Detailed search operators documentation</a>
|
<a href="/help/search-for-messages#search-operators" target="_blank">{% trans %}Detailed search operators documentation{% endtrans %}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -73,7 +73,10 @@ IGNORED_PHRASES = [
|
|||||||
r"enabled",
|
r"enabled",
|
||||||
r"disabled",
|
r"disabled",
|
||||||
r"zulip_org_id",
|
r"zulip_org_id",
|
||||||
|
# Placeholders
|
||||||
|
r"keyword",
|
||||||
|
r"streamname",
|
||||||
|
r"user@example.com",
|
||||||
# Fragments of larger strings
|
# Fragments of larger strings
|
||||||
(r'your subscriptions on your Streams page'),
|
(r'your subscriptions on your Streams page'),
|
||||||
(r'Change notification settings for individual streams on your '
|
(r'Change notification settings for individual streams on your '
|
||||||
|
|||||||
Reference in New Issue
Block a user