Translation changes

pull/21/head
aandrew-me 3 years ago
parent 3e12b526d4
commit bd0fcbd21e

@ -1,6 +1,5 @@
# YtDownloader
A modern GUI video downloader supporting [hundreds of sites](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)
A modern GUI video and audio downloader supporting [hundreds of sites](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)
<a href="https://flathub.org/apps/details/me.aandrew.ytdownloader"><img src="https://flathub.org/assets/badges/flathub-badge-en.svg" style="width:180px;"></a>
[![Get it from the Snap Store](https://snapcraft.io/static/images/badges/en/snap-store-black.svg)](https://snapcraft.io/ytdownloader)
@ -9,9 +8,7 @@ A modern GUI video downloader supporting [hundreds of sites](https://github.com/
<a href="https://github.com/aandrew-me/ytDownloader/releases/latest/download/YTDownloader.exe
"><img src="https://user-images.githubusercontent.com/66430340/187172806-a8edd12a-ef58-4a05-96a3-99d7490b42f6.png" style="width:190px;"></a>
## Features
## Features 🚀
✅ Light/Dark mode
@ -33,9 +30,7 @@ A modern GUI video downloader supporting [hundreds of sites](https://github.com/
<!--![ss](https://user-images.githubusercontent.com/66430340/181747909-f16e30dc-a7c3-40cb-876b-54f0ea8d4e42.jpg)-->
<!--![ss2](https://user-images.githubusercontent.com/66430340/181747920-4df80914-278f-4350-9328-015e9e0bcf16.jpg) -->
# Installation
## Windows
Download and install the exe file
@ -56,6 +51,16 @@ For Debian based distros like Ubuntu .deb file is available. Download and run -
```
sudo dpkg -i file_name.deb
```
## Internationalization 🌍
Translations into other languages would be highly appreciated. If you want to help translating the app to other languages, you can join from [here](https://crwd.in/ytdownloader).
### Available languages
|Name|Status |
|--|--|
|English | ✔️ |
|Russian | ✔️ |
| Ukrainian | ✔️ [KotoWhiskas](https://github.com/KotoWhiskas) |
## For building or running from source code

@ -32,30 +32,28 @@ input[type="text"]{
#save:active{
background-color: rgb(41, 155, 41);
}
#back{
#top{
position:absolute;
top:10px;
right:10px;
display:flex;
}
#back, #restart{
text-decoration: none;
padding:8px;
border-radius: 10px;
background-color: rgb(51, 177, 219);
color:white;
position: absolute;
top:15px;
right:15px;
margin:3px;
font-size: large;
cursor: pointer;
}
#back{
background-color: rgb(51, 177, 219);
color:white;
}
#restart{
text-decoration: none;
padding:8px;
border-radius: 10px;
background-color: rgb(210 69 27);
color:white;
position: absolute;
top:15px;
right:210px;
font-size: large;
cursor: pointer;
}
a{
color:rgb(34, 136, 199);

@ -231,10 +231,10 @@ input[type="checkbox"]{
.submitBtn {
padding: 15px;
border-radius: 10px;
background-color: rgb(41 203 41);
background-color: rgb(53, 214, 53);
color: white;
border: none;
border-bottom: 4px solid rgb(31 139 31);
border-bottom: 4px solid rgb(35, 154, 35);
font-size: large;
cursor: pointer;
display: inline-block;

@ -12,9 +12,10 @@
</head>
<body>
<a id="back">Homepage</a>
<a id="restart" onclick="restartApp()">Restart app</a>
<div id="top">
<a id="back">Homepage</a>
<a id="restart" onclick="restartApp()">Restart app</a>
</div>
<h1 id="preferences">Preferences</h1>
<br><br>

@ -499,10 +499,11 @@ function download(type) {
}
}
let itemList = [];
if (localStorage.getItem("itemList")) {
itemList = JSON.parse(localStorage.getItem("itemList"));
}
localStorage.setItem("itemList", "")
// let itemList = [];
// if (localStorage.getItem("itemList")) {
// itemList = JSON.parse(localStorage.getItem("itemList"));
// }
const itemInfo = {
id: randomId,
format_id: format_id,
@ -512,8 +513,8 @@ function download(type) {
type: type,
thumbnail: thumbnail,
};
itemList.push(itemInfo);
localStorage.setItem("itemList", JSON.stringify(itemList));
// itemList.push(itemInfo);
// localStorage.setItem("itemList", JSON.stringify(itemList));
const newItem = `
<div class="item" id="${randomId}">
@ -654,15 +655,15 @@ function download(type) {
}`;
}
const items = JSON.parse(localStorage.getItem("itemList"));
// Clearing item from localstorage
for (let item of items) {
if (item.id == randomId) {
item.progress = progress.percent;
break;
}
}
localStorage.setItem("itemList", JSON.stringify(items));
// const items = JSON.parse(localStorage.getItem("itemList"));
// // Clearing item from localstorage
// for (let item of items) {
// if (item.id == randomId) {
// item.progress = progress.percent;
// break;
// }
// }
// localStorage.setItem("itemList", JSON.stringify(items));
})
.once("ytDlpEvent", (eventType, eventData) => {
getId(randomId + "prog").textContent = i18n.__("Downloading...");

@ -48,5 +48,5 @@
"Downloading necessary files":"Downloading necessary files",
"low":"low",
"medium":"medium",
"ytDownloader lets you download videos and audios from hundreds of sites like Youtube, Facebook, Instagram, Tiktok, Twitter and so on":"ytDownloader lets you download videos and sometimes from hundreds of sites like Youtube, Facebook, Instagram, Tiktok, Twitter and so on"
"ytDownloader lets you download videos and audios from hundreds of sites like Youtube, Facebook, Instagram, Tiktok, Twitter and so on":"ytDownloader lets you download videos and audios from hundreds of sites like Youtube, Facebook, Instagram, Tiktok, Twitter and so on"
}

@ -15,6 +15,9 @@ if (localStorage.getItem("language")){
locale = localStorage.getItem("language")
userSelectedLanguage = true;
}
else{
localStorage.setItem("language", locale.slice(0, 2))
}
module.exports = i18n;

Loading…
Cancel
Save