mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
compose.js: Add translation tag to empty_topic_placeholder.
Moves the variable definition from the top of the file to inside the export since i18n seems not be loaded at the time the file is parsed.
This commit is contained in:
@@ -10,7 +10,6 @@ var is_composing_message = false;
|
||||
var user_acknowledged_all_everyone;
|
||||
|
||||
var message_snapshot;
|
||||
var empty_topic_placeholder = "(no topic)";
|
||||
|
||||
var uploads_domain = document.location.protocol + '//' + document.location.host;
|
||||
var uploads_path = '/user_uploads';
|
||||
@@ -315,7 +314,7 @@ exports.cancel = function () {
|
||||
};
|
||||
|
||||
exports.empty_topic_placeholder = function () {
|
||||
return empty_topic_placeholder;
|
||||
return i18n.t("(no topic)");
|
||||
};
|
||||
|
||||
function create_message_object() {
|
||||
|
||||
Reference in New Issue
Block a user