Add Spanish to Bilibili Comics (#12173)
* Add Spanish to Bilibili Comics (closes #12161). * Add a missing space to the warning.
This commit is contained in:
parent
e0b4fcbce8
commit
c8cf3cef02
|
@ -34,6 +34,7 @@ class BilibiliComicsFactory : SourceFactory {
|
|||
BilibiliComicsEn(),
|
||||
BilibiliComicsCn(),
|
||||
BilibiliComicsId(),
|
||||
BilibiliComicsEs()
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -325,3 +326,28 @@ class BilibiliComicsId : BilibiliComics(BilibiliIntl.INDONESIAN) {
|
|||
BilibiliTag("Romantis", 13)
|
||||
)
|
||||
}
|
||||
|
||||
class BilibiliComicsEs : BilibiliComics(BilibiliIntl.SPANISH) {
|
||||
|
||||
override fun getAllGenres(): Array<BilibiliTag> = arrayOf(
|
||||
BilibiliTag("Todos", -1),
|
||||
BilibiliTag("Adolescencia", 105),
|
||||
BilibiliTag("BL", 3),
|
||||
BilibiliTag("Ciberdeportes", 104),
|
||||
BilibiliTag("Ciencia ficción", 8),
|
||||
BilibiliTag("Comedia", 14),
|
||||
BilibiliTag("Fantasía occidental", 106),
|
||||
BilibiliTag("Fantasía", 11),
|
||||
BilibiliTag("Ficción Realista", 116),
|
||||
BilibiliTag("GL", 16),
|
||||
BilibiliTag("Histórico", 12),
|
||||
BilibiliTag("Horror", 23),
|
||||
BilibiliTag("Juvenil", 20),
|
||||
BilibiliTag("Moderno", 111),
|
||||
BilibiliTag("Oriental", 30),
|
||||
BilibiliTag("Romance", 13),
|
||||
BilibiliTag("Suspenso", 41),
|
||||
BilibiliTag("Urbano", 9),
|
||||
BilibiliTag("Wuxia", 103)
|
||||
)
|
||||
}
|
||||
|
|
|
@ -13,8 +13,21 @@ class BilibiliGenerator : ThemeSourceGenerator {
|
|||
override val baseVersionCode: Int = 3
|
||||
|
||||
override val sources = listOf(
|
||||
MultiLang("BILIBILI COMICS", "https://www.bilibilicomics.com", listOf("en", "zh-Hans", "id"), className = "BilibiliComicsFactory"),
|
||||
SingleLang("BILIBILI MANGA", "https://manga.bilibili.com", "zh-Hans", className = "BilibiliManga", sourceName = "哔哩哔哩漫画", overrideVersionCode = 2)
|
||||
MultiLang(
|
||||
name = "BILIBILI COMICS",
|
||||
baseUrl = "https://www.bilibilicomics.com",
|
||||
langs = listOf("en", "zh-Hans", "id", "es"),
|
||||
className = "BilibiliComicsFactory",
|
||||
overrideVersionCode = 1
|
||||
),
|
||||
SingleLang(
|
||||
name = "BILIBILI MANGA",
|
||||
baseUrl = "https://manga.bilibili.com",
|
||||
lang = "zh-Hans",
|
||||
className = "BilibiliManga",
|
||||
sourceName = "哔哩哔哩漫画",
|
||||
overrideVersionCode = 2
|
||||
)
|
||||
)
|
||||
|
||||
companion object {
|
||||
|
|
|
@ -4,17 +4,20 @@ class BilibiliIntl(lang: String) {
|
|||
|
||||
val statusLabel: String = when (lang) {
|
||||
CHINESE, SIMPLIFIED_CHINESE -> "进度"
|
||||
SPANISH -> "Estado"
|
||||
else -> "Status"
|
||||
}
|
||||
|
||||
val sortLabel: String = when (lang) {
|
||||
CHINESE, SIMPLIFIED_CHINESE -> "排序"
|
||||
INDONESIAN -> "Urutkan dengan"
|
||||
SPANISH -> "Ordenar por"
|
||||
else -> "Sort by"
|
||||
}
|
||||
|
||||
val genreLabel: String = when (lang) {
|
||||
CHINESE, SIMPLIFIED_CHINESE -> "题材"
|
||||
SPANISH -> "Género"
|
||||
else -> "Genre"
|
||||
}
|
||||
|
||||
|
@ -26,11 +29,13 @@ class BilibiliIntl(lang: String) {
|
|||
val priceLabel: String = when (lang) {
|
||||
CHINESE, SIMPLIFIED_CHINESE -> "收费"
|
||||
INDONESIAN -> "Harga"
|
||||
SPANISH -> "Precio"
|
||||
else -> "Price"
|
||||
}
|
||||
|
||||
val episodePrefix: String = when (lang) {
|
||||
CHINESE, SIMPLIFIED_CHINESE -> ""
|
||||
SPANISH -> "Cap. "
|
||||
else -> "Ep. "
|
||||
}
|
||||
|
||||
|
@ -38,6 +43,10 @@ class BilibiliIntl(lang: String) {
|
|||
CHINESE, SIMPLIFIED_CHINESE ->
|
||||
"${Bilibili.EMOJI_WARNING} 此漫画的付费章节已从章节列表中过滤。如果您已购买章节,请在 WebView " +
|
||||
"登录并刷新章节列表以阅读已购章节。"
|
||||
SPANISH ->
|
||||
"${Bilibili.EMOJI_WARNING} ADVERTENCIA: Esta serie tiene capítulos pagos que fueron " +
|
||||
"filtrados de la lista de capítulos. Si ya compró y tiene alguno en su cuenta, " +
|
||||
"inicie sesión en WebView y actualice la lista de capítulos para leerlos."
|
||||
else ->
|
||||
"${Bilibili.EMOJI_WARNING} WARNING: This series has paid chapters that were filtered " +
|
||||
"out from the chapter list. If you have already bought and have any in your " +
|
||||
|
@ -47,6 +56,7 @@ class BilibiliIntl(lang: String) {
|
|||
val imageQualityPrefTitle: String = when (lang) {
|
||||
CHINESE, SIMPLIFIED_CHINESE -> "章节图片质量"
|
||||
INDONESIAN -> "Kualitas gambar"
|
||||
SPANISH -> "Calidad de imagen del capítulo"
|
||||
else -> "Chapter image quality"
|
||||
}
|
||||
|
||||
|
@ -58,24 +68,28 @@ class BilibiliIntl(lang: String) {
|
|||
val imageFormatPrefTitle: String = when (lang) {
|
||||
CHINESE, SIMPLIFIED_CHINESE -> "章节图片格式"
|
||||
INDONESIAN -> "Format gambar"
|
||||
SPANISH -> "Formato de la imagen del capítulo"
|
||||
else -> "Chapter image format"
|
||||
}
|
||||
|
||||
val sortInterest: String = when (lang) {
|
||||
CHINESE, SIMPLIFIED_CHINESE -> "为你推荐"
|
||||
INDONESIAN -> "Kamu Mungkin Suka"
|
||||
SPANISH -> "Sugerencia"
|
||||
else -> "Interest"
|
||||
}
|
||||
|
||||
val sortPopular: String = when (lang) {
|
||||
CHINESE, SIMPLIFIED_CHINESE -> "人气推荐"
|
||||
INDONESIAN -> "Populer"
|
||||
SPANISH -> "Popularidad"
|
||||
else -> "Popular"
|
||||
}
|
||||
|
||||
val sortUpdated: String = when (lang) {
|
||||
CHINESE, SIMPLIFIED_CHINESE -> "更新时间"
|
||||
INDONESIAN -> "Terbaru"
|
||||
SPANISH -> "Actualización"
|
||||
else -> "Updated"
|
||||
}
|
||||
|
||||
|
@ -92,36 +106,42 @@ class BilibiliIntl(lang: String) {
|
|||
val statusAll: String = when (lang) {
|
||||
CHINESE, SIMPLIFIED_CHINESE -> "全部"
|
||||
INDONESIAN -> "Semua"
|
||||
SPANISH -> "Todos"
|
||||
else -> "All"
|
||||
}
|
||||
|
||||
val statusOngoing: String = when (lang) {
|
||||
CHINESE, SIMPLIFIED_CHINESE -> "连载中"
|
||||
INDONESIAN -> "Berlangsung"
|
||||
SPANISH -> "En curso"
|
||||
else -> "Ongoing"
|
||||
}
|
||||
|
||||
val statusComplete: String = when (lang) {
|
||||
CHINESE, SIMPLIFIED_CHINESE -> "已完结"
|
||||
INDONESIAN -> "Tamat"
|
||||
SPANISH -> "Finalizado"
|
||||
else -> "Completed"
|
||||
}
|
||||
|
||||
val priceAll: String = when (lang) {
|
||||
CHINESE, SIMPLIFIED_CHINESE -> "全部"
|
||||
INDONESIAN -> "Semua"
|
||||
SPANISH -> "Todos"
|
||||
else -> "All"
|
||||
}
|
||||
|
||||
val priceFree: String = when (lang) {
|
||||
CHINESE, SIMPLIFIED_CHINESE -> "免费"
|
||||
INDONESIAN -> "Bebas"
|
||||
SPANISH -> "Gratis"
|
||||
else -> "Free"
|
||||
}
|
||||
|
||||
val pricePaid: String = when (lang) {
|
||||
CHINESE, SIMPLIFIED_CHINESE -> "付费"
|
||||
INDONESIAN -> "Dibayar"
|
||||
SPANISH -> "Pago"
|
||||
else -> "Paid"
|
||||
}
|
||||
|
||||
|
@ -132,11 +152,13 @@ class BilibiliIntl(lang: String) {
|
|||
|
||||
val failedToRefreshToken: String = when (lang) {
|
||||
CHINESE, SIMPLIFIED_CHINESE -> "无法刷新令牌。请打开 WebView 修正错误。"
|
||||
SPANISH -> "Error al actualizar el token. Abra el WebView para solucionar este error."
|
||||
else -> "Failed to refresh the token. Open the WebView to fix this error."
|
||||
}
|
||||
|
||||
val failedToGetCredential: String = when (lang) {
|
||||
CHINESE, SIMPLIFIED_CHINESE -> "无法获取阅读章节所需的凭证。"
|
||||
SPANISH -> "Erro al obtener la credencial para leer el capítulo."
|
||||
else -> "Failed to get the credential to read the chapter."
|
||||
}
|
||||
|
||||
|
@ -145,5 +167,6 @@ class BilibiliIntl(lang: String) {
|
|||
const val ENGLISH = "en"
|
||||
const val INDONESIAN = "id"
|
||||
const val SIMPLIFIED_CHINESE = "zh-Hans"
|
||||
const val SPANISH = "es"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue