// ignore: unused_import
import 'package:intl/intl.dart' as intl;
import 'app_localizations.dart';

// ignore_for_file: type=lint

/// The translations for Chinese (`zh`).
class AppL10nZh extends AppL10n {
  AppL10nZh([String locale = 'zh']) : super(locale);

  @override
  String get appTitle => 'Chanora';

  @override
  String get homeNotProductionReadyBanner => 'Beta 版本——已接通语音收发；尚未达到生产环境质量。';

  @override
  String get fieldServerHost => '服务器地址';

  @override
  String get fieldNickname => '昵称';

  @override
  String get fieldServerPassword => '服务器密码';

  @override
  String get fieldServerPasswordHelp => '如果服务器无需密码，留空即可。';

  @override
  String get fieldPassword => '密码';

  @override
  String get fieldDisplayName => '显示名称';

  @override
  String get connectAction => '连接';

  @override
  String get disconnectAction => '断开连接';

  @override
  String get refreshAction => '刷新';

  @override
  String get diagnosticsAction => '诊断信息';

  @override
  String get aboutAction => '关于';

  @override
  String aboutVersion(String version) {
    return '版本 $version';
  }

  @override
  String get aboutNonAffiliation =>
      'Chanora 是独立项目，与 TeamSpeak 之间不存在任何附属、认可、赞助或官方关联关系。';

  @override
  String get aboutLicenseHeading => '许可协议';

  @override
  String get aboutLicenseBody =>
      'Chanora 采用 Apache License 2.0 或 MIT License 双协议授权，使用者可任选其一。完整协议文本以 LICENSE-APACHE 与 LICENSE-MIT 形式随仓库一同分发。';

  @override
  String get aboutThirdPartyHeading => '第三方组件';

  @override
  String get aboutThirdPartyBody =>
      'Chanora 基于 tsclientlib、flutter_rust_bridge、cpal、rusqlite、Flutter 框架等开源组件构建。完整归属信息请参阅仓库根目录的 NOTICE 文件。';

  @override
  String get copyAction => '复制';

  @override
  String get closeAction => '关闭';

  @override
  String get startAudioAction => '启动语音';

  @override
  String get pttHoldToTalk => '按住说话';

  @override
  String get pttTransmitting => '正在发送…';

  @override
  String get pttHoldToTalkSemanticsHint => '按住进行语音发送，松开停止。';

  @override
  String pttCapabilityBadge(String level, String backend) {
    return '对讲能力：$level（$backend）';
  }

  @override
  String pttCapabilityBoundKey(String key) {
    return '按键：$key';
  }

  @override
  String get pttCapabilityExplainTitle => '对讲能力说明';

  @override
  String get pttCapabilityExplainFocusedHeading => '聚焦对讲';

  @override
  String get pttCapabilityExplainFocusedBody =>
      'Chanora 当前使用聚焦对讲：按键只在 Chanora 窗口处于聚焦时生效。这是所有平台在无法启用全局采集时的通用回退方案。';

  @override
  String get pttCapabilityExplainGoGlobalWindows =>
      '在 Windows 上，绑定按键后会自动启用全局对讲，无需额外权限。';

  @override
  String get pttCapabilityExplainGoGlobalMacos =>
      '在 macOS 上，启用全局对讲需要「输入监视」权限。请打开「系统设置 → 隐私与安全 → 输入监视」，授权 Chanora 后重新绑定按键。';

  @override
  String get pttCapabilityExplainGoGlobalLinux =>
      '在 Linux 上，启用全局对讲需要带 GlobalShortcuts 门户的 GNOME-Wayland 桌面。请重新绑定按键，并在桌面弹出快捷键对话框时接受。';

  @override
  String get pttCapabilityExplainGoGlobalGeneric =>
      '当前环境暂不支持全局对讲。聚焦对讲在 Chanora 窗口获得焦点时仍可正常使用。';

  @override
  String get pttConfigureAction => '配置';

  @override
  String get pttConfigureTitle => '配置对讲按键';

  @override
  String get pttConfigurePrompt => '按下您希望用于对讲的按键或鼠标侧键。';

  @override
  String get pttConfigureWaiting => '（等待输入…）';

  @override
  String get pttConfigureCaptured => '已捕获';

  @override
  String get pttConfigurePrivacyNote =>
      'Chanora 不会记录具体的按键值。本对话框只会向应用提交输入类别（键盘 / 鼠标侧键）以及一个跨平台标签。';

  @override
  String get pttConfigureSaveAction => '保存';

  @override
  String get pttConfigurePortalRedirect => '您的桌面环境将打开自带的快捷键对话框，请在其中选择用于对讲的按键。';

  @override
  String get inputMuteAction => '静音麦克风';

  @override
  String get inputUnmuteAction => '取消麦克风静音';

  @override
  String get outputMuteAction => '静音扬声器';

  @override
  String get outputUnmuteAction => '取消扬声器静音';

  @override
  String get joinChannelAction => '加入频道';

  @override
  String get channelPasswordTitle => '频道密码';

  @override
  String get bookmarksHeading => '书签';

  @override
  String get bookmarksEmpty => '尚无书签。先在上方填写服务器，然后点击“保存书签”。';

  @override
  String get bookmarkAddAction => '保存书签';

  @override
  String get bookmarkAddTitle => '保存书签';

  @override
  String get bookmarkDeleteAction => '删除书签';

  @override
  String get statusIdle => '未连接';

  @override
  String get statusConnecting => '正在连接…';

  @override
  String statusConnected(String server) {
    return '已连接到 $server';
  }

  @override
  String statusError(String message) {
    return '错误：$message';
  }

  @override
  String statusReconnecting(int attempt, int delay) {
    return '正在重新连接……第 $attempt 次尝试，$delay 秒后';
  }

  @override
  String statusConnectionLost(String reason) {
    return '连接已断开：$reason';
  }

  @override
  String audioStatsLine(int sent, int received, String ptt) {
    return '发送 $sent 帧 • 接收 $received 帧 • PTT $ptt';
  }

  @override
  String get channelsHeading => '频道';

  @override
  String get clientsHeading => '在线用户';

  @override
  String countChannelsAndClients(int channels, int clients) {
    return '$channels 个频道 • $clients 在线';
  }
}
