chore: custom watermark i18n

This commit is contained in:
zhoubinjia committed 2026-01-15 16:27:16 +08:00
1 parent fb2d6fe4cf
commit 368ec599f0
3 files changed
+28 -10

No files matched your search

@@ -381,7 +381,7 @@ fun PhotoEditScreen(
shape = RoundedCornerShape(8.dp),
modifier = Modifier.fillMaxWidth()
) {
Text(text = "调整水印", color = Color.White)
Text(text = stringResource(R.string.adjust_watermark), color = Color.White)
}
}
}
@@ -578,7 +578,7 @@ private fun WatermarkEditSheet(
.padding(bottom = 32.dp)
) {
Text(
text = "水印调整",
text = stringResource(R.string.watermark_adjustment),
fontSize = 18.sp,
fontWeight = FontWeight.Bold,
modifier = Modifier.padding(bottom = 16.dp)
@@ -586,14 +586,14 @@ private fun WatermarkEditSheet(
// Logo 选择
Text(
text = "LOGO",
text = stringResource(R.string.logo),
fontSize = 14.sp,
color = Color.White.copy(alpha = 0.6f),
modifier = Modifier.padding(bottom = 8.dp)
)
val logos = listOf(
"none" to "无",
"none" to stringResource(R.string.none),
"apple" to "Apple",
"leica" to "Leica",
"hasselblad" to "Hasselblad",
@@ -637,18 +637,18 @@ private fun WatermarkEditSheet(
// 文字编辑
Text(
text = "文字内容",
text = stringResource(R.string.text_content),
fontSize = 14.sp,
color = Color.White.copy(alpha = 0.6f),
modifier = Modifier.padding(bottom = 8.dp)
)
val textTypes = listOf(
TextType.DEVICE_MODEL to "设备型号",
TextType.BRAND to "品牌名称",
TextType.DATE to "日期 (DATE)",
TextType.TIME to "时间 (TIME)",
TextType.DATETIME to "日期时间 (DATETIME)"
TextType.DEVICE_MODEL to stringResource(R.string.device_model),
TextType.BRAND to stringResource(R.string.brand_name),
TextType.DATE to stringResource(R.string.date_label),
TextType.TIME to stringResource(R.string.time_label),
TextType.DATETIME to stringResource(R.string.datetime_label)
)
textTypes.forEach { (type, label) ->
+9
View File
@@ -74,6 +74,15 @@
<string name="show_app_branding">显示 App 品牌</string>
<string name="export_with_frame_confirm">导出带有边框水印的照片吗?</string>
<string name="import_photo">导入</string>
<string name="adjust_watermark">调整水印</string>
<string name="watermark_adjustment">水印调整</string>
<string name="logo">LOGO</string>
<string name="text_content">文字内容</string>
<string name="device_model">设备型号</string>
<string name="brand_name">品牌名称</string>
<string name="date_label">日期 (DATE)</string>
<string name="time_label">时间 (TIME)</string>
<string name="datetime_label">日期时间 (DATETIME)</string>
<!-- Settings -->
<string name="settings_title">设置</string>
+9
View File
@@ -75,6 +75,15 @@
<string name="show_app_branding">Show App Branding</string>
<string name="export_with_frame_confirm">Export photo with frame watermark?</string>
<string name="import_photo">Import</string>
<string name="adjust_watermark">Adjust Watermark</string>
<string name="watermark_adjustment">Watermark Adjustment</string>
<string name="logo">LOGO</string>
<string name="text_content">Text Content</string>
<string name="device_model">Device Model</string>
<string name="brand_name">Brand Name</string>
<string name="date_label">Date (DATE)</string>
<string name="time_label">Time (TIME)</string>
<string name="datetime_label">Date/Time (DATETIME)</string>
<!-- Settings -->
<string name="settings_title">Settings</string>