i18n: Don't span i18n strings on multiple lines.

If we use string concatenation to span i18n strings across multiple
lines then we end with such strings to be translated by the translators:

```
"This is the first line"\n + "This is the second line"
```
This commit is contained in:
Umair Khan 2017-09-05 12:43:26 +05:00 committed by showell
parent 95fe984de5
commit d52760d2ef
2 changed files with 5 additions and 7 deletions

View File

@ -766,8 +766,7 @@ exports.initialize = function () {
msg = i18n.t("Sorry, the file was too large.");
break;
case 'QuotaExceeded':
msg = i18n.t("Upload would exceed your maximum quota."
+ " Consider deleting some previously uploaded files.");
msg = i18n.t("Upload would exceed your maximum quota. Consider deleting some previously uploaded files.");
break;
default:
msg = i18n.t("An unknown error occurred.");

View File

@ -384,10 +384,9 @@ function _set_up() {
Math.ceil(response_data.message_content_edit_limit_seconds / 60);
if (response_data.allow_message_editing) {
if (response_data.message_content_edit_limit_seconds > 0) {
ui_report.success(i18n.t("Users can now edit topics for all their messages,"
+" and the content of messages which are less than __num_minutes__ minutes old.",
{num_minutes :
data_message_content_edit_limit_minutes}),
ui_report.success(
i18n.t("Users can now edit topics for all their messages, and the content of messages which are less than __num_minutes__ minutes old.",
{num_minutes : data_message_content_edit_limit_minutes}),
message_editing_status);
} else {
ui_report.success(i18n.t("Users can now edit the content and topics of all their past messages!"), message_editing_status);