文本资源文件替换

This commit is contained in:
2025-11-04 19:01:11 +08:00
parent cff6b78c30
commit 4a1c15747c
4 changed files with 120 additions and 54 deletions

View File

@@ -99,13 +99,12 @@ fun GroupChatInfoScreen(groupId: String) {
Text( Text(
modifier = Modifier.fillMaxWidth(), modifier = Modifier.fillMaxWidth(),
textAlign = TextAlign.Start, textAlign = TextAlign.Start,
text = "群聊信息", text = stringResource(R.string.group_chat_info_title),
style = androidx.compose.ui.text.TextStyle( style = androidx.compose.ui.text.TextStyle(
color = AppColors.text, color = AppColors.text,
fontSize = 16.sp, fontSize = 16.sp,
fontWeight = FontWeight.Bold fontWeight = FontWeight.Bold
) )
) )
} }
} }
@@ -151,7 +150,7 @@ fun GroupChatInfoScreen(groupId: String) {
Spacer(modifier = Modifier.height(8.dp)) Spacer(modifier = Modifier.height(8.dp))
Text( Text(
text = viewModel.groupInfo?.groupName ?: "_feiye,Rita 米小离儿", text = viewModel.groupInfo?.groupName ?: "",
style = androidx.compose.ui.text.TextStyle( style = androidx.compose.ui.text.TextStyle(
color = AppColors.text, color = AppColors.text,
fontSize = 16.sp, fontSize = 16.sp,
@@ -208,7 +207,7 @@ fun GroupChatInfoScreen(groupId: String) {
} }
Spacer(modifier = Modifier.height(5.dp)) Spacer(modifier = Modifier.height(5.dp))
Text( Text(
text = "添加成员", text = stringResource(R.string.group_chat_info_add_member),
style = androidx.compose.ui.text.TextStyle( style = androidx.compose.ui.text.TextStyle(
color = AppColors.text, color = AppColors.text,
fontSize = 11.sp fontSize = 11.sp
@@ -245,7 +244,7 @@ fun GroupChatInfoScreen(groupId: String) {
} }
Spacer(modifier = Modifier.height(5.dp)) Spacer(modifier = Modifier.height(5.dp))
Text( Text(
text = "通知", text = stringResource(R.string.group_chat_info_notification),
style = androidx.compose.ui.text.TextStyle( style = androidx.compose.ui.text.TextStyle(
color = AppColors.text, color = AppColors.text,
fontSize = 11.sp fontSize = 11.sp
@@ -275,7 +274,7 @@ fun GroupChatInfoScreen(groupId: String) {
} }
Spacer(modifier = Modifier.height(5.dp)) Spacer(modifier = Modifier.height(5.dp))
Text( Text(
text = "分享", text = stringResource(R.string.group_chat_info_share),
style = androidx.compose.ui.text.TextStyle( style = androidx.compose.ui.text.TextStyle(
color = AppColors.text, color = AppColors.text,
fontSize = 11.sp fontSize = 11.sp
@@ -297,7 +296,7 @@ fun GroupChatInfoScreen(groupId: String) {
contentAlignment = Alignment.CenterStart contentAlignment = Alignment.CenterStart
) { ) {
Text( Text(
text = "解锁群扩展", text = stringResource(R.string.group_chat_info_unlock_extension),
style = androidx.compose.ui.text.TextStyle( style = androidx.compose.ui.text.TextStyle(
color = AppColors.main, color = AppColors.main,
fontSize = 12.sp, fontSize = 12.sp,
@@ -327,7 +326,7 @@ fun GroupChatInfoScreen(groupId: String) {
Spacer(modifier = Modifier.width(6.dp)) Spacer(modifier = Modifier.width(6.dp))
Column(modifier = Modifier.weight(1f)) { Column(modifier = Modifier.weight(1f)) {
Text( Text(
text = "群记忆", text = stringResource(R.string.group_chat_info_group_memory),
style = androidx.compose.ui.text.TextStyle( style = androidx.compose.ui.text.TextStyle(
color = AppColors.text, color = AppColors.text,
fontSize = 15.sp, fontSize = 15.sp,
@@ -336,7 +335,7 @@ fun GroupChatInfoScreen(groupId: String) {
) )
Spacer(modifier = Modifier.height(2.dp)) Spacer(modifier = Modifier.height(2.dp))
Text( Text(
text = "AI 会根据记忆在群聊里更懂你", text = stringResource(R.string.group_chat_info_memory_description),
style = androidx.compose.ui.text.TextStyle( style = androidx.compose.ui.text.TextStyle(
color = AppColors.text.copy(alpha = 0.6f), color = AppColors.text.copy(alpha = 0.6f),
fontSize = 11.sp fontSize = 11.sp
@@ -361,7 +360,7 @@ fun GroupChatInfoScreen(groupId: String) {
contentAlignment = Alignment.Center contentAlignment = Alignment.Center
) { ) {
Text( Text(
text = "添加记忆", text = stringResource(R.string.group_chat_info_add_memory),
style = androidx.compose.ui.text.TextStyle( style = androidx.compose.ui.text.TextStyle(
color = AppColors.text, color = AppColors.text,
fontSize = 13.sp fontSize = 13.sp
@@ -380,7 +379,7 @@ fun GroupChatInfoScreen(groupId: String) {
contentAlignment = Alignment.Center contentAlignment = Alignment.Center
) { ) {
Text( Text(
text = "记忆管理", text = stringResource(R.string.group_chat_info_memory_manage),
style = androidx.compose.ui.text.TextStyle( style = androidx.compose.ui.text.TextStyle(
color = AppColors.text, color = AppColors.text,
fontSize = 13.sp fontSize = 13.sp
@@ -415,7 +414,7 @@ fun GroupChatInfoScreen(groupId: String) {
) )
Spacer(modifier = Modifier.width(10.dp)) Spacer(modifier = Modifier.width(10.dp))
Text( Text(
text = "群资料设置", text = stringResource(R.string.group_chat_info_group_settings),
style = androidx.compose.ui.text.TextStyle( style = androidx.compose.ui.text.TextStyle(
color = AppColors.text, color = AppColors.text,
fontSize = 15.sp fontSize = 15.sp
@@ -447,7 +446,7 @@ fun GroupChatInfoScreen(groupId: String) {
) )
Spacer(modifier = Modifier.width(10.dp)) Spacer(modifier = Modifier.width(10.dp))
Text( Text(
text = "群可见性", text = stringResource(R.string.group_chat_info_group_visibility),
style = androidx.compose.ui.text.TextStyle( style = androidx.compose.ui.text.TextStyle(
color = AppColors.text, color = AppColors.text,
fontSize = 15.sp fontSize = 15.sp
@@ -455,7 +454,7 @@ fun GroupChatInfoScreen(groupId: String) {
modifier = Modifier.weight(1f) modifier = Modifier.weight(1f)
) )
Text( Text(
text = "待解锁", text = stringResource(R.string.group_chat_info_locked),
style = androidx.compose.ui.text.TextStyle( style = androidx.compose.ui.text.TextStyle(
color = AppColors.text.copy(alpha = 0.5f), color = AppColors.text.copy(alpha = 0.5f),
fontSize = 11.sp fontSize = 11.sp
@@ -488,7 +487,7 @@ fun GroupChatInfoScreen(groupId: String) {
) )
Spacer(modifier = Modifier.width(10.dp)) Spacer(modifier = Modifier.width(10.dp))
Text( Text(
text = "成员管理", text = stringResource(R.string.group_chat_info_member_manage),
style = androidx.compose.ui.text.TextStyle( style = androidx.compose.ui.text.TextStyle(
color = AppColors.text, color = AppColors.text,
fontSize = 15.sp fontSize = 15.sp
@@ -519,7 +518,7 @@ fun GroupChatInfoScreen(groupId: String) {
) )
Spacer(modifier = Modifier.width(10.dp)) Spacer(modifier = Modifier.width(10.dp))
Text( Text(
text = "群聊壁纸", text = stringResource(R.string.group_chat_info_wallpaper),
style = androidx.compose.ui.text.TextStyle( style = androidx.compose.ui.text.TextStyle(
color = AppColors.text, color = AppColors.text,
fontSize = 15.sp fontSize = 15.sp
@@ -549,7 +548,7 @@ fun GroupChatInfoScreen(groupId: String) {
) )
Spacer(modifier = Modifier.width(10.dp)) Spacer(modifier = Modifier.width(10.dp))
Text( Text(
text = "解散群聊", text = stringResource(R.string.group_chat_info_dissolve),
style = androidx.compose.ui.text.TextStyle( style = androidx.compose.ui.text.TextStyle(
color = Color(0xFFFF3B30), color = Color(0xFFFF3B30),
fontSize = 15.sp fontSize = 15.sp
@@ -677,7 +676,7 @@ fun AddGroupMemoryDialog(
) { ) {
Spacer(modifier = Modifier.width(24.dp)) Spacer(modifier = Modifier.width(24.dp))
Text( Text(
text = "添加群记忆", text = stringResource(R.string.group_chat_info_add_group_memory),
style = TextStyle( style = TextStyle(
fontSize = 17.sp, fontSize = 17.sp,
fontWeight = FontWeight.SemiBold, fontWeight = FontWeight.SemiBold,
@@ -754,7 +753,7 @@ fun AddGroupMemoryDialog(
) )
) )
Text( Text(
text = "${groupInfo?.memberCount ?: 32} 位成员", text = stringResource(R.string.group_chat_info_member_count, groupInfo?.memberCount ?: 32),
style = TextStyle( style = TextStyle(
fontSize = 12.sp, fontSize = 12.sp,
color = Color(0xFF3C3C43).copy(alpha = 0.6f) color = Color(0xFF3C3C43).copy(alpha = 0.6f)
@@ -804,7 +803,7 @@ fun AddGroupMemoryDialog(
innerTextField() innerTextField()
if (memoryText.isEmpty()) { if (memoryText.isEmpty()) {
Text( Text(
text = "这里的内容超过输入框自动换行", text = stringResource(R.string.group_chat_info_memory_input_hint),
style = TextStyle( style = TextStyle(
fontSize = 15.sp, fontSize = 15.sp,
color = Color.Black.copy(alpha = 0.3f) color = Color.Black.copy(alpha = 0.3f)
@@ -848,7 +847,7 @@ fun AddGroupMemoryDialog(
fontSize = 13.sp fontSize = 13.sp
) )
Text( Text(
text = "添加记忆需消耗 20 派币", text = stringResource(R.string.group_chat_info_memory_cost),
style = TextStyle( style = TextStyle(
fontSize = 13.sp, fontSize = 13.sp,
color = Color.Black color = Color.Black
@@ -864,7 +863,7 @@ fun AddGroupMemoryDialog(
fontSize = 13.sp fontSize = 13.sp
) )
Text( Text(
text = "AI 将基于记忆优化回复", text = stringResource(R.string.group_chat_info_memory_optimization),
style = TextStyle( style = TextStyle(
fontSize = 13.sp, fontSize = 13.sp,
color = Color.Black color = Color.Black
@@ -880,7 +879,7 @@ fun AddGroupMemoryDialog(
fontSize = 13.sp fontSize = 13.sp
) )
Text( Text(
text = "可随时编辑或删除", text = stringResource(R.string.group_chat_info_memory_editable),
style = TextStyle( style = TextStyle(
fontSize = 13.sp, fontSize = 13.sp,
color = Color.Black color = Color.Black
@@ -918,7 +917,7 @@ fun AddGroupMemoryDialog(
) )
} else { } else {
Text( Text(
text = "添加记忆", text = stringResource(R.string.group_chat_info_add_memory),
style = TextStyle( style = TextStyle(
fontSize = 17.sp, fontSize = 17.sp,
color = Color.White color = Color.White

View File

@@ -248,5 +248,27 @@
<string name="select_apply_to_use_theme">「適用」を選択してこのテーマを使用</string> <string name="select_apply_to_use_theme">「適用」を選択してこのテーマを使用</string>
<string name="tap_cancel_to_preview_other_themes">「キャンセル」をタップして他のテーマをプレビュー</string> <string name="tap_cancel_to_preview_other_themes">「キャンセル」をタップして他のテーマをプレビュー</string>
<!-- Group Chat Info -->
<string name="group_chat_info_title">グループチャット情報</string>
<string name="group_chat_info_add_member">メンバーを追加</string>
<string name="group_chat_info_notification">通知</string>
<string name="group_chat_info_share">共有</string>
<string name="group_chat_info_unlock_extension">グループ拡張機能を解除</string>
<string name="group_chat_info_group_memory">グループメモリ</string>
<string name="group_chat_info_memory_description">AIは記憶に基づいてグループチャットであなたをより理解します</string>
<string name="group_chat_info_add_memory">メモリを追加</string>
<string name="group_chat_info_memory_manage">メモリ管理</string>
<string name="group_chat_info_group_settings">グループ設定</string>
<string name="group_chat_info_group_visibility">グループの可視性</string>
<string name="group_chat_info_locked">ロック中</string>
<string name="group_chat_info_member_manage">メンバー管理</string>
<string name="group_chat_info_wallpaper">グループチャット壁紙</string>
<string name="group_chat_info_dissolve">グループチャットを解散</string>
<string name="group_chat_info_add_group_memory">グループメモリを追加</string>
<string name="group_chat_info_member_count">%d人のメンバー</string>
<string name="group_chat_info_memory_input_hint">ここに入力した内容は入力ボックスを超えると自動的に折り返されます</string>
<string name="group_chat_info_memory_cost">メモリを追加すると20コインを消費します</string>
<string name="group_chat_info_memory_optimization">AIは記憶に基づいて返信を最適化します</string>
<string name="group_chat_info_memory_editable">いつでも編集または削除できます</string>
</resources> </resources>

View File

@@ -250,4 +250,28 @@
<string name="each_theme_unique_experience">每个主题都有自己独特的体验</string> <string name="each_theme_unique_experience">每个主题都有自己独特的体验</string>
<string name="select_apply_to_use_theme">选择"应用"可选中这个主题</string> <string name="select_apply_to_use_theme">选择"应用"可选中这个主题</string>
<string name="tap_cancel_to_preview_other_themes">轻触"取消"可预览其他主题</string> <string name="tap_cancel_to_preview_other_themes">轻触"取消"可预览其他主题</string>
<!-- Group Chat Info -->
<string name="group_chat_info_title">群聊信息</string>
<string name="group_chat_info_add_member">添加成员</string>
<string name="group_chat_info_notification">通知</string>
<string name="group_chat_info_share">分享</string>
<string name="group_chat_info_unlock_extension">解锁群扩展</string>
<string name="group_chat_info_group_memory">群记忆</string>
<string name="group_chat_info_memory_description">AI 会根据记忆在群聊里更懂你</string>
<string name="group_chat_info_add_memory">添加记忆</string>
<string name="group_chat_info_memory_manage">记忆管理</string>
<string name="group_chat_info_group_settings">群资料设置</string>
<string name="group_chat_info_group_visibility">群可见性</string>
<string name="group_chat_info_locked">待解锁</string>
<string name="group_chat_info_member_manage">成员管理</string>
<string name="group_chat_info_wallpaper">群聊壁纸</string>
<string name="group_chat_info_dissolve">解散群聊</string>
<string name="group_chat_info_add_group_memory">添加群记忆</string>
<string name="group_chat_info_member_count">%d 位成员</string>
<string name="group_chat_info_memory_input_hint">这里的内容超过输入框自动换行</string>
<string name="group_chat_info_memory_cost">添加记忆需消耗 20 派币</string>
<string name="group_chat_info_memory_optimization">AI 将基于记忆优化回复</string>
<string name="group_chat_info_memory_editable">可随时编辑或删除</string>
</resources> </resources>

View File

@@ -246,5 +246,26 @@
<string name="select_apply_to_use_theme">Select "Apply" to use this theme</string> <string name="select_apply_to_use_theme">Select "Apply" to use this theme</string>
<string name="tap_cancel_to_preview_other_themes">Tap "Cancel" to preview other themes</string> <string name="tap_cancel_to_preview_other_themes">Tap "Cancel" to preview other themes</string>
<!-- Group Chat Info -->
<string name="group_chat_info_title">Group Chat Info</string>
<string name="group_chat_info_add_member">Add Member</string>
<string name="group_chat_info_notification">Notification</string>
<string name="group_chat_info_share">Share</string>
<string name="group_chat_info_unlock_extension">Unlock Group Extension</string>
<string name="group_chat_info_group_memory">Group Memory</string>
<string name="group_chat_info_memory_description">AI will understand you better in group chat based on memory</string>
<string name="group_chat_info_add_memory">Add Memory</string>
<string name="group_chat_info_memory_manage">Memory Management</string>
<string name="group_chat_info_group_settings">Group Settings</string>
<string name="group_chat_info_group_visibility">Group Visibility</string>
<string name="group_chat_info_locked">Locked</string>
<string name="group_chat_info_member_manage">Member Management</string>
<string name="group_chat_info_wallpaper">Group Chat Wallpaper</string>
<string name="group_chat_info_dissolve">Dissolve Group Chat</string>
<string name="group_chat_info_add_group_memory">Add Group Memory</string>
<string name="group_chat_info_member_count">%d members</string>
<string name="group_chat_info_memory_input_hint">Content here will automatically wrap when it exceeds the input box</string>
<string name="group_chat_info_memory_cost">Adding memory consumes 20 coins</string>
<string name="group_chat_info_memory_optimization">AI will optimize replies based on memory</string>
<string name="group_chat_info_memory_editable">Can be edited or deleted at any time</string>
</resources> </resources>