MangaDex: Add Sort by Rating (#12204)
* Add Sort by Rating to MangaDex Browse * Increment mangadex.extVersionCode * Add Portuguese translations for "Rating" Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com>
This commit is contained in:
parent
a3ef42b007
commit
a552234fd3
|
@ -6,7 +6,7 @@ ext {
|
|||
extName = 'MangaDex'
|
||||
pkgNameSuffix = 'all.mangadex'
|
||||
extClass = '.MangaDexFactory'
|
||||
extVersionCode = 164
|
||||
extVersionCode = 165
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
|
|
@ -170,7 +170,8 @@ class MangaDexFilters {
|
|||
Sortable(intl.sortContentCreatedAt, "createdAt"),
|
||||
Sortable(intl.sortContentInfoUpdatedAt, "updatedAt"),
|
||||
Sortable(intl.sortRelevance, "relevance"),
|
||||
Sortable(intl.sortYear, "year")
|
||||
Sortable(intl.sortYear, "year"),
|
||||
Sortable(intl.sortRating, "rating")
|
||||
)
|
||||
|
||||
class SortFilter(intl: MangaDexIntl, private val sortables: Array<Sortable>) :
|
||||
|
|
|
@ -620,6 +620,11 @@ class MangaDexIntl(val lang: String) {
|
|||
else -> "Year"
|
||||
}
|
||||
|
||||
val sortRating: String = when (availableLang) {
|
||||
BRAZILIAN_PORTUGUESE, PORTUGUESE -> "Nota"
|
||||
else -> "Rating"
|
||||
}
|
||||
|
||||
val hasAvailableChapters: String = when (availableLang) {
|
||||
BRAZILIAN_PORTUGUESE, PORTUGUESE -> "Há capítulos disponíveis"
|
||||
else -> "Has available chapters"
|
||||
|
|
Loading…
Reference in New Issue