This commit is contained in:
Mirco Wittrien 2019-12-07 16:45:40 +01:00
parent ea098166f5
commit c7bf82cdf5
3 changed files with 127 additions and 122 deletions

View File

@ -6042,118 +6042,120 @@
var LanguageStrings = LibraryModules.LanguageStore && LibraryModules.LanguageStore._proxyContext ? Object.assign({}, LibraryModules.LanguageStore._proxyContext.defaultMessages) : {};
BDFDB.LanguageUtils = {};
BDFDB.LanguageUtils.languages = {
"$discord": {name:"Discord (English (US))", id:"en-US", ownlang:"English (US)", integrated:false, dic:false},
"af": {name:"Afrikaans", id:"af", ownlang:"Afrikaans", integrated:false, dic:true},
"sq": {name:"Albanian", id:"sq", ownlang:"Shqiptar", integrated:false, dic:false},
"am": {name:"Amharic", id:"am", ownlang:"አማርኛ", integrated:false, dic:false},
"ar": {name:"Arabic", id:"ar", ownlang:"اللغة العربية", integrated:false, dic:false},
"hy": {name:"Armenian", id:"hy", ownlang:"Հայերեն", integrated:false, dic:false},
"az": {name:"Azerbaijani", id:"az", ownlang:"آذربایجان دیلی", integrated:false, dic:false},
"eu": {name:"Basque", id:"eu", ownlang:"Euskara", integrated:false, dic:false},
"be": {name:"Belarusian", id:"be", ownlang:"Беларуская", integrated:false, dic:false},
"bn": {name:"Bengali", id:"bn", ownlang:"বাংলা", integrated:false, dic:false},
"bs": {name:"Bosnian", id:"bs", ownlang:"Босански", integrated:false, dic:false},
"bg": {name:"Bulgarian", id:"bg", ownlang:"български", integrated:true, dic:false},
"my": {name:"Burmese", id:"my", ownlang:"မြန်မာစာ", integrated:false, dic:false},
"ca": {name:"Catalan", id:"ca", ownlang:"Català", integrated:false, dic:false},
"ceb": {name:"Cebuano", id:"ceb", ownlang:"Bisaya", integrated:false, dic:false},
"ny": {name:"Chewa", id:"ny", ownlang:"Nyanja", integrated:false, dic:false},
"zh-HK": {name:"Chinese (Hong Kong)", id:"zh-HK", ownlang:"香港中文", integrated:false, dic:false},
"zh-CN": {name:"Chinese (Simplified)", id:"zh-CN", ownlang:"简体中文", integrated:false, dic:false},
"zh-TW": {name:"Chinese (Traditional)", id:"zh-TW", ownlang:"繁體中文", integrated:true, dic:false},
"co": {name:"Corsican", id:"co", ownlang:"Corsu", integrated:false, dic:false},
"hr": {name:"Croatian", id:"hr", ownlang:"Hrvatski", integrated:true, dic:false},
"cs": {name:"Czech", id:"cs", ownlang:"Čeština", integrated:true, dic:false},
"da": {name:"Danish", id:"da", ownlang:"Dansk", integrated:true, dic:true},
"nl": {name:"Dutch", id:"nl", ownlang:"Nederlands", integrated:true, dic:true},
"en": {name:"English", id:"en", ownlang:"English", integrated:false, dic:true},
"en-GB": {name:"English (UK)", id:"en-GB", ownlang:"English (UK)", integrated:true, dic:true},
"en-US": {name:"English (US)", id:"en-US", ownlang:"English (US)", integrated:true, dic:true},
"eo": {name:"Esperanto", id:"eo", ownlang:"Esperanto", integrated:false, dic:false},
"et": {name:"Estonian", id:"et", ownlang:"Eesti", integrated:false, dic:false},
"fil": {name:"Filipino", id:"fil", ownlang:"Wikang Filipino", integrated:false, dic:false},
"fi": {name:"Finnish", id:"fi", ownlang:"Suomi", integrated:true, dic:false},
"fr": {name:"French", id:"fr", ownlang:"Français", integrated:true, dic:true},
"fr-CA": {name:"French (Canadian)", id:"fr-CA", ownlang:"Français Canadien", integrated:false, dic:false},
"fy": {name:"Frisian", id:"fy", ownlang:"Frysk", integrated:false, dic:false},
"gl": {name:"Galician", id:"gl", ownlang:"Galego", integrated:false, dic:false},
"ka": {name:"Georgian", id:"ka", ownlang:"ქართული", integrated:false, dic:false},
"de": {name:"German", id:"de", ownlang:"Deutsch", integrated:true, dic:true},
"de-AT": {name:"German (Austria)", id:"de-AT", ownlang:"Österreichisch Deutsch", integrated:false, dic:false},
"de-CH": {name:"German (Switzerland)", id:"de-CH", ownlang:"Schweizerdeutsch", integrated:false, dic:false},
"el": {name:"Greek", id:"el", ownlang:"Ελληνικά", integrated:false, dic:false},
"gu": {name:"Gujarati", id:"gu", ownlang:"ગુજરાતી", integrated:false, dic:false},
"ht": {name:"Haitian Creole", id:"ht", ownlang:"Kreyòl Ayisyen", integrated:false, dic:false},
"ha": {name:"Hausa", id:"ha", ownlang:"حَوْسَ", integrated:false, dic:false},
"haw": {name:"Hawaiian", id:"haw", ownlang:"ʻŌlelo Hawaiʻi", integrated:false, dic:false},
"iw": {name:"Hebrew", id:"iw", ownlang:"עברית", integrated:false, dic:false},
"hi": {name:"Hindi", id:"hi", ownlang:"हिन्दी", integrated:false, dic:false},
"hmn": {name:"Hmong", id:"hmn", ownlang:"lol Hmongb", integrated:false, dic:false},
"hu": {name:"Hungarain", id:"hu", ownlang:"Magyar", integrated:false, dic:false},
"is": {name:"Icelandic", id:"is", ownlang:"Íslenska", integrated:false, dic:false},
"ig": {name:"Igbo", id:"ig", ownlang:"Asụsụ Igbo", integrated:false, dic:false},
"id": {name:"Indonesian", id:"id", ownlang:"Bahasa Indonesia", integrated:false, dic:false},
"ga": {name:"Irish", id:"ga", ownlang:"Gaeilge", integrated:false, dic:false},
"it": {name:"Italian", id:"it", ownlang:"Italiano", integrated:true, dic:true},
"ja": {name:"Japanese", id:"ja", ownlang:"日本語", integrated:true, dic:false},
"jv": {name:"Javanese", id:"jv", ownlang:"ꦧꦱꦗꦮ", integrated:false, dic:false},
"kn": {name:"Kannada", id:"kn", ownlang:"ಕನ್ನಡ", integrated:false, dic:false},
"kk": {name:"Kazakh", id:"kk", ownlang:"Қазақ Tілі", integrated:false, dic:false},
"km": {name:"Khmer", id:"km", ownlang:"ភាសាខ្មែរ", integrated:false, dic:false},
"ko": {name:"Korean", id:"ko", ownlang:"한국어", integrated:true, dic:false},
"ku": {name:"Kurdish", id:"ku", ownlang:"کوردی", integrated:false, dic:false},
"ky": {name:"Kyrgyz", id:"ky", ownlang:"кыргызча", integrated:false, dic:false},
"lo": {name:"Lao", id:"lo", ownlang:"ພາສາລາວ", integrated:false, dic:false},
"la": {name:"Latin", id:"la", ownlang:"Latina", integrated:false, dic:false},
"lv": {name:"Latvian", id:"lv", ownlang:"Latviešu", integrated:false, dic:false},
"lt": {name:"Lithuanian", id:"lt", ownlang:"Lietuvių", integrated:false, dic:false},
"lb": {name:"Luxembourgish", id:"lb", ownlang:"Lëtzebuergesch", integrated:false, dic:false},
"mk": {name:"Macedonian", id:"mk", ownlang:"Mакедонски", integrated:false, dic:false},
"mg": {name:"Malagasy", id:"mg", ownlang:"Malagasy", integrated:false, dic:false},
"ms": {name:"Malay", id:"ms", ownlang:"بهاس ملايو", integrated:false, dic:false},
"ml": {name:"Malayalam", id:"ml", ownlang:"മലയാളം", integrated:false, dic:false},
"mt": {name:"Maltese", id:"mt", ownlang:"Malti", integrated:false, dic:false},
"mi": {name:"Maori", id:"mi", ownlang:"te Reo Māori", integrated:false, dic:false},
"mr": {name:"Marathi", id:"mr", ownlang:"मराठी", integrated:false, dic:false},
"mn": {name:"Mongolian", id:"mn", ownlang:"Монгол Хэл", integrated:false, dic:false},
"ne": {name:"Nepali", id:"ne", ownlang:"नेपाली", integrated:false, dic:false},
"no": {name:"Norwegian", id:"no", ownlang:"Norsk", integrated:true, dic:false},
"ps": {name:"Pashto", id:"ps", ownlang:"پښتو", integrated:false, dic:false},
"fa": {name:"Persian", id:"fa", ownlang:"فارسی", integrated:false, dic:false},
"pl": {name:"Polish", id:"pl", ownlang:"Polski", integrated:true, dic:true},
"pt": {name:"Portuguese", id:"pt", ownlang:"Português", integrated:false, dic:true},
"pt-BR": {name:"Portuguese (Brazil)", id:"pt-BR", ownlang:"Português do Brasil", integrated:true, dic:true},
"pt-PT": {name:"Portuguese (Portugal)", id:"pt-PT", ownlang:"Português do Portugal", integrated:false, dic:false},
"pa": {name:"Punjabi", id:"pa", ownlang:"पंजाबी", integrated:false, dic:false},
"ro": {name:"Romanian", id:"ro", ownlang:"Română", integrated:false, dic:false},
"ru": {name:"Russian", id:"ru", ownlang:"Pусский", integrated:true, dic:true},
"sm": {name:"Samoan", id:"sm", ownlang:"Gagana Sāmoa", integrated:false, dic:false},
"gd": {name:"Scottish Gaelic", id:"gd", ownlang:"Gàidhlig", integrated:false, dic:false},
"sr": {name:"Serbian", id:"sr", ownlang:"Српски", integrated:false, dic:false},
"st": {name:"Sotho", id:"st", ownlang:"Sesotho", integrated:false, dic:false},
"sn": {name:"Shona", id:"sn", ownlang:"Shona", integrated:false, dic:false},
"sd": {name:"Sindhi", id:"sd", ownlang:"سنڌي", integrated:false, dic:false},
"si": {name:"Sinhala", id:"si", ownlang:"සිංහල", integrated:false, dic:false},
"sk": {name:"Slovak", id:"sk", ownlang:"Slovenčina", integrated:false, dic:false},
"sl": {name:"Slovenian", id:"sl", ownlang:"Slovenščina", integrated:false, dic:false},
"es": {name:"Spanish", id:"es", ownlang:"Español", integrated:true, dic:true},
"es-419": {name:"Spanish (Latin America)", id:"es-419", ownlang:"Español latinoamericano", integrated:false, dic:false},
"sw": {name:"Swahili", id:"sw", ownlang:"Kiswahili", integrated:false, dic:false},
"sv": {name:"Swedish", id:"sv", ownlang:"Svenska", integrated:true, dic:true},
"tg": {name:"Tajik", id:"tg", ownlang:"тоҷикӣ", integrated:false, dic:false},
"ta": {name:"Tamil", id:"ta", ownlang:"தமிழ்", integrated:false, dic:false},
"te": {name:"Telugu", id:"te", ownlang:"తెలుగు", integrated:false, dic:false},
"th": {name:"Thai", id:"th", ownlang:"ภาษาไทย", integrated:false, dic:false},
"tr": {name:"Turkish", id:"tr", ownlang:"Türkçe", integrated:true, dic:false},
"uk": {name:"Ukrainian", id:"uk", ownlang:"Yкраїнський", integrated:true, dic:false},
"ur": {name:"Urdu", id:"ur", ownlang:"اُردُو", integrated:false, dic:false},
"uz": {name:"Uzbek", id:"uz", ownlang:"اوزبیک", integrated:false, dic:false},
"vi": {name:"Vietnamese", id:"vi", ownlang:"Tiếng Việt Nam", integrated:false, dic:false},
"cy": {name:"Welsh", id:"cy", ownlang:"Cymraeg", integrated:false, dic:false},
"xh": {name:"Xhosa", id:"xh", ownlang:"Xhosa", integrated:false, dic:false},
"yi": {name:"Yiddish", id:"yi", ownlang:"ייִדיש ייִדיש‬", integrated:false, dic:false},
"yo": {name:"Yoruba", id:"yo", ownlang:"Èdè Yorùbá", integrated:false, dic:false},
"zu": {name:"Zulu", id:"zu", ownlang:"Zulu", integrated:false, dic:false}
"$discord": {name:"Discord (English (US))", id:"en-US", ownlang:"English (US)", google:false, integrated:false, dic:false},
"af": {name:"Afrikaans", id:"af", ownlang:"Afrikaans", google:true, integrated:false, dic:true},
"sq": {name:"Albanian", id:"sq", ownlang:"Shqiptar", google:true, integrated:false, dic:false},
"am": {name:"Amharic", id:"am", ownlang:"አማርኛ", google:true, integrated:false, dic:false},
"ar": {name:"Arabic", id:"ar", ownlang:"اللغة العربية", google:true, integrated:false, dic:false},
"hy": {name:"Armenian", id:"hy", ownlang:"Հայերեն", google:true, integrated:false, dic:false},
"az": {name:"Azerbaijani", id:"az", ownlang:"آذربایجان دیلی", google:true, integrated:false, dic:false},
"eu": {name:"Basque", id:"eu", ownlang:"Euskara", google:true, integrated:false, dic:false},
"be": {name:"Belarusian", id:"be", ownlang:"Беларуская", google:true, integrated:false, dic:false},
"bn": {name:"Bengali", id:"bn", ownlang:"বাংলা", google:true, integrated:false, dic:false},
"bs": {name:"Bosnian", id:"bs", ownlang:"Босански", google:true, integrated:false, dic:false},
"bg": {name:"Bulgarian", id:"bg", ownlang:"български", google:true, integrated:true, dic:false},
"my": {name:"Burmese", id:"my", ownlang:"မြန်မာစာ", google:true, integrated:false, dic:false},
"ca": {name:"Catalan", id:"ca", ownlang:"Català", google:true, integrated:false, dic:false},
"ceb": {name:"Cebuano", id:"ceb", ownlang:"Bisaya", google:true, integrated:false, dic:false},
"ny": {name:"Chewa", id:"ny", ownlang:"Nyanja", google:true, integrated:false, dic:false},
"zh-HK": {name:"Chinese (Hong Kong)", id:"zh-HK", ownlang:"香港中文", google:false, integrated:false, dic:false},
"zh-CN": {name:"Chinese (Simplified)", id:"zh-CN", ownlang:"简体中文", google:true, integrated:false, dic:false},
"zh-TW": {name:"Chinese (Traditional)", id:"zh-TW", ownlang:"繁體中文", google:false, integrated:true, dic:false},
"co": {name:"Corsican", id:"co", ownlang:"Corsu", google:true, integrated:false, dic:false},
"hr": {name:"Croatian", id:"hr", ownlang:"Hrvatski", google:true, integrated:true, dic:false},
"cs": {name:"Czech", id:"cs", ownlang:"Čeština", google:true, integrated:true, dic:false},
"da": {name:"Danish", id:"da", ownlang:"Dansk", google:true, integrated:true, dic:true},
"nl": {name:"Dutch", id:"nl", ownlang:"Nederlands", google:true, integrated:true, dic:true},
"en": {name:"English", id:"en", ownlang:"English", google:true, integrated:false, dic:true},
"en-GB": {name:"English (UK)", id:"en-GB", ownlang:"English (UK)", google:false, integrated:true, dic:true},
"en-US": {name:"English (US)", id:"en-US", ownlang:"English (US)", google:false, integrated:true, dic:true},
"eo": {name:"Esperanto", id:"eo", ownlang:"Esperanto", google:true, integrated:false, dic:false},
"et": {name:"Estonian", id:"et", ownlang:"Eesti", google:true, integrated:false, dic:false},
"fil": {name:"Filipino", id:"fil", ownlang:"Wikang Filipino", google:false, integrated:false, dic:false},
"fi": {name:"Finnish", id:"fi", ownlang:"Suomi", google:true, integrated:true, dic:false},
"fr": {name:"French", id:"fr", ownlang:"Français", google:true, integrated:true, dic:true},
"fr-CA": {name:"French (Canadian)", id:"fr-CA", ownlang:"Français Canadien", google:false, integrated:false, dic:false},
"fy": {name:"Frisian", id:"fy", ownlang:"Frysk", google:true, integrated:false, dic:false},
"gl": {name:"Galician", id:"gl", ownlang:"Galego", google:true, integrated:false, dic:false},
"ka": {name:"Georgian", id:"ka", ownlang:"ქართული", google:true, integrated:false, dic:false},
"de": {name:"German", id:"de", ownlang:"Deutsch", google:true, integrated:true, dic:true},
"de-AT": {name:"German (Austria)", id:"de-AT", ownlang:"Österreichisch Deutsch", google:false, integrated:false, dic:false},
"de-CH": {name:"German (Switzerland)", id:"de-CH", ownlang:"Schweizerdeutsch", google:false, integrated:false, dic:false},
"el": {name:"Greek", id:"el", ownlang:"Ελληνικά", google:true, integrated:false, dic:false},
"gu": {name:"Gujarati", id:"gu", ownlang:"ગુજરાતી", google:true, integrated:false, dic:false},
"ht": {name:"Haitian Creole", id:"ht", ownlang:"Kreyòl Ayisyen", google:true, integrated:false, dic:false},
"ha": {name:"Hausa", id:"ha", ownlang:"حَوْسَ", google:true, integrated:false, dic:false},
"haw": {name:"Hawaiian", id:"haw", ownlang:"ʻŌlelo Hawaiʻi", google:true, integrated:false, dic:false},
"iw": {name:"Hebrew", id:"iw", ownlang:"עברית", google:true, integrated:false, dic:false},
"hi": {name:"Hindi", id:"hi", ownlang:"हिन्दी", google:true, integrated:false, dic:false},
"hmn": {name:"Hmong", id:"hmn", ownlang:"lol Hmongb", google:true, integrated:false, dic:false},
"hu": {name:"Hungarain", id:"hu", ownlang:"Magyar", google:true, integrated:false, dic:false},
"is": {name:"Icelandic", id:"is", ownlang:"Íslenska", google:true, integrated:false, dic:false},
"ig": {name:"Igbo", id:"ig", ownlang:"Asụsụ Igbo", google:true, integrated:false, dic:false},
"id": {name:"Indonesian", id:"id", ownlang:"Bahasa Indonesia", google:true, integrated:false, dic:false},
"ga": {name:"Irish", id:"ga", ownlang:"Gaeilge", google:true, integrated:false, dic:false},
"it": {name:"Italian", id:"it", ownlang:"Italiano", google:true, integrated:true, dic:true},
"ja": {name:"Japanese", id:"ja", ownlang:"日本語", google:true, integrated:true, dic:false},
"jw": {name:"Javanese", id:"jw", ownlang:"ꦧꦱꦗꦮ", google:true, integrated:false, dic:false},
"kn": {name:"Kannada", id:"kn", ownlang:"ಕನ್ನಡ", google:true, integrated:false, dic:false},
"kk": {name:"Kazakh", id:"kk", ownlang:"Қазақ Tілі", google:true, integrated:false, dic:false},
"km": {name:"Khmer", id:"km", ownlang:"ភាសាខ្មែរ", google:true, integrated:false, dic:false},
"ko": {name:"Korean", id:"ko", ownlang:"한국어", google:true, integrated:true, dic:false},
"ku": {name:"Kurdish", id:"ku", ownlang:"کوردی", google:true, integrated:false, dic:false},
"ky": {name:"Kyrgyz", id:"ky", ownlang:"кыргызча", google:true, integrated:false, dic:false},
"lo": {name:"Lao", id:"lo", ownlang:"ພາສາລາວ", google:true, integrated:false, dic:false},
"la": {name:"Latin", id:"la", ownlang:"Latina", google:true, integrated:false, dic:false},
"lv": {name:"Latvian", id:"lv", ownlang:"Latviešu", google:true, integrated:false, dic:false},
"lt": {name:"Lithuanian", id:"lt", ownlang:"Lietuvių", google:true, integrated:false, dic:false},
"lb": {name:"Luxembourgish", id:"lb", ownlang:"Lëtzebuergesch", google:true, integrated:false, dic:false},
"mk": {name:"Macedonian", id:"mk", ownlang:"Mакедонски", google:true, integrated:false, dic:false},
"mg": {name:"Malagasy", id:"mg", ownlang:"Malagasy", google:true, integrated:false, dic:false},
"ms": {name:"Malay", id:"ms", ownlang:"بهاس ملايو", google:true, integrated:false, dic:false},
"ml": {name:"Malayalam", id:"ml", ownlang:"മലയാളം", google:true, integrated:false, dic:false},
"mt": {name:"Maltese", id:"mt", ownlang:"Malti", google:true, integrated:false, dic:false},
"mi": {name:"Maori", id:"mi", ownlang:"te Reo Māori", google:true, integrated:false, dic:false},
"mr": {name:"Marathi", id:"mr", ownlang:"मराठी", google:true, integrated:false, dic:false},
"mn": {name:"Mongolian", id:"mn", ownlang:"Монгол Хэл", google:true, integrated:false, dic:false},
"my": {name:"Myanmar (Burmese)", id:"my", ownlang:"မြန်မာл Хэл", google:true, integrated:false, dic:false},
"ne": {name:"Nepali", id:"ne", ownlang:"नेपाली", google:true, integrated:false, dic:false},
"no": {name:"Norwegian", id:"no", ownlang:"Norsk", google:true, integrated:true, dic:false},
"ps": {name:"Pashto", id:"ps", ownlang:"پښتو", google:true, integrated:false, dic:false},
"fa": {name:"Persian", id:"fa", ownlang:"فارسی", google:true, integrated:false, dic:false},
"pl": {name:"Polish", id:"pl", ownlang:"Polski", google:true, integrated:true, dic:true},
"pt": {name:"Portuguese", id:"pt", ownlang:"Português", google:true, integrated:false, dic:true},
"pt-BR": {name:"Portuguese (Brazil)", id:"pt-BR", ownlang:"Português do Brasil", google:false, integrated:true, dic:true},
"pt-PT": {name:"Portuguese (Portugal)", id:"pt-PT", ownlang:"Português do Portugal", google:false, integrated:false, dic:false},
"pa": {name:"Punjabi", id:"pa", ownlang:"पंजाबी", google:true, integrated:false, dic:false},
"ro": {name:"Romanian", id:"ro", ownlang:"Română", google:true, integrated:false, dic:false},
"ru": {name:"Russian", id:"ru", ownlang:"Pусский", google:true, integrated:true, dic:true},
"sm": {name:"Samoan", id:"sm", ownlang:"Gagana Sāmoa", google:true, integrated:false, dic:false},
"gd": {name:"Scottish Gaelic", id:"gd", ownlang:"Gàidhlig", google:true, integrated:false, dic:false},
"sr": {name:"Serbian", id:"sr", ownlang:"Српски", google:true, integrated:false, dic:false},
"st": {name:"Sotho", id:"st", ownlang:"Sesotho", google:true, integrated:false, dic:false},
"sn": {name:"Shona", id:"sn", ownlang:"Shona", google:true, integrated:false, dic:false},
"sd": {name:"Sindhi", id:"sd", ownlang:"سنڌي", google:true, integrated:false, dic:false},
"si": {name:"Sinhala", id:"si", ownlang:"සිංහල", google:true, integrated:false, dic:false},
"sk": {name:"Slovak", id:"sk", ownlang:"Slovenčina", google:true, integrated:false, dic:false},
"sl": {name:"Slovenian", id:"sl", ownlang:"Slovenščina", google:true, integrated:false, dic:false},
"so": {name:"Somali", id:"so", ownlang:"Soomaali", google:true, integrated:false, dic:false},
"es": {name:"Spanish", id:"es", ownlang:"Español", google:true, integrated:true, dic:true},
"es-419": {name:"Spanish (Latin America)", id:"es-419", ownlang:"Español latinoamericano", google:false, integrated:false, dic:false},
"sw": {name:"Swahili", id:"sw", ownlang:"Kiswahili", google:true, integrated:false, dic:false},
"sv": {name:"Swedish", id:"sv", ownlang:"Svenska", google:true, integrated:true, dic:true},
"tg": {name:"Tajik", id:"tg", ownlang:"тоҷикӣ", google:true, integrated:false, dic:false},
"ta": {name:"Tamil", id:"ta", ownlang:"தமிழ்", google:true, integrated:false, dic:false},
"te": {name:"Telugu", id:"te", ownlang:"తెలుగు", google:true, integrated:false, dic:false},
"th": {name:"Thai", id:"th", ownlang:"ภาษาไทย", google:true, integrated:false, dic:false},
"tr": {name:"Turkish", id:"tr", ownlang:"Türkçe", google:true, integrated:true, dic:false},
"uk": {name:"Ukrainian", id:"uk", ownlang:"Yкраїнський", google:true, integrated:true, dic:false},
"ur": {name:"Urdu", id:"ur", ownlang:"اُردُو", google:true, integrated:false, dic:false},
"uz": {name:"Uzbek", id:"uz", ownlang:"اوزبیک", google:true, integrated:false, dic:false},
"vi": {name:"Vietnamese", id:"vi", ownlang:"Tiếng Việt Nam", google:true, integrated:false, dic:false},
"cy": {name:"Welsh", id:"cy", ownlang:"Cymraeg", google:true, integrated:false, dic:false},
"xh": {name:"Xhosa", id:"xh", ownlang:"Xhosa", google:true, integrated:false, dic:false},
"yi": {name:"Yiddish", id:"yi", ownlang:"ייִדיש ייִדיש‬", google:true, integrated:false, dic:false},
"yo": {name:"Yoruba", id:"yo", ownlang:"Èdè Yorùbá", google:true, integrated:false, dic:false},
"zu": {name:"Zulu", id:"zu", ownlang:"Zulu", google:true, integrated:false, dic:false}
};
InternalBDFDB.LibraryStrings = {
"hr": {
@ -6396,6 +6398,7 @@
var language = BDFDB.LanguageUtils.getLanguage();
BDFDB.LanguageUtils.languages.$discord.name = `Discord (${language.name})`;
BDFDB.LanguageUtils.languages.$discord.id = language.id;
BDFDB.LanguageUtils.languages.$discord.google = language.google;
BDFDB.LanguageUtils.languages.$discord.ownlang = language.ownlang;
}
}, 100);

File diff suppressed because one or more lines are too long

View File

@ -3,7 +3,7 @@
class GoogleTranslateOption {
getName () {return "GoogleTranslateOption";}
getVersion () {return "1.7.9";}
getVersion () {return "1.8.0";}
getAuthor () {return "DevilBro";}
@ -402,13 +402,13 @@ class GoogleTranslateOption {
}
setLanguages () {
this.languages = Object.assign({},
{"auto": {name:"Auto", id:"auto", integrated:false, dic:false}},
this.languages = BDFDB.ObjectUtils.filter(Object.assign({},
{"auto": {name:"Auto", id:"auto", google:true, integrated:false, dic:false}},
BDFDB.LanguageUtils.languages,
{"binary": {name:"Binary", id:"binary", integrated:false, dic:false}},
{"braille": {name:"Braille 6-dot", id:"braille", integrated:false, dic:false}},
{"morse": {name:"Morse", id:"morse", integrated:false, dic:false}}
);
{"binary": {name:"Binary", id:"binary", google:true, integrated:false, dic:false}},
{"braille": {name:"Braille 6-dot", id:"braille", google:true, integrated:false, dic:false}},
{"morse": {name:"Morse", id:"morse", google:true, integrated:false, dic:false}}
), lang => lang.google);
let favorites = BDFDB.DataUtils.load(this, "favorites");
for (let id in this.languages) this.languages[id].fav = favorites[id] != undefined ? 0 : 1;
this.languages = BDFDB.ObjectUtils.sort(this.languages, "fav");
@ -507,10 +507,12 @@ class GoogleTranslateOption {
else {
let googleTranslateWindow = BDFDB.WindowUtils.open(this, this.getGoogleTranslatePageURL(input.id, output.id, newtext));
googleTranslateWindow.webContents.on("did-finish-load", _ => {
googleTranslateWindow.webContents.executeJavaScript(`require("electron").ipcRenderer.sendTo(${BDFDB.LibraryRequires.electron.remote.getCurrentWindow().webContents.id}, "GTO-translation", [(document.querySelector(".translation") || {}).innerText, [(new RegExp("{code:'([^']*)',name:'" + [(new RegExp((window.source_language_detected || "").replace("%1$s", "([A-z]{2,})"), "g")).exec(document.body.innerHTML)].flat()[1] +"'}", "g")).exec(document.body.innerHTML)].flat()[1]]);`);
googleTranslateWindow.webContents.executeJavaScript(`
require("electron").ipcRenderer.sendTo(${BDFDB.LibraryRequires.electron.remote.getCurrentWindow().webContents.id}, "GTO-translation", [(document.querySelector(".translation") || {}).innerText, [(new RegExp("{code:'([^']*)',name:'" + [(new RegExp((window.source_language_detected || "").replace("%1$s", "([A-z]{2,})"), "g")).exec(document.body.innerHTML)].flat()[1] +"'}", "g")).exec(document.body.innerHTML)].flat()[1]]);
`);
});
BDFDB.WindowUtils.addListener(this, "GTO-translation", (event, data) => {
googleTranslateWindow.close();
BDFDB.WindowUtils.close(googleTranslateWindow);
BDFDB.WindowUtils.removeListener(this, "GTO-translation");
if (!specialcase && data[1] && this.languages[data[1]]) {
input.name = this.languages[data[1]].name;