From 30eca508373c32b44628dcc455d1315ac6e34253 Mon Sep 17 00:00:00 2001 From: viarotel Date: Thu, 16 Nov 2023 14:57:51 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=F0=9F=93=9D=20Optimization=20preferenc?= =?UTF-8?q?es=20description?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/languages/en_US.json | 56 ++++++++++---------- src/locales/languages/zh_CN.json | 64 +++++++++++------------ src/store/preference/model/audio/index.js | 2 +- src/store/preference/model/video/index.js | 2 +- 4 files changed, 62 insertions(+), 62 deletions(-) diff --git a/src/locales/languages/en_US.json b/src/locales/languages/en_US.json index 7865612c..be064794 100644 --- a/src/locales/languages/en_US.json +++ b/src/locales/languages/en_US.json @@ -156,19 +156,19 @@ "preferences.common.debug.placeholder": "Enable debug mode", "preferences.common.debug.tips": "Show debug info in log, disable to improve performance. Restart to take effect.", "preferences.common.file.name": "File Location", - "preferences.common.file.placeholder": "Default is user's Desktop", + "preferences.common.file.placeholder": "User Desktop", "preferences.common.file.tips": "Location to save screenshots and recordings", "preferences.common.adb.name": "Adb Path", - "preferences.common.adb.placeholder": "Set adb path", + "preferences.common.adb.placeholder": "Custom adb path", "preferences.common.adb.tips": "adb path to connect device", "preferences.common.scrcpy.name": "Scrcpy Path", - "preferences.common.scrcpy.placeholder": "Set scrcpy path", + "preferences.common.scrcpy.placeholder": "Custom scrcpy path", "preferences.common.scrcpy.tips": "scrcpy path to connect device", "preferences.common.scrcpy.append.name": "Scrcpy Arguments", "preferences.common.scrcpy.append.placeholder": "Append additional arguments to the scrcpy command", "preferences.common.scrcpy.append.tips": "Note: The entered arguments will be directly appended to the scrcpy command without filtering duplicate arguments.", "preferences.common.gnirehtet.name": "Gnirehtet Path", - "preferences.common.gnirehtet.placeholder": "Set gnirehtet path", + "preferences.common.gnirehtet.placeholder": "Custom gnirehtet path", "preferences.common.gnirehtet.tips": "The path for gnirehtet used to provide reverse tethering for devices.", "preferences.common.gnirehtet.fix.name": "Gnirehtet Fix", "preferences.common.gnirehtet.fix.placeholder": "Turning this on will try to fix reverse tethering issues on some devices", @@ -182,27 +182,27 @@ "preferences.video.name": "Video", "preferences.video.video-source.name": "Video Source", - "preferences.video.video-source.placeholder": "Defaults to device display", + "preferences.video.video-source.placeholder": "Device display", "preferences.video.video-source.display": "Display", "preferences.video.video-source.camera": "Camera", "preferences.video.resolution.name": "Resolution", - "preferences.video.resolution.placeholder": "Default is device resolution e.g. 1920", + "preferences.video.resolution.placeholder": "Device resolution, format: 1920", "preferences.video.bit.name": "Video Bit Rate", - "preferences.video.bit.placeholder": "Default 8000000bps", + "preferences.video.bit.placeholder": "8000000", "preferences.video.video-code.name": "Video Codec", - "preferences.video.video-code.placeholder": "Default H.264", + "preferences.video.video-code.placeholder": "h.264", "preferences.video.refresh-rate.name": "Frame Rate", - "preferences.video.refresh-rate.placeholder": "Default 60", + "preferences.video.refresh-rate.placeholder": "60", "preferences.video.screen-rotation.name": "Rotation", - "preferences.video.screen-rotation.placeholder": "Default device rotation", + "preferences.video.screen-rotation.placeholder": "Device rotation", "preferences.video.screen-cropping.name": "Crop", - "preferences.video.screen-cropping.placeholder": "Default no crop, format is 1224:1440:0:0", + "preferences.video.screen-cropping.placeholder": "No crop, format: 1224:1440:0:0", "preferences.video.display.name": "Display", - "preferences.video.display.placeholder": "Default 0 (main display)", + "preferences.video.display.placeholder": "Main display", "preferences.video.video-buffer.name": "Video Buffer", - "preferences.video.video-buffer.placeholder": "Default 0ms", + "preferences.video.video-buffer.placeholder": "0", "preferences.video.receiver-buffer.name": "Receiver Buffer (v412)", - "preferences.video.receiver-buffer.placeholder": "Default 0ms", + "preferences.video.receiver-buffer.placeholder": "0", "preferences.device.name": "Device", "preferences.device.show-touch.name": "Show Touches", @@ -219,8 +219,8 @@ "preferences.device.control-in-stop-charging.placeholder": "Stop charging when controlling", "preferences.device.control-in-stop-charging.tips": "May not work on some models", "preferences.device.display-overlay.name": "Simulated Display", - "preferences.device.display-overlay.placeholder": "Size and resolution of simulated secondary display, default 1080x1920/320,secure", - "preferences.device.display-overlay.tips": "Mirroring group relies on this option", + "preferences.device.display-overlay.placeholder": "1080x1920/320,secure", + "preferences.device.display-overlay.tips": "Size and resolution of simulated secondary display, Mirroring group relies on this option", "preferences.window.name": "Window", "preferences.window.borderless.name": "Borderless", @@ -235,10 +235,10 @@ "preferences.record.name": "Recording", "preferences.record.format.name": "Format", "preferences.record.time-limit.name": "Recording Time Limit", - "preferences.record.time-limit.placeholder": "Default No time limit", - "preferences.record.format.placeholder": "Default *.mp4", + "preferences.record.time-limit.placeholder": "No time limit", + "preferences.record.format.placeholder": "mp4", "preferences.record.lock-video-orientation.name": "Video Direction", - "preferences.record.lock-video-orientation.placeholder": "Default Device Orientation", + "preferences.record.lock-video-orientation.placeholder": "Device Orientation", "preferences.record.disable-video.name": "Disable Video Recording", "preferences.record.disable-video.placeholder": "Video recording will be disabled when enabled", "preferences.record.disable-audio.name": "Disable Audio Recording", @@ -252,19 +252,19 @@ "preferences.audio.name": "Audio", "preferences.audio.audio-source.name": "Audio Source", - "preferences.audio.audio-source.placeholder": "Default Device Audio Output", + "preferences.audio.audio-source.placeholder": "Device Audio Output", "preferences.audio.audio-source.tips": "Tip: Selecting 'Microphone' as the source will allow you to record audio.", "preferences.audio.audio-source.output": "Output", "preferences.audio.audio-source.mic": "Microphone", "preferences.audio.audio-code.name": "Audio Codec", - "preferences.audio.audio-code.placeholder": "Default Opus", + "preferences.audio.audio-code.placeholder": "opus", "preferences.audio.audio-bit-rate.name": "Audio Bit Rate", - "preferences.audio.audio-bit-rate.placeholder": "Default 128000bps", + "preferences.audio.audio-bit-rate.placeholder": "128000", "preferences.audio.audio-bit-rate.tips": "Note: This option does not apply to RAW audio codecs.", "preferences.audio.audio-buffer.name": "Audio Buffer", - "preferences.audio.audio-buffer.placeholder": "Default 0ms", + "preferences.audio.audio-buffer.placeholder": "0", "preferences.audio.audio-output-buffer.name": "Audio Output Buffer", - "preferences.audio.audio-output-buffer.placeholder": "Default 5ms", + "preferences.audio.audio-output-buffer.placeholder": "5", "preferences.otg.name": "OTG", "preferences.otg.enable.name": "Enable OTG", @@ -282,16 +282,16 @@ "preferences.camera.enable.placeholder": "Enable or disable camera video source", "preferences.camera.enable.tips": "Enabled for camera as video source when mirroring or recording", "preferences.camera.camera-facing.name": "Camera Source", - "preferences.camera.camera-facing.placeholder": "Default is device camera source", + "preferences.camera.camera-facing.placeholder": "Device camera source", "preferences.camera.camera-facing.front": "Front Camera", "preferences.camera.camera-facing.back": "Back Camera", "preferences.camera.camera-facing.external": "External Camera", "preferences.camera.camera-size.name": "Camera Size", - "preferences.camera.camera-size.placeholder": "Default is device camera size, value format: 1920x1080", + "preferences.camera.camera-size.placeholder": "Device camera size, format: 1920x1080", "preferences.camera.camera-ar.name": "Camera Aspect Ratio", - "preferences.camera.camera-ar.placeholder": "Default is device camera aspect ratio, value format: 4:3, sensor, 1.6 etc", + "preferences.camera.camera-ar.placeholder": "device camera aspect ratio, format: 4:3, sensor, 1.6 etc", "preferences.camera.camera-fps.name": "Camera Frame Rate", - "preferences.camera.camera-fps.placeholder": "Default is device camera frame rate", + "preferences.camera.camera-fps.placeholder": "Device camera frame rate", "about.name": "About", "about.description": "📱 Graphical Scrcpy to display and control Android, devices powered by Electron.", diff --git a/src/locales/languages/zh_CN.json b/src/locales/languages/zh_CN.json index 3b179e91..6b950065 100644 --- a/src/locales/languages/zh_CN.json +++ b/src/locales/languages/zh_CN.json @@ -154,19 +154,19 @@ "preferences.common.debug.placeholder": "是否启动软件调试", "preferences.common.debug.tips": "启用后可以在运行日志中查看软件运行情况,一般不需要开启可能会影响性能,注意: 改变此选项需要重启软件后才能生效。", "preferences.common.file.name": "文件存储路径", - "preferences.common.file.placeholder": "默认情况下放在用户桌面上", + "preferences.common.file.placeholder": "用户桌面", "preferences.common.file.tips": "截图和录制的音视频存放在这里", "preferences.common.adb.name": "adb 路径", - "preferences.common.adb.placeholder": "请设置 adb 路径", + "preferences.common.adb.placeholder": "自定义 adb 路径", "preferences.common.adb.tips": "用于连接设备的 adb 地址。", "preferences.common.scrcpy.name": "scrcpy 路径", - "preferences.common.scrcpy.placeholder": "请设置 scrcpy 路径", + "preferences.common.scrcpy.placeholder": "自定义 scrcpy 路径", "preferences.common.scrcpy.tips": "用于连接设备的 scrcpy 地址。", "preferences.common.scrcpy.append.name": "scrcpy 参数", "preferences.common.scrcpy.append.placeholder": "为 scrcpy 命令追加额外的参数", "preferences.common.scrcpy.append.tips": "注意:录入参数将会直接附加到 scrcpy 命令中,如果存在重复的参数,并不会自动进行过滤。", "preferences.common.gnirehtet.name": "gnirehtet 路径", - "preferences.common.gnirehtet.placeholder": "请设置 gnirehtet 路径", + "preferences.common.gnirehtet.placeholder": "自定义 gnirehtet 路径", "preferences.common.gnirehtet.tips": "用于为设备反向供网的 gnirehtet 地址。", "preferences.common.gnirehtet.fix.name": "gnirehtet 修复", "preferences.common.gnirehtet.fix.placeholder": "开启将尝试修复某些机型二次开启反向供网功能失败的问题", @@ -184,30 +184,30 @@ "preferences.video.video-source.display": "显示器", "preferences.video.video-source.camera": "摄像头", "preferences.video.resolution.name": "分辨率", - "preferences.video.resolution.placeholder": "默认值为设备分辨率,如 1920", + "preferences.video.resolution.placeholder": "设备分辨率,格式:1920,1920x1080", "preferences.video.bit.name": "视频比特率", - "preferences.video.bit.placeholder": "默认值为 8000000bps", + "preferences.video.bit.placeholder": "8000000", "preferences.video.refresh-rate.name": "刷新率", - "preferences.video.refresh-rate.placeholder": "默认值为 60", + "preferences.video.refresh-rate.placeholder": "60", "preferences.video.video-code.name": "视频编码", - "preferences.video.video-code.placeholder": "默认为 H.264", + "preferences.video.video-code.placeholder": "h.264", "preferences.video.screen-rotation.name": "屏幕旋转", - "preferences.video.screen-rotation.placeholder": "默认值为设备屏幕旋转角度", + "preferences.video.screen-rotation.placeholder": "设备屏幕旋转角度", "preferences.video.screen-cropping.name": "屏幕裁剪", - "preferences.video.screen-cropping.placeholder": "默认不裁剪,格式为 1224:1440:0:0", + "preferences.video.screen-cropping.placeholder": "不裁剪,格式:1224:1440:0:0", "preferences.video.display.name": "显示器", - "preferences.video.display.placeholder": "默认值为 0(设备显示器)", + "preferences.video.display.placeholder": "设备显示器", "preferences.video.video-buffer.name": "视频缓冲", - "preferences.video.video-buffer.placeholder": "默认值为 0ms", + "preferences.video.video-buffer.placeholder": "0", "preferences.video.receiver-buffer.name": "接收器缓冲(v412)", - "preferences.video.receiver-buffer.placeholder": "默认值为 0ms", + "preferences.video.receiver-buffer.placeholder": "0", "preferences.device.name": "设备控制", "preferences.device.show-touch.name": "展示触摸点", - "preferences.device.show-touch.placeholder": "开启后将打开开发者选项中的显示点按触摸反馈", + "preferences.device.show-touch.placeholder": "开启后将激活开发者选项中的显示点按触摸反馈", "preferences.device.show-touch.tips": "仅在物理设备上展示", "preferences.device.stay-awake.name": "保持清醒", - "preferences.device.stay-awake.placeholder": "开启以防止设备进入睡眠状态", + "preferences.device.stay-awake.placeholder": "开启后将防止设备进入睡眠状态", "preferences.device.stay-awake.tips": "仅有线方式连接时有效", "preferences.device.control-in-close-screen.name": "控制时关闭屏幕", "preferences.device.control-in-close-screen.placeholder": "开启后控制设备时将自动关闭设备屏幕", @@ -217,8 +217,8 @@ "preferences.device.control-in-stop-charging.placeholder": "开启后控制设备时将停止充电", "preferences.device.control-in-stop-charging.tips": "某些机型上似乎不起作用", "preferences.device.display-overlay.name": "模拟辅助显示器", - "preferences.device.display-overlay.placeholder": "用于调整模拟辅助显示器的大小和分辨率,默认值为 1080x1920/320,secure", - "preferences.device.display-overlay.tips": "多屏协同(镜像组)依赖于此选项", + "preferences.device.display-overlay.placeholder": "1080x1920/320,secure", + "preferences.device.display-overlay.tips": "用于调整模拟辅助显示器的大小和分辨率,多屏协同(镜像组)依赖于此选项", "preferences.window.name": "窗口控制", "preferences.window.borderless.name": "无边框模式", @@ -232,11 +232,11 @@ "preferences.record.name": "音视频录制", "preferences.record.format.name": "录制视频格式", - "preferences.record.format.placeholder": "默认为 *.mp4 格式", + "preferences.record.format.placeholder": "mp4", "preferences.record.time-limit.name": "录制时长", - "preferences.record.time-limit.placeholder": "默认不限时长", + "preferences.record.time-limit.placeholder": "不限时长", "preferences.record.lock-video-orientation.name": "录制视频方向", - "preferences.record.lock-video-orientation.placeholder": "默认为设备默认方向", + "preferences.record.lock-video-orientation.placeholder": "设备默认方向", "preferences.record.disable-video.name": "禁用视频录制", "preferences.record.disable-video.placeholder": "开启后将禁用视频录制", "preferences.record.disable-audio.name": "禁用音频录制", @@ -250,46 +250,46 @@ "preferences.audio.name": "音频控制", "preferences.audio.audio-source.name": "音频源", - "preferences.audio.audio-source.placeholder": "默认为设备音频输出", + "preferences.audio.audio-source.placeholder": "设备音频输出", "preferences.audio.audio-source.tips": "技巧:如果将来源设为麦克风将可以在录制时将声音录制下来", "preferences.audio.audio-source.output": "设备输出", "preferences.audio.audio-source.mic": "麦克风", "preferences.audio.audio-code.name": "音频编码", - "preferences.audio.audio-code.placeholder": "默认为 Opus", + "preferences.audio.audio-code.placeholder": "opus", "preferences.audio.audio-bit-rate.name": "音频比特率", - "preferences.audio.audio-bit-rate.placeholder": "默认为 128000bps", + "preferences.audio.audio-bit-rate.placeholder": "128000", "preferences.audio.audio-bit-rate.tips": "注意:此选项不适用于 RAW 音频编解码器", "preferences.audio.audio-buffer.name": "音频缓冲", - "preferences.audio.audio-buffer.placeholder": "默认值为 0ms", + "preferences.audio.audio-buffer.placeholder": "0", "preferences.audio.audio-output-buffer.name": "音频输出缓冲", - "preferences.audio.audio-output-buffer.placeholder": "默认值为 5ms", + "preferences.audio.audio-output-buffer.placeholder": "5", "preferences.otg.name": "OTG 控制", "preferences.otg.enable.name": "启用 OTG", "preferences.otg.enable.placeholder": "开启或关闭 OTG 功能", "preferences.otg.enable.tips": "开启后可以同时使用物理键盘和鼠标控制安卓设备,注意:开启此功能后将会冻结 ADB 相关功能,无法和镜像以及录制功能同时使用,请知悉。", "preferences.otg.only-keyboard.name": "仅键盘", - "preferences.otg.only-keyboard.placeholder": "开启仅键盘的 OTG 功能", + "preferences.otg.only-keyboard.placeholder": "启用后将只能使用键盘的 OTG 功能", "preferences.otg.only-keyboard.tips": "注意:仅启用该选项将禁用鼠标的 OTG 功能", "preferences.otg.only-mouse.name": "仅鼠标", - "preferences.otg.only-mouse.placeholder": "开启或关闭仅鼠标的 OTG 功能", + "preferences.otg.only-mouse.placeholder": "启用后将只能使用鼠标的 OTG 功能", "preferences.otg.only-mouse.tips": "注意:仅启用该选项将禁用键盘的 OTG 功能", "preferences.camera.name": "摄像控制", "preferences.camera.enable.name": "启用摄像", - "preferences.camera.enable.placeholder": "开启或关闭摄像视频源", + "preferences.camera.enable.placeholder": "启用后将会把摄像作为视频源", "preferences.camera.enable.tips": "开启后镜像或录制时将以摄像作为视频源", "preferences.camera.camera-facing.name": "摄像源", - "preferences.camera.camera-facing.placeholder": "默认为设备摄像源", + "preferences.camera.camera-facing.placeholder": "设备摄像源", "preferences.camera.camera-facing.front": "前置摄像", "preferences.camera.camera-facing.back": "后置摄像", "preferences.camera.camera-facing.external": "外接摄像", "preferences.camera.camera-size.name": "摄像尺寸", - "preferences.camera.camera-size.placeholder": "默认为设备摄像尺寸,值格式为:1920x1080", + "preferences.camera.camera-size.placeholder": "设备摄像尺寸,格式:1920x1080", "preferences.camera.camera-ar.name": "摄像比例", - "preferences.camera.camera-ar.placeholder": "默认为设备摄像比例,值格式为:4:3,sensor,1.6 等", + "preferences.camera.camera-ar.placeholder": "设备摄像比例,格式:4:3,sensor,1.6", "preferences.camera.camera-fps.name": "摄像帧率", - "preferences.camera.camera-fps.placeholder": "默认为设备摄像帧率", + "preferences.camera.camera-fps.placeholder": "设备摄像帧率", "about.name": "关于", "about.description": "📱 使用图形化的 Scrcpy 显示和控制您的 Android 设备,由 Electron 驱动", diff --git a/src/store/preference/model/audio/index.js b/src/store/preference/model/audio/index.js index 70a4c142..d75bf33c 100644 --- a/src/store/preference/model/audio/index.js +++ b/src/store/preference/model/audio/index.js @@ -53,7 +53,7 @@ export default { type: 'Input.number', value: undefined, placeholder: 'preferences.audio.audio-bit-rate.placeholder', - append: 'bps', + append: 'kbps', }, audioBuffer: { label: 'preferences.audio.audio-buffer.name', diff --git a/src/store/preference/model/video/index.js b/src/store/preference/model/video/index.js index b21a1314..047c5816 100644 --- a/src/store/preference/model/video/index.js +++ b/src/store/preference/model/video/index.js @@ -34,7 +34,7 @@ export default { type: 'Input.number', value: undefined, placeholder: 'preferences.video.bit.placeholder', - append: 'bps', + append: 'kbps', }, maxFps: { label: 'preferences.video.refresh-rate.name',