stevenyomi 205d95cc07 Migrate to lib-multisrc (#1237)
* adjustments

* Run generator

* Remove multisrc project

* add lib dependencies

* Remove multisrc from build scripts

* Remove build condition
2024-02-18 20:10:37 +00:00

52 lines
2.0 KiB
Kotlin
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package eu.kanade.tachiyomi.multisrc.colamanga
class ColaMangaIntl(private val lang: String) {
val rateLimitPrefTitle = when (lang) {
"zh" -> "主站连接限制"
else -> "Rate limit"
}
fun rateLimitPrefSummary(defaultValue: String) = when (lang) {
"zh" -> "此值影响主站的连接请求量。降低此值可以减少获得HTTP 403错误的几率但加载速度也会变慢。需要重启软件以生效。\n默认值:$defaultValue\n当前值:%s"
else -> "Number of requests made to the website. Lowering this value may reduce the chance of getting HTTP 403. Tachiyomi restart required.\nDefault value: $defaultValue\nCurrent value: %s"
}
val rateLimitPeriodPrefTitle = when (lang) {
"zh" -> "主站连接限制期"
else -> "Rate limit period"
}
fun rateLimitPeriodPrefSummary(defaultValue: String) = when (lang) {
"zh" -> "此值影响主站点连接限制时的延迟毫秒。增加这个值可能会减少出现HTTP 403错误的机会但加载速度也会变慢。需要重启软件以生效。\n默认值:$defaultValue\n当前值:%s"
else -> "Time in milliseconds to wait after using up all allowed requests. Lowering this value may reduce the chance of getting HTTP 403. Tachiyomi restart required.\nDefault value: $defaultValue\nCurrent value: %s"
}
val timedOutDecryptingImageLinks = when (lang) {
else -> "Timed out decrypting image links"
}
val couldNotDeobufscateScript = when (lang) {
else -> "Could not deobfuscate script"
}
fun couldNotFindKey(forKeyType: String) = when (lang) {
else -> "Could not find key for keyType $forKeyType"
}
val searchType = when (lang) {
"zh" -> "搜索类型"
else -> "Search type"
}
val searchTypeFuzzy = when (lang) {
"zh" -> "模糊"
else -> "Fuzzy"
}
val searchTypeExact = when (lang) {
"zh" -> "精确"
else -> "Exact"
}
}