mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-02-01 06:01:03 +00:00
Title😂😂 (#109)
* small changes * Changes * new nest button for settings * full language name in language selector * tv banner * hide lang selector if there is one language only * and some small changes * import fix * alter dialog * wont refresh if nothing is changed
This commit is contained in:
@@ -24,7 +24,35 @@ class LanguageMapper {
|
||||
"vi" -> "Vietnamese"
|
||||
"zh" -> "Chinese"
|
||||
"zh-Hans" -> "Chinese (Simplified)"
|
||||
else -> ""
|
||||
"es-419" -> "Spanish (Latin America)"
|
||||
"hu" -> "Hungarian"
|
||||
"zh-habt" -> "Chinese (Hakka)"
|
||||
"zh-hant" -> "Chinese (Traditional)"
|
||||
"ca" -> "Catalan"
|
||||
"bg" -> "Bulgarian"
|
||||
"fa" -> "Persian"
|
||||
"mn" -> "Mongolian"
|
||||
"ro" -> "Romanian"
|
||||
"he" -> "Hebrew"
|
||||
"ms" -> "Malay"
|
||||
"tl" -> "Tagalog"
|
||||
"hi" -> "Hindi"
|
||||
"my" -> "Burmese"
|
||||
"cs" -> "Czech"
|
||||
"pt" -> "Portuguese"
|
||||
"nl" -> "Dutch"
|
||||
"sv" -> "Swedish"
|
||||
"bn" -> "Bengali"
|
||||
"no" -> "Norwegian"
|
||||
"el" -> "Greek"
|
||||
"sr" -> "Serbian"
|
||||
"da" -> "Danish"
|
||||
"lt" -> "Lithuanian"
|
||||
"ml" -> "Malayalam"
|
||||
"mr" -> "Marathi"
|
||||
"ta" -> "Tamil"
|
||||
"te" -> "Telugu"
|
||||
else -> code
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@ import ani.dantotsu.App.Companion.context
|
||||
import ani.dantotsu.R
|
||||
import ani.dantotsu.connections.anilist.Anilist
|
||||
import ani.dantotsu.databinding.ActivityImageSearchBinding
|
||||
import ani.dantotsu.initActivity
|
||||
import ani.dantotsu.media.MediaDetailsActivity
|
||||
import ani.dantotsu.others.LangSet
|
||||
import ani.dantotsu.themes.ThemeManager
|
||||
@@ -49,6 +50,7 @@ class ImageSearchActivity : AppCompatActivity() {
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
LangSet.setLocale(this)
|
||||
initActivity(this)
|
||||
ThemeManager(this).applyTheme()
|
||||
binding = ActivityImageSearchBinding.inflate(layoutInflater)
|
||||
setContentView(binding.root)
|
||||
|
||||
Reference in New Issue
Block a user