Skip to content

Commit

Permalink
Add translatable strings for delete metadata and location buttons
Browse files Browse the repository at this point in the history
Signed-off-by: IacobIonut01 <[email protected]>
  • Loading branch information
IacobIonut01 committed Nov 3, 2024
1 parent 265740e commit 81d3632
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,12 +304,12 @@ fun MediaViewDetails(
}
},
headlineContent = {
Text("Delete Location")
Text(stringResource(R.string.delete_location))
},
leadingContent = {
Icon(
imageVector = Icons.Outlined.GpsOff,
contentDescription = "Delete Location"
contentDescription = stringResource(R.string.delete_location)
)
},
colors = ListItemDefaults.colors(
Expand Down Expand Up @@ -337,12 +337,12 @@ fun MediaViewDetails(
}
},
headlineContent = {
Text("Delete Metadata")
Text(stringResource(R.string.delete_metadata))
},
leadingContent = {
Icon(
imageVector = Icons.Outlined.LocalFireDepartment,
contentDescription = "Delete Metadata"
contentDescription = stringResource(R.string.delete_metadata)
)
},
colors = ListItemDefaults.colors(
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@
<string name="auto_hide_on_video_play">Hide UI on Video Play</string>
<string name="auto_hide_on_video_play_summary">Hides the UI after 2 seconds when playing videos</string>
<string name="up_to_date">Up-to-date</string>
<string name="delete_location">Delete Location</string>
<string name="delete_metadata">Delete Metadata</string>
<plurals name="item_count">
<item quantity="one">%s item</item>
<item quantity="other">%s items</item>
Expand Down

0 comments on commit 81d3632

Please sign in to comment.