Skip to content

Commit

Permalink
updating the 'en' locale based on https://www.transifex.com/user/prof…
Browse files Browse the repository at this point in the history
…ile/Tonnes/ comments on Transifex
  • Loading branch information
Richard Neomy committed Dec 13, 2022
1 parent 66e1043 commit 3c02a54
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 10 deletions.
43 changes: 43 additions & 0 deletions misc/description.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
"Auto Tab Discard" is a lightweight browser extension that automatically reduces the amount of memory used by open but inactive tabs, helping to conserve battery life on portable devices by disabling JavaScript code and DOM events on discarded tabs.

Preview:

https://www.youtube.com/watch?v=ityhxUPp3y8

Instruction:

There are two options on the extension's interface to either discard tabs or release discarding (the "x" buttons)


The features of "Auto Tab Discard" are:

* Improves browser performance and reduces memory usage by automatically or manually discarding inactive, idle, or forgotten tabs.
* Includes a list of hostnames or regular expressions that can be excluded from auto-discarding.
* Preserves the discarded state of tabs when the browser is closed and reopened.
* Indicates the discarded state of a tab through the favicon or title.
* Restores the state of a tab, including scroll position and text box content, after it is released from being discarded.
* Allows for the forced discarding of specified hostnames.


The options for configuring whether tabs should be discarded or not include:

* Pinned tabs
* Tabs that are playing media
* The presence of a power source
* Unsaved content or user input in a tab

The available plugins for "Auto Tab Discard" are:

* Release the discarded state of the next or previous tab.
* Release the discarded state of all tabs in the active window.
* Automatically discard all newly opened inactive tabs.
* Store YouTube's timestamp before a tab is discarded.
* Permanently delete (remove) old discarded tabs that are inactive.

Notes:

* Unlike the "The Great Suspender" extension, this extension uses the native method for discarding tabs, which means that even if the extension is removed or the browser crashes, your browser will automatically restore everything for you.

Privacy Policy:

https://webextension.org/privacy-policy/extension/tab-discard.html
18 changes: 9 additions & 9 deletions v3/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@
"message": "Release discarding state of all pinned tabs on a browser or extension startup"
},
"options_release_next_tab": {
"message": "Release discarding of the next tab (tab to the right of the active tab)."
"message": "Release discarding of the next tab (tab to the right of the active tab)"
},
"options_release_previous_tab": {
"message": "Release discarding of the previous tab (tab to the left of the active tab)."
"message": "Release discarding of the previous tab (tab to the left of the active tab)"
},
"options_memory": {
"message": "Discard a background tab if its memory usage (totalJSHeapSize) exceeds (in MB)"
Expand Down Expand Up @@ -84,7 +84,7 @@
"message": "Do not discard a tab if it can display desktop notifications"
},
"options_idle": {
"message": "Do not discard tabs if computer is not in the 'idle' state"
"message": "Only discard tabs if the computer is in the 'idle' state"
},
"options_idle_timeout": {
"message": "Inactive interval to determine if the computer is in idle state or not (in minutes)"
Expand Down Expand Up @@ -132,10 +132,10 @@
"message": "Plug-ins"
},
"options_plugin_dummy": {
"message": "When discarding, replace the page with a local dummy alternative (beta)."
"message": "When discarding, replace the page with a local dummy alternative (beta)"
},
"options_plugin_blank": {
"message": "Open a temporary blank page when all tabs in an inactive window are discarded (to be able to discard the active tab on this window)."
"message": "Open a temporary blank page when all tabs in an inactive window are discarded (to be able to discard the active tab on this window)"
},
"options_plugin_focus": {
"message": "Release discarding of all tabs in the active window. If enabled, no tab in the active window will be discarded."
Expand All @@ -159,10 +159,10 @@
"message": "Immediately discard the following hostnames when their tab is not active"
},
"options_plugin_new": {
"message": "Discard all newly opened inactive tabs after they get loaded."
"message": "Discard all newly opened inactive tabs after they get loaded"
},
"options_plugin_youtube": {
"message": "Store YouTube's timestamp before discarding."
"message": "Store YouTube's timestamp before discarding"
},
"options_log": {
"message": "Display logs (for debugging purpose only)"
Expand Down Expand Up @@ -201,10 +201,10 @@
"message": "Please be sure to click the \"Save Options\" button at the bottom of this page once you have finished making changes."
},
"options_rate_desc": {
"message": "If you like to rate the \"Auto Tab Discard\" extension use:"
"message": "If you like to rate the extension, click"
},
"options_rate_btn": {
"message": "Rate Me"
"message": "Rate it"
},
"options_managed_1": {
"message": "This extension has the ability to use managed storage, allowing domain administrators to preconfigure preferences."
Expand Down
2 changes: 1 addition & 1 deletion v3/worker/modes/number.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ number.check = async (filterTabsFrom, ops = {}) => {
if (prefs.idle) {
const state = await new Promise(resolve => chrome.idle.queryState(prefs['idle-timeout'], resolve));
if (state !== chrome.idle.IdleState.IDLE) {
return log('discarding is skipped', 'idle state is active');
return log('discarding is skipped', 'not in the idle state');
}
}
// only check if on battery
Expand Down

0 comments on commit 3c02a54

Please sign in to comment.