Skip to content

Commit

Permalink
Move string resource
Browse files Browse the repository at this point in the history
  • Loading branch information
cuong-tran committed Feb 4, 2024
1 parent ecca5fc commit 1fc7604
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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() },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() },
Expand Down
2 changes: 0 additions & 2 deletions i18n-sy/src/commonMain/resources/MR/base/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions i18n/src/commonMain/resources/MR/base/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 1fc7604

Please sign in to comment.