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:
deekshaarul
2016-10-30 10:57:53 +05:30
committed by Tim Abbott
parent 6624d4e56e
commit 05d252da71

View File

@@ -10,7 +10,6 @@ var is_composing_message = false;
var user_acknowledged_all_everyone; var user_acknowledged_all_everyone;
var message_snapshot; var message_snapshot;
var empty_topic_placeholder = "(no topic)";
var uploads_domain = document.location.protocol + '//' + document.location.host; var uploads_domain = document.location.protocol + '//' + document.location.host;
var uploads_path = '/user_uploads'; var uploads_path = '/user_uploads';
@@ -315,7 +314,7 @@ exports.cancel = function () {
}; };
exports.empty_topic_placeholder = function () { exports.empty_topic_placeholder = function () {
return empty_topic_placeholder; return i18n.t("(no topic)");
}; };
function create_message_object() { function create_message_object() {