Skip to content

Commit

Permalink
Extract strings
Browse files Browse the repository at this point in the history
  • Loading branch information
zsmb13 committed Feb 3, 2025
1 parent dacb1cb commit fe25e14
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions shared/src/commonMain/composeResources/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,7 @@ We will process your data in accordance with the App Privacy Policy. You can adj
<string name="settings_theme_light">Light</string>
<string name="settings_theme_dark">Dark</string>

<string name="schedule_action_filter_bookmarked">Filter bookmarked</string>
<string name="schedule_action_search">Search</string>

</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ import androidx.compose.ui.unit.dp
import androidx.lifecycle.viewmodel.compose.viewModel
import kotlinconfapp.shared.generated.resources.Res
import kotlinconfapp.shared.generated.resources.nav_destination_schedule
import kotlinconfapp.shared.generated.resources.schedule_action_filter_bookmarked
import kotlinconfapp.shared.generated.resources.schedule_action_search
import kotlinconfapp.ui_components.generated.resources.bookmark_24
import kotlinconfapp.ui_components.generated.resources.search_24
import kotlinx.coroutines.launch
Expand Down Expand Up @@ -185,12 +187,12 @@ private fun Header(
icon = UiRes.drawable.bookmark_24,
selected = bookmarkFilterEnabled,
onToggle = { onBookmarkFilter(it) },
contentDescription = "Filter bookmarked"
contentDescription = stringResource(Res.string.schedule_action_filter_bookmarked),
)
TopMenuButton(
icon = UiRes.drawable.search_24,
onClick = { onHeaderStateChange(MainHeaderContainerState.Search) },
contentDescription = "Search"
contentDescription = stringResource(Res.string.schedule_action_search),
)
}
)
Expand Down

0 comments on commit fe25e14

Please sign in to comment.