General improvements (#316)
* Added support for right text alignment in epub reader * Added tabs management to PDF navigation drawer * Implemented unified selection menu placement logic * Added reset functionality for toolbar customization * Improved highlight filtering in epub pagination * Migrated hardcoded UI strings to string resources * Extracted desktop application logic from Main.kt into modular files * Refactored Main.kt by extracting PDF and EPUB logic into specialized files * Added Spanish language support * Added system default option to app language selection
This commit is contained in:
parent
759d4b73a0
commit
056485a140
77 changed files with 9184 additions and 5947 deletions
|
|
@ -2,6 +2,25 @@ package com.aryan.reader
|
|||
|
||||
import androidx.annotation.StringRes
|
||||
|
||||
data class AppLanguageOption(
|
||||
val tag: String?,
|
||||
@StringRes val labelRes: Int
|
||||
)
|
||||
|
||||
val systemAppLanguageOption = AppLanguageOption(null, R.string.language_system_default)
|
||||
|
||||
val supportedAppLanguageOptions = listOf(
|
||||
AppLanguageOption("en", R.string.language_english),
|
||||
AppLanguageOption("ar", R.string.language_arabic),
|
||||
AppLanguageOption("de", R.string.language_german),
|
||||
AppLanguageOption("tr", R.string.language_turkish),
|
||||
AppLanguageOption("fr", R.string.language_french),
|
||||
AppLanguageOption("ru", R.string.language_russian),
|
||||
AppLanguageOption("es", R.string.language_spanish)
|
||||
)
|
||||
|
||||
val appLanguageSelectionOptions = listOf(systemAppLanguageOption) + supportedAppLanguageOptions
|
||||
|
||||
val AddBooksSource.labelRes: Int
|
||||
@StringRes get() = when (this) {
|
||||
AddBooksSource.UNSHELVED -> R.string.add_books_source_unshelved
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue