Files
community-plugins/phone-connect/translations/en.json
T
CSY2569andGitHub 16d66a5b18 fix(phone-connect): zh-Hans locale, aliasMap, box padding, volume, config data loss, interval, dead settings, slider, UI issues (#199)
* fix(phone-connect): zh-Hans locale, switcher aliasMap, box padding

- Rename zh_hans -> zh-Hans (plugin.toml value, en.json key) and add
  the missing translations/zh-Hans.json. The zh_hans tag does not match
  BCP 47, so the framework's materialize step dropped the Chinese
  translation file and t() returned raw dot keys in the UI.
- Add missing aliasMap definition in switcher() so the multi-device
  panel no longer errors on aliasMap[id]. Fixes #176.
- Replace ui.box({padding=...}) with ui.row({padding=...}); box does
  not support the padding prop, causing ui-tree warnings on open.

Supersedes #190 (which covers only the aliasMap fix).

* fix(phone-connect): volume quoting, config data loss, interval, dead settings, slider, UI issues

1. media_set_volume: shellQuote the <int32> variant arg (was unquoted,
   shell treated < as redirect; same fix as media_seek).
2. onConfigChanged: track last-applied custom_image/device_alias values
   so unrelated config edits (e.g. language switch) no longer wipe a
   device's image/alias. Seed trackers at init so reload is safe too.
3. state_update_interval=0: return 3600000ms + guard in update() to
   skip auto-refresh, matching the '0 disables' description.
4. Remove 4 dead settings (show_ongoing_media, show_device_placeholder,
   scan_subdirectories, max_recent_images) declared but never read,
   plus orphan recent_images translation keys.
5. Media slider: freeze value during drag via per-device dragState so
   the 1s service refresh doesn't yank the slider back. Also fixes
   onDragEnd seeking to a stale seekPos.
6. Minor: runCli reports cli_failed not no_backend; browse uses runAsync
   not runInTerminal; charging color priority over low-battery; device
   name falls back to d.name; fix comment mismatches.

* chore: bump version to 0.1.1

* fix: use lowercase zh-hans translation key to pass CI validation

CI rejects uppercase in translation keys (zh-Hans). The translation key
and label_key are now lowercase zh-hans, while the file name stays
zh-Hans.json (required by the framework's materialize step) and the
select value stays zh-Hans (used to build the file path).
2026-08-01 08:56:54 -04:00

102 lines
3.0 KiB
JSON

{
"settings": {
"state_update_interval": {
"label": "State Update Interval",
"description": "Seconds between automatic device state refreshes. 0 disables auto-refresh."
},
"enable_charging_animation": {
"label": "Show Charging Fill",
"description": "Highlight the bar widget when the device is charging."
},
"custom_image": {
"label": "Device Image",
"description": "Set a custom image for the selected device. Leave empty for default icon."
},
"device_alias": {
"label": "Device Alias",
"description": "Custom display name for the selected device."
},
"language": {
"label": "Language",
"description": "Display language",
"en": "English",
"zh-hans": "简体中文"
},
"enable_clipboard_action": {
"label": "Show Clipboard Action",
"description": "Show a quick action to send the clipboard to the device."
},
"panel_placement": {
"label": "Panel Placement",
"description": "How the details panel opens: attached to the bar, or floating.",
"attached": "Attached to bar",
"floating": "Floating (center)",
"widget": "Below widget (floating)"
}
},
"status": {
"unavailable": "Unavailable",
"no_devices": "No devices",
"offline": "Offline",
"connected": "Connected",
"not_paired": "Not paired",
"no_backend": "KDE Connect not running"
},
"action": {
"ring": "Ring",
"ping": "Ping",
"clipboard": "Clipboard",
"share": "Share",
"browse": "Browse",
"sms": "SMS",
"pair": "Pair",
"accept": "Accept",
"reject": "Reject",
"unpair": "Unpair",
"refresh": "Refresh",
"switch": "Switch device"
},
"notify": {
"ringing": "Ringing {name}...",
"ping_sent": "Ping sent to {name}",
"clipboard_sent": "Clipboard sent",
"pairing_sent": "Pairing request sent",
"paired": "Device paired",
"unpaired": "Device unpaired",
"opening_browser": "Opening file browser...",
"sms_sent": "SMS sent"
},
"error": {
"ring_failed": "Failed to ring device",
"ping_failed": "Failed to send ping",
"clipboard_failed": "Failed to send clipboard",
"share_failed": "Failed to share",
"browse_failed": "Failed to browse device",
"pairing_failed": "Pairing failed",
"accept_failed": "Failed to accept pairing",
"reject_failed": "Failed to reject pairing",
"unpair_failed": "Unpair failed",
"no_backend": "No backend",
"cli_failed": "Command failed"
},
"panel": {
"title": "Phone Connect",
"empty": "No devices found. Pair a device in KDE Connect.",
"devices_connected": "{connected} connected • {paired} paired",
"now_playing": "Now Playing",
"no_media": "No media playing",
"image_path": "Custom Image",
"sms": "Send SMS",
"sms_dest": "Phone number",
"sms_msg": "Message",
"sms_send": "Send",
"battery": "Battery",
"network": "Network",
"pairing": "Pairing",
"type": "Type",
"paired": "Paired",
"unpaired": "Unpaired",
"unknown": "unknown"
}
}