This commit is contained in:
Mirco Wittrien 2021-05-30 17:21:18 +02:00
parent 377e2d982e
commit 9e95de179d
3 changed files with 221 additions and 91 deletions

View File

@ -8265,60 +8265,19 @@ module.exports = (_ => {
};
BDFDB.DevUtils.generateLanguageStrings = function (strings, config = {}) {
const language = config.language || "en";
const languages = BDFDB.ArrayUtils.removeCopies(BDFDB.ArrayUtils.is(config.languages) ? config.languages : ["en"].concat(Object.keys(BDFDB.ObjectUtils.filter(BDFDB.LanguageUtils.languages, n => n.discord))).filter(n => !n.startsWith("en-") && !n.startsWith("$") && n != language)).sort();
const languages = BDFDB.ArrayUtils.removeCopies(BDFDB.ArrayUtils.is(config.languages) ? config.languages : ["en"].concat(BDFDB.LibraryModules.LanguageStore.languages.filter(n => n.enabled).map(n => {
if (BDFDB.LanguageUtils.languages[n.code]) return n.code;
else {
const code = n.code.split("-")[0];
if (BDFDB.LanguageUtils.languages[code]) return code;
}
})).filter(n => n && !n.startsWith("en-") && !n.startsWith("$") && n != language)).sort();
let translations = {};
strings = BDFDB.ObjectUtils.sort(strings);
const stringKeys = Object.keys(strings);
translations[language] = BDFDB.ObjectUtils.toArray(strings);
let text = Object.keys(translations[language]).map(k => translations[language][k]).join("\n\n");
let gt = (lang, callback) => {
let googleTranslateWindow = BDFDB.WindowUtils.open(BDFDB, `https://translate.google.com/#${language}/${{"zh": "zh-CN", "pt-BR": "pt"}[lang] || lang}/${encodeURIComponent(text)}`, {
onLoad: _ => {
googleTranslateWindow.executeJavaScriptSafe(`
let count = 0, interval = setInterval(_ => {
count++;
let translation = Array.from(document.querySelectorAll("[data-language-to-translate-into] span:not([class])")).map(n => n.innerText).join("");
if (translation || count > 50) {
clearInterval(interval);
require("electron").ipcRenderer.sendTo(${LibraryRequires.electron.remote.getCurrentWindow().webContents.id}, "BDFDB-translation", [
translation,
(document.querySelector("h2 ~ [lang]") || {}).lang
]);
}
}, 100);
`);
}
});
BDFDB.WindowUtils.addListener(BDFDB, "BDFDB-translation", (event, messageData) => {
BDFDB.WindowUtils.close(googleTranslateWindow);
BDFDB.WindowUtils.removeListener(BDFDB, "BDFDB-translation");
callback(messageData[0]);
});
};
let gt2 = (lang, callback) => {
BDFDB.LibraryRequires.request(`https://translate.googleapis.com/translate_a/single?client=gtx&sl=${language}&tl=${lang}&dt=t&dj=1&source=input&q=${encodeURIComponent(text)}`, (error, response, result) => {
if (!error && result && response.statusCode == 200) {
try {callback(JSON.parse(result).sentences.map(n => n && n.trans).filter(n => n).join(""));}
catch (err) {callback("");}
}
else {
if (response.statusCode == 429) {
BDFDB.NotificationUtils.toast("Too many requests, switching to backup", {
type: "danger"
});
config.useBackup = true;
BDFDB.DevUtils.generateLanguageStrings(strings, config);
}
else {
BDFDB.NotificationUtils.toast("Failed to translate text", {
type: "danger"
});
callback("");
}
}
});
};
let fails = 0, next = lang => {
if (!lang) {
let formatTranslation = (l, s, i) => {
@ -8337,20 +8296,41 @@ module.exports = (_ => {
});
BDFDB.LibraryRequires.electron.clipboard.write({text: result});
}
else (config.useBackup ? gt : gt2)(lang, translation => {
BDFDB.LogUtils.log(lang);
if (!translation) {
console.warn("no translation");
fails++;
if (fails > 10) console.error("skipped language");
else languages.unshift(lang);
}
else {
fails = 0;
translations[lang] = translation.split("\n\n");
}
next(languages.shift());
});
else {
const callback = translation => {
BDFDB.LogUtils.log(lang);
if (!translation) {
console.warn("No Translation");
fails++;
if (fails > 10) console.error("Skipped Language");
else languages.unshift(lang);
}
else {
fails = 0;
translations[lang] = translation.split("\n\n");
}
next(languages.shift());
};
BDFDB.LibraryRequires.request(`https://translate.googleapis.com/translate_a/single?client=gtx&sl=${language}&tl=${lang}&dt=t&dj=1&source=input&q=${encodeURIComponent(text)}`, (error, response, result) => {
if (!error && result && response.statusCode == 200) {
try {callback(JSON.parse(result).sentences.map(n => n && n.trans).filter(n => n).join(""));}
catch (err) {callback("");}
}
else {
if (response.statusCode == 429) {
BDFDB.NotificationUtils.toast("Too many Requests", {
type: "danger"
});
}
else {
BDFDB.NotificationUtils.toast("Failed to translate Text", {
type: "danger"
});
callback("");
}
}
});
}
};
next(languages.shift());
};

View File

@ -3137,7 +3137,7 @@
},
"userBackgroundsUrl": "https://discord-custom-covers.github.io/usrbg/dist/usrbg.json",
"Languages": {
"$discord": {"name":"Discord (English))", "id":"en", "ownlang":"English"},
"$discord": {"name":"Discord (English)", "id":"en", "ownlang":"English"},
"af": {"name":"Afrikaans", "id":"af", "ownlang":"Afrikaans"},
"sq": {"name":"Albanian", "id":"sq", "ownlang":"Shqiptar"},
"am": {"name":"Amharic", "id":"am", "ownlang":"አማርኛ"},
@ -3149,37 +3149,37 @@
"be": {"name":"Belarusian", "id":"be", "ownlang":"Беларуская"},
"bn": {"name":"Bengali", "id":"bn", "ownlang":"বাংলা"},
"bs": {"name":"Bosnian", "id":"bs", "ownlang":"Босански"},
"bg": {"name":"Bulgarian", "id":"bg", "ownlang":"български", "discord":true},
"bg": {"name":"Bulgarian", "id":"bg", "ownlang":"български"},
"my": {"name":"Burmese", "id":"my", "ownlang":"မြန်မာစာ"},
"ca": {"name":"Catalan", "id":"ca", "ownlang":"Català"},
"ceb": {"name":"Cebuano", "id":"ceb", "ownlang":"Bisaya"},
"ny": {"name":"Chichewa", "id":"ny", "ownlang":"Nyanja"},
"zh": {"name":"Chinese", "id":"zh", "ownlang":"中文"},
"zh-CN": {"name":"Chinese (China)", "id":"zh-CN", "ownlang":"中文", "discord":true},
"zh-CN": {"name":"Chinese (China)", "id":"zh-CN", "ownlang":"中文"},
"zh-HK": {"name":"Chinese (Hong Kong)", "id":"zh-HK", "ownlang":"香港中文"},
"zh-TW": {"name":"Chinese (Taiwan)", "id":"zh-TW", "ownlang":"繁體中文", "discord":true},
"zh-TW": {"name":"Chinese (Taiwan)", "id":"zh-TW", "ownlang":"繁體中文"},
"co": {"name":"Corsican", "id":"co", "ownlang":"Corsu"},
"hr": {"name":"Croatian", "id":"hr", "ownlang":"Hrvatski", "discord":true},
"hr": {"name":"Croatian", "id":"hr", "ownlang":"Hrvatski"},
"cs": {"name":"Czech", "id":"cs", "ownlang":"Čeština"},
"da": {"name":"Danish", "id":"da", "ownlang":"Dansk", "discord":true},
"nl": {"name":"Dutch", "id":"nl", "ownlang":"Nederlands", "discord":true},
"da": {"name":"Danish", "id":"da", "ownlang":"Dansk"},
"nl": {"name":"Dutch", "id":"nl", "ownlang":"Nederlands"},
"en": {"name":"English", "id":"en", "ownlang":"English"},
"en-GB": {"name":"English (UK)", "id":"en-GB", "ownlang":"English (UK)", "discord":true},
"en-US": {"name":"English (US)", "id":"en-US", "ownlang":"English (US)", "discord":true},
"en-GB": {"name":"English (UK)", "id":"en-GB", "ownlang":"English (UK)"},
"en-US": {"name":"English (US)", "id":"en-US", "ownlang":"English (US)"},
"eo": {"name":"Esperanto", "id":"eo", "ownlang":"Esperanto"},
"et": {"name":"Estonian", "id":"et", "ownlang":"Eesti"},
"fil": {"name":"Filipino", "id":"fil", "ownlang":"Wikang Filipino"},
"tl": {"name":"Filipino (Tagalog)", "id":"tl", "ownlang":"Wikang Tagalog"},
"fi": {"name":"Finnish", "id":"fi", "ownlang":"Suomi", "discord":true},
"fr": {"name":"French", "id":"fr", "ownlang":"Français", "discord":true},
"fi": {"name":"Finnish", "id":"fi", "ownlang":"Suomi"},
"fr": {"name":"French", "id":"fr", "ownlang":"Français"},
"fr-CA": {"name":"French (Canadian)", "id":"fr-CA", "ownlang":"Français Canadien"},
"fy": {"name":"Frisian", "id":"fy", "ownlang":"Frysk"},
"gl": {"name":"Galician", "id":"gl", "ownlang":"Galego"},
"ka": {"name":"Georgian", "id":"ka", "ownlang":"ქართული"},
"de": {"name":"German", "id":"de", "ownlang":"Deutsch", "discord":true},
"de": {"name":"German", "id":"de", "ownlang":"Deutsch"},
"de-AT": {"name":"German (Austria)", "id":"de-AT", "ownlang":"Österreichisch Deutsch"},
"de-CH": {"name":"German (Switzerland)", "id":"de-CH", "ownlang":"Schweizerdeutsch"},
"el": {"name":"Greek", "id":"el", "ownlang":"Ελληνικά", "discord":true},
"el": {"name":"Greek", "id":"el", "ownlang":"Ελληνικά"},
"gu": {"name":"Gujarati", "id":"gu", "ownlang":"ગુજરાતી"},
"ht": {"name":"Haitian Creole", "id":"ht", "ownlang":"Kreyòl Ayisyen"},
"ha": {"name":"Hausa", "id":"ha", "ownlang":"حَوْسَ"},
@ -3188,26 +3188,26 @@
"iw": {"name":"Hebrew (Israel)", "id":"iw", "ownlang":"עברית"},
"hi": {"name":"Hindi", "id":"hi", "ownlang":"हिन्दी"},
"hmn": {"name":"Hmong", "id":"hmn", "ownlang":"lol Hmongb"},
"hu": {"name":"Hungarian", "id":"hu", "ownlang":"Magyar", "discord":true},
"hu": {"name":"Hungarian", "id":"hu", "ownlang":"Magyar"},
"is": {"name":"Icelandic", "id":"is", "ownlang":"Íslenska"},
"ig": {"name":"Igbo", "id":"ig", "ownlang":"Asụsụ Igbo"},
"id": {"name":"Indonesian", "id":"id", "ownlang":"Bahasa Indonesia"},
"ga": {"name":"Irish", "id":"ga", "ownlang":"Gaeilge"},
"it": {"name":"Italian", "id":"it", "ownlang":"Italiano", "discord":true},
"ja": {"name":"Japanese", "id":"ja", "ownlang":"日本語", "discord":true},
"it": {"name":"Italian", "id":"it", "ownlang":"Italiano"},
"ja": {"name":"Japanese", "id":"ja", "ownlang":"日本語"},
"jv": {"name":"Javanese", "id":"jv", "ownlang":"ꦧꦱꦗꦮ"},
"jw": {"name":"Javanese (Javanese)", "id":"jw", "ownlang":"ꦧꦱꦗꦮ"},
"kn": {"name":"Kannada", "id":"kn", "ownlang":"ಕನ್ನಡ"},
"kk": {"name":"Kazakh", "id":"kk", "ownlang":"Қазақ Tілі"},
"km": {"name":"Khmer", "id":"km", "ownlang":"ភាសាខ្មែរ"},
"rw": {"name":"Kinyarwanda", "id":"rw", "ownlang":"Ikinyarwanda"},
"ko": {"name":"Korean", "id":"ko", "ownlang":"한국어", "discord":true},
"ko": {"name":"Korean", "id":"ko", "ownlang":"한국어"},
"ku": {"name":"Kurdish", "id":"ku", "ownlang":"کوردی"},
"ky": {"name":"Kyrgyz", "id":"ky", "ownlang":"кыргызча"},
"lo": {"name":"Lao", "id":"lo", "ownlang":"ພາສາລາວ"},
"la": {"name":"Latin", "id":"la", "ownlang":"Latina"},
"lv": {"name":"Latvian", "id":"lv", "ownlang":"Latviešu"},
"lt": {"name":"Lithuanian", "id":"lt", "ownlang":"Lietuvių", "discord":true},
"lt": {"name":"Lithuanian", "id":"lt", "ownlang":"Lietuvių"},
"lb": {"name":"Luxembourgish", "id":"lb", "ownlang":"Lëtzebuergesch"},
"mk": {"name":"Macedonian", "id":"mk", "ownlang":"Mакедонски"},
"mg": {"name":"Malagasy", "id":"mg", "ownlang":"Malagasy"},
@ -3220,18 +3220,18 @@
"mn": {"name":"Mongolian", "id":"mn", "ownlang":"Монгол Хэл"},
"my": {"name":"Myanmar (Burmese)", "id":"my", "ownlang":"မြန်မာл Хэл"},
"ne": {"name":"Nepali", "id":"ne", "ownlang":"नेपाली"},
"no": {"name":"Norwegian", "id":"no", "ownlang":"Norsk", "discord":true},
"no": {"name":"Norwegian", "id":"no", "ownlang":"Norsk"},
"or": {"name":"Odia", "id":"or", "ownlang":"ଓଡ଼ିଆ"},
"pap": {"name":"Papiamento", "id":"pap", "ownlang":"Papiamentu"},
"ps": {"name":"Pashto", "id":"ps", "ownlang":"پښتو"},
"fa": {"name":"Persian", "id":"fa", "ownlang":"فارسی"},
"pl": {"name":"Polish", "id":"pl", "ownlang":"Polski", "discord":true},
"pl": {"name":"Polish", "id":"pl", "ownlang":"Polski"},
"pt": {"name":"Portuguese", "id":"pt", "ownlang":"Português"},
"pt-BR": {"name":"Portuguese (Brazil)", "id":"pt-BR", "ownlang":"Português do Brasil", "discord":true},
"pt-BR": {"name":"Portuguese (Brazil)", "id":"pt-BR", "ownlang":"Português do Brasil"},
"pt-PT": {"name":"Portuguese (Portugal)", "id":"pt-PT", "ownlang":"Português do Portugal"},
"pa": {"name":"Punjabi", "id":"pa", "ownlang":"पंजाबी"},
"ro": {"name":"Romanian", "id":"ro", "ownlang":"Română", "discord":true},
"ru": {"name":"Russian", "id":"ru", "ownlang":"Pусский", "discord":true},
"ro": {"name":"Romanian", "id":"ro", "ownlang":"Română"},
"ru": {"name":"Russian", "id":"ru", "ownlang":"Pусский"},
"sm": {"name":"Samoan", "id":"sm", "ownlang":"Gagana Sāmoa"},
"gd": {"name":"Scottish Gaelic", "id":"gd", "ownlang":"Gàidhlig"},
"sr": {"name":"Serbian", "id":"sr", "ownlang":"Српски"},
@ -3242,24 +3242,24 @@
"sk": {"name":"Slovak", "id":"sk", "ownlang":"Slovenčina"},
"sl": {"name":"Slovenian", "id":"sl", "ownlang":"Slovenščina"},
"so": {"name":"Somali", "id":"so", "ownlang":"Soomaali"},
"es": {"name":"Spanish", "id":"es", "ownlang":"Español", "discord":true},
"es": {"name":"Spanish", "id":"es", "ownlang":"Español"},
"es-419": {"name":"Spanish (Latin America)", "id":"es-419", "ownlang":"Español latinoamericano"},
"su": {"name":"Sundanese", "id":"su", "ownlang":"Basa Sunda"},
"sw": {"name":"Swahili", "id":"sw", "ownlang":"Kiswahili"},
"sv": {"name":"Swedish", "id":"sv", "ownlang":"Svenska", "discord":true},
"sv": {"name":"Swedish", "id":"sv", "ownlang":"Svenska"},
"tg": {"name":"Tajik", "id":"tg", "ownlang":"тоҷикӣ"},
"ta": {"name":"Tamil", "id":"ta", "ownlang":"தமிழ்"},
"tt": {"name":"Tatar", "id":"tt", "ownlang":"татарча"},
"te": {"name":"Telugu", "id":"te", "ownlang":"తెలుగు"},
"th": {"name":"Thai", "id":"th", "ownlang":"ภาษาไทย", "discord":true},
"tr": {"name":"Turkish", "id":"tr", "ownlang":"Türkçe", "discord":true},
"th": {"name":"Thai", "id":"th", "ownlang":"ภาษาไทย"},
"tr": {"name":"Turkish", "id":"tr", "ownlang":"Türkçe"},
"tk": {"name":"Turkmen", "id":"tk", "ownlang":"Türkmençe"},
"udm": {"name":"Udmurt", "id":"udm", "ownlang":"удмурт кыл"},
"uk": {"name":"Ukrainian", "id":"uk", "ownlang":"Yкраїнський", "discord":true},
"uk": {"name":"Ukrainian", "id":"uk", "ownlang":"Yкраїнський"},
"ur": {"name":"Urdu", "id":"ur", "ownlang":"اُردُو"},
"ug": {"name":"Uyghur", "id":"ug", "ownlang":"ئۇيغۇر تىلى"},
"uz": {"name":"Uzbek", "id":"uz", "ownlang":"اوزبیک"},
"vi": {"name":"Vietnamese", "id":"vi", "ownlang":"Tiếng Việt Nam", "discord":true},
"vi": {"name":"Vietnamese", "id":"vi", "ownlang":"Tiếng Việt Nam"},
"cy": {"name":"Welsh", "id":"cy", "ownlang":"Cymraeg"},
"xh": {"name":"Xhosa", "id":"xh", "ownlang":"Xhosa"},
"yi": {"name":"Yiddish", "id":"yi", "ownlang":"ייִדיש ייִדיש‬"},
@ -3326,6 +3326,65 @@
"update_notice_update": "Следните приставки трябва да бъдат актуализирани: ",
"updated": "Актуализирано"
},
"cs": {
"add_to": "Přidat do {{var0}}",
"ascending": "Vzestupně",
"center": "Na střed",
"changelog_added": "Nové vlastnosti",
"changelog_fixed": "Oprava chyb",
"changelog_improved": "Vylepšení",
"changelog_progress": "Pokrok",
"check_for_updates": "Kontrola aktualizací",
"confirm": "Jsi si jistá?",
"delete_fail": "Aplikaci {{var0}} nelze smazat",
"delete_success": "{{var0}} úspěšně smazán",
"descending": "Klesající",
"developer": "Vývojář",
"donate_message": "Podpořte mě, abyste získali další aktualizace!",
"download": "Stažení",
"download_fail": "Aplikaci {{var0}} nelze stáhnout",
"download_success": "Aplikace {{var0}} byla úspěšně stažena",
"file_navigator_text": "Procházet soubor",
"first": "První",
"from": "Z",
"gradient": "Spád",
"last": "Poslední",
"left": "Vlevo, odjet",
"loading": "Načítání {{var0}}",
"location": "Umístění",
"order": "Objednat",
"outdated": "Zastaralý",
"please_wait": "Prosím, čekejte",
"right": "Že jo",
"save_fail": "{{var0}} nelze uložit",
"save_success": "{{var0}} úspěšně uložen",
"server": "Server",
"settings_showSupportBadges_description": "Zobrazuje malé odznaky pro uživatele, kteří podporují můj Patreon",
"settings_showToasts_description": "Zobrazuje spuštění a zastavení pluginu",
"settings_showToasts_note": "Před deaktivací deaktivujte obecné nastavení BD {{var0}}",
"settings_toastPosition_description": "Výchozí pozice toastu",
"settings_toastPosition_note": "Změní pouze pozici toastů vytvořených mými pluginy",
"settings_useChromium_description": "Otevřete odkazy v programu Discord namísto v prohlížeči",
"sort_by": "Seřazeno podle",
"time": "Čas",
"timezone": "Časové pásmo",
"to": "Na",
"toast_plugin_force_updated": "Verze {{var0}} byla automaticky aktualizována, protože vaše verze je silně zastaralá",
"toast_plugin_loaded": "{{var0}} byl načten",
"toast_plugin_started": "Byla spuštěna aplikace {{var0}}",
"toast_plugin_stopped": "Aplikace {{var0}} byla zastavena",
"toast_plugin_translated": "přeloženo do jazyka {{var0}}",
"toast_plugin_unloaded": "Aplikace {{var0}} byla uvolněna",
"toast_plugin_update_failed": "Aktualizaci pro {{var0}} nelze stáhnout",
"toast_plugin_updated": "{{var0}} {{var1}} byl nahrazen {{var2}} {{var3}}",
"update_check_complete": "Kontrola aktualizace pluginu dokončena",
"update_check_complete_outdated": "Kontrola aktualizace pluginu dokončena - {{var0}} zastaralá!",
"update_check_info": "Zkontrolujte doplňky, které podporují kontrolu aktualizace",
"update_notice_click": "Klikněte pro aktualizaci!",
"update_notice_reload": "Aktualizaci dokončete znovu",
"update_notice_update": "Je třeba aktualizovat následující doplňky:",
"updated": "Aktualizováno"
},
"da": {
"add_to": "Føj til {{var0}}",
"ascending": "Stigende",
@ -3680,6 +3739,65 @@
"update_notice_update": "Les plugins suivants doivent être mis à jour: ",
"updated": "Mis à jour"
},
"hi": {
"add_to": "{{var0}} में जोड़ें",
"ascending": "आरोही",
"center": "केंद्रित",
"changelog_added": "नए विशेषताएँ",
"changelog_fixed": "कंप्यूटर प्रोग्राम या प्रणाली में बग को दूर करना",
"changelog_improved": "सुधार",
"changelog_progress": "प्रगति",
"check_for_updates": "अद्यतन के लिए जाँच",
"confirm": "क्या आपको यकीन है?",
"delete_fail": "{{var0}} को हटाया नहीं जा सकता",
"delete_success": "{{var0}} सफलतापूर्वक हटाया गया",
"descending": "अवरोही",
"developer": "डेवलपर",
"donate_message": "आगे के अपडेट प्राप्त करने के लिए मेरा समर्थन करें!",
"download": "डाउनलोड",
"download_fail": "{{var0}} डाउनलोड नहीं किया जा सकता",
"download_success": "{{var0}} सफलतापूर्वक डाउनलोड किया गया",
"file_navigator_text": "फाइल खोजो",
"first": "प्रथम",
"from": "से",
"gradient": "ढाल",
"last": "पिछले",
"left": "बाएं",
"loading": "लोड हो रहा है {{var0}}",
"location": "स्थान",
"order": "गण",
"outdated": "रगड़ा हुआ",
"please_wait": "कृपया प्रतीक्षा करें",
"right": "सही",
"save_fail": "{{var0}} सहेजा नहीं जा सकता",
"save_success": "{{var0}} सफलतापूर्वक सहेजा गया",
"server": "सर्वर",
"settings_showSupportBadges_description": "मेरे Patreon का समर्थन करने वाले उपयोगकर्ताओं के लिए छोटे बैज दिखाता है",
"settings_showToasts_description": "प्लगिन को दिखाता है टोस्ट शुरू और बंद करो",
"settings_showToasts_note": "इसे अक्षम करने से पहले BDs सामान्य '{{var0}}' सेटिंग अक्षम करें",
"settings_toastPosition_description": "डिफ़ॉल्ट टोस्ट स्थिति",
"settings_toastPosition_note": "केवल मेरे प्लगइन्स द्वारा बनाए गए टोस्ट की स्थिति बदलता है",
"settings_useChromium_description": "अपने ब्राउज़र के बजाय डिस्कॉर्ड में लिंक खोलें",
"sort_by": "इसके अनुसार क्रमबद्ध करें",
"time": "समय",
"timezone": "समय क्षेत्र",
"to": "सेवा",
"toast_plugin_force_updated": "{{var0}} अपने आप अपडेट हो गया क्योंकि आपका संस्करण काफी पुराना हो गया है",
"toast_plugin_loaded": "{{var0}} लोड कर दिया गया है",
"toast_plugin_started": "{{var0}} शुरू कर दिया गया है",
"toast_plugin_stopped": "{{var0}} रोक दिया गया है",
"toast_plugin_translated": "{{var0}} में अनुवादित",
"toast_plugin_unloaded": "{{var0}} अनलोड कर दिया गया है",
"toast_plugin_update_failed": "{{var0}} के लिए अपडेट डाउनलोड नहीं किया जा सकता",
"toast_plugin_updated": "{{var0}} {{var1}} को {{var2}} {{var3}} से बदल दिया गया है",
"update_check_complete": "प्लगइन अद्यतन जाँच पूर्ण",
"update_check_complete_outdated": "प्लगिन अपडेट जांच पूरी हुई - {{var0}} पुरानी!",
"update_check_info": "चेक प्लगइन्स जो अपडेट चेक का समर्थन करते हैं",
"update_notice_click": "अपडेट करने के लिए क्लिक करें!",
"update_notice_reload": "अद्यतन पूरा करने के लिए पुनः लोड करें",
"update_notice_update": "निम्नलिखित प्लगइन्स को अद्यतन करने की आवश्यकता है:",
"updated": "अद्यतन"
},
"hr": {
"add_to": "Dodaj u {{var0}}",
"ascending": "Uzlazni",

View File

@ -588,6 +588,22 @@ module.exports = (_ => {
toast_noteremove: "Съобщението е премахнато от бележника",
toast_noteupdate: "Актуализира съобщението в бележника"
};
case "cs": // Czech
return {
context_pinoption: "Poznamenat zprávu",
context_unpinoption: "Odebrat poznámku",
context_updateoption: "Aktualizovat poznámku",
popout_filter_all: "Všechny servery",
popout_filter_channel: "Kanál",
popout_filter_server: "Server",
popout_note: "Poznámky",
popout_pinoption: "Poznámka",
popout_sort_messagetime: "Datum zprávy",
popout_sort_notetime: "Datum poznámky",
toast_noteadd: "Zpráva přidána do poznámek",
toast_noteremove: "Zpráva odebrána z poznámek",
toast_noteupdate: "Zpráva v poznámkách aktualizována"
};
case "da": // Danish
return {
context_pinoption: "Skriv beskeden ned",
@ -684,6 +700,22 @@ module.exports = (_ => {
toast_noteremove: "Message supprimé du carnet",
toast_noteupdate: "Mise à jour du message dans le carnet"
};
case "hi": // Hindi
return {
context_pinoption: "नोट संदेश",
context_unpinoption: "नोट हटाएं",
context_updateoption: "अद्यतन नोट",
popout_filter_all: "सभी सर्वर",
popout_filter_channel: "चैनल",
popout_filter_server: "सर्वर",
popout_note: "टिप्पणियाँ",
popout_pinoption: "ध्यान दें",
popout_sort_messagetime: "संदेश दिनांक",
popout_sort_notetime: "नोट दिनांक",
toast_noteadd: "संदेश नोटबुक में जोड़ा गया",
toast_noteremove: "नोटबुक से संदेश हटाया गया",
toast_noteupdate: "नोटबुक में संदेश अपडेट किया गया"
};
case "hr": // Croatian
return {
context_pinoption: "Zapišite poruku",