From dae6d7fc1e98e99c3f7e6854cdd5e5c031c03bb6 Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 25 Mar 2022 16:53:10 +0530 Subject: [PATCH] add hints for translation linting and remove notes --- customize.dist/four-oh-four.js | 1 + lib/storage/blob.js | 3 ++- www/admin/inner.js | 2 +- www/support/inner.js | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/customize.dist/four-oh-four.js b/customize.dist/four-oh-four.js index 91f8450ef..b26b1bc04 100644 --- a/customize.dist/four-oh-four.js +++ b/customize.dist/four-oh-four.js @@ -14,6 +14,7 @@ define([ var is500 = Boolean(document.querySelector('#five-hundred')); var brand = h('h1#cp-brand', 'CryptPad'); + // Msg.fivehundred_internalServerError.four04_pageNotFound var message = h('h2#cp-scramble', Messages[is500? 'fivehundred_internalServerError':'four04_pageNotFound']); var title = h('h2#cp-title', is500? "500":"404"); diff --git a/lib/storage/blob.js b/lib/storage/blob.js index 7cf13dd59..159a33492 100644 --- a/lib/storage/blob.js +++ b/lib/storage/blob.js @@ -496,7 +496,8 @@ BlobStore.create = function (config, _cb) { if (e) { CB(e); } })); }).nThen(function (w) { - // XXX make a placeholder file in the root of the blob path + // make a placeholder file in the root of the blob path + // so that the checkup page always has a resource it can check var fullPath = Path.join(Env.blobPath, 'placeholder.txt'); Fse.writeFile(fullPath, 'PLACEHOLDER\n', w()); }).nThen(function () { diff --git a/www/admin/inner.js b/www/admin/inner.js index 934589ea7..48a8d6c33 100644 --- a/www/admin/inner.js +++ b/www/admin/inner.js @@ -1968,7 +1968,7 @@ define([ create['bytes-written'] = function () { var key = 'bytes-written'; - var $div = makeBlock(key); + var $div = makeBlock(key); // Msg.admin_bytesWrittenTitle.admin_bytesWrittenHint var duration = APP.instanceStatus.profilingWindow; if (!isPositiveInteger(duration)) { duration = 10000; } diff --git a/www/support/inner.js b/www/support/inner.js index 2b6f761d5..7c176bcc6 100644 --- a/www/support/inner.js +++ b/www/support/inner.js @@ -49,7 +49,7 @@ define([ 'cp-support-language', 'cp-support-form', ], - 'debugging': [ + 'debugging': [ // Msg.support_cat_debugging 'cp-support-debugging-data', ], };