cache renamed to storage
This commit is contained in:
parent
a8c69d4426
commit
374d598d70
3 changed files with 17 additions and 17 deletions
|
|
@ -331,25 +331,25 @@
|
||||||
"message": "Manage your data placeholders",
|
"message": "Manage your data placeholders",
|
||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
"prefs_cache_title": {
|
"prefs_storage_title": {
|
||||||
"message": "Cache Storage",
|
"message": "Additional Info Storage",
|
||||||
"description": "Title for cache management section in options"
|
"description": "Title for additional info storage management section in options"
|
||||||
},
|
},
|
||||||
"prefs_cache_storage_size": {
|
"prefs_storage_size": {
|
||||||
"message": "Cache size",
|
"message": "Storage size",
|
||||||
"description": "Label for cache storage size display"
|
"description": "Label for storage size display"
|
||||||
},
|
},
|
||||||
"prefs_cache_clear_button": {
|
"prefs_storage_clear_button": {
|
||||||
"message": "Clear Cache",
|
"message": "Clear Storage",
|
||||||
"description": "Button to clear all cached message data"
|
"description": "Button to clear all stored message data"
|
||||||
},
|
},
|
||||||
"prefs_cache_clear_confirm": {
|
"prefs_cache_clear_confirm": {
|
||||||
"message": "Are you sure you want to clear all cached data (summaries, spam reports, translations)? This action cannot be undone.",
|
"message": "Are you sure you want to clear all stored data (summaries, spam reports, translations)? This action cannot be undone.",
|
||||||
"description": "Confirmation dialog for clearing cache"
|
"description": "Confirmation dialog for clearing storage"
|
||||||
},
|
},
|
||||||
"prefs_cache_clear_done": {
|
"prefs_storage_clear_done": {
|
||||||
"message": "$COUNT$ records removed.",
|
"message": "$COUNT$ records removed.",
|
||||||
"description": "Message shown after cache is cleared",
|
"description": "Message shown after storage is cleared",
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"count": {
|
"count": {
|
||||||
"content": "$1"
|
"content": "$1"
|
||||||
|
|
|
||||||
|
|
@ -242,10 +242,10 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><span class="opt_title">__MSG_prefs_cache_title__</span></td>
|
<td><span class="opt_title">__MSG_prefs_storage_title__</span></td>
|
||||||
<td>
|
<td>
|
||||||
__MSG_prefs_cache_storage_size__: <span id="cache_storage_size"></span>
|
__MSG_prefs_storage_size__: <span id="cache_storage_size"></span>
|
||||||
<button id="btnClearCache" class="btn_small">__MSG_prefs_cache_clear_button__</button>
|
<button id="btnClearCache" class="btn_small">__MSG_prefs_storage_clear_button__</button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
|
|
@ -383,7 +383,7 @@ document.addEventListener('DOMContentLoaded', async () => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let count = await taStorage.clearAllRecords();
|
let count = await taStorage.clearAllRecords();
|
||||||
alert(browser.i18n.getMessage("prefs_cache_clear_done", [String(count)]));
|
alert(browser.i18n.getMessage("prefs_storage_clear_done", [String(count)]));
|
||||||
updateCacheSize();
|
updateCacheSize();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue