mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
compose: Replace accidental usage of underscore for “translation”.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
da8691d7d7
commit
9c7a3cc0f4
@@ -1480,8 +1480,8 @@ run_test("on_events", () => {
|
||||
handler(ev);
|
||||
|
||||
// video link ids consist of 15 random digits
|
||||
let video_link_regex = /\[Click to join video call\]\(https:\/\/meet.jit.si\/\d{15}\)/;
|
||||
assert(video_link_regex.test(syntax_to_insert));
|
||||
let video_link_regex = /\[translated: Click to join video call\]\(https:\/\/meet.jit.si\/\d{15}\)/;
|
||||
assert.match(syntax_to_insert, video_link_regex);
|
||||
|
||||
page_params.jitsi_server_url = null;
|
||||
called = false;
|
||||
@@ -1505,8 +1505,8 @@ run_test("on_events", () => {
|
||||
};
|
||||
|
||||
handler(ev);
|
||||
video_link_regex = /\[Click to join video call\]\(example\.zoom\.com\)/;
|
||||
assert(video_link_regex.test(syntax_to_insert));
|
||||
video_link_regex = /\[translated: Click to join video call\]\(example\.zoom\.com\)/;
|
||||
assert.match(syntax_to_insert, video_link_regex);
|
||||
|
||||
page_params.realm_video_chat_provider =
|
||||
page_params.realm_available_video_chat_providers.big_blue_button.id;
|
||||
@@ -1520,8 +1520,8 @@ run_test("on_events", () => {
|
||||
};
|
||||
|
||||
handler(ev);
|
||||
video_link_regex = /\[Click to join video call\]\(\/calls\/bigbluebutton\/join\?meeting_id=%22zulip-1%22&password=%22AAAAAAAAAA%22&checksum=%2232702220bff2a22a44aee72e96cfdb4c4091752e%22\)/;
|
||||
assert(video_link_regex.test(syntax_to_insert));
|
||||
video_link_regex = /\[translated: Click to join video call\]\(\/calls\/bigbluebutton\/join\?meeting_id=%22zulip-1%22&password=%22AAAAAAAAAA%22&checksum=%2232702220bff2a22a44aee72e96cfdb4c4091752e%22\)/;
|
||||
assert.match(syntax_to_insert, video_link_regex);
|
||||
})();
|
||||
|
||||
(function test_markdown_preview_compose_clicked() {
|
||||
|
||||
@@ -821,8 +821,8 @@ exports.needs_subscribe_warning = function (user_id, stream_id) {
|
||||
};
|
||||
|
||||
function insert_video_call_url(url, target_textarea) {
|
||||
const video_call_link_text = "[" + _("Click to join video call") + "](" + url + ")";
|
||||
compose_ui.insert_syntax_and_focus(video_call_link_text, target_textarea);
|
||||
const link_text = i18n.t("Click to join video call");
|
||||
compose_ui.insert_syntax_and_focus(`[${link_text}](${url})`, target_textarea);
|
||||
}
|
||||
|
||||
exports.render_and_show_preview = function (preview_spinner, preview_content_box, content) {
|
||||
|
||||
Reference in New Issue
Block a user