Skip to content

Commit

Permalink
Fix close action localization
Browse files Browse the repository at this point in the history
  • Loading branch information
GrakovNe committed Dec 2, 2024
1 parent d343522 commit ace4b34
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ android {
applicationId = "org.grakovne.lissen"
minSdk = 28
targetSdk = 35
versionCode = 47
versionName = "1.1.16"
versionCode = 48
versionName = "1.1.17"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import androidx.compose.ui.draw.clip
import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
Expand Down Expand Up @@ -199,15 +200,15 @@ fun CloseActionBackground() {
) {
Icon(
imageVector = Icons.Outlined.Close,
contentDescription = "Close",
contentDescription = stringResource(R.string.mini_player_action_close),
tint = colorScheme.onSurface,
modifier = Modifier.size(24.dp),
)

Spacer(modifier = Modifier.height(4.dp))

Text(
text = "Close",
text = stringResource(R.string.mini_player_action_close),
style = typography.labelSmall,
color = colorScheme.onSurface,
)
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-ru/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,5 @@
<string name="player_screen_items_playing_title">Список элементов</string>
<string name="player_screen_now_playing_title_podcast_of">Выпуск %1$d из %2$s</string>
<string name="player_screen_now_playing_title_item_of">Элемент %1$d из %2$s</string>
<string name="mini_player_action_close">Закрыть</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,5 @@
<string name="downloads_menu_download_option_clear_chapters">Clear downloaded chapters</string>
<string name="downloads_menu_download_option_clear_episodes">Clear downloaded episodes</string>
<string name="downloads_menu_download_option_clear_items">Clear downloaded items</string>
<string name="mini_player_action_close">Close</string>
</resources>

0 comments on commit ace4b34

Please sign in to comment.