mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 02:48:00 +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>
|
||||
</tr>
|
||||
</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>
|
||||
|
||||
<span class="operator">
|
||||
stream:<span class="operator_value">streamname</span>
|
||||
sender:<span class="operator_value">user@example.com</span>
|
||||
<span class="operator_value">keyword</span>
|
||||
stream:<span class="operator_value">{{ placeholder_email }}</span>
|
||||
sender:<span class="operator_value">{{ placeholder_email }}</span>
|
||||
<span class="operator_value">{{ placeholder_keyword }}</span>
|
||||
</span>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
would search for messages sent by
|
||||
<span class="operator_value">user@example.com</span>
|
||||
{% trans %}
|
||||
That query would search for messages sent by
|
||||
<span class="operator_value">{{ placeholder_email }}</span>
|
||||
to stream
|
||||
<span class="operator_value">streamname</span>
|
||||
<span class="operator_value">{{ placeholder_stream }}</span>
|
||||
containing the keyword
|
||||
<span class="operator_value">keyword</span>.
|
||||
</p>
|
||||
<span class="operator_value">{{ placeholder_keyword }}</span>.
|
||||
{% endtrans %}
|
||||
</p>
|
||||
<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>
|
||||
|
||||
@@ -73,7 +73,10 @@ IGNORED_PHRASES = [
|
||||
r"enabled",
|
||||
r"disabled",
|
||||
r"zulip_org_id",
|
||||
|
||||
# Placeholders
|
||||
r"keyword",
|
||||
r"streamname",
|
||||
r"user@example.com",
|
||||
# Fragments of larger strings
|
||||
(r'your subscriptions on your Streams page'),
|
||||
(r'Change notification settings for individual streams on your '
|
||||
|
||||
Reference in New Issue
Block a user