diff --git a/app/src/main/java/exh/ui/batchadd/BatchAddScreen.kt b/app/src/main/java/exh/ui/batchadd/BatchAddScreen.kt index 2566613ac..acb857910 100644 --- a/app/src/main/java/exh/ui/batchadd/BatchAddScreen.kt +++ b/app/src/main/java/exh/ui/batchadd/BatchAddScreen.kt @@ -73,7 +73,15 @@ class BatchAddScreen : Screen() { modifier = Modifier.fillMaxWidth(), placeholder = { Text( - text = stringResource(SYMR.strings.eh_batch_add_description), + text = + // KMK --> + stringResource(SYMR.strings.md_batch_add_description) + + if (screenModel.isHentaiEnabled) { + // KMK <-- + stringResource(SYMR.strings.eh_batch_add_description) + } else { + "" + }, ) }, keyboardOptions = KeyboardOptions(autoCorrectEnabled = false), diff --git a/app/src/main/java/exh/ui/batchadd/BatchAddScreenModel.kt b/app/src/main/java/exh/ui/batchadd/BatchAddScreenModel.kt index fd8fd8d4f..623e62a21 100644 --- a/app/src/main/java/exh/ui/batchadd/BatchAddScreenModel.kt +++ b/app/src/main/java/exh/ui/batchadd/BatchAddScreenModel.kt @@ -1,8 +1,10 @@ package exh.ui.batchadd import android.content.Context +import androidx.compose.runtime.getValue import cafe.adriel.voyager.core.model.StateScreenModel import cafe.adriel.voyager.core.model.screenModelScope +import eu.kanade.core.preference.asState import exh.GalleryAddEvent import exh.GalleryAdder import exh.log.xLogE @@ -24,6 +26,10 @@ class BatchAddScreenModel( ) : StateScreenModel(BatchAddState()) { private val galleryAdder by lazy { GalleryAdder() } + // KMK --> + val isHentaiEnabled by Injekt.get().isHentaiEnabled().asState(screenModelScope) + // KMK <-- + fun addGalleries(context: Context) { val galleries = state.value.galleries // Check text box has content diff --git a/i18n-sy/src/commonMain/moko-resources/base/strings.xml b/i18n-sy/src/commonMain/moko-resources/base/strings.xml index 0a3b90d1f..0de5070d0 100644 --- a/i18n-sy/src/commonMain/moko-resources/base/strings.xml +++ b/i18n-sy/src/commonMain/moko-resources/base/strings.xml @@ -533,6 +533,7 @@ Batch Add + Example:\n\nhttps://mangadex.org/title/32d76d19-8a05-4db0-9fc2-e0b0648fe9d0/solo-leveling\nhttps://mangadex.org/title/77bee52c-d2d6-44ad-a33a-1734c1fe696a\n\n Example:\n\nhttp://e-hentai.org/g/12345/1a2b3c4e\nhttp://g.e-hentai.org/g/67890/6f7g8h9i\nhttp://exhentai.org/g/13579/1a3b5c7e\nhttps://exhentai.org/g/24680/2f4g6h8i\n\nIt also supports E-H Visited exported data\n Enter the galleries to add (separated by a new line): Add Galleries diff --git a/i18n-sy/src/commonMain/moko-resources/fil/strings.xml b/i18n-sy/src/commonMain/moko-resources/fil/strings.xml index fd1ea9bbf..1e4c33a7f 100644 --- a/i18n-sy/src/commonMain/moko-resources/fil/strings.xml +++ b/i18n-sy/src/commonMain/moko-resources/fil/strings.xml @@ -425,6 +425,7 @@ Sigurado ka ba? Ang pag-reset ng estado ng sync ay maaaring magdulot ng napakabagal na pag-sync sa susunod na pagkakataon. Sigurado ka bang gusto mong i-sync ang iyong mga paborito sa E-Hentai? + Halimbawa:\n\nhttps://mangadex.org/title/32d76d19-8a05-4db0-9fc2-e0b0648fe9d0/solo-leveling\nhttps://mangadex.org/title/77bee52c-d2d6-44ad-a33a-1734c1fe696a\n\n Halimbawa: \n \nhttp://e-hentai.org/g/12345/1a2b3c4e diff --git a/i18n-sy/src/commonMain/moko-resources/fr/strings.xml b/i18n-sy/src/commonMain/moko-resources/fr/strings.xml index 531395c1e..cf23c57fa 100644 --- a/i18n-sy/src/commonMain/moko-resources/fr/strings.xml +++ b/i18n-sy/src/commonMain/moko-resources/fr/strings.xml @@ -323,6 +323,7 @@ Ajouter par lots + Exemple:\n\nhttps://mangadex.org/title/32d76d19-8a05-4db0-9fc2-e0b0648fe9d0/solo-leveling\nhttps://mangadex.org/title/77bee52c-d2d6-44ad-a33a-1734c1fe696a\n\n Exemple:\n\nhttp://e-hentai.org/g/12345/1a2b3c4e\nhttp://g.e-hentai.org/g/67890/6f7g8h9i\nhttp://exhentai.org/g/13579/1a3b5c7e\nhttps://exhentai.org/g/24680/2f4g6h8i\n\nIl prend également en charge les données exportées des visites E-H\n Entrez les galeries à ajouter (séparées par une nouvelle ligne): Ajouter des galeries diff --git a/i18n-sy/src/commonMain/moko-resources/in/strings.xml b/i18n-sy/src/commonMain/moko-resources/in/strings.xml index 75a113c62..73dd0b662 100644 --- a/i18n-sy/src/commonMain/moko-resources/in/strings.xml +++ b/i18n-sy/src/commonMain/moko-resources/in/strings.xml @@ -381,6 +381,7 @@ Batch Add + Example:\n\nhttps://mangadex.org/title/32d76d19-8a05-4db0-9fc2-e0b0648fe9d0/solo-leveling\nhttps://mangadex.org/title/77bee52c-d2d6-44ad-a33a-1734c1fe696a\n\n Example:\n\nhttp://e-hentai.org/g/12345/1a2b3c4e\nhttp://g.e-hentai.org/g/67890/6f7g8h9i\nhttp://exhentai.org/g/13579/1a3b5c7e\nhttps://exhentai.org/g/24680/2f4g6h8i\n\nIt also supports E-H Visited exported data\n Enter the galleries to add (separated by a new line): Add Galleries diff --git a/i18n-sy/src/commonMain/moko-resources/ja/strings.xml b/i18n-sy/src/commonMain/moko-resources/ja/strings.xml index 97b9f8e32..6d0fe7856 100644 --- a/i18n-sy/src/commonMain/moko-resources/ja/strings.xml +++ b/i18n-sy/src/commonMain/moko-resources/ja/strings.xml @@ -487,6 +487,7 @@ 一括追加 + 例:\n\nhttps://mangadex.org/title/32d76d19-8a05-4db0-9fc2-e0b0648fe9d0/solo-leveling\nhttps://mangadex.org/title/77bee52c-d2d6-44ad-a33a-1734c1fe696a\n\n 例:\n\nhttp://e-hentai.org/g/12345/1a2b3c4e\nhttp://g.e-hentai.org/g/67890/6f7g8h9i\nhttp://exhentai.org/g/13579/1a3b5c7e\nhttps://exhentai.org/g/24680/2f4g6h8i\n\nE-H Visitedデータ\n もサポートしています。 追加するギャラリーを入力してください (改行区切り): ギャラリーを追加 diff --git a/i18n-sy/src/commonMain/moko-resources/pt-rBR/strings.xml b/i18n-sy/src/commonMain/moko-resources/pt-rBR/strings.xml index e2a71f1df..b83ab6b0f 100644 --- a/i18n-sy/src/commonMain/moko-resources/pt-rBR/strings.xml +++ b/i18n-sy/src/commonMain/moko-resources/pt-rBR/strings.xml @@ -389,6 +389,7 @@ Adicionar em lote + Exemplo:\n\nhttps://mangadex.org/title/32d76d19-8a05-4db0-9fc2-e0b0648fe9d0/solo-leveling\nhttps://mangadex.org/title/77bee52c-d2d6-44ad-a33a-1734c1fe696a\n\n Exemplo:\n\nhttp://e-hentai.org/g/12345/1a2b3c4e\nhttp://g.e-hentai.org/g/67890/6f7g8h9i\nhttp://exhentai.org/g/13579/1a3b5c7e\nhttps://exhentai.org/g/24680/2f4g6h8i\n\nTambém suporta dados exportados visitados no E-H\n Insira as galerias a adicionar (separadas por linha): Adicionar Galerias diff --git a/i18n-sy/src/commonMain/moko-resources/ru/strings.xml b/i18n-sy/src/commonMain/moko-resources/ru/strings.xml index 4a3a5c1ee..8a538f187 100644 --- a/i18n-sy/src/commonMain/moko-resources/ru/strings.xml +++ b/i18n-sy/src/commonMain/moko-resources/ru/strings.xml @@ -487,6 +487,7 @@ Добавить галереи + Пример:\n\nhttps://mangadex.org/title/32d76d19-8a05-4db0-9fc2-e0b0648fe9d0/solo-leveling\nhttps://mangadex.org/title/77bee52c-d2d6-44ad-a33a-1734c1fe696a\n\n Пример:\n\nhttp://e-hentai.org/g/12345/1a2b3c4e\nhttp://g.e-hentai.org/g/67890/6f7g8h9i\nhttp://exhentai.org/g/13579/1a3b5c7e\nhttps://exhentai.org/g/24680/2f4g6h8i\n\nТакже поддерживаются экспортированные данные на E-Hentai\n Ввести в этой области URL-адрес галерей для добавления (Разделённые новой строкой): Добавить diff --git a/i18n-sy/src/commonMain/moko-resources/zh-rCN/strings.xml b/i18n-sy/src/commonMain/moko-resources/zh-rCN/strings.xml index 65085299e..c575954a2 100644 --- a/i18n-sy/src/commonMain/moko-resources/zh-rCN/strings.xml +++ b/i18n-sy/src/commonMain/moko-resources/zh-rCN/strings.xml @@ -432,6 +432,7 @@ 批量导入 + 示例:\n\nhttps://mangadex.org/title/32d76d19-8a05-4db0-9fc2-e0b0648fe9d0/solo-leveling\nhttps://mangadex.org/title/77bee52c-d2d6-44ad-a33a-1734c1fe696a\n\n 示例:\n\nhttp://e-hentai.org/g/12345/1a2b3c4e\nhttp://g.e-hentai.org/g/67890/6f7g8h9i\nhttp://exhentai.org/g/13579/1a3b5c7e\nhttps://exhentai.org/g/24680/2f4g6h8i\n\n它还支持 E-H 访问过的导出数据\n 输入要添加的画廊(每行一个): 添加画廊 diff --git a/i18n-sy/src/commonMain/moko-resources/zh-rTW/strings.xml b/i18n-sy/src/commonMain/moko-resources/zh-rTW/strings.xml index 13d9044d8..ed7b3ae3a 100644 --- a/i18n-sy/src/commonMain/moko-resources/zh-rTW/strings.xml +++ b/i18n-sy/src/commonMain/moko-resources/zh-rTW/strings.xml @@ -478,6 +478,7 @@ 批次匯入 + 範例:\n\nhttps://mangadex.org/title/32d76d19-8a05-4db0-9fc2-e0b0648fe9d0/solo-leveling\nhttps://mangadex.org/title/77bee52c-d2d6-44ad-a33a-1734c1fe696a\n\n 範例:\n\nhttp://e-hentai.org/g/12345/1a2b3c4e\nhttp://g.e-hentai.org/g/67890/6f7g8h9i\nhttp://exhentai.org/g/13579/1a3b5c7e\nhttps://exhentai.org/g/24680/2f4g6h8i\n\n它還支援 E-H 存取過的匯出資料\n 輸入要新增的畫廊(每行一個): 新增畫廊