mirror of https://github.com/zulip/zulip.git
Rename "operators" to "filters" in "Search operators" reference.
Changes all the uses of the word "operators" to "filters" in the in-app "Search operators" reference to align with the updated help center documentation. Fixes #23767.
This commit is contained in:
parent
3b0e311f83
commit
a153e9232e
|
@ -44,7 +44,7 @@ function make_tab(i) {
|
|||
[
|
||||
"translated: Keyboard shortcuts",
|
||||
"translated: Message formatting",
|
||||
"translated: Search operators",
|
||||
"translated: Search filters",
|
||||
][i],
|
||||
);
|
||||
};
|
||||
|
@ -189,7 +189,7 @@ run_test("basics", () => {
|
|||
values: [
|
||||
{label: $t({defaultMessage: "Keyboard shortcuts"}), key: "keyboard-shortcuts"},
|
||||
{label: $t({defaultMessage: "Message formatting"}), key: "message-formatting"},
|
||||
{label: $t({defaultMessage: "Search operators"}), key: "search-operators"},
|
||||
{label: $t({defaultMessage: "Search filters"}), key: "search-operators"},
|
||||
],
|
||||
html_class: "stream_sorter_toggle",
|
||||
callback(name, key) {
|
||||
|
@ -238,13 +238,13 @@ run_test("basics", () => {
|
|||
assert.equal(env.tabs[0].class, "first");
|
||||
assert.equal(env.tabs[1].class, "middle");
|
||||
assert.equal(env.tabs[2].class, "last selected");
|
||||
assert.deepEqual(callback_args, ["translated: Search operators", "search-operators"]);
|
||||
assert.equal(widget.value(), "translated: Search operators");
|
||||
assert.deepEqual(callback_args, ["translated: Search filters", "search-operators"]);
|
||||
assert.equal(widget.value(), "translated: Search filters");
|
||||
assert.equal(widget.value(), callback_value);
|
||||
|
||||
// try to crash the key handler
|
||||
env.keydown_f.call(env.tabs[env.focused_tab], RIGHT_KEY);
|
||||
assert.equal(widget.value(), "translated: Search operators");
|
||||
assert.equal(widget.value(), "translated: Search filters");
|
||||
|
||||
callback_args = undefined;
|
||||
|
||||
|
@ -264,7 +264,7 @@ run_test("basics", () => {
|
|||
widget.disable_tab("message-formatting");
|
||||
|
||||
env.keydown_f.call(env.tabs[env.focused_tab], RIGHT_KEY);
|
||||
assert.equal(widget.value(), "translated: Search operators");
|
||||
assert.equal(widget.value(), "translated: Search filters");
|
||||
|
||||
callback_args = undefined;
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ link: Usage statistics
|
|||
link: Help center
|
||||
info: Keyboard shortcuts
|
||||
info: Message formatting
|
||||
info: Search operators
|
||||
info: Search filters
|
||||
hash: About Zulip
|
||||
---
|
||||
link: Desktop & mobile apps
|
||||
|
|
|
@ -214,7 +214,7 @@ export function set_up_toggler() {
|
|||
values: [
|
||||
{label: $t({defaultMessage: "Keyboard shortcuts"}), key: "keyboard-shortcuts"},
|
||||
{label: $t({defaultMessage: "Message formatting"}), key: "message-formatting"},
|
||||
{label: $t({defaultMessage: "Search operators"}), key: "search-operators"},
|
||||
{label: $t({defaultMessage: "Search filters"}), key: "search-operators"},
|
||||
],
|
||||
callback(name, key) {
|
||||
$(".overlay-modal").hide();
|
||||
|
|
|
@ -100,7 +100,7 @@
|
|||
</li>
|
||||
<li role="presentation">
|
||||
<a tabindex="0" role="menuitem" data-overlay-trigger="search-operators">
|
||||
<i class="fa fa-search" aria-hidden="true"></i> {{t 'Search operators' }}
|
||||
<i class="fa fa-search" aria-hidden="true"></i> {{t 'Search filters' }}
|
||||
</a>
|
||||
</li>
|
||||
<li class="divider only-visible-for-spectators" role="presentation"></li>
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<div class="overlay-modal hide" id="search-operators" tabindex="-1" role="dialog" aria-label="{{t 'Search operators' }}">
|
||||
<div class="overlay-modal hide" id="search-operators" tabindex="-1" role="dialog" aria-label="{{t 'Search filters' }}">
|
||||
<div class="modal-body" data-simplebar data-simplebar-auto-hide="false">
|
||||
<div id="operators-instructions">
|
||||
<table class="table table-striped table-condensed table-rounded table-bordered help-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{t "Operator" }}</th>
|
||||
<th>{{t "Filter" }}</th>
|
||||
<th>{{t "Effect" }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -158,9 +158,9 @@
|
|||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>{{t "You can combine search operators as needed." }}</p>
|
||||
<p>{{t "You can combine search filters as needed." }}</p>
|
||||
<hr />
|
||||
<a href="help/search-for-messages#search-operators" target="_blank" rel="noopener noreferrer">{{t "Detailed search operators documentation" }}</a>
|
||||
<a href="help/search-for-messages#search-filters" target="_blank" rel="noopener noreferrer">{{t "Detailed search filters documentation" }}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue