More localization changes
This commit is contained in:
parent
d55fba8eb3
commit
54a9a25e07
20
csv2json.js
20
csv2json.js
@ -1,7 +1,7 @@
|
|||||||
// Converts the csv translation file to json and puts in translations folder
|
// Converts the csv translation file to json and puts in translations folder
|
||||||
|
|
||||||
// Language of output file
|
// Language of output file
|
||||||
const language = "ru"
|
const language = "ru";
|
||||||
|
|
||||||
const { readFileSync, writeFileSync } = require("fs");
|
const { readFileSync, writeFileSync } = require("fs");
|
||||||
|
|
||||||
@ -10,7 +10,7 @@ let result = "";
|
|||||||
|
|
||||||
let count = 0;
|
let count = 0;
|
||||||
let size = csvFile.length;
|
let size = csvFile.length;
|
||||||
let index = 0
|
let index = 0;
|
||||||
|
|
||||||
result += "{";
|
result += "{";
|
||||||
for (let letter of csvFile) {
|
for (let letter of csvFile) {
|
||||||
@ -18,18 +18,20 @@ for (let letter of csvFile) {
|
|||||||
count++;
|
count++;
|
||||||
if (count < 4) {
|
if (count < 4) {
|
||||||
result += letter;
|
result += letter;
|
||||||
index ++;
|
index++;
|
||||||
} else {
|
} else {
|
||||||
index ++;
|
index++;
|
||||||
if (index == size-1){
|
if (index == size - 1) {
|
||||||
result += `${letter}`;
|
result += `${letter}`;
|
||||||
}
|
} else {
|
||||||
else{
|
|
||||||
result += `${letter},`;
|
result += `${letter},`;
|
||||||
}
|
}
|
||||||
|
|
||||||
count = 0;
|
count = 0;
|
||||||
}
|
}
|
||||||
|
} else if (letter == "," && count == 2) {
|
||||||
|
index++
|
||||||
|
result += ":"
|
||||||
} else {
|
} else {
|
||||||
result += letter;
|
result += letter;
|
||||||
index++;
|
index++;
|
||||||
@ -37,6 +39,6 @@ for (let letter of csvFile) {
|
|||||||
}
|
}
|
||||||
result += "}";
|
result += "}";
|
||||||
|
|
||||||
writeFileSync(`translations/${language}.json`, result)
|
writeFileSync(`translations/${language}.json`, result);
|
||||||
|
|
||||||
console.log(`Converted and saved to translations/${language}.json`)
|
console.log(`Converted and saved to translations/${language}.json`);
|
||||||
|
@ -54,7 +54,7 @@
|
|||||||
<button id="pasteUrl" class="submitBtn">Click to paste video URL or ID [Ctrl + V]</button>
|
<button id="pasteUrl" class="submitBtn">Click to paste video URL or ID [Ctrl + V]</button>
|
||||||
|
|
||||||
<div id="loadingWrapper">
|
<div id="loadingWrapper">
|
||||||
<span>Processing </span>
|
<span id="processing">Processing </span>
|
||||||
<svg version="1.1" id="L4" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
|
<svg version="1.1" id="L4" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
|
||||||
y="0px" viewBox="0 0 100 100" enable-background="new 0 0 0 0" xml:space="preserve">
|
y="0px" viewBox="0 0 100 100" enable-background="new 0 0 0 0" xml:space="preserve">
|
||||||
<circle fill="rgb(84, 171, 222)" stroke="none" cx="6" cy="50" r="6">
|
<circle fill="rgb(84, 171, 222)" stroke="none" cx="6" cy="50" r="6">
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
<label>Select Language</label>
|
<label id="selectLn">Select Language</label>
|
||||||
<select id="select" onchange="changeLanguage()">
|
<select id="select" onchange="changeLanguage()">
|
||||||
<option value="en">English</option>
|
<option value="en">English</option>
|
||||||
<option value="ru">Русский</option>
|
<option value="ru">Русский</option>
|
||||||
|
24
input.csv
24
input.csv
@ -1,24 +0,0 @@
|
|||||||
"Click to paste video URL or ID [Ctrl + V]":"Нажмите, чтобы вставить URL-адрес или идентификатор видео [Ctrl + V]"
|
|
||||||
"Preferences":"Настройки"
|
|
||||||
"About":"О программе"
|
|
||||||
"Download location":"Папка загрузки"
|
|
||||||
"Current download location - ":"Текущее место загрузки - "
|
|
||||||
"Enable transparent dark mode(only Linux, needs restart)":"Включить прозрачный темный режим (только для Linux, требуется перезагрузка)"
|
|
||||||
"Please wait, yt-dlp is being downloaded":"Пожалуйста, подождите, yt-dlp загружается"
|
|
||||||
"Video":"Видео"
|
|
||||||
"Audio":"Аудио"
|
|
||||||
"Title ":"Название "
|
|
||||||
"Select Format ":"Выберите формат "
|
|
||||||
"Download":"Скачать"
|
|
||||||
"Select Download Location":"Выберите место загрузки"
|
|
||||||
"More options":"Дополнительные опции"
|
|
||||||
"Start":"Начало"
|
|
||||||
"Download particular time-range":"Скачать определенную часть"
|
|
||||||
"End":"Конец"
|
|
||||||
"If kept empty, it will start from the beginning":"Если оставить пустым, оно начнется с начала"
|
|
||||||
"If kept empty, it will be downloaded to the end":"Если оставить пустым, оно будет загружено до конца"
|
|
||||||
"Homepage":"Главная страница"
|
|
||||||
"ytDownloader lets you download videos (and sometimes audios) from hundreds of sites like Youtube, Facebook, Instagram, Tiktok, Twitter and so on":"ytDownloader позволяет вам загружать видео (и иногда аудио) с сотен таких сайтов, как Youtube, Facebook, Instagram, Tiktok, Twitter и т.д"
|
|
||||||
"It's a Free and Open Source app built on top of Node.js and Electron. yt-dlp has been used for downloading":"Это бесплатное приложение с открытым исходным кодом, созданное поверх Node.js и Electron. yt-dlp используется для загрузки"
|
|
||||||
"Source Code is available":"Исходный код доступен"
|
|
||||||
"here":"здесь"
|
|
Can't render this file because it contains an unexpected character in line 1 and column 43.
|
@ -5,5 +5,7 @@ let inputFile = JSON.parse(fs.readFileSync('translations/translate.json', 'utf8'
|
|||||||
|
|
||||||
fs.writeFileSync("translate.csv", "")
|
fs.writeFileSync("translate.csv", "")
|
||||||
for (const [key, value] of Object.entries(inputFile)){
|
for (const [key, value] of Object.entries(inputFile)){
|
||||||
fs.appendFileSync("translate.csv", key + "\n")
|
fs.appendFileSync("translate.csv", `"${key}"` + "\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log("Saved to translate.csv");
|
@ -19,3 +19,4 @@ getId("advancedToggle").textContent = i18n.__("More options")
|
|||||||
getId("rangeText").textContent= i18n.__("Download particular time-range")
|
getId("rangeText").textContent= i18n.__("Download particular time-range")
|
||||||
getId("startTime").title = i18n.__("If kept empty, it will start from the beginning")
|
getId("startTime").title = i18n.__("If kept empty, it will start from the beginning")
|
||||||
getId("endTime").title = i18n.__("If kept empty, it will be downloaded to the end")
|
getId("endTime").title = i18n.__("If kept empty, it will be downloaded to the end")
|
||||||
|
getId("processing").textContent = i18n.__("Processing ")
|
@ -14,3 +14,4 @@ getId("clText").innerHTML = i18n.__("Current download location - ")
|
|||||||
getId("selectLocation").textContent = i18n.__("Select Download Location")
|
getId("selectLocation").textContent = i18n.__("Select Download Location")
|
||||||
getId("transparentText").textContent = i18n.__("Enable transparent dark mode(only Linux, needs restart)")
|
getId("transparentText").textContent = i18n.__("Enable transparent dark mode(only Linux, needs restart)")
|
||||||
getId("preferences").textContent = i18n.__("Preferences")
|
getId("preferences").textContent = i18n.__("Preferences")
|
||||||
|
getId("selectLn").textContent = i18n.__("Select Language")
|
@ -1,25 +1,26 @@
|
|||||||
Click to paste video URL or ID [Ctrl + V]
|
"Click to paste video URL or ID [Ctrl + V]"
|
||||||
Preferences
|
"Preferences"
|
||||||
About
|
"About"
|
||||||
Download location
|
"Download location"
|
||||||
Current download location -
|
"Current download location - "
|
||||||
Enable transparent dark mode(only Linux, needs restart)
|
"Enable transparent dark mode(only Linux, needs restart)"
|
||||||
Please wait, yt-dlp is being downloaded
|
"Please wait, yt-dlp is being downloaded"
|
||||||
Video
|
"Video"
|
||||||
Audio
|
"Audio"
|
||||||
Title
|
"Title "
|
||||||
Select Format
|
"Select Format "
|
||||||
Download
|
"Download"
|
||||||
Select Download Location
|
"Select Download Location"
|
||||||
More options
|
"More options"
|
||||||
Start
|
"Start"
|
||||||
Select Language
|
"Select Language"
|
||||||
Download particular time-range
|
"Download particular time-range"
|
||||||
End
|
"End"
|
||||||
If kept empty, it will start from the beginning
|
"If kept empty, it will start from the beginning"
|
||||||
If kept empty, it will be downloaded to the end
|
"If kept empty, it will be downloaded to the end"
|
||||||
Homepage
|
"Homepage"
|
||||||
ytDownloader lets you download videos (and sometimes audios) from hundreds of sites like Youtube, Facebook, Instagram, Tiktok, Twitter and so on
|
"ytDownloader lets you download videos (and sometimes audios) from hundreds of sites like Youtube, Facebook, Instagram, Tiktok, Twitter and so on"
|
||||||
It's a Free and Open Source app built on top of Node.js and Electron. yt-dlp has been used for downloading
|
"It's a Free and Open Source app built on top of Node.js and Electron. yt-dlp has been used for downloading"
|
||||||
Source Code is available
|
"Source Code is available "
|
||||||
here
|
"here"
|
||||||
|
"Processing"
|
||||||
|
|
@ -13,13 +13,15 @@
|
|||||||
"Select Download Location":"Выберите место загрузки",
|
"Select Download Location":"Выберите место загрузки",
|
||||||
"More options":"Дополнительные опции",
|
"More options":"Дополнительные опции",
|
||||||
"Start":"Начало",
|
"Start":"Начало",
|
||||||
|
"Select Language":"Выберите язык",
|
||||||
"Download particular time-range":"Скачать определенную часть",
|
"Download particular time-range":"Скачать определенную часть",
|
||||||
"End":"Конец",
|
"End":"Конец",
|
||||||
"If kept empty, it will start from the beginning":"Если оставить пустым, оно начнется с начала",
|
"If kept empty, it will start from the beginning":"Если оставить пустым, оно начнется с начала",
|
||||||
"If kept empty, it will be downloaded to the end":"Если оставить пустым, оно будет загружено до конца",
|
"If kept empty, it will be downloaded to the end":"Если оставить пустым, оно будет скачено до конца",
|
||||||
"Homepage":"Главная страница",
|
"Homepage":"Главная страница",
|
||||||
"ytDownloader lets you download videos (and sometimes audios) from hundreds of sites like Youtube, Facebook, Instagram, Tiktok, Twitter and so on":"ytDownloader позволяет вам загружать видео (и иногда аудио) с сотен таких сайтов, как Youtube, Facebook, Instagram, Tiktok, Twitter и т.д",
|
"ytDownloader lets you download videos (and sometimes audios) from hundreds of sites like Youtube, Facebook, Instagram, Tiktok, Twitter and so on":"ytDownloader позволяет скачать видео (а иногда и аудио) с сотен сайтов, таких как Youtube, Facebook, Instagram, Tiktok, Twitter и так далее",
|
||||||
"It's a Free and Open Source app built on top of Node.js and Electron. yt-dlp has been used for downloading":"Это бесплатное приложение с открытым исходным кодом, созданное поверх Node.js и Electron. yt-dlp используется для загрузки",
|
"It's a Free and Open Source app built on top of Node.js and Electron. yt-dlp has been used for downloading":"Это бесплатное приложение с открытым исходным кодом, созданное поверх Node.js и Electron. yt-dlp используется для загрузки",
|
||||||
"Source Code is available":"Исходный код доступен",
|
"Source Code is available ":"Исходный код доступен ",
|
||||||
"here":"здесь"
|
"here":"здесь",
|
||||||
|
"Processing":"Обрабатывается"
|
||||||
}
|
}
|
@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
"It's a Free and Open Source app built on top of Node.js and Electron. yt-dlp has been used for downloading":"",
|
"It's a Free and Open Source app built on top of Node.js and Electron. yt-dlp has been used for downloading":"",
|
||||||
|
|
||||||
"Source Code is available":"",
|
"Source Code is available ":"",
|
||||||
"here":""
|
"here":"",
|
||||||
|
"Processing":""
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user