Adding weblate. Changing small things

This commit is contained in:
ManeraKai 2022-06-05 20:10:42 +03:00
parent f5f3571937
commit 556f537f70
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
4 changed files with 184 additions and 11 deletions

View File

@ -37,22 +37,25 @@ Send Files => [Send](https://github.com/timvisee/send)
**Note**: The Extension will be using random instances by default. You can modify this and add custom instances too.
[FAQ](https://libredirect.github.io/faq.html)
## Donate
[![Liberapay](./img/liberapay.svg)](https://liberapay.com/LibRedirect) 
[![Patreon](./img/patreon.svg)](https://patreon.com/LibRedirect) 
[![Buy me a coffee](./img/bmc.svg)](https://www.buymeacoffee.com/libredirect)
BTC: [bc1qrhue0frps6p2vkg978u9ayethnwprtmfug827q](bitcoin:bc1qrhue0frps6p2vkg978u9ayethnwprtmfug827q)\
BCH: [qqz5vfnrngk0tjy73q2688qzw4wnllnuzqfndflhl8](bitcoincash:qqz5vfnrngk0tjy73q2688qzw4wnllnuzqfndflhl8)\
ETH: [0x896E5796Da76E49A400A9186E1c459CD2C64b4E8](ethereum:0x896E5796Da76E49A400A9186E1c459CD2C64b4E8)\
XMR: [4AM5CVfaGsnEXQQjZSzJvaWufe7pT86ubcZPr83fCjb2Hn3iwcForTWFy2Z3ugXcufUwHaGcucfPMFgPXBFSYGFvNrmV5XR](monero:4AM5CVfaGsnEXQQjZSzJvaWufe7pT86ubcZPr83fCjb2Hn3iwcForTWFy2Z3ugXcufUwHaGcucfPMFgPXBFSYGFvNrmV5XR)
[FAQ](https://libredirect.github.io/faq.html)
BTC: bc1qrhue0frps6p2vkg978u9ayethnwprtmfug827q\
BCH: qqz5vfnrngk0tjy73q2688qzw4wnllnuzqfndflhl8\
ETH: 0x896E5796Da76E49A400A9186E1c459CD2C64b4E8\
XMR: 4AM5CVfaGsnEXQQjZSzJvaWufe7pT86ubcZPr83fCjb2Hn3iwcForTWFy2Z3ugXcufUwHaGcucfPMFgPXBFSYGFvNrmV5XR
## Mirror Repos
[![GitHub](https://raw.githubusercontent.com/ManeraKai/manerakai/main/icons/github.svg)](https://github.com/libredirect/libredirect/)  
[![Codeberg](https://raw.githubusercontent.com/ManeraKai/manerakai/main/icons/codeberg.svg)](https://codeberg.org/LibRedirect/libredirect)  
## Translate
[![Weblate](./img/weblate.svg)](https://hosted.weblate.org/projects/libredirect/extension)
## Development
### Install Dependencies
[Node.js](https://nodejs.org/) latest LTS is recommended

163
img/weblate.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 27 KiB

View File

@ -24,8 +24,10 @@ window.browser = window.browser || window.chrome;
function openResetWarning() {
return new Promise(resolve => {
browser.storage.local.get(null, r => {
if (r.theme) {
const old = encodeURIComponent(JSON.stringify(r))
browser.tabs.create({ url: browser.runtime.getURL(`/pages/background/reset_warning.html?data=${old}`) });
}
resolve();
})
})

View File

@ -93,10 +93,15 @@ importSettingsElement.addEventListener("change",
});
} else
} else {
console.log('incompatible settings');
importError()
}
reader.onerror = error => importError();
}
reader.onerror = error => {
console.log('error', error);
importError()
};
}
);
function importError() {