fixes #101
This commit is contained in:
parent
fa8ff3c95c
commit
f9214d27fb
5 changed files with 30 additions and 5 deletions
|
@ -66,7 +66,7 @@
|
|||
<div class="admin" data-localize="managedStorage">This extension supports managed storage. All the preferences can be pre-configured by the domain administrator</div>
|
||||
<div id="backup">
|
||||
<button id="import" data-localize="importSettings">Import Settings</button>
|
||||
<button title="to generate minified version, press Shift key while pressing this button" id="export" data-localize="exportSettings">Export Settings</button>
|
||||
<button data-localized-title="exportSettingsTitle" title="To generate minified version, press Shift key while pressing this button" id="export" data-localize="exportSettings">Export Settings</button>
|
||||
</div>
|
||||
<div id="tools">
|
||||
<button id="help" data-localize="help">FAQs Page (Help)</button>
|
||||
|
|
|
@ -8,6 +8,13 @@ document.querySelectorAll('[data-localize]').forEach(e => {
|
|||
e.textContent = translated;
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('[data-localized-title]').forEach(e => {
|
||||
const ref = e.dataset.localizedTitle;
|
||||
const translated = chrome.i18n.getMessage(ref);
|
||||
if (translated) {
|
||||
e.title = translated;
|
||||
}
|
||||
});
|
||||
|
||||
function notify(msg, period = 750) {
|
||||
// Update status to let user know options were saved.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue