diff --git a/www/common/drive-ui.js b/www/common/drive-ui.js
index 3447f5056..c9456ccdd 100644
--- a/www/common/drive-ui.js
+++ b/www/common/drive-ui.js
@@ -1,5 +1,6 @@
define([
'jquery',
+ '/api/config/',
'/common/toolbar.js',
'json.sortify',
'/common/common-util.js',
@@ -19,6 +20,7 @@ define([
'/customize/messages.js',
], function (
$,
+ ApiConfig,
Toolbar,
JSONSortify,
Util,
@@ -2339,8 +2341,10 @@ define([
msg = Messages._getKey('fm_info_sharedFolderHistory', [sfName]);
return $(common.fixLinks($box.html(msg)));
}
+ Messages.fm_info_anonymous = "You are not logged in so your pads will expire after {0} days (find out more). They are stored in your browser so clearing history may make them disappear.
Sign up or Log in to keep them alive.
"; // XXX XXX
+ // XXX update this key to use "{0} days" instead of "3 months"
if (!APP.loggedIn) {
- msg = APP.newSharedFolder ? Messages.fm_info_sharedFolder : Messages.fm_info_anonymous;
+ msg = APP.newSharedFolder ? Messages.fm_info_sharedFolder : Messages._getKey('fm_info_anonymous', [ApiConfig.inactiveTime || 90]);
return $(common.fixLinks($box.html(msg)));
}
if (!msg || APP.store['hide-info-' + path[0]] === '1') {