Misc cleanups (#1921)

* Clean up resources

* Clean up code
This commit is contained in:
FooIbar authored and GitHub committed 2024-11-11 20:39:45 +08:00
1 parent c88c252587
commit 16fa52790c
28 files changed
+21 -166

No files matched your search

@@ -185,7 +185,7 @@ private class AnchoredHorizontalDraggableNode<T>(
}
}
override fun onDragStarted(startedPosition: Offset) { }
override fun onDragStarted(startedPosition: Offset) = Unit
override fun onDragStopped(velocity: Velocity) {
if (!isAttached) return
@@ -13,7 +13,7 @@ object EhCookieStore : CookiesStorage {
fun hasSignedIn(): Boolean = getCookies(EhUrl.HOST_E)?.run {
containsKey(KEY_IPB_MEMBER_ID) && containsKey(KEY_IPB_PASS_HASH)
} ?: false
} == true
const val KEY_IPB_MEMBER_ID = "ipb_member_id"
const val KEY_IPB_PASS_HASH = "ipb_pass_hash"
@@ -55,8 +55,8 @@ object EhFilter : CoroutineScope {
suspend fun needTags() = filters.await().any { it.enable && (it.mode == FilterMode.TAG || it.mode == FilterMode.TAG_NAMESPACE) }
suspend fun filterTitle(info: GalleryInfo) = anyActive(FilterMode.TITLE) { info.title.orEmpty().contains(it.text, true) }
suspend fun filterUploader(info: GalleryInfo) = anyActive(FilterMode.UPLOADER) { it.text == info.uploader }
suspend fun filterTag(info: GalleryInfo) = info.simpleTags?.any { tag -> anyActive(FilterMode.TAG) { matchTag(tag, it.text.lowercase()) } } ?: false
suspend fun filterTagNamespace(info: GalleryInfo) = info.simpleTags?.any { tag -> anyActive(FilterMode.TAG_NAMESPACE) { matchTagNamespace(tag, it.text.lowercase()) } } ?: false
suspend fun filterTag(info: GalleryInfo) = info.simpleTags?.any { tag -> anyActive(FilterMode.TAG) { matchTag(tag, it.text.lowercase()) } } == true
suspend fun filterTagNamespace(info: GalleryInfo) = info.simpleTags?.any { tag -> anyActive(FilterMode.TAG_NAMESPACE) { matchTagNamespace(tag, it.text.lowercase()) } } == true
suspend fun filterCommenter(commenter: String) = anyActive(FilterMode.COMMENTER) { it.text == commenter }
suspend fun filterComment(comment: String) = anyActive(FilterMode.COMMENT) { regex(it).containsMatchIn(comment) }
}
@@ -400,8 +400,6 @@ object GalleryDetailParser {
hasMore = true
}
}
override fun tail(node: Node, depth: Int) {}
},
chd!!,
)
@@ -41,7 +41,7 @@ object ParserUtils {
fun parseDate(str: String): Long = formatter.parse(str).toEpochMillis()
fun trim(str: String?): String = str?.unescapeXml()?.trim() ?: ""
fun trim(str: String?): String = str?.unescapeXml()?.trim().orEmpty()
fun parseInt(str: String?, defValue: Int): Int = trim(str).replace(",", "").toIntOrDefault(defValue)
@@ -284,7 +284,7 @@ class SpiderDen(val info: GalleryInfo) {
FileUtils.getExtensionFromFilename(source.name)!!
}
override fun close() {}
override fun close() = Unit
}
}
@@ -617,7 +617,7 @@ class SpiderQueen private constructor(val galleryInfo: GalleryInfo) : CoroutineS
originImageUrl += "?nl=$skipHathKey"
}
val pageUrl = EhUrl.getPageUrl(spiderInfo.gid, index, pToken)
EhEngine.getOriginalImageUrl(originImageUrl!!, pageUrl) to EhUrl.referer
EhEngine.getOriginalImageUrl(originImageUrl!!, pageUrl) to referer
} else {
// Original image url won't change, so only set forceHtml in this case
forceHtml = true
@@ -18,7 +18,7 @@ import androidx.compose.ui.res.stringResource
import com.hippo.ehviewer.R
import kotlinx.coroutines.launch
private val tabs = arrayOf(
private val tabs = intArrayOf(
R.string.pref_category_reading_mode,
R.string.pref_category_general,
R.string.custom_filter,
@@ -19,5 +19,5 @@ fun DownloadsFilterState.take(info: DownloadInfo) = mode.take(info, label) &&
with(info) {
title.containsIgnoreCase(keyword) ||
titleJpn.containsIgnoreCase(keyword) ||
simpleTags?.any { it.containsIgnoreCase(keyword) } ?: false
simpleTags?.any { it.containsIgnoreCase(keyword) } == true
}
@@ -261,7 +261,7 @@ fun AnimatedVisibilityScope.GalleryDetailScreen(args: GalleryDetailScreenArgs, n
CreateDocument("application/vnd.comicbook+zip"),
EhUtils.getSuitableTitle(info) + ".cbz",
)
val dirname = downloadInfo?.dirname
val dirname = downloadInfo.dirname
if (uri != null && dirname != null) {
val file = uri.toOkioPath()
val msg = runCatching {
@@ -64,7 +64,7 @@ open class TextActionModeCallback(
return true
}
override fun onDestroyActionMode(mode: ActionMode) {}
override fun onDestroyActionMode(mode: ActionMode) = Unit
override fun onGetContentRect(mode: ActionMode, view: View, outRect: PlatformRect) {
outRect.set(rect.left.toInt(), rect.top.toInt(), rect.right.toInt(), rect.bottom.toInt())
@@ -29,15 +29,13 @@ import com.hippo.ehviewer.ui.MainActivity
import splitties.systemservices.clipboardManager
fun copyTextToClipboard(text: CharSequence?, isSensitive: Boolean) {
clipboardManager.apply {
setPrimaryClip(
ClipData.newPlainText(null, text).apply {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU && isSensitive) {
description.extras = persistableBundleOf(ClipDescription.EXTRA_IS_SENSITIVE to true)
}
},
)
}
clipboardManager.setPrimaryClip(
ClipData.newPlainText(null, text).apply {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU && isSensitive) {
description.extras = persistableBundleOf(ClipDescription.EXTRA_IS_SENSITIVE to true)
}
},
)
}
fun Context.addTextToClipboard(text: CharSequence?, useToast: Boolean = false) {
@@ -28,7 +28,7 @@ object FileUtils {
// ext4 through a FUSE layer, so use that limit.
private const val MAX_FILENAME_BYTES = 255
fun ensureDirectory(file: File?) = file?.let { if (it.exists()) it.isDirectory else it.mkdirs() } ?: false
fun ensureDirectory(file: File?) = file?.let { if (it.exists()) it.isDirectory else it.mkdirs() } == true
/**
* Convert byte to human readable string.<br></br>
@@ -8,6 +8,6 @@ import splitties.init.appCtx
fun detectAds(index: Int, size: Int) = index > size - 10 && Settings.stripExtraneousAds.value
val GalleryInfo.hasAds
get() = simpleTags?.any { "extraneous ads" in it } ?: false
get() = simpleTags?.any { "extraneous ads" in it } == true
val AdsPlaceholderFile = appCtx.filesDir.toOkioPath() / "AdsPlaceholder"
@@ -12,4 +12,4 @@ fun String.toLongOrDefault(defaultValue: Long): Long = toLongOrNull() ?: default
fun String.toFloatOrDefault(defaultValue: Float): Float = toFloatOrNull() ?: defaultValue
fun String?.containsIgnoreCase(other: String) = this?.contains(other, true) ?: false
fun String?.containsIgnoreCase(other: String) = this?.contains(other, true) == true
-8
View File
@@ -92,9 +92,6 @@
<string name="no_comments">Kein Kommentar</string>
<string name="no_more_comments">Keine weiteren Kommentare</string>
<string name="more_comment">Weitere Kommentare</string>
<string name="no_previews">Keine Vorschau</string>
<string name="no_more_previews">Keine weiteren Vorschauen</string>
<string name="more_previews">Weitere Vorschauen</string>
<string name="refresh">Neu laden</string>
<string name="open_in_other_app">Öffnen mit …</string>
<string name="rate_successfully">Bewertung erfolgreich</string>
@@ -159,7 +156,6 @@
<string name="cancel_vote_down_successfully">Die negative Stimmung wurde abgebrochen</string>
<string name="vote_failed">Stimmung gescheitert</string>
<string name="check_vote_status">Details der Stimmungen anzeigen</string>
<string name="gallery_previews">Vorschauen der Galerie</string>
<string name="go_to">Gehe zu</string>
<string name="scene_download_title">Download - %s</string>
<string name="no_download_info">Downloads werden hier angezeigt</string>
@@ -231,15 +227,11 @@
<string name="settings_eh_detail_size">Größe der Details</string>
<string name="settings_eh_detail_size_long">Lange</string>
<string name="settings_eh_detail_size_short">Kurz</string>
<string name="settings_eh_thumb_resolution">Auflösung der Miniaturbilder</string>
<string name="settings_eh_thumb_resolution_summary">Nun %s. Mit abnormale Auflösung kann die Miniaturbilder nicht normalerweise geladen werden.</string>
<string name="settings_eh_thumb_resolution_auto">Automatisch</string>
<string name="settings_advanced_app_language_title">Sprache der App (Language)</string>
<string name="torrent_count">Torrent (%d)</string>
<string name="settings_eh_show_jpn_title">Japanische Titel anzeigen</string>
<string name="settings_eh_filter">Galerie-Blocker</string>
<string name="settings_eh_filter_summary">Nach Titel, Uploader order Etiketten die unerwünschten Galerien verstecken</string>
<string name="settings_read_volume_page">Seiten mit Lautstärketaste umblättern</string>
<string name="settings_download">Download</string>
<string name="settings_download_download_location">Downloadziel</string>
<string name="settings_download_cant_get_download_location">Downloadziel konnte nicht geladen werden</string>
-9
View File
@@ -114,9 +114,6 @@
<string name="no_comments">Sin comentarios</string>
<string name="no_more_comments">No hay más comentarios</string>
<string name="more_comment">Más comentarios</string>
<string name="no_previews">Sin vistas previas</string>
<string name="no_more_previews">No hay más vistas previas</string>
<string name="more_previews">Más vistas previas</string>
<string name="refresh">Actualizar</string>
<string name="open_in_other_app">Abrir en otra aplicación</string>
<string name="rate_successfully">Valoración completada</string>
@@ -181,7 +178,6 @@
<string name="check_vote_status">Verificar estado del voto</string>
<!-- Gallery Previews -->
<string name="gallery_previews">Vista previa de la galería</string>
<string name="go_to">Ir a</string>
<!-- Download -->
@@ -251,9 +247,6 @@
<string name="settings_eh_detail_size">Tamaño del detalle</string>
<string name="settings_eh_detail_size_long">Largo</string>
<string name="settings_eh_detail_size_short">Corto</string>
<string name="settings_eh_thumb_resolution">Resolución de vista previa</string>
<string name="settings_eh_thumb_resolution_summary">%s, las resoluciones especiales podrían causar errores en la vista previa</string>
<string name="settings_eh_thumb_resolution_auto">Automático</string>
<string name="settings_eh_show_jpn_title">Mostrar títulos en japonés</string>
<string name="settings_eh_show_jpn_title_summary">Es necesario habilitar los títulos en japonés en la propia página de EHentai</string>
<string name="settings_eh_show_gallery_pages">Mostrar número de páginas de la galería</string>
@@ -261,8 +254,6 @@
<string name="settings_eh_filter">Filtrado de galerías</string>
<string name="settings_eh_filter_summary">Filtrado de galerías por título, uploader y etiquetas. Para más detalles presiona el ícono (i) en la parte superior del menú</string>
<string name="settings_read_volume_page">Pasar páginas con botón del volumen</string>
<string name="settings_download">Descargas</string>
<string name="settings_download_download_location">Ruta de descargas</string>
<string name="settings_download_cant_get_download_location">No se puede obtener ruta de descargas</string>
-9
View File
@@ -123,9 +123,6 @@
<string name="no_comments">Aucun commentaire</string>
<string name="no_more_comments">Pas d\'autres commentaires</string>
<string name="more_comment">Voir plus de commentaires</string>
<string name="no_previews">Aucun aperçu</string>
<string name="no_more_previews">Pas d\'autres aperçus</string>
<string name="more_previews">Voir plus d\'aperçus</string>
<string name="refresh">Rafraîchir</string>
<string name="open_in_other_app">Ouvrir avec une autre appli</string>
<string name="rate_successfully">Noté avec succès</string>
@@ -196,7 +193,6 @@
<string name="check_vote_status">Voir les détails des votes</string>
<!-- Gallery Previews -->
<string name="gallery_previews">Aperçus de la galerie</string>
<string name="go_to">Aller à</string>
<!-- Download -->
@@ -286,15 +282,10 @@
<string name="settings_eh_detail_size">Taille des détails</string>
<string name="settings_eh_detail_size_long">Long</string>
<string name="settings_eh_detail_size_short">Court</string>
<string name="settings_eh_thumb_resolution">Résolution des miniatures</string>
<string name="settings_eh_thumb_resolution_summary">Auctuellement %s. Certaines résolutions spéciales êmpechent de les charger correctement.</string>
<string name="settings_eh_thumb_resolution_auto">Auto</string>
<string name="settings_eh_show_jpn_title">Montrer les titres japonais</string>
<string name="settings_eh_filter">Bloqueur des galeries</string>
<string name="settings_eh_filter_summary">Filtrer les galerie par les titres, les uploaders ou les tags</string>
<string name="settings_read_volume_page">Tourner la page avec les Volumes</string>
<!-- My Tags Activity -->
<string name="my_tags">Tags suivis</string>
-13
View File
@@ -118,9 +118,6 @@
<string name="no_comments">コメントなし</string>
<string name="no_more_comments">コメントはこれ以上ありません</string>
<string name="more_comment">他のコメントを見る</string>
<string name="no_previews">プレビューなし</string>
<string name="no_more_previews">プレビューはこれ以上ありません</string>
<string name="more_previews">他のプレビューを見る</string>
<string name="refresh">更新</string>
<string name="view_original">オリジナルの画像を表示</string>
<string name="open_in_other_app">他のアプリで開く</string>
@@ -206,7 +203,6 @@
<string name="format_url">URL</string>
<string name="format_plain">プレーンテキスト</string>
<!-- Gallery Previews -->
<string name="gallery_previews">ギャラリーのプレビュー</string>
<string name="go_to">ページに移動</string>
<!-- Download -->
<string name="scene_download_title">ダウンロード - %s</string>
@@ -301,9 +297,6 @@
<string name="settings_eh_detail_size_long">長い</string>
<string name="settings_eh_detail_size_short">短い</string>
<string name="settings_eh_thumb_columns">サムネイルのカラム数</string>
<string name="settings_eh_thumb_resolution">サムネイル解像度</string>
<string name="settings_eh_thumb_resolution_summary">現在の解像度は「%s」です。解像度によってはサムネイルの取得に失敗する場合があります。</string>
<string name="settings_eh_thumb_resolution_auto">自動</string>
<string name="settings_eh_force_eh_thumb">E-Hentai サムネイルサーバーを使用する</string>
<string name="settings_eh_force_eh_thumb_summary">サムネイルの読み込みに問題がある場合は無効化してください</string>
<string name="settings_eh_show_jpn_title">日本語のタイトルを表示</string>
@@ -320,10 +313,6 @@
<string name="settings_eh_tag_translations_source_url">https://placeholder</string>
<string name="settings_eh_filter">ギャラリーをブロック</string>
<string name="settings_eh_filter_summary">タイトル、アップローダー、タグ、コメントの投稿者またはギャラリーをブロックします</string>
<string name="settings_read_volume_page">音量ボタンでページをめくる</string>
<string name="settings_read_volume_page_fast">高速</string>
<string name="settings_read_volume_page_slow">低速</string>
<string name="settings_read_reverse_volume">音量ボタンを入れ替える</string>
<string name="settings_block_extraneous_ads">[試験的] 関係のない広告をブロック</string>
<string name="settings_ads_placeholder">[任意] 広告を置換するプレースホルダーを選択</string>
<string name="settings_download">ダウンロード</string>
@@ -505,8 +494,6 @@
<string name="preload_thumb_aggressively">サムネイルを積極的にプリロードする</string>
<string name="animate_items">リスト項目のアニメーション</string>
<string name="animate_items_summary">クラッシュやフレームドロップが発生する場合はこれを無効化してください</string>
<string name="desktop_site">デスクトップのサイト</string>
<string name="desktop_site_summary">デフォルトの画像解像度を高くします</string>
<string name="auto_updates">自動で更新を確認する</string>
<string name="update_frequency_never">しない</string>
<string name="update_frequency_daily">毎日</string>
-9
View File
@@ -116,9 +116,6 @@
<string name="no_comments">코멘트 없음</string>
<string name="no_more_comments">코멘트가 더 없음</string>
<string name="more_comment">코멘트 더 보기</string>
<string name="no_previews">미리 보기 없음</string>
<string name="no_more_previews">미리 보기가 더 없음</string>
<string name="more_previews">더 불러오기</string>
<string name="refresh">새로고침</string>
<string name="open_in_other_app">다른 앱에서 열기</string>
<string name="rate_successfully">평가를 남겼습니다.</string>
@@ -173,7 +170,6 @@
<string name="check_vote_status">추천/비추천 상태 보기</string>
<!-- Gallery Previews -->
<string name="gallery_previews">갤러리 미리 보기</string>
<string name="go_to">이동</string>
<!-- Download -->
@@ -258,9 +254,6 @@
<string name="settings_eh_detail_size">상세 정보 크기</string>
<string name="settings_eh_detail_size_long">길게</string>
<string name="settings_eh_detail_size_short">짧게</string>
<string name="settings_eh_thumb_resolution">섬네일 해상도</string>
<string name="settings_eh_thumb_resolution_summary">특정 해상도로 설정하면 섬네일을 불러오지 못할 수 있습니다. 현재 설정\u003a \u005b%s\u005d</string>
<string name="settings_eh_thumb_resolution_auto">자동</string>
<string name="settings_eh_show_jpn_title">일본어 제목 표시</string>
<string name="settings_eh_show_gallery_pages">갤러리 페이지 수 표시</string>
<string name="settings_eh_show_gallery_pages_summary">갤러리 목록에 해당 갤러리의 페이지 수를 표시합니다</string>
@@ -269,8 +262,6 @@
<string name="settings_eh_tag_translations_source">Placeholder</string>
<string name="settings_eh_tag_translations_source_url">https://placeholder</string>
<string name="settings_read_volume_page">볼륨 키로 페이지 넘기기</string>
<string name="settings_download">다운로드</string>
<string name="settings_download_download_location">다운로드 위치</string>
<string name="settings_download_cant_get_download_location">다운로드 위치를 가져올 수 없습니다.</string>
@@ -45,12 +45,9 @@
<string name="duplicate_name">Dette navnet er allerede i bruk.</string>
<string name="star_5">5 stjerner</string>
<string name="no_tags">Ingen etiketter</string>
<string name="no_previews">Ingen forhåndsvisninger</string>
<string name="no_more_previews">Ingen flere forhåndsvisninger</string>
<string name="no_more_comments">Ingen flere kommentarer</string>
<string name="open_in_other_app">Åpne med et annet program</string>
<string name="torrents">Torrenter</string>
<string name="more_previews">Flere forhåndsvisninger</string>
<string name="refresh">Gjenoppfrisk</string>
<string name="get_it">Skjønner</string>
<string name="keyword_search">Nøkkelordssøk</string>
@@ -121,7 +118,6 @@
<string name="edit_comment">Rediger kommentar</string>
<string name="stat_509_alert_title">509-advarsel</string>
<string name="stat_download_done_title">Nedlasting fullført</string>
<string name="gallery_previews">Galleriforhåndsvisninger</string>
<string name="download_state_none">Pauset</string>
<string name="download_state_downloading">Laster ned</string>
<string name="download_state_downloaded">Nedlastet</string>
@@ -175,7 +171,6 @@
<string name="edge_nav">Kant</string>
<string name="scale_type_stretch">Strekk</string>
<string name="right_and_left_nav">Høyre og venstre</string>
<string name="settings_eh_thumb_resolution_auto">Automatisk</string>
<string name="app_language_system">Systemspråk (forvalg)</string>
<string name="error_something_wrong_happened">Noe gikk galt</string>
<string name="just_now">Akkurat nå</string>
-9
View File
@@ -118,9 +118,6 @@
<string name="no_comments">ไม่มีความคิดเห็น</string>
<string name="no_more_comments">ไม่มีความเห็นเพิ่มเติมแล้ว</string>
<string name="more_comment">ความคิดเห็นเพิ่มเติม</string>
<string name="no_previews">ไม่มีรูปตัวอย่าง</string>
<string name="no_more_previews">ไม่มีรูปตัวอย่างเพิ่มเติมอีกแล้ว</string>
<string name="more_previews">มีรูปตัวอย่าง</string>
<string name="refresh">รีเฟรช</string>
<string name="open_in_other_app">เปิดด้วยแอปอื่น</string>
<string name="rate_successfully">ให้คะแนนเรียบร้อยแล้ว</string>
@@ -188,7 +185,6 @@
<string name="check_vote_status">ดูรายละเอียดการโหวต</string>
<!-- Gallery Previews -->
<string name="gallery_previews">ตัวอย่างแกลเลอรี่</string>
<string name="go_to">ไปที่</string>
<!-- Download -->
@@ -273,9 +269,6 @@
<string name="settings_eh_detail_size">ขนาดของรายละเอียด</string>
<string name="settings_eh_detail_size_long">อย่างยาว</string>
<string name="settings_eh_detail_size_short">อย่างสั้น</string>
<string name="settings_eh_thumb_resolution">ความละเอียดภาพตัวอย่าง</string>
<string name="settings_eh_thumb_resolution_summary">ค่าตอนนี้เป็น %s. การตั้งความละเอียดที่แน่นอนอาจจะส่งผลต่อการโหลดตัวอย่างที่อาจจะไม่สำเร็จด้วย</string>
<string name="settings_eh_thumb_resolution_auto">อัตโนมัติ</string>
<string name="settings_eh_show_jpn_title">แสดงชื่อเรื่องญี่ปุ่น</string>
<string name="settings_eh_show_gallery_pages">แสดงจำนวนหน้าของแกลเลอรี่</string>
<string name="settings_eh_show_gallery_pages_summary">แสดงจำนวนหน้าที่มีอยู่ในแต่ละแกลเลอรี่</string>
@@ -284,8 +277,6 @@
<string name="settings_eh_tag_translations_source">Placeholder</string>
<string name="settings_eh_tag_translations_source_url">https://placeholder</string>
<string name="settings_read_volume_page">ใช้ปุ่มปรับเสียงเพื่อเปลี่ยนหน้า</string>
<string name="settings_download">การดาวน์โหลด</string>
<string name="settings_download_download_location">ตำแหน่งแหล่งดาวน์โหลด</string>
<string name="settings_download_cant_get_download_location">ไม่สามารถเข้าถึงแหล่งดาวน์โหลดได้</string>
@@ -114,9 +114,6 @@
<string name="no_comments">暂无评论</string>
<string name="no_more_comments">已显示所有评论</string>
<string name="more_comment">查看更多评论</string>
<string name="no_previews">没有预览</string>
<string name="no_more_previews">已显示所有预览</string>
<string name="more_previews">查看更多预览</string>
<string name="refresh">刷新</string>
<string name="view_original">查看原图</string>
<string name="open_in_other_app">在其他应用中打开</string>
@@ -202,7 +199,6 @@
<string name="format_url">链接</string>
<string name="format_plain">纯文本</string>
<!-- Gallery Previews -->
<string name="gallery_previews">画廊预览</string>
<string name="go_to">跳页</string>
<!-- Download -->
<string name="scene_download_title">下载 - %s</string>
@@ -298,9 +294,6 @@
<string name="settings_eh_detail_size_long">长</string>
<string name="settings_eh_detail_size_short">短</string>
<string name="settings_eh_thumb_columns">缩略图列数</string>
<string name="settings_eh_thumb_resolution">缩略图分辨率</string>
<string name="settings_eh_thumb_resolution_summary">%s,指定分辨率可能使获取缩略图失败</string>
<string name="settings_eh_thumb_resolution_auto">自动</string>
<string name="settings_eh_force_eh_thumb">使用 e-hentai 缩略图服务器</string>
<string name="settings_eh_force_eh_thumb_summary">若缩略图加载失败可尝试关闭此项</string>
<string name="settings_eh_show_jpn_title">显示日文标题</string>
@@ -317,10 +310,6 @@
<string name="settings_eh_tag_translations_source_url">https://github.com/EhTagTranslation/Editor/wiki</string>
<string name="settings_eh_filter">屏蔽列表</string>
<string name="settings_eh_filter_summary">根据标题、上传者、标签、评论者屏蔽画廊或评论</string>
<string name="settings_read_volume_page">使用音量键翻页</string>
<string name="settings_read_volume_page_fast">快</string>
<string name="settings_read_volume_page_slow">慢</string>
<string name="settings_read_reverse_volume">翻转音量键</string>
<string name="settings_block_extraneous_ads">[实验性] 屏蔽外部广告</string>
<string name="settings_ads_placeholder">[可选] 选择替换外部广告的图片</string>
<string name="settings_download">下载</string>
@@ -501,8 +490,6 @@
<string name="preload_thumb_aggressively">激进地预载缩略图</string>
<string name="animate_items">列表项目动画</string>
<string name="animate_items_summary">如遇崩溃/掉帧请尝试禁用此项</string>
<string name="desktop_site">桌面版网站</string>
<string name="desktop_site_summary">更高的默认图片分辨率</string>
<string name="auto_updates">自动检查更新</string>
<string name="update_frequency_never">从不</string>
<string name="update_frequency_daily">每天</string>
@@ -129,9 +129,6 @@
<string name="no_comments">暫無評論</string>
<string name="no_more_comments">已顯示所有評論</string>
<string name="more_comment">查看更多評論</string>
<string name="no_previews">沒有預覽</string>
<string name="no_more_previews">已顯示所有預覽</string>
<string name="more_previews">查看更多預覽</string>
<string name="refresh">刷新</string>
<string name="open_in_other_app">在其他應用中打開</string>
<string name="rate_successfully">評分成功</string>
@@ -207,7 +204,6 @@
<string name="last_edited">上次修改時間:%s</string>
<!-- Gallery Previews -->
<string name="gallery_previews">畫廊預覽</string>
<string name="go_to">跳頁</string>
<!-- Download -->
@@ -305,9 +301,6 @@
<string name="settings_eh_detail_size_long">長</string>
<string name="settings_eh_detail_size_short">短</string>
<string name="settings_eh_thumb_columns">縮略圖列數</string>
<string name="settings_eh_thumb_resolution">縮略圖分辨率</string>
<string name="settings_eh_thumb_resolution_summary">%s,指定分辨率可能使獲取縮略圖失敗</string>
<string name="settings_eh_thumb_resolution_auto">自動</string>
<string name="settings_eh_show_jpn_title">顯示日文標題</string>
<string name="settings_eh_show_jpn_title_summary">需同時在 EHentai 網站設置中啟用 Japanese Title</string>
<string name="settings_eh_show_gallery_pages">顯示畫廊頁數</string>
@@ -319,8 +312,6 @@
<string name="settings_eh_filter">屏蔽畫廊</string>
<string name="settings_eh_filter_summary">根據標題、上傳者、標籤屏蔽畫廊</string>
<string name="settings_read_volume_page">使用音量鍵翻頁</string>
<string name="settings_download">下載</string>
<string name="settings_download_download_location">下載路徑</string>
<string name="settings_download_cant_get_download_location">無法獲取下載路徑</string>
@@ -114,9 +114,6 @@
<string name="no_comments">沒有留言</string>
<string name="no_more_comments">已顯示所有的留言了</string>
<string name="more_comment">更多留言</string>
<string name="no_previews">沒有預覽</string>
<string name="no_more_previews">已經顯示所有預覽了</string>
<string name="more_previews">更多預覽</string>
<string name="refresh">重新整理</string>
<string name="view_original">查看原圖</string>
<string name="open_in_other_app">在其他應用程式中開啟</string>
@@ -202,7 +199,6 @@
<string name="format_url">連結</string>
<string name="format_plain">純文字</string>
<!-- Gallery Previews -->
<string name="gallery_previews">圖庫預覽</string>
<string name="go_to">跳到</string>
<!-- Download -->
<string name="scene_download_title">正在下載 - %s</string>
@@ -298,9 +294,6 @@
<string name="settings_eh_detail_size_long">長</string>
<string name="settings_eh_detail_size_short">短</string>
<string name="settings_eh_thumb_columns">縮圖列數</string>
<string name="settings_eh_thumb_resolution">縮圖解析度</string>
<string name="settings_eh_thumb_resolution_summary">%s,指定解析度可能會使縮圖取得失敗</string>
<string name="settings_eh_thumb_resolution_auto">自動</string>
<string name="settings_eh_force_eh_thumb">使用 e-hentai 縮圖伺服器</string>
<string name="settings_eh_force_eh_thumb_summary">若縮圖載入遇到問題可嘗試停用此項</string>
<string name="settings_eh_show_jpn_title">顯示日文標題</string>
@@ -317,10 +310,6 @@
<string name="settings_eh_tag_translations_source_url">https://github.com/EhTagTranslation/Editor/wiki</string>
<string name="settings_eh_filter">隱藏圖庫</string>
<string name="settings_eh_filter_summary">根據標題、上傳者、標籤、評論者隱藏圖庫或評論</string>
<string name="settings_read_volume_page">使用音量鍵翻頁</string>
<string name="settings_read_volume_page_fast">快</string>
<string name="settings_read_volume_page_slow">慢</string>
<string name="settings_read_reverse_volume">翻轉音量鍵</string>
<string name="settings_download">下載</string>
<string name="settings_download_download_location">下載路徑</string>
<string name="settings_download_cant_get_download_location">無法取得下載路徑</string>
-12
View File
@@ -74,18 +74,6 @@
<item>1</item>
</integer-array>
<string-array name="thumb_resolution_entries" translatable="false">
<item>@string/settings_eh_thumb_resolution_auto</item>
<item>250x</item>
<item>300x</item>
</string-array>
<integer-array name="thumb_resolution_entry_values" translatable="false">
<item>0</item>
<item>1</item>
<item>2</item>
</integer-array>
<string-array name="search_min_rating" translatable="false">
<item>@string/any</item>
<item>@string/star_2</item>
-21
View File
@@ -1,21 +0,0 @@
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright 2016 Hippo Seven
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<resources>
<item name="reader_pager" type="id" />
</resources>
-13
View File
@@ -130,9 +130,6 @@
<string name="no_comments">No comments</string>
<string name="no_more_comments">No more comments</string>
<string name="more_comment">More comments</string>
<string name="no_previews">No previews</string>
<string name="no_more_previews">No more previews</string>
<string name="more_previews">More previews</string>
<string name="refresh">Refresh</string>
<string name="view_original">View original image</string>
<string name="open_in_other_app">Open with other app</string>
@@ -219,7 +216,6 @@
<string name="format_url">URL</string>
<string name="format_plain">Plain text</string>
<!-- Gallery Previews -->
<string name="gallery_previews">Gallery Previews</string>
<string name="go_to">Go to</string>
<!-- Download -->
<string name="scene_download_title">Download - %s</string>
@@ -314,9 +310,6 @@
<string name="settings_eh_detail_size_long">Long</string>
<string name="settings_eh_detail_size_short">Short</string>
<string name="settings_eh_thumb_columns">Thumb columns</string>
<string name="settings_eh_thumb_resolution">Thumb resolution</string>
<string name="settings_eh_thumb_resolution_summary">Currently %s. Certain resolutions might cause getting thumb failed</string>
<string name="settings_eh_thumb_resolution_auto">Auto</string>
<string name="settings_eh_force_eh_thumb">Use e-hentai thumbnail server</string>
<string name="settings_eh_force_eh_thumb_summary">Try disabling this if you have trouble loading thumbnails</string>
<string name="settings_eh_show_jpn_title">Show Japanese title</string>
@@ -333,10 +326,6 @@
<string name="settings_eh_tag_translations_source_url">https://placeholder</string>
<string name="settings_eh_filter">Blockers</string>
<string name="settings_eh_filter_summary">Block gallery or comment by title, uploader, tags and commenter</string>
<string name="settings_read_volume_page">Use volume key to turn pages</string>
<string name="settings_read_volume_page_fast">Fast</string>
<string name="settings_read_volume_page_slow">Slow</string>
<string name="settings_read_reverse_volume">Reverse volume key</string>
<string name="settings_block_extraneous_ads">[Experimental] Block extraneous ads</string>
<string name="settings_ads_placeholder">[Optional] Pick placeholder to replace ads</string>
<string name="settings_download">Download</string>
@@ -520,8 +509,6 @@
<string name="preload_thumb_aggressively">Preload thumbs aggressively</string>
<string name="animate_items">List item animations</string>
<string name="animate_items_summary">Try disabling this if you are facing crashes / frame drops</string>
<string name="desktop_site">Desktop site</string>
<string name="desktop_site_summary">Higher default image resolution</string>
<string name="auto_updates">Automatically check for updates</string>
<string name="update_frequency_never">Never</string>
<string name="update_frequency_daily">Daily</string>