Replace pt-br usages with pt-BR. (#6889)
This commit is contained in:
parent
a54974e45f
commit
f6c049bdee
|
@ -1,7 +1,68 @@
|
|||
package eu.kanade.tachiyomi.extension.pt.tsundokutraducoes
|
||||
|
||||
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
|
||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||
import okhttp3.OkHttpClient
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Locale
|
||||
import java.util.concurrent.TimeUnit
|
||||
|
||||
class TsundokuTraducoes : Madara("Tsundoku Traducoes", "https://tsundokutraducoes.com.br", "pt-br", SimpleDateFormat("dd/MM/yyyy", Locale("pt-br")))
|
||||
class TsundokuTraducoes : Madara(
|
||||
"Tsundoku Traduções",
|
||||
"https://tsundokutraducoes.com.br",
|
||||
"pt-BR",
|
||||
SimpleDateFormat("dd/MM/yyyy", Locale("pt", "BR"))
|
||||
) {
|
||||
|
||||
// Hardcode the id because the language code was wrong.
|
||||
override val id: Long = 3941383635597527601
|
||||
|
||||
override val client: OkHttpClient = super.client.newBuilder()
|
||||
.addInterceptor(RateLimitInterceptor(1, 1, TimeUnit.SECONDS))
|
||||
.build()
|
||||
|
||||
override fun popularMangaSelector() = "div.page-item-detail.manga"
|
||||
|
||||
// [...document.querySelectorAll('input[name="genre[]"]')]
|
||||
// .map(x => `Genre("${document.querySelector('label[for=' + x.id + ']').innerHTML.trim()}", "${x.value}")`)
|
||||
// .join(',\n')
|
||||
override fun getGenreList(): List<Genre> = listOf(
|
||||
Genre("Ação", "acao"),
|
||||
Genre("Adulto", "adulto"),
|
||||
Genre("Artes Marciais", "artes-marciais"),
|
||||
Genre("Aventura", "aventura"),
|
||||
Genre("Comédia", "comedia"),
|
||||
Genre("Drama", "drama"),
|
||||
Genre("Ecchi", "ecchi"),
|
||||
Genre("Fantasia", "fantasia"),
|
||||
Genre("Feminismo", "feminismo"),
|
||||
Genre("Gore", "gore"),
|
||||
Genre("Guerra", "guerra"),
|
||||
Genre("Harém", "harem"),
|
||||
Genre("Hentai", "hentai"),
|
||||
Genre("Horror", "horror"),
|
||||
Genre("Humor Negro", "humor-negro"),
|
||||
Genre("Isekai", "isekai"),
|
||||
Genre("Josei", "josei"),
|
||||
Genre("Joshikousei", "joshikousei"),
|
||||
Genre("Maduro", "maduro"),
|
||||
Genre("Mistério", "misterio"),
|
||||
Genre("Otaku", "otaku"),
|
||||
Genre("Psicológico", "psicologico"),
|
||||
Genre("Reencarnação", "reencarnacao"),
|
||||
Genre("Romance", "romance"),
|
||||
Genre("RPG", "rpg"),
|
||||
Genre("Sátira", "satira"),
|
||||
Genre("Seinen", "seinen"),
|
||||
Genre("Sexo Explícito", "sexo-explicito"),
|
||||
Genre("Shoujo", "shoujo"),
|
||||
Genre("Shounen", "shounen"),
|
||||
Genre("Slice-of-Life", "slice-of-life"),
|
||||
Genre("Sobrenatural", "sobrenatural"),
|
||||
Genre("Terror", "terror"),
|
||||
Genre("Tragédia", "tragedia"),
|
||||
Genre("Vida Escolar", "vida-escolar"),
|
||||
Genre("Xianxia", "xianxia"),
|
||||
Genre("Yuri", "yuri")
|
||||
)
|
||||
}
|
||||
|
|
|
@ -41,10 +41,10 @@ class WebtoonsTranslateFactory : SourceFactory {
|
|||
)
|
||||
}
|
||||
class WebtoonsTranslateEN : WebtoonsTranslate("Webtoons.com Translations", "https://translate.webtoons.com", "en", "ENG")
|
||||
class WebtoonsTranslateZH_CMN : WebtoonsTranslate("Webtoons.com Translations", "https://translate.webtoons.com", "zh-hans", "CMN"){
|
||||
class WebtoonsTranslateZH_CMN : WebtoonsTranslate("Webtoons.com Translations", "https://translate.webtoons.com", "zh-hans", "CMN") {
|
||||
override val id: Long = 5196522547754842244
|
||||
}
|
||||
class WebtoonsTranslateZH_CMY : WebtoonsTranslate("Webtoons.com Translations", "https://translate.webtoons.com", "zh-hant", "CMT"){
|
||||
class WebtoonsTranslateZH_CMY : WebtoonsTranslate("Webtoons.com Translations", "https://translate.webtoons.com", "zh-hant", "CMT") {
|
||||
override val id: Long = 1016181401146312893
|
||||
}
|
||||
class WebtoonsTranslateTH : WebtoonsTranslate("Webtoons.com Translations", "https://translate.webtoons.com", "th", "THA")
|
||||
|
@ -58,8 +58,8 @@ class WebtoonsTranslateDE : WebtoonsTranslate("Webtoons.com Translations", "http
|
|||
class WebtoonsTranslateHI : WebtoonsTranslate("Webtoons.com Translations", "https://translate.webtoons.com", "hi", "HIN")
|
||||
class WebtoonsTranslateIT : WebtoonsTranslate("Webtoons.com Translations", "https://translate.webtoons.com", "it", "ITA")
|
||||
class WebtoonsTranslateJA : WebtoonsTranslate("Webtoons.com Translations", "https://translate.webtoons.com", "ja", "JPN")
|
||||
class WebtoonsTranslatePT_POR : WebtoonsTranslate("Webtoons.com Translations", "https://translate.webtoons.com", "pt-br", "POR"){
|
||||
//Changed languge code from pt to pt-br
|
||||
class WebtoonsTranslatePT_POR : WebtoonsTranslate("Webtoons.com Translations", "https://translate.webtoons.com", "pt-BR", "POR") {
|
||||
// Hardcode the id because the language code was wrong.
|
||||
override val id: Long = 275670196689829558
|
||||
}
|
||||
class WebtoonsTranslateTR : WebtoonsTranslate("Webtoons.com Translations", "https://translate.webtoons.com", "tr", "TUR")
|
||||
|
@ -81,5 +81,3 @@ class WebtoonsTranslateBN : WebtoonsTranslate("Webtoons.com Translations", "http
|
|||
class WebtoonsTranslateFA : WebtoonsTranslate("Webtoons.com Translations", "https://translate.webtoons.com", "fa", "PER")
|
||||
class WebtoonsTranslateUK : WebtoonsTranslate("Webtoons.com Translations", "https://translate.webtoons.com", "uk", "UKR")
|
||||
class WebtoonsTranslateES : WebtoonsTranslate("Webtoons.com Translations", "https://translate.webtoons.com", "es", "SPA")
|
||||
|
||||
|
||||
|
|
|
@ -234,7 +234,7 @@ class MadaraGenerator : ThemeSourceGenerator {
|
|||
SingleLang("TruyenTranhAudio.com", "https://truyentranhaudio.com", "vi", className = "TruyenTranhAudioCom"),
|
||||
SingleLang("TruyenTranhAudio.online", "https://truyentranhaudio.online", "vi", className = "TruyenTranhAudioOnline"),
|
||||
SingleLang("Tsubaki No Scan", "https://tsubakinoscan.com", "fr"),
|
||||
SingleLang("Tsundoku Traducoes", "https://tsundokutraducoes.com.br", "pt-br"),
|
||||
SingleLang("Tsundoku Traduções", "https://tsundokutraducoes.com.br", "pt-BR", pkgName = "tsundokutraducoes", className = "TsundokuTraducoes", overrideVersionCode = 1),
|
||||
SingleLang("Türkçe Manga", "https://turkcemanga.com", "tr", className = "TurkceManga"),
|
||||
SingleLang("Twilight Scans", "https://twilightscans.com", "en", overrideVersionCode = 1),
|
||||
SingleLang("Unemployed Scans", "https://unemployedscans.com", "en"),
|
||||
|
|
|
@ -12,7 +12,7 @@ class WebtoonsTranslateGenerator : ThemeSourceGenerator {
|
|||
override val baseVersionCode: Int = 1
|
||||
|
||||
override val sources = listOf(
|
||||
MultiLang("Webtoons.com Translations", "https://translate.webtoons.com", listOf("en", "zh-hans", "zh-hant", "th", "id", "fr", "vi", "ru", "ar", "fil", "de", "hi", "it", "ja", "pt-br", "tr", "ms", "pl", "pt", "bg", "da", "nl", "ro", "mn", "el", "lt", "cs", "sv", "bn", "fa", "uk", "es"), className = "WebtoonsTranslateFactory", pkgName = "webtoonstranslate"),
|
||||
MultiLang("Webtoons.com Translations", "https://translate.webtoons.com", listOf("en", "zh-hans", "zh-hant", "th", "id", "fr", "vi", "ru", "ar", "fil", "de", "hi", "it", "ja", "pt-BR", "tr", "ms", "pl", "pt", "bg", "da", "nl", "ro", "mn", "el", "lt", "cs", "sv", "bn", "fa", "uk", "es"), className = "WebtoonsTranslateFactory", pkgName = "webtoonstranslate", overrideVersionCode = 1),
|
||||
)
|
||||
|
||||
companion object {
|
||||
|
|
Loading…
Reference in New Issue