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:
1 parent
7b5bccf28f
commit
511c3b006b
43 files changed
+1620
-1791
No files matched your search
@@ -98,7 +98,7 @@ class CancelToken {
|
||||
class DownloadCancelled implements Exception {
|
||||
const DownloadCancelled();
|
||||
@override
|
||||
String toString() => tr('下载已取消');
|
||||
String toString() => tr('Download cancelled');
|
||||
}
|
||||
|
||||
/// A proxy as configured: an HTTP CONNECT proxy, or a SOCKS5 one.
|
||||
@@ -120,14 +120,14 @@ ProxyConfig? parseProxy(String? raw) {
|
||||
if (!normalized.contains('://')) normalized = 'http://$normalized';
|
||||
final uri = Uri.tryParse(normalized);
|
||||
if (uri == null || uri.host.isEmpty) {
|
||||
throw ArgumentError(trArgs('代理地址无效:{0}', [raw]));
|
||||
throw ArgumentError(trArgs('Invalid proxy address: {0}', [raw]));
|
||||
}
|
||||
final scheme = uri.scheme.toLowerCase();
|
||||
final socks = scheme == 'socks' || scheme == 'socks5' || scheme == 'socks5h';
|
||||
final http = scheme == 'http' || scheme == 'https';
|
||||
if (!socks && !http) {
|
||||
throw ArgumentError(trArgs(
|
||||
'不支持的代理协议:{0}(支持 http、https、socks5、socks5h)', [scheme]));
|
||||
'Unsupported proxy protocol: {0} (supported: http, https, socks5, socks5h)', [scheme]));
|
||||
}
|
||||
String? user;
|
||||
String? pass;
|
||||
@@ -193,7 +193,7 @@ class DirectTransport implements Transport {
|
||||
if (_proxyAddress != null) return _proxyAddress!;
|
||||
final addresses = await InternetAddress.lookup(_proxyConfig!.host);
|
||||
if (addresses.isEmpty) {
|
||||
throw SocketException(tr('无法解析代理主机'));
|
||||
throw SocketException(tr('Could not resolve the proxy host'));
|
||||
}
|
||||
return _proxyAddress = addresses.first;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user