Move string resource

This commit is contained in:
Cuong M. Tran 2024-02-04 17:34:40 +07:00
parent ecca5fc1b1
commit 1fc7604782
4 changed files with 3 additions and 5 deletions

View file

@ -18,7 +18,6 @@ import eu.kanade.tachiyomi.ui.browse.extension.details.ExtensionDetailsScreen
import eu.kanade.tachiyomi.ui.webview.WebViewScreen
import kotlinx.collections.immutable.persistentListOf
import tachiyomi.i18n.MR
import tachiyomi.i18n.sy.SYMR
import tachiyomi.presentation.core.i18n.stringResource
@Composable
@ -35,7 +34,7 @@ fun extensionsTab(
actions = persistentListOf(
// KMK -->
AppBar.Action(
title = stringResource(SYMR.strings.label_extension_nsfw),
title = stringResource(MR.strings.action_toggle_nsfw_only),
icon = Icons.Outlined._18UpRating,
iconTint = if (state.nsfwOnly) MaterialTheme.colorScheme.error else LocalContentColor.current,
onClick = { extensionsScreenModel.toggleNsfwOnly() },

View file

@ -55,7 +55,7 @@ fun Screen.sourcesTab(
),
// KMK -->
AppBar.Action(
title = stringResource(SYMR.strings.label_source_nsfw),
title = stringResource(MR.strings.action_toggle_nsfw_only),
icon = Icons.Outlined._18UpRating,
iconTint = if (state.nsfwOnly) MaterialTheme.colorScheme.error else LocalContentColor.current,
onClick = { screenModel.toggleNsfwOnly() },

View file

@ -350,7 +350,6 @@
<string name="find_in_another_source">Find in another source</string>
<string name="data_saver_exclude">Exclude from data saver</string>
<string name="data_saver_stop_exclude">Stop excluding from data saver</string>
<string name="label_source_nsfw">Toggle NSFW only</string>
<!-- Smart Search -->
<string name="searching_source">Searching source…</string>
@ -392,7 +391,6 @@
<!-- Extension section -->
<string name="ext_redundant">Redundant</string>
<string name="redundant_extension_message">This extension is redundant and will not be used inside this version of Tachiyomi.</string>
<string name="label_extension_nsfw">Toggle NSFW only</string>
<!-- Migration -->
<string name="select_sources">Select sources</string>

View file

@ -73,6 +73,7 @@
<string name="action_search_settings">Search settings</string>
<string name="action_global_search">Global search</string>
<string name="action_source_search">Search for source</string>
<string name="action_toggle_nsfw_only">Toggle NSFW only</string>
<string name="action_select_all">Select all</string>
<string name="action_select_inverse">Select inverse</string>
<string name="action_mark_as_read">Mark as read</string>