audio_vibe/progress.md
2026-05-30 20:54:38 +08:00

22 lines
2.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 多语言与硬编码文案进度
## 2026-05-30
- 开始检查多语言资源和 Kotlin 用户可见硬编码文本。
- 补齐 `tag_writable`、`tag_read_only` 在所有本地化资源中的缺失。
- 新增封面/标签写入错误、图片读取错误、音效名、剪辑示例文件名等资源 key,并同步到所有语言目录。
- 将 `MetadataEditRepository`、`ExternalCoverPathResolver`、`CoverImageNormalizer`、`ExternalCoverStore`、`SoundEffectsScreen`、`AudioCutterScreen` 中确认的用户可见硬编码迁移到资源。
- 资源完整性脚本结果:`base_keys=243 localized_files=22 complete=True`。
- `./gradlew :app:compileGoogleDebugKotlin` 通过;`compileDebugKotlin` 因 flavor 任务歧义失败,已记录。
- 补充播放失败 toast 资源:`playback_format_not_playable`、`playback_failed`、`ffmpeg_no_pcm_output`、`ffmpeg_playback_failed`,并同步到所有语言目录。
- 将 `AudioPlaybackController` 中播放失败/FFmpeg 输出失败的 toast 文案改为资源字符串。
- 资源完整性脚本结果更新为:`base_keys=247 localized_files=22 complete=True`。
- `./gradlew :app:compileGoogleDebugKotlin` 再次通过。
- 新增 `AppStringResolver`,由 Compose 根节点同步当前用户选择后的 resolved language,供非 Compose 层读取应用语言资源。
- 将播放 Controller、播放通知、标签编辑 ViewModel、元数据编辑仓库、封面图片工具、外置封面工具的提示文案读取切到 `AppStringResolver`,toast 不再直接跟系统语言。
- `./gradlew :app:compileGoogleDebugKotlin` 通过。
- 在 `AudioVibeApp` 启动时读取并监听 `LanguagePreferences`,避免 Service/通知先于 MainActivity 启动时使用默认语言。
- 将反馈分享邮件主题和正文中的资源文案切到 `AppStringResolver`。
- 将播放通知 action label 从硬编码常量改为 `play`、`pause`、`next_track`、`previous_track` 资源。
- 全局复查 `context.getString(R.string...)` / `getString(R.string...)`:除 `AppLanguage` 内部资源映射外,业务代码无绕过用户语言设置的直接资源读取。
- `./gradlew :app:compileGoogleDebugKotlin` 通过。