feat: write the UI in English, select only conversation content

- source strings are English again; Chinese comes from lib/l10n/zh.dart
  through tr()/trArgs() and AppText, and a language without a table
  (Spanish, ...) reads English instead of Chinese
- server and user data (titles, messages, file names, notes, task names)
  is drawn with plain Text, so it is never looked up in the table
- SelectionArea moved from the whole message list to the messages, the
  answer text, an opened tool call's details and the turn footer; status
  lines and folded tool rows no longer start a selection
- a message the transcript does not know (its start event was lost while
  the stream was down) fetches the tail once, so a turn continued from
  another client comes in with its prompt
- bump to 0.5.3
This commit is contained in:
blumia committed 2026-11-26 11:48:16 +08:00
1 parent 7b5bccf28f
commit 511c3b006b
43 files changed
+1620 -1791

No files matched your search

+6 -6
View File
@@ -122,7 +122,7 @@ class TerminalWorkspace extends ChangeNotifier {
while (used.contains(n)) {
n++;
}
return trArgs('终端 {0}', [n]);
return trArgs('Terminal {0}', [n]);
}
Future<SavedTerminalTabs?> _savedTabs() async {
@@ -434,8 +434,8 @@ class TerminalSessionState extends ChangeNotifier {
if (event.status == 'exited') {
_set(TerminalLinkState.exited,
detail: event.exitCode == null
? tr('已退出')
: trArgs('退出码 {0}', [event.exitCode]));
? tr('Exited')
: trArgs('Exit code {0}', [event.exitCode]));
}
break;
case 'restarted':
@@ -449,8 +449,8 @@ class TerminalSessionState extends ChangeNotifier {
case 'exit':
_set(TerminalLinkState.exited,
detail: event.exitCode == null
? tr('已退出')
: trArgs('退出码 {0}', [event.exitCode]));
? tr('Exited')
: trArgs('Exit code {0}', [event.exitCode]));
break;
case 'error':
if (event.fatal) {
@@ -461,7 +461,7 @@ class TerminalSessionState extends ChangeNotifier {
_recoverMissing();
} else {
_set(TerminalLinkState.error,
detail: event.message ?? event.code ?? tr('终端连接失败'));
detail: event.message ?? event.code ?? tr('Terminal connection failed'));
}
}
break;