feat: add string resources for privacy toggle and metadata dialog

Rename strip_location_metadata_label/description to strip_metadata_label/description
to reflect broader scope. Add new strings for the metadata stripping failure dialog.
Update references in NewMediaView.kt and ChatFileUploadDialog.kt.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
davotoula
2026-03-18 10:36:03 +01:00
parent 24e8487db6
commit f7a9389a66
3 changed files with 11 additions and 6 deletions
@@ -272,8 +272,8 @@ fun ImageVideoPost(
}
SettingSwitchItem(
title = R.string.strip_location_metadata_label,
description = R.string.strip_location_metadata_description,
title = R.string.strip_metadata_label,
description = R.string.strip_metadata_description,
modifier =
Modifier
.fillMaxWidth()
@@ -262,8 +262,8 @@ private fun ImageVideoPostChat(
}
SettingSwitchItem(
title = R.string.strip_location_metadata_label,
description = R.string.strip_location_metadata_description,
title = R.string.strip_metadata_label,
description = R.string.strip_metadata_description,
modifier = Modifier.fillMaxWidth().padding(top = 8.dp),
checked = fileUploadState.stripLocationMetadata,
onCheckedChange = { fileUploadState.stripLocationMetadata = it },
+7 -2
View File
@@ -1231,8 +1231,13 @@
<string name="media_compression_quality_uncompressed">Uncompressed</string>
<string name="video_codec_h265_label">Use H.265/HEVC Codec</string>
<string name="video_codec_h265_description">Better quality at smaller file sizes but not all devices support H.265 playback.</string>
<string name="strip_location_metadata_label">Strip location metadata</string>
<string name="strip_location_metadata_description">Removes GPS location, camera info, and other sensitive metadata from files before uploading.</string>
<string name="strip_metadata_label">Remove private metadata</string>
<string name="strip_metadata_description">Private metadata will be attempted stripped from supported media files</string>
<string name="metadata_strip_failed_title">Metadata could not be removed</string>
<string name="metadata_strip_failed_body">This file format does not support metadata stripping. Private information such as location and device info may be included. Upload anyway?</string>
<string name="metadata_strip_failed_upload">Upload anyway</string>
<string name="upload_cancelled">Upload cancelled</string>
<string name="edit_draft">Edit draft</string>