Your Android phone and your Windows PC, working as one. Local-first, end-to-end encrypted, no account.
Windows: translate the rest of the text built in Rust
Bee92e8b05f1f0b
diff --git a/desktop/app/i18n/nectarlink_zh_CN.ts b/desktop/app/i18n/nectarlink_zh_CN.tsindex 0cd1360..8109fdf 100644--- a/desktop/app/i18n/nectarlink_zh_CN.ts+++ b/desktop/app/i18n/nectarlink_zh_CN.ts@@ -10,59 +10,154 @@</message><message><location filename="rust_strings.h" line="8"/>+ <source>Command palette</source>+ <translation>命令面板</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="9"/><source>Copied to clipboard.</source><translation>已复制到剪贴板。</translation></message><message>- <location filename="rust_strings.h" line="9"/>+ <location filename="rust_strings.h" line="10"/><source>Could not copy to the clipboard.</source><translation>无法复制到剪贴板。</translation></message><message>- <location filename="rust_strings.h" line="10"/>+ <location filename="rust_strings.h" line="11"/>+ <source>Downloading the update · %1 of %2</source>+ <translation>正在下载更新 · %1 / %2</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="12"/>+ <source>Downloading the update…</source>+ <translation>正在下载更新…</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="13"/>+ <source>Find my phone</source>+ <translation>查找我的手机</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="14"/>+ <source>My phone's colors</source>+ <translation>我的手机配色</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="15"/>+ <source>My phone's colors (%1)</source>+ <translation>我的手机配色(%1)</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="16"/>+ <source>NectarLink · %1</source>+ <translation>NectarLink · %1</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="17"/>+ <source>NectarLink · %1 devices connected</source>+ <translation>NectarLink · 已连接 %1 台设备</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="18"/>+ <source>NectarLink · 1 device connected</source>+ <translation>NectarLink · 已连接 1 台设备</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="19"/>+ <source>NectarLink · no devices paired</source>+ <translation>NectarLink · 未配对设备</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="20"/>+ <source>NectarLink · not connected</source>+ <translation>NectarLink · 未连接</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="21"/><source>No phone is paired yet.</source><translation>尚未配对手机。</translation></message><message>- <location filename="rust_strings.h" line="11"/>+ <location filename="rust_strings.h" line="22"/>+ <source>Open NectarLink</source>+ <translation>打开 NectarLink</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="23"/>+ <source>Open copied link on phone</source>+ <translation>在手机上打开复制的链接</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="24"/>+ <source>Quit NectarLink</source>+ <translation>退出 NectarLink</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="25"/>+ <source>Scan document with phone</source>+ <translation>用手机扫描文档</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="26"/><source>Send cancelled</source><translation>已取消发送</translation></message><message>- <location filename="rust_strings.h" line="12"/>+ <location filename="rust_strings.h" line="27"/><source>Sending to %1…</source><translation>正在发送到 %1…</translation></message><message>- <location filename="rust_strings.h" line="13"/>+ <location filename="rust_strings.h" line="28"/><source>Sent text to %1.</source><translation>已将文本发送到 %1。</translation></message><message>- <location filename="rust_strings.h" line="14"/>+ <location filename="rust_strings.h" line="29"/><source>Some history couldn't be cleared. Try again.</source><translation>部分历史记录无法清除,请重试。</translation></message><message>- <location filename="rust_strings.h" line="15"/>+ <location filename="rust_strings.h" line="30"/><source>Some messages couldn't be cleared. Try again.</source><translation>部分消息无法清除,请重试。</translation></message><message>- <location filename="rust_strings.h" line="16"/>+ <location filename="rust_strings.h" line="31"/>+ <source>Take photo with phone</source>+ <translation>用手机拍照</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="32"/><source>That file is no longer in its saved location.</source><translation>该文件已不在保存的位置。</translation></message><message>- <location filename="rust_strings.h" line="17"/>+ <location filename="rust_strings.h" line="33"/><source>The photo couldn't be copied to the clipboard.</source><translation>无法将照片复制到剪贴板。</translation></message><message>- <location filename="rust_strings.h" line="18"/>+ <location filename="rust_strings.h" line="34"/><source>The received file history couldn't be cleared. Try again.</source><translation>无法清除已接收文件的历史记录,请重试。</translation></message>+ <message>+ <location filename="rust_strings.h" line="35"/>+ <source>Toggle Shelf</source>+ <translation>显示或隐藏侧边栏</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="36"/>+ <source>Wi-Fi %1/4</source>+ <translation>Wi‑Fi %1/4</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="37"/>+ <source>Your phone</source>+ <translation>你的手机</translation>+ </message></context><context><name>AppsPage</name>@@ -181,6 +276,50 @@<translation>全部应用</translation></message></context>+<context>+ <name>Automations</name>+ <message>+ <location filename="rust_strings.h" line="38"/>+ <source>Triggered by %1</source>+ <translation>由 %1 触发</translation>+ </message>+</context>+<context>+ <name>Battery</name>+ <message>+ <location filename="rust_strings.h" line="39"/>+ <source>%1 is fully charged</source>+ <translation>%1 已充满电</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="40"/>+ <source>You can unplug it.</source>+ <translation>可以拔下充电器了。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="41"/>+ <source>Your phone</source>+ <translation>你的手机</translation>+ </message>+</context>+<context>+ <name>BtHfp</name>+ <message>+ <location filename="rust_strings.h" line="42"/>+ <source>Bluetooth connected (%1).</source>+ <translation>蓝牙已连接(%1)。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="43"/>+ <source>Bluetooth paired with %1 (not currently connected).</source>+ <translation>蓝牙已与 %1 配对(当前未连接)。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="44"/>+ <source>No paired Bluetooth phone endpoint found in Windows.</source>+ <translation>Windows 中没有已配对的蓝牙手机。</translation>+ </message>+</context><context><name>CallCard</name><message>@@ -257,10 +396,30 @@<context><name>Calls</name><message>- <location filename="rust_strings.h" line="19"/>+ <location filename="rust_strings.h" line="45"/>+ <source>Calling %1</source>+ <translation>正在呼叫 %1</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="46"/>+ <source>Missed call from %1</source>+ <translation>%1 的未接来电</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="47"/>+ <source>On a call with %1</source>+ <translation>正在与 %1 通话</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="48"/><source>That call is over.</source><translation>该通话已结束。</translation></message>+ <message>+ <location filename="rust_strings.h" line="49"/>+ <source>Unknown caller</source>+ <translation>未知来电</translation>+ </message></context><context><name>CallsPage</name>@@ -572,62 +731,67 @@<context><name>Clipboard</name><message>- <location filename="rust_strings.h" line="20"/>+ <location filename="rust_strings.h" line="50"/>+ <source>Copied from %1</source>+ <translation>已从 %1 复制</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="51"/><source>Copied from %1.</source><translation>已从 %1 复制。</translation></message><message>- <location filename="rust_strings.h" line="21"/>+ <location filename="rust_strings.h" line="52"/><source>Copied to clipboard</source><translation>已复制到剪贴板</translation></message><message>- <location filename="rust_strings.h" line="22"/>+ <location filename="rust_strings.h" line="53"/><source>Sending copied files to %1…</source><translation>正在将复制的文件发送到 %1…</translation></message><message>- <location filename="rust_strings.h" line="23"/>+ <location filename="rust_strings.h" line="54"/><source>Sent to %1.</source><translation>已发送到 %1。</translation></message><message>- <location filename="rust_strings.h" line="24"/>+ <location filename="rust_strings.h" line="55"/><source>That clip is no longer in clipboard history.</source><translation>该剪贴内容已不在剪贴板历史中。</translation></message><message>- <location filename="rust_strings.h" line="25"/>+ <location filename="rust_strings.h" line="56"/><source>That image can't be read.</source><translation>无法读取该图片。</translation></message><message>- <location filename="rust_strings.h" line="26"/>+ <location filename="rust_strings.h" line="57"/><source>That image is too large to send.</source><translation>该图片太大,无法发送。</translation></message><message>- <location filename="rust_strings.h" line="27"/>+ <location filename="rust_strings.h" line="58"/><source>That's too much text to send at once.</source><translation>文本太多,无法一次发送。</translation></message><message>- <location filename="rust_strings.h" line="28"/>+ <location filename="rust_strings.h" line="59"/><source>The clipboard is turned off for %1.</source><translation>已为 %1 关闭剪贴板。</translation></message><message>- <location filename="rust_strings.h" line="29"/>+ <location filename="rust_strings.h" line="60"/><source>There's no text, image, or file on the clipboard.</source><translation>剪贴板上没有文本、图片或文件。</translation></message><message>- <location filename="rust_strings.h" line="30"/>+ <location filename="rust_strings.h" line="61"/><source>Update NectarLink on %1 to send it images.</source><translation>请更新 %1 上的 NectarLink 以向其发送图片。</translation></message><message>- <location filename="rust_strings.h" line="31"/>+ <location filename="rust_strings.h" line="62"/><source>What you copied is marked private by its app, so it wasn't sent.</source><translation>你复制的内容被其应用标记为私密,因此未发送。</translation></message>@@ -680,120 +844,663 @@<translation>%1 · %2 毫秒</translation></message><message>- <location filename="rust_strings.h" line="32"/>- <source>Calling %1 on %2…</source>- <translation>正在通过 %2 呼叫 %1…</translation>+ <location filename="rust_strings.h" line="63"/>+ <source>Browse all 28 features, live capability status, and where to find them</source>+ <translation>浏览全部 28 项功能、实时可用状态以及它们的位置</translation></message><message>- <location filename="rust_strings.h" line="33"/>- <source>Opened Recordings folder. Start a voice note in NectarLink on %1 to send it here.</source>- <translation>已打开录音文件夹。在 %1 上的 NectarLink 中开始语音备忘,即可发送到这里。</translation>+ <location filename="rust_strings.h" line="64"/>+ <source>Browse phone storage in File Explorer</source>+ <translation>在文件资源管理器中浏览手机存储</translation></message><message>- <location filename="rust_strings.h" line="34"/>- <source>Ringing %1…</source>- <translation>正在让 %1 响铃…</translation>+ <location filename="rust_strings.h" line="65"/>+ <source>Call %1</source>+ <translation>呼叫 %1</translation></message><message>- <location filename="rust_strings.h" line="35"/>- <source>Starting phone webcam…</source>- <translation>正在启动手机摄像头…</translation>+ <location filename="rust_strings.h" line="66"/>+ <source>Calling %1 on %2…</source>+ <translation>正在通过 %2 呼叫 %1…</translation></message><message>- <location filename="rust_strings.h" line="36"/>- <source>Stopped phone webcam.</source>- <translation>已停止手机摄像头。</translation>+ <location filename="rust_strings.h" line="67"/>+ <source>Capture a photo on your phone and paste it into the active window</source>+ <translation>用手机拍照并粘贴到当前窗口</translation></message><message>- <location filename="rust_strings.h" line="37"/>- <source>Syncing devices…</source>- <translation>正在同步设备…</translation>+ <location filename="rust_strings.h" line="68"/>+ <source>Check Wake-on-LAN status in Settings</source>+ <translation>在设置中查看网络唤醒状态</translation></message><message>- <location filename="rust_strings.h" line="38"/>- <source>That file is no longer in its saved location.</source>- <translation>该文件已不在保存的位置。</translation>+ <location filename="rust_strings.h" line="69"/>+ <source>Connection Doctor</source>+ <translation>连接诊断</translation></message>-</context>-<context>- <name>ContinuityCamera</name><message>- <location filename="rust_strings.h" line="39"/>- <source>Couldn’t copy image to clipboard: %1</source>- <translation>无法将图片复制到剪贴板:%1</translation>+ <location filename="rust_strings.h" line="70"/>+ <source>Continue copied video on phone</source>+ <translation>在手机上继续播放复制的视频</translation></message><message>- <location filename="rust_strings.h" line="40"/>- <source>Image is on your clipboard. Press Ctrl+V in your target app.</source>- <translation>图片已在剪贴板上。在目标应用中按 Ctrl+V。</translation>+ <location filename="rust_strings.h" line="71"/>+ <source>Copied image</source>+ <translation>已复制的图片</translation></message><message>- <location filename="rust_strings.h" line="41"/>- <source>Pair your phone first to take a photo or scan a document.</source>- <translation>请先配对手机,再拍照或扫描文档。</translation>+ <location filename="rust_strings.h" line="72"/>+ <source>Copy: %1</source>+ <translation>复制:%1</translation></message><message>- <location filename="rust_strings.h" line="42"/>- <source>Pasted into %1</source>- <translation>已粘贴到 %1</translation>+ <location filename="rust_strings.h" line="73"/>+ <source>Diagnose and fix firewall, discovery, or network issues</source>+ <translation>诊断并修复防火墙、发现或网络问题</translation></message>-</context>-<context>- <name>CoreHost</name><message>- <location filename="rust_strings.h" line="43"/>- <source>Dropped %1 queued item(s) for %2 (device unpaired).</source>- <translation>已为 %2 丢弃 %1 个排队项目(设备已取消配对)。</translation>+ <location filename="rust_strings.h" line="74"/>+ <source>Features guide</source>+ <translation>功能指南</translation></message>-</context>-<context>- <name>DeckPage</name><message>- <location filename="../qml/pages/DeckPage.qml" line="20"/>- <location filename="../qml/pages/DeckPage.qml" line="22"/>- <location filename="../qml/pages/DeckPage.qml" line="26"/>- <source>Main</source>- <translation>主要</translation>+ <location filename="rust_strings.h" line="75"/>+ <source>Find %1</source>+ <translation>查找 %1</translation></message><message>- <location filename="../qml/pages/DeckPage.qml" line="94"/>- <location filename="../qml/pages/DeckPage.qml" line="95"/>- <location filename="../qml/pages/DeckPage.qml" line="96"/>- <source>Media</source>- <translation>媒体</translation>+ <location filename="rust_strings.h" line="76"/>+ <source>Find my phone</source>+ <translation>查找我的手机</translation></message><message>- <location filename="../qml/pages/DeckPage.qml" line="94"/>- <source>Play / pause</source>- <translation>播放 / 暂停</translation>+ <location filename="rust_strings.h" line="77"/>+ <source>From %1</source>+ <translation>来自 %1</translation></message><message>- <location filename="../qml/pages/DeckPage.qml" line="95"/>- <source>Previous track</source>- <translation>上一曲</translation>+ <location filename="rust_strings.h" line="78"/>+ <source>Hand off document to phone</source>+ <translation>将文档接力到手机</translation></message><message>- <location filename="../qml/pages/DeckPage.qml" line="96"/>- <source>Next track</source>- <translation>下一曲</translation>+ <location filename="rust_strings.h" line="79"/>+ <source>Handoff · Doc</source>+ <translation>接力 · 文档</translation></message><message>- <location filename="../qml/pages/DeckPage.qml" line="97"/>- <location filename="../qml/pages/DeckPage.qml" line="98"/>- <location filename="../qml/pages/DeckPage.qml" line="99"/>- <location filename="../qml/pages/DeckPage.qml" line="100"/>- <source>Audio</source>- <translation>音频</translation>+ <location filename="rust_strings.h" line="80"/>+ <source>Handoff · Map</source>+ <translation>接力 · 地图</translation></message><message>- <location filename="../qml/pages/DeckPage.qml" line="97"/>- <source>Volume down</source>- <translation>音量减</translation>+ <location filename="rust_strings.h" line="81"/>+ <source>Handoff · Video</source>+ <translation>接力 · 视频</translation></message><message>- <location filename="../qml/pages/DeckPage.qml" line="98"/>- <source>Volume up</source>- <translation>音量加</translation>+ <location filename="rust_strings.h" line="82"/>+ <source>Hide Shelf</source>+ <translation>隐藏侧边栏</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="83"/>+ <source>Make %1 ring at full volume</source>+ <translation>让 %1 以最大音量响铃</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="84"/>+ <source>Make phone ring at full volume</source>+ <translation>让手机以最大音量响铃</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="85"/>+ <source>Mirror %1</source>+ <translation>镜像 %1</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="86"/>+ <source>Mirror Apps</source>+ <translation>镜像应用</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="87"/>+ <source>Mirror phone screen</source>+ <translation>镜像手机屏幕</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="88"/>+ <source>Mute %1's ringer</source>+ <translation>将 %1 的铃声静音</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="89"/>+ <source>No physical network adapter found for Wake-on-LAN.</source>+ <translation>没有找到可用于网络唤醒的物理网络适配器。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="90"/>+ <source>Open %1</source>+ <translation>打开 %1</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="91"/>+ <source>Open %1 in a window from %2</source>+ <translation>在窗口中打开 %2 上的 %1</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="92"/>+ <source>Open %1's Cloud Files folder in Explorer</source>+ <translation>在资源管理器中打开 %1 的云文件文件夹</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="93"/>+ <source>Open Shelf</source>+ <translation>打开侧边栏</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="94"/>+ <source>Open conversation on %1</source>+ <translation>在 %1 上打开对话</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="95"/>+ <source>Open copied link on phone</source>+ <translation>在手机上打开复制的链接</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="96"/>+ <source>Open copied location in Maps on phone</source>+ <translation>在手机地图中打开复制的位置</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="97"/>+ <source>Open last photo</source>+ <translation>打开最新照片</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="98"/>+ <source>Open last photo from %1</source>+ <translation>打开 %1 的最新照片</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="99"/>+ <source>Open newest photo or screenshot</source>+ <translation>打开最新的照片或截图</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="100"/>+ <source>Open the newest photo or screenshot from %1</source>+ <translation>打开 %1 最新的照片或截图</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="101"/>+ <source>Open voice recordings folder for %1</source>+ <translation>打开 %1 的录音文件夹</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="102"/>+ <source>Opened Recordings folder. Start a voice note in NectarLink on %1 to send it here.</source>+ <translation>已打开录音文件夹。在 %1 上的 NectarLink 中开始语音备忘,即可发送到这里。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="103"/>+ <source>Pair a new phone</source>+ <translation>配对新手机</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="104"/>+ <source>Place a phone call or open in dialer</source>+ <translation>拨打电话或在拨号器中打开</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="105"/>+ <source>Place call on %1</source>+ <translation>通过 %1 拨打电话</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="106"/>+ <source>Quick Toggles</source>+ <translation>快捷开关</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="107"/>+ <source>Re-open the step-by-step setup walkthrough</source>+ <translation>重新打开分步设置向导</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="108"/>+ <source>Ready on %1</source>+ <translation>已在 %1 上就绪</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="109"/>+ <source>Recent Activity</source>+ <translation>最近活动</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="110"/>+ <source>Reconnect paired phones and refresh notifications and media</source>+ <translation>重新连接已配对的手机并刷新通知和媒体</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="111"/>+ <source>Record voice</source>+ <translation>录音</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="112"/>+ <source>Ringer: Silent</source>+ <translation>铃声:静音</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="113"/>+ <source>Ringer: Sound</source>+ <translation>铃声:响铃</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="114"/>+ <source>Ringer: Vibrate</source>+ <translation>铃声:振动</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="115"/>+ <source>Ringing %1…</source>+ <translation>正在让 %1 响铃…</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="116"/>+ <source>Scan a document on your phone and paste it into the active window</source>+ <translation>用手机扫描文档并粘贴到当前窗口</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="117"/>+ <source>Scan document with phone</source>+ <translation>用手机扫描文档</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="118"/>+ <source>Send a document to %1 and open it automatically upon arrival</source>+ <translation>将文档发送到 %1,到达后自动打开</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="119"/>+ <source>Send clipboard</source>+ <translation>发送剪贴板</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="120"/>+ <source>Send clipboard to %1</source>+ <translation>将剪贴板发送到 %1</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="121"/>+ <source>Send copied text or image</source>+ <translation>发送复制的文本或图片</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="122"/>+ <source>Send copied text or image to %1</source>+ <translation>将复制的文本或图片发送到 %1</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="123"/>+ <source>Send live keystrokes and text to %1 without screen mirroring</source>+ <translation>无需屏幕镜像,将实时按键和文本发送到 %1</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="124"/>+ <source>Set %1's ringer mode to normal sound</source>+ <translation>将 %1 的铃声模式设为响铃</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="125"/>+ <source>Set %1's ringer mode to vibrate</source>+ <translation>将 %1 的铃声模式设为振动</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="126"/>+ <source>Setup walkthrough</source>+ <translation>设置向导</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="127"/>+ <source>Show QR code and pairing code to link another phone</source>+ <translation>显示二维码和配对码以连接另一部手机</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="128"/>+ <source>Slide-out edge panel with latest photo, screenshot, clipboard, and recent files</source>+ <translation>从屏幕边缘滑出的面板,含最新照片、截图、剪贴板和最近文件</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="129"/>+ <source>Start a new message conversation</source>+ <translation>开始新的短信对话</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="130"/>+ <source>Starting phone webcam…</source>+ <translation>正在启动手机摄像头…</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="131"/>+ <source>Stop phone webcam</source>+ <translation>停止手机摄像头</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="132"/>+ <source>Stop typing on phone</source>+ <translation>停止在手机上输入</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="133"/>+ <source>Stopped phone webcam.</source>+ <translation>已停止手机摄像头。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="134"/>+ <source>Stream %1's camera into the NectarLink virtual webcam</source>+ <translation>将 %1 的摄像头画面传入 NectarLink 虚拟摄像头</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="135"/>+ <source>Stream %1's screen in a desktop window</source>+ <translation>在桌面窗口中显示 %1 的屏幕</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="136"/>+ <source>Switch Bluetooth on %1</source>+ <translation>切换 %1 的蓝牙</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="137"/>+ <source>Switch Do Not Disturb on %1</source>+ <translation>切换 %1 的勿扰模式</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="138"/>+ <source>Switch Wi-Fi on %1</source>+ <translation>切换 %1 的 Wi‑Fi</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="139"/>+ <source>Switch to %1</source>+ <translation>切换到 %1</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="140"/>+ <source>Switch torch / flashlight on %1</source>+ <translation>切换 %1 的手电筒</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="141"/>+ <source>Sync now</source>+ <translation>立即同步</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="142"/>+ <source>Syncing devices…</source>+ <translation>正在同步设备…</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="143"/>+ <source>Take photo with phone</source>+ <translation>用手机拍照</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="144"/>+ <source>Text %1</source>+ <translation>给 %1 发短信</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="145"/>+ <source>That file is no longer in its saved location.</source>+ <translation>该文件已不在保存的位置。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="146"/>+ <source>Toggle Bluetooth</source>+ <translation>切换蓝牙</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="147"/>+ <source>Toggle Do Not Disturb</source>+ <translation>切换勿扰模式</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="148"/>+ <source>Toggle Flashlight</source>+ <translation>切换手电筒</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="149"/>+ <source>Toggle Wi-Fi</source>+ <translation>切换 Wi‑Fi</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="150"/>+ <source>Type on phone with PC keyboard</source>+ <translation>用电脑键盘在手机上输入</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="151"/>+ <source>Use phone as webcam</source>+ <translation>将手机用作摄像头</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="152"/>+ <source>Wake-on-LAN is ready on %1 (phones can wake this PC).</source>+ <translation>已在 %1 上就绪网络唤醒(手机可以唤醒此电脑)。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="153"/>+ <source>Wake-on-LAN on %1 is %2. Check Settings.</source>+ <translation>%1 上的网络唤醒状态为 %2。请检查设置。</translation>+ </message>+</context>+<context>+ <name>ContinuityCamera</name>+ <message>+ <location filename="rust_strings.h" line="154"/>+ <source>Allow Photos access for %1 in Settings first.</source>+ <translation>请先在设置中允许 %1 访问照片。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="155"/>+ <source>Camera capture cancelled on %1.</source>+ <translation>已在 %1 上取消拍摄。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="156"/>+ <source>Camera is busy on %1.</source>+ <translation>%1 上的相机正忙。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="157"/>+ <source>Camera permission was denied on %1.</source>+ <translation>%1 上的相机权限被拒绝。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="158"/>+ <source>Couldn’t copy image to clipboard: %1</source>+ <translation>无法将图片复制到剪贴板:%1</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="159"/>+ <source>Couldn’t open camera on %1: %2</source>+ <translation>无法打开 %1 上的相机:%2</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="160"/>+ <source>Image is on your clipboard. Press Ctrl+V in your target app.</source>+ <translation>图片已在剪贴板上。在目标应用中按 Ctrl+V。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="161"/>+ <source>Opening camera on %1…</source>+ <translation>正在打开 %1 上的相机…</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="162"/>+ <source>Opening document scanner on %1…</source>+ <translation>正在打开 %1 上的文档扫描…</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="163"/>+ <source>Pair your phone first to take a photo or scan a document.</source>+ <translation>请先配对手机,再拍照或扫描文档。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="164"/>+ <source>Pasted into %1</source>+ <translation>已粘贴到 %1</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="165"/>+ <source>Scan a document on %1…</source>+ <translation>在 %1 上扫描文档…</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="166"/>+ <source>Take a photo on %1…</source>+ <translation>在 %1 上拍照…</translation>+ </message>+</context>+<context>+ <name>CoreHost</name>+ <message>+ <location filename="rust_strings.h" line="167"/>+ <source>Dropped %1 queued item(s) for %2 (device unpaired).</source>+ <translation>已为 %2 丢弃 %1 个排队项目(设备已取消配对)。</translation>+ </message>+</context>+<context>+ <name>Deck</name>+ <message>+ <location filename="rust_strings.h" line="168"/>+ <source>Alt + Tab</source>+ <translation>Alt + Tab</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="169"/>+ <source>Application path must end with .exe or .lnk.</source>+ <translation>应用路径必须以 .exe 或 .lnk 结尾。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="170"/>+ <source>Choose a key for the shortcut.</source>+ <translation>请为快捷键选择一个键。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="171"/>+ <source>Choose an application (.exe or .lnk) on this PC.</source>+ <translation>请选择此电脑上的应用(.exe 或 .lnk)。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="172"/>+ <source>Enter a command to run on this PC.</source>+ <translation>请输入要在此电脑上运行的命令。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="173"/>+ <source>Enter an http:// or https:// web address.</source>+ <translation>请输入以 http:// 或 https:// 开头的网址。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="174"/>+ <source>Enter the text snippet to type.</source>+ <translation>请输入要键入的文本片段。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="175"/>+ <source>Invalid action configuration.</source>+ <translation>操作设置无效。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="176"/>+ <source>Invalid tile properties.</source>+ <translation>磁贴属性无效。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="177"/>+ <source>Media key</source>+ <translation>媒体键</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="178"/>+ <source>Page not found.</source>+ <translation>未找到页面。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="179"/>+ <source>This page already has the maximum number of tiles (24).</source>+ <translation>此页面的磁贴已达上限(24 个)。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="180"/>+ <source>Tile not found.</source>+ <translation>未找到磁贴。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="181"/>+ <source>Use a single key (a-z, 0-9, f1-f12, enter, tab, space, escape, arrows, etc.).</source>+ <translation>请使用单个键(a-z、0-9、f1-f12、enter、tab、space、escape、方向键等)。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="182"/>+ <source>Web address must start with http:// or https://.</source>+ <translation>网址必须以 http:// 或 https:// 开头。</translation>+ </message>+</context>+<context>+ <name>DeckPage</name>+ <message>+ <location filename="../qml/pages/DeckPage.qml" line="20"/>+ <location filename="../qml/pages/DeckPage.qml" line="22"/>+ <location filename="../qml/pages/DeckPage.qml" line="26"/>+ <source>Main</source>+ <translation>主要</translation>+ </message>+ <message>+ <location filename="../qml/pages/DeckPage.qml" line="94"/>+ <location filename="../qml/pages/DeckPage.qml" line="95"/>+ <location filename="../qml/pages/DeckPage.qml" line="96"/>+ <source>Media</source>+ <translation>媒体</translation>+ </message>+ <message>+ <location filename="../qml/pages/DeckPage.qml" line="94"/>+ <source>Play / pause</source>+ <translation>播放 / 暂停</translation>+ </message>+ <message>+ <location filename="../qml/pages/DeckPage.qml" line="95"/>+ <source>Previous track</source>+ <translation>上一曲</translation>+ </message>+ <message>+ <location filename="../qml/pages/DeckPage.qml" line="96"/>+ <source>Next track</source>+ <translation>下一曲</translation>+ </message>+ <message>+ <location filename="../qml/pages/DeckPage.qml" line="97"/>+ <location filename="../qml/pages/DeckPage.qml" line="98"/>+ <location filename="../qml/pages/DeckPage.qml" line="99"/>+ <location filename="../qml/pages/DeckPage.qml" line="100"/>+ <source>Audio</source>+ <translation>音频</translation>+ </message>+ <message>+ <location filename="../qml/pages/DeckPage.qml" line="97"/>+ <source>Volume down</source>+ <translation>音量减</translation>+ </message>+ <message>+ <location filename="../qml/pages/DeckPage.qml" line="98"/>+ <source>Volume up</source>+ <translation>音量加</translation></message><message><location filename="../qml/pages/DeckPage.qml" line="99"/>@@ -1090,24 +1797,237 @@<translation>页面名称</translation></message><message>- <location filename="../qml/pages/DeckPage.qml" line="1029"/>- <source>Create</source>- <translation>创建</translation>+ <location filename="../qml/pages/DeckPage.qml" line="1029"/>+ <source>Create</source>+ <translation>创建</translation>+ </message>+ <message>+ <location filename="../qml/pages/DeckPage.qml" line="1043"/>+ <source>Reset Deck to defaults?</source>+ <translation>将面板恢复为默认设置?</translation>+ </message>+ <message>+ <location filename="../qml/pages/DeckPage.qml" line="1049"/>+ <source>This replaces your custom pages and tiles with the default 11-tile Deck.</source>+ <translation>这会将你的自定义页面和磁贴替换为默认的 11 磁贴面板。</translation>+ </message>+ <message>+ <location filename="../qml/pages/DeckPage.qml" line="1057"/>+ <source>Reset</source>+ <translation>重置</translation>+ </message>+</context>+<context>+ <name>Doctor</name>+ <message>+ <location filename="rust_strings.h" line="183"/>+ <source>%1 Open NectarLink on the phone and keep both on the same network. If the phone asks to run in the background, allow it.</source>+ <translation>%1 在手机上打开 NectarLink,并让两台设备处于同一网络。如果手机询问是否允许在后台运行,请允许。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="184"/>+ <source>%1 days ago</source>+ <translation>%1 天前</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="185"/>+ <source>%1 hours ago</source>+ <translation>%1 小时前</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="186"/>+ <source>%1 is connected</source>+ <translation>%1 已连接</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="187"/>+ <source>%1 is on this Wi-Fi, but the router blocks direct connections (AP isolation)</source>+ <translation>%1 在此 Wi‑Fi 上,但路由器阻止了直接连接(AP 隔离)</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="188"/>+ <source>%1 is set as a public network</source>+ <translation>%1 被设为公用网络</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="189"/>+ <source>%1 isn't connected</source>+ <translation>%1 未连接</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="190"/>+ <source>%1 minutes ago</source>+ <translation>%1 分钟前</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="191"/>+ <source>%1 · %2 ms</source>+ <translation>%1 · %2 毫秒</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="192"/>+ <source>A VPN is on</source>+ <translation>VPN 已开启</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="193"/>+ <source>Connect it to the same Wi-Fi or wired network as your phone.</source>+ <translation>请将它连接到与手机相同的 Wi‑Fi 或有线网络。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="194"/>+ <source>Connected to %1</source>+ <translation>已连接到 %1</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="195"/>+ <source>Connected to a network</source>+ <translation>已连接到网络</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="196"/>+ <source>Connecting to %1…</source>+ <translation>正在连接 %1…</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="197"/>+ <source>It hasn't connected yet.</source>+ <translation>它还没有连接过。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="198"/>+ <source>Keep %1 reachable in the background (%2)</source>+ <translation>让 %1 在后台保持可连接(%2)</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="199"/>+ <source>Last seen %1.</source>+ <translation>上次在线:%1。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="200"/>+ <source>NectarLink isn't allowed through Windows Firewall</source>+ <translation>Windows 防火墙未允许 NectarLink</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="201"/>+ <source>On Huawei / Honor: open Settings → Battery → App launch, turn off Manage automatically for NectarLink, and keep Auto-launch, Secondary launch, and Run in background on.</source>+ <translation>华为 / 荣耀:打开 设置 → 电池 → 应用启动管理,为 NectarLink 关闭“自动管理”,并保持“允许自启动”“允许关联启动”和“允许后台活动”开启。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="202"/>+ <source>On OnePlus / OxygenOS: open Settings → Apps → App management → NectarLink → Battery usage and turn on Allow background activity and Allow auto-launch.</source>+ <translation>一加 / OxygenOS:打开 设置 → 应用 → 应用管理 → NectarLink → 耗电管理,开启“允许后台活动”和“允许自启动”。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="203"/>+ <source>On Oppo / Realme: open Settings → Apps → App management → NectarLink → Battery usage and turn on Allow background activity and Allow auto-launch.</source>+ <translation>OPPO / 真我:打开 设置 → 应用 → 应用管理 → NectarLink → 耗电管理,开启“允许后台活动”和“允许自启动”。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="204"/>+ <source>On Pixel: open Settings → Apps → See all apps → NectarLink → App battery usage, tap Allow background usage, and choose Unrestricted.</source>+ <translation>Pixel:打开 设置 → 应用 → 查看所有应用 → NectarLink → 应用的电池用量,点按“允许后台使用”,然后选择“无限制”。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="205"/>+ <source>On Samsung: open Settings → Apps → NectarLink → Battery and choose Unrestricted, then in Device care → Battery → Background usage limits make sure NectarLink is never put to sleep.</source>+ <translation>三星:打开 设置 → 应用程序 → NectarLink → 电池,选择“不受限制”,然后在 设备维护 → 电池 → 后台使用限制 中确保 NectarLink 不会被设为休眠。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="206"/>+ <source>On USB</source>+ <translation>通过 USB</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="207"/>+ <source>On Vivo / OriginOS / Funtouch: open Settings → Battery → Background power consumption management → NectarLink and choose Unrestricted, and allow Autostart.</source>+ <translation>vivo / OriginOS / Funtouch:打开 设置 → 电池 → 后台耗电管理 → NectarLink,选择“允许后台高耗电”,并允许自启动。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="208"/>+ <source>On Xiaomi / HyperOS / MIUI: open Settings → Apps → Manage apps → NectarLink, turn on Autostart, and set Battery saver to No restrictions.</source>+ <translation>小米 / HyperOS / MIUI:打开 设置 → 应用设置 → 应用管理 → NectarLink,开启“自启动”,并将省电策略设为“无限制”。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="209"/>+ <source>On public networks Windows keeps other devices from finding this PC. If it's your home or work network, set it to Private.</source>+ <translation>在公用网络上,Windows 会阻止其他设备发现此电脑。如果这是你的家庭或工作网络,请将其设为专用网络。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="210"/>+ <source>On this network</source>+ <translation>在此网络上</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="211"/>+ <source>Someone chose not to allow it when Windows asked. Allow it, and your phone can connect.</source>+ <translation>Windows 询问时有人选择了不允许。允许后,手机即可连接。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="212"/>+ <source>This PC can see %1 announce itself on the network, but the router is blocking devices from talking directly to each other (often called AP Isolation, Client Isolation, or Guest Wi-Fi). Move both devices off any Guest Wi-Fi network, turn off AP / Client Isolation in your router's Wi-Fi settings, or connect with a USB cable.</source>+ <translation>此电脑能看到 %1 在网络上发出的广播,但路由器阻止了设备之间直接通信(通常称为 AP 隔离、客户端隔离或访客 Wi‑Fi)。请让两台设备离开访客 Wi‑Fi,在路由器的 Wi‑Fi 设置中关闭 AP / 客户端隔离,或改用 USB 数据线连接。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="213"/>+ <source>This PC isn't on a network</source>+ <translation>此电脑未连接网络</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="214"/>+ <source>This network</source>+ <translation>此网络</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="215"/>+ <source>This usually takes a few seconds.</source>+ <translation>通常只需几秒钟。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="216"/>+ <source>VPNs often keep devices on your network from reaching this PC. If your phone can't connect, try turning it off.</source>+ <translation>VPN 常会阻止同一网络上的设备访问此电脑。如果手机无法连接,请尝试关闭 VPN。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="217"/>+ <source>While away</source>+ <translation>离开时</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="218"/>+ <source>Windows Firewall blocks NectarLink</source>+ <translation>Windows 防火墙阻止了 NectarLink</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="219"/>+ <source>Windows Firewall is off for this network</source>+ <translation>此网络的 Windows 防火墙已关闭</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="220"/>+ <source>Windows Firewall lets your phone connect</source>+ <translation>Windows 防火墙允许手机连接</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="221"/>+ <source>Your phone may not be able to connect. Allow it once here.</source>+ <translation>手机可能无法连接。在这里允许一次即可。</translation></message><message>- <location filename="../qml/pages/DeckPage.qml" line="1043"/>- <source>Reset Deck to defaults?</source>- <translation>将面板恢复为默认设置?</translation>+ <location filename="rust_strings.h" line="222"/>+ <source>a minute ago</source>+ <translation>1 分钟前</translation></message><message>- <location filename="../qml/pages/DeckPage.qml" line="1049"/>- <source>This replaces your custom pages and tiles with the default 11-tile Deck.</source>- <translation>这会将你的自定义页面和磁贴替换为默认的 11 磁贴面板。</translation>+ <location filename="rust_strings.h" line="223"/>+ <source>an hour ago</source>+ <translation>1 小时前</translation></message><message>- <location filename="../qml/pages/DeckPage.qml" line="1057"/>- <source>Reset</source>- <translation>重置</translation>+ <location filename="rust_strings.h" line="224"/>+ <source>just now</source>+ <translation>刚刚</translation></message></context><context>@@ -1166,32 +2086,32 @@<context><name>Errors</name><message>- <location filename="rust_strings.h" line="44"/>+ <location filename="rust_strings.h" line="225"/><source>Something went wrong: %1</source><translation>出现问题:%1</translation></message><message>- <location filename="rust_strings.h" line="45"/>+ <location filename="rust_strings.h" line="226"/><source>That device isn't paired anymore.</source><translation>该设备已不再配对。</translation></message><message>- <location filename="rust_strings.h" line="46"/>+ <location filename="rust_strings.h" line="227"/><source>The device declined.</source><translation>设备已拒绝。</translation></message><message>- <location filename="rust_strings.h" line="47"/>+ <location filename="rust_strings.h" line="228"/><source>The device didn't answer in time.</source><translation>设备未及时响应。</translation></message><message>- <location filename="rust_strings.h" line="48"/>+ <location filename="rust_strings.h" line="229"/><source>The device isn't connected right now.</source><translation>设备当前未连接。</translation></message><message>- <location filename="rust_strings.h" line="49"/>+ <location filename="rust_strings.h" line="230"/><source>The device's app doesn't support that yet.</source><translation>设备上的应用尚不支持此功能。</translation></message>@@ -1400,12 +2320,12 @@<context><name>FolderSync</name><message>- <location filename="rust_strings.h" line="50"/>+ <location filename="rust_strings.h" line="231"/><source>Folders are up to date.</source><translation>文件夹已是最新。</translation></message><message>- <location filename="rust_strings.h" line="51"/>+ <location filename="rust_strings.h" line="232"/><source>Synced %1 file(s).</source><translation>已同步 %1 个文件。</translation></message>@@ -2388,62 +3308,62 @@<context><name>Links</name><message>- <location filename="rust_strings.h" line="52"/>+ <location filename="rust_strings.h" line="233"/><source>%1: tap the notification on your phone to continue watching.</source><translation>%1:轻触手机上的通知以继续观看。</translation></message><message>- <location filename="rust_strings.h" line="53"/>+ <location filename="rust_strings.h" line="234"/><source>%1: tap the notification on your phone to open in Maps.</source><translation>%1:轻触手机上的通知以在地图中打开。</translation></message><message>- <location filename="rust_strings.h" line="54"/>+ <location filename="rust_strings.h" line="235"/><source>Copy a link or address first</source><translation>请先复制链接或地址</translation></message><message>- <location filename="rust_strings.h" line="55"/>+ <location filename="rust_strings.h" line="236"/><source>Copy a web link (https://…), geo: URI, or street address, then choose this again.</source><translation>复制网页链接(https://…)、geo: URI 或街道地址,然后再次选择此项。</translation></message><message>- <location filename="rust_strings.h" line="56"/>+ <location filename="rust_strings.h" line="237"/><source>Copy a web link, video URL, or street address, then choose this again to open it on your phone.</source><translation>复制网页链接、视频网址或街道地址,然后再次选择此项,即可在手机上打开。</translation></message><message>- <location filename="rust_strings.h" line="57"/>+ <location filename="rust_strings.h" line="238"/><source>Couldn't send it</source><translation>无法发送</translation></message><message>- <location filename="rust_strings.h" line="58"/>+ <location filename="rust_strings.h" line="239"/><source>No phone to open it on</source><translation>没有可打开它的手机</translation></message><message>- <location filename="rust_strings.h" line="59"/>+ <location filename="rust_strings.h" line="240"/><source>Pair a phone first, or enable opening links on your phone.</source><translation>请先配对手机,或在手机上启用打开链接。</translation></message><message>- <location filename="rust_strings.h" line="60"/>+ <location filename="rust_strings.h" line="241"/><source>Sent to %1</source><translation>已发送到 %1</translation></message><message>- <location filename="rust_strings.h" line="61"/>+ <location filename="rust_strings.h" line="242"/><source>Tap the notification on your phone to open it.</source><translation>轻触手机上的通知以打开。</translation></message><message>- <location filename="rust_strings.h" line="62"/>+ <location filename="rust_strings.h" line="243"/><source>That's not a link or address</source><translation>这不是链接或地址</translation></message><message>- <location filename="rust_strings.h" line="63"/>+ <location filename="rust_strings.h" line="244"/><source>Update NectarLink on %1.</source><translation>请更新 %1 上的 NectarLink。</translation></message>@@ -2737,17 +3657,17 @@<context><name>Media</name><message>- <location filename="rust_strings.h" line="64"/>+ <location filename="rust_strings.h" line="245"/><source>Media is turned off for that device.</source><translation>已为该设备关闭媒体。</translation></message><message>- <location filename="rust_strings.h" line="65"/>+ <location filename="rust_strings.h" line="246"/><source>That player can't do that.</source><translation>该播放器无法执行此操作。</translation></message><message>- <location filename="rust_strings.h" line="66"/>+ <location filename="rust_strings.h" line="247"/><source>That player isn't playing anymore.</source><translation>该播放器已不再播放。</translation></message>@@ -2755,10 +3675,20 @@<context><name>Messages</name><message>- <location filename="rust_strings.h" line="67"/>+ <location filename="rust_strings.h" line="248"/>+ <source>Attachment is %1 (MMS supports up to 900 KB)</source>+ <translation>附件大小为 %1(彩信最多支持 900 KB)</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="249"/><source>Group texts can't be sent from the PC yet.</source><translation>暂不支持从电脑发送群组短信。</translation></message>+ <message>+ <location filename="rust_strings.h" line="250"/>+ <source>Only image or voice-note audio files can be attached.</source>+ <translation>只能附加图片或语音备忘音频文件。</translation>+ </message></context><context><name>MessagesPage</name>@@ -3076,57 +4006,102 @@<context><name>Mirror</name><message>- <location filename="rust_strings.h" line="68"/>+ <location filename="rust_strings.h" line="251"/><source>Couldn't start recording.</source><translation>无法开始录制。</translation></message><message>- <location filename="rust_strings.h" line="69"/>+ <location filename="rust_strings.h" line="252"/>+ <source>Mirror recording</source>+ <translation>镜像录制</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="253"/>+ <source>Mirror screenshot</source>+ <translation>镜像截图</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="254"/><source>Mirroring is turned off for this phone.</source><translation>已为此手机关闭镜像。</translation></message><message>- <location filename="rust_strings.h" line="70"/>+ <location filename="rust_strings.h" line="255"/>+ <source>Recording from %1, saved in Downloads\Nectarlink</source>+ <translation>来自 %1 的录制,已保存到 Downloads\Nectarlink</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="256"/>+ <source>Saved %1</source>+ <translation>已保存 %1</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="257"/><source>Saved %1 to Downloads\Nectarlink.</source><translation>已将 %1 保存到 Downloads\Nectarlink。</translation></message><message>- <location filename="rust_strings.h" line="71"/>+ <location filename="rust_strings.h" line="258"/><source>Screenshot copied to clipboard.</source><translation>截图已复制到剪贴板。</translation></message><message>- <location filename="rust_strings.h" line="72"/>+ <location filename="rust_strings.h" line="259"/>+ <source>Screenshot from %1, saved in Downloads\Nectarlink</source>+ <translation>来自 %1 的截图,已保存到 Downloads\Nectarlink</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="260"/>+ <source>Sending %1 files…</source>+ <translation>正在发送 %1 个文件…</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="261"/>+ <source>Sending %1…</source>+ <translation>正在发送 %1…</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="262"/><source>Set up Wireless debugging in NectarLink on the phone to open its apps here.</source><translation>在手机上的 NectarLink 中设置无线调试,即可在这里打开其应用。</translation></message><message>- <location filename="rust_strings.h" line="73"/>+ <location filename="rust_strings.h" line="263"/>+ <source>Show in folder</source>+ <translation>在文件夹中显示</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="264"/><source>The app didn't open on the phone. Try again, or open NectarLink on the phone to check Wireless debugging.</source><translation>应用未在手机上打开。请重试,或在手机上打开 NectarLink 检查无线调试。</translation></message><message>- <location filename="rust_strings.h" line="74"/>+ <location filename="rust_strings.h" line="265"/><source>The phone isn't connected.</source><translation>手机未连接。</translation></message><message>- <location filename="rust_strings.h" line="75"/>+ <location filename="rust_strings.h" line="266"/><source>The screenshot couldn't be copied to the clipboard.</source><translation>无法将截图复制到剪贴板。</translation></message><message>- <location filename="rust_strings.h" line="76"/>+ <location filename="rust_strings.h" line="267"/><source>The screenshot couldn't be saved.</source><translation>无法保存截图。</translation></message><message>- <location filename="rust_strings.h" line="77"/>+ <location filename="rust_strings.h" line="268"/>+ <source>This PC can't decode the phone's video.</source>+ <translation>此电脑无法解码手机的视频。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="269"/><source>This phone's app doesn't share its screen yet. Update NectarLink on the phone.</source><translation>此手机上的应用尚不能共享屏幕。请更新手机上的 NectarLink。</translation></message><message>- <location filename="rust_strings.h" line="78"/>+ <location filename="rust_strings.h" line="270"/><source>Wait for the screen to appear first.</source><translation>请等待屏幕先显示出来。</translation></message>@@ -3274,6 +4249,14 @@<translation>重试</translation></message></context>+<context>+ <name>Mp4</name>+ <message>+ <location filename="rust_strings.h" line="271"/>+ <source>No video frames were recorded yet.</source>+ <translation>尚未录制任何视频帧。</translation>+ </message>+</context><context><name>NotificationItem</name><message>@@ -3363,10 +4346,40 @@<context><name>Notifications</name><message>- <location filename="rust_strings.h" line="79"/>+ <location filename="rust_strings.h" line="272"/><source>Code copied</source><translation>已复制验证码</translation></message>+ <message>+ <location filename="rust_strings.h" line="273"/>+ <source>Copy code</source>+ <translation>复制验证码</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="274"/>+ <source>Dismissed %1 from %2</source>+ <translation>已清除 %2 的 %1 条通知</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="275"/>+ <source>Dismissed %1 notifications</source>+ <translation>已清除 %1 条通知</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="276"/>+ <source>Dismissed from %1</source>+ <translation>已清除来自 %1 的通知</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="277"/>+ <source>Notification dismissed</source>+ <translation>已清除通知</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="278"/>+ <source>That notification is gone from the phone.</source>+ <translation>该通知已不在手机上。</translation>+ </message></context><context><name>NowPlaying</name>@@ -3476,6 +4489,24 @@<translation>电脑扬声器</translation></message></context>+<context>+ <name>Obs</name>+ <message>+ <location filename="rust_strings.h" line="279"/>+ <source>OBS isn't reachable on port %1. Turn on its WebSocket server.</source>+ <translation>无法通过端口 %1 连接 OBS。请开启其 WebSocket 服务器。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="280"/>+ <source>OBS: %1</source>+ <translation>OBS:%1</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="281"/>+ <source>The service on that port isn't OBS.</source>+ <translation>该端口上的服务不是 OBS。</translation>+ </message>+</context><context><name>PairingPanel</name><message>@@ -3642,17 +4673,17 @@<context><name>PhoneMic</name><message>- <location filename="rust_strings.h" line="80"/>+ <location filename="rust_strings.h" line="282"/><source>Tap Start on %1 to use its microphone.</source><translation>在 %1 上轻触“开始”以使用其麦克风。</translation></message><message>- <location filename="rust_strings.h" line="81"/>+ <location filename="rust_strings.h" line="283"/><source>The microphone is turned off for this PC on %1.</source><translation>%1 上已为此电脑关闭麦克风。</translation></message><message>- <location filename="rust_strings.h" line="82"/>+ <location filename="rust_strings.h" line="284"/><source>Update NectarLink on %1 to use its microphone.</source><translation>请更新 %1 上的 NectarLink 以使用其麦克风。</translation></message>@@ -3660,52 +4691,67 @@<context><name>Photos</name><message>- <location filename="rust_strings.h" line="83"/>+ <location filename="rust_strings.h" line="285"/><source>Copied to clipboard.</source><translation>已复制到剪贴板。</translation></message><message>- <location filename="rust_strings.h" line="84"/>+ <location filename="rust_strings.h" line="286"/>+ <source>From %1</source>+ <translation>来自 %1</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="287"/>+ <source>New photo</source>+ <translation>新照片</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="288"/>+ <source>New screenshot</source>+ <translation>新截图</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="289"/><source>No recent photos found on the phone.</source><translation>手机上没有最近的照片。</translation></message><message>- <location filename="rust_strings.h" line="85"/>+ <location filename="rust_strings.h" line="290"/><source>Opening latest photo…</source><translation>正在打开最新照片…</translation></message><message>- <location filename="rust_strings.h" line="86"/>+ <location filename="rust_strings.h" line="291"/><source>Saved %1 items to %2.</source><translation>已将 %1 个项目保存到 %2。</translation></message><message>- <location filename="rust_strings.h" line="87"/>+ <location filename="rust_strings.h" line="292"/><source>Saved %1 to %2.</source><translation>已将 %1 保存到 %2。</translation></message><message>- <location filename="rust_strings.h" line="88"/>+ <location filename="rust_strings.h" line="293"/><source>That photo isn't on the phone anymore.</source><translation>该照片已不在手机上。</translation></message><message>- <location filename="rust_strings.h" line="89"/>+ <location filename="rust_strings.h" line="294"/><source>The phone doesn't share photos or files with this PC.</source><translation>手机未与此电脑共享照片或文件。</translation></message><message>- <location filename="rust_strings.h" line="90"/>+ <location filename="rust_strings.h" line="295"/><source>The phone isn't connected right now.</source><translation>手机当前未连接。</translation></message><message>- <location filename="rust_strings.h" line="91"/>+ <location filename="rust_strings.h" line="296"/><source>The photo couldn't be copied to the clipboard.</source><translation>无法将照片复制到剪贴板。</translation></message><message>- <location filename="rust_strings.h" line="92"/>+ <location filename="rust_strings.h" line="297"/><source>The photo couldn't be copied. It's in Downloads\Nectarlink.</source><translation>无法复制照片。它在 Downloads\Nectarlink 中。</translation></message>@@ -3985,36 +5031,52 @@<context><name>PlayOnPhone</name><message>- <location filename="rust_strings.h" line="93"/>+ <location filename="rust_strings.h" line="298"/><source>Connect your phone to play on it.</source><translation>请连接手机后再在其上播放。</translation></message><message>- <location filename="rust_strings.h" line="94"/>+ <location filename="rust_strings.h" line="299"/><source>Media is turned off for %1.</source><translation>已为 %1 关闭媒体。</translation></message><message>- <location filename="rust_strings.h" line="95"/>+ <location filename="rust_strings.h" line="300"/><source>Opening in %1 on %2. Tap the notification there.</source><translation>正在 %2 上用 %1 打开。请轻触那里的通知。</translation></message><message>- <location filename="rust_strings.h" line="96"/>+ <location filename="rust_strings.h" line="301"/><source>Sent to %1. Tap the notification there.</source><translation>已发送到 %1。请轻触那里的通知。</translation></message><message>- <location filename="rust_strings.h" line="97"/>+ <location filename="rust_strings.h" line="302"/><source>Tap the notification on %1 to watch.</source><translation>轻触 %1 上的通知即可观看。</translation></message><message>- <location filename="rust_strings.h" line="98"/>+ <location filename="rust_strings.h" line="303"/><source>Update NectarLink on %1 to play on it.</source><translation>请更新 %1 上的 NectarLink 以在其上播放。</translation></message></context>+<context>+ <name>Prefs</name>+ <message>+ <location filename="rust_strings.h" line="304"/>+ <source>Connected to OBS.</source>+ <translation>已连接到 OBS。</translation>+ </message>+</context>+<context>+ <name>Recordings</name>+ <message>+ <location filename="rust_strings.h" line="305"/>+ <source>Recording from %1 saved</source>+ <translation>已保存来自 %1 的录音</translation>+ </message>+</context><context><name>SadBee</name><message>@@ -4023,6 +5085,64 @@<translation>一只难过的蜜蜂</translation></message></context>+<context>+ <name>SendTo</name>+ <message>+ <location filename="rust_strings.h" line="306"/>+ <source>Copied to your phone's clipboard.</source>+ <translation>已复制到手机的剪贴板。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="307"/>+ <source>Couldn't reach %1.</source>+ <translation>无法连接 %1。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="308"/>+ <source>Couldn't send %1</source>+ <translation>无法发送 %1</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="309"/>+ <source>Couldn't send to %1</source>+ <translation>无法发送到 %1</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="310"/>+ <source>Couldn't share with %1</source>+ <translation>无法与 %1 共享</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="311"/>+ <source>File failed integrity check; partial file kept to resume.</source>+ <translation>文件未通过完整性校验;已保留部分文件以便继续。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="312"/>+ <source>Send to %1 with NectarLink</source>+ <translation>用 NectarLink 发送到 %1</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="313"/>+ <source>Sending to %1…</source>+ <translation>正在发送到 %1…</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="314"/>+ <source>Sent to %1</source>+ <translation>已发送到 %1</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="315"/>+ <source>The transfer didn't go through.</source>+ <translation>传输未完成。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="316"/>+ <source>Waiting for %1…</source>+ <translation>正在等待 %1…</translation>+ </message>+</context><context><name>SettingsPage</name><message>@@ -5381,6 +6501,29 @@<translation>清除全部</translation></message></context>+<context>+ <name>Setup</name>+ <message>+ <location filename="rust_strings.h" line="317"/>+ <source>Couldn't start setup: %1</source>+ <translation>无法启动安装程序:%1</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="318"/>+ <source>Setup is taking too long. Try again after restarting the PC.</source>+ <translation>安装时间过长。请重启电脑后再试。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="319"/>+ <source>Setup stopped with code %1.</source>+ <translation>安装已停止,代码 %1。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="320"/>+ <source>The uninstaller is missing. Reinstall NectarLink, then uninstall it.</source>+ <translation>缺少卸载程序。请重新安装 NectarLink,然后再卸载。</translation>+ </message>+</context><context><name>SetupWindow</name><message>@@ -5746,80 +6889,100 @@<context><name>Timeline</name><message>- <location filename="rust_strings.h" line="99"/>+ <location filename="rust_strings.h" line="321"/>+ <source>Clip (removed from clipboard history)</source>+ <translation>剪贴内容(已从剪贴板历史中删除)</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="322"/>+ <source>Copied image</source>+ <translation>已复制的图片</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="323"/><source>Copied link to clipboard.</source><translation>已将链接复制到剪贴板。</translation></message><message>- <location filename="rust_strings.h" line="100"/>+ <location filename="rust_strings.h" line="324"/><source>Copied to clipboard.</source><translation>已复制到剪贴板。</translation></message><message>- <location filename="rust_strings.h" line="101"/>+ <location filename="rust_strings.h" line="325"/>+ <source>In progress</source>+ <translation>进行中</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="326"/><source>No phone is paired yet.</source><translation>尚未配对手机。</translation></message><message>- <location filename="rust_strings.h" line="102"/>+ <location filename="rust_strings.h" line="327"/><source>Phone microphone</source><translation>手机麦克风</translation></message><message>- <location filename="rust_strings.h" line="103"/>+ <location filename="rust_strings.h" line="328"/><source>Phone webcam</source><translation>手机摄像头</translation></message><message>- <location filename="rust_strings.h" line="104"/>+ <location filename="rust_strings.h" line="329"/><source>Screen mirroring</source><translation>屏幕镜像</translation></message><message>- <location filename="rust_strings.h" line="105"/>+ <location filename="rust_strings.h" line="330"/><source>Sending to %1…</source><translation>正在发送到 %1…</translation></message><message>- <location filename="rust_strings.h" line="106"/>+ <location filename="rust_strings.h" line="331"/><source>Sent clip to %1.</source><translation>已将剪贴内容发送到 %1。</translation></message><message>- <location filename="rust_strings.h" line="107"/>+ <location filename="rust_strings.h" line="332"/><source>That clip is no longer in clipboard history.</source><translation>该剪贴内容已不在剪贴板历史中。</translation></message><message>- <location filename="rust_strings.h" line="108"/>+ <location filename="rust_strings.h" line="333"/><source>That entry couldn't be removed. Try again.</source><translation>无法删除该条目,请重试。</translation></message><message>- <location filename="rust_strings.h" line="109"/>+ <location filename="rust_strings.h" line="334"/><source>That file was moved or deleted.</source><translation>该文件已被移动或删除。</translation></message><message>- <location filename="rust_strings.h" line="110"/>+ <location filename="rust_strings.h" line="335"/><source>That isn't a web link.</source><translation>这不是网页链接。</translation></message><message>- <location filename="rust_strings.h" line="111"/>+ <location filename="rust_strings.h" line="336"/><source>That photo was moved or deleted.</source><translation>该照片已被移动或删除。</translation></message><message>- <location filename="rust_strings.h" line="112"/>+ <location filename="rust_strings.h" line="337"/><source>The Timeline couldn't be cleared. Try again.</source><translation>无法清除时间线,请重试。</translation></message><message>- <location filename="rust_strings.h" line="113"/>+ <location filename="rust_strings.h" line="338"/><source>The photo couldn't be copied to the clipboard.</source><translation>无法将照片复制到剪贴板。</translation></message>+ <message>+ <location filename="rust_strings.h" line="339"/>+ <source>Voice recording</source>+ <translation>录音</translation>+ </message></context><context><name>TimelinePage</name>@@ -6108,21 +7271,109 @@<context><name>Transfers</name><message>- <location filename="rust_strings.h" line="114"/>+ <location filename="rust_strings.h" line="340"/>+ <source>Accept in NectarLink to save to Downloads\Nectarlink</source>+ <translation>在 NectarLink 中接受即可保存到 Downloads\Nectarlink</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="341"/><source>Files are turned off for that device.</source><translation>已为该设备关闭文件。</translation></message><message>- <location filename="rust_strings.h" line="115"/>+ <location filename="rust_strings.h" line="342"/>+ <source>From %1, opened from Downloads\Nectarlink</source>+ <translation>来自 %1,已从 Downloads\Nectarlink 打开</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="343"/>+ <source>From %1, saved in Downloads\Nectarlink</source>+ <translation>来自 %1,已保存到 Downloads\Nectarlink</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="344"/>+ <source>Nearby device</source>+ <translation>附近的设备</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="345"/><source>That's too many files to send at once.</source><translation>文件太多,无法一次发送。</translation></message><message>- <location filename="rust_strings.h" line="116"/>+ <location filename="rust_strings.h" line="346"/><source>There's nothing to send in there.</source><translation>那里没有可发送的内容。</translation></message></context>+<context>+ <name>Updater</name>+ <message>+ <location filename="rust_strings.h" line="347"/>+ <source>Couldn't check for updates. Check your internet connection.</source>+ <translation>无法检查更新。请检查网络连接。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="348"/>+ <source>NectarLink %1 is available</source>+ <translation>NectarLink %1 已发布</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="349"/>+ <source>NectarLink %1 is available.</source>+ <translation>NectarLink %1 已发布。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="350"/>+ <source>NectarLink is still on the version you had. Try again from Settings.</source>+ <translation>NectarLink 仍是原来的版本。请在设置中重试。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="351"/>+ <source>NectarLink is up to date.</source>+ <translation>NectarLink 已是最新版本。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="352"/>+ <source>NectarLink is updated to %1</source>+ <translation>NectarLink 已更新到 %1</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="353"/>+ <source>The download was damaged, so it wasn't installed. Try again.</source>+ <translation>下载的文件已损坏,因此未安装。请重试。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="354"/>+ <source>The update couldn't be downloaded. Check your internet connection and try again.</source>+ <translation>无法下载更新。请检查网络连接后重试。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="355"/>+ <source>The update couldn't be saved. Check that there's free space and try again.</source>+ <translation>无法保存更新。请确认有足够的空间后重试。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="356"/>+ <source>The update couldn't be started. Try again.</source>+ <translation>无法启动更新。请重试。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="357"/>+ <source>The update didn't install</source>+ <translation>更新未安装</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="358"/>+ <source>Update now, or later from Settings.</source>+ <translation>立即更新,或稍后在设置中更新。</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="359"/>+ <source>Your phone reconnects on its own.</source>+ <translation>手机会自动重新连接。</translation>+ </message>+</context><context><name>WalkthroughPage</name><message>@@ -6315,6 +7566,19 @@<translation>打开功能指南</translation></message></context>+<context>+ <name>Webcam</name>+ <message>+ <location filename="rust_strings.h" line="360"/>+ <source>Starting camera on %1…</source>+ <translation>正在启动 %1 上的相机…</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="361"/>+ <source>Streaming %1 × %2 · %3 fps from %4</source>+ <translation>正在从 %4 传输 %1 × %2 · %3 fps</translation>+ </message>+</context><context><name>WelcomePage</name><message>@@ -6338,4 +7602,22 @@<translation>打开日志文件夹</translation></message></context>+<context>+ <name>Widget</name>+ <message>+ <location filename="rust_strings.h" line="362"/>+ <source>No phone connected</source>+ <translation>未连接手机</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="363"/>+ <source>No recent clipboard items</source>+ <translation>没有最近的剪贴板内容</translation>+ </message>+ <message>+ <location filename="rust_strings.h" line="364"/>+ <source>Not available</source>+ <translation>不可用</translation>+ </message>+</context></TS>diff --git a/desktop/app/i18n/rust_strings.h b/desktop/app/i18n/rust_strings.hindex c41f59a..f1a2712 100644--- a/desktop/app/i18n/rust_strings.h+++ b/desktop/app/i18n/rust_strings.h@@ -5,18 +5,49 @@static const char *const nectarlink_rust_strings[] = {QT_TRANSLATE_NOOP("App", "Already on clipboard."), // desktop/app/src/bridge/app.rs+ QT_TRANSLATE_NOOP("App", "Command palette"), // desktop/app/src/bridge/app.rsQT_TRANSLATE_NOOP("App", "Copied to clipboard."), // desktop/app/src/bridge/app.rsQT_TRANSLATE_NOOP("App", "Could not copy to the clipboard."), // desktop/app/src/bridge/app.rs+ QT_TRANSLATE_NOOP("App", "Downloading the update · %1 of %2"), // desktop/app/src/bridge/app.rs+ QT_TRANSLATE_NOOP("App", "Downloading the update…"), // desktop/app/src/bridge/app.rs+ QT_TRANSLATE_NOOP("App", "Find my phone"), // desktop/app/src/bridge/app.rs+ QT_TRANSLATE_NOOP("App", "My phone's colors"), // desktop/app/src/bridge/app.rs+ QT_TRANSLATE_NOOP("App", "My phone's colors (%1)"), // desktop/app/src/bridge/app.rs+ QT_TRANSLATE_NOOP("App", "NectarLink · %1"), // desktop/app/src/bridge/app.rs+ QT_TRANSLATE_NOOP("App", "NectarLink · %1 devices connected"), // desktop/app/src/bridge/app.rs+ QT_TRANSLATE_NOOP("App", "NectarLink · 1 device connected"), // desktop/app/src/bridge/app.rs+ QT_TRANSLATE_NOOP("App", "NectarLink · no devices paired"), // desktop/app/src/bridge/app.rs+ QT_TRANSLATE_NOOP("App", "NectarLink · not connected"), // desktop/app/src/bridge/app.rsQT_TRANSLATE_NOOP("App", "No phone is paired yet."), // desktop/app/src/bridge/app.rs+ QT_TRANSLATE_NOOP("App", "Open NectarLink"), // desktop/app/src/bridge/app.rs+ QT_TRANSLATE_NOOP("App", "Open copied link on phone"), // desktop/app/src/bridge/app.rs+ QT_TRANSLATE_NOOP("App", "Quit NectarLink"), // desktop/app/src/bridge/app.rs+ QT_TRANSLATE_NOOP("App", "Scan document with phone"), // desktop/app/src/bridge/app.rsQT_TRANSLATE_NOOP("App", "Send cancelled"), // desktop/app/src/bridge/app.rsQT_TRANSLATE_NOOP("App", "Sending to %1…"), // desktop/app/src/bridge/app.rsQT_TRANSLATE_NOOP("App", "Sent text to %1."), // desktop/app/src/bridge/app.rsQT_TRANSLATE_NOOP("App", "Some history couldn't be cleared. Try again."), // desktop/app/src/bridge/app.rsQT_TRANSLATE_NOOP("App", "Some messages couldn't be cleared. Try again."), // desktop/app/src/bridge/app.rs+ QT_TRANSLATE_NOOP("App", "Take photo with phone"), // desktop/app/src/bridge/app.rsQT_TRANSLATE_NOOP("App", "That file is no longer in its saved location."), // desktop/app/src/bridge/app.rsQT_TRANSLATE_NOOP("App", "The photo couldn't be copied to the clipboard."), // desktop/app/src/bridge/app.rsQT_TRANSLATE_NOOP("App", "The received file history couldn't be cleared. Try again."), // desktop/app/src/bridge/app.rs+ QT_TRANSLATE_NOOP("App", "Toggle Shelf"), // desktop/app/src/bridge/app.rs+ QT_TRANSLATE_NOOP("App", "Wi-Fi %1/4"), // desktop/app/src/bridge/app.rs+ QT_TRANSLATE_NOOP("App", "Your phone"), // desktop/app/src/bridge/app.rs+ QT_TRANSLATE_NOOP("Automations", "Triggered by %1"), // desktop/app/src/automations.rs+ QT_TRANSLATE_NOOP("Battery", "%1 is fully charged"), // desktop/app/src/battery.rs+ QT_TRANSLATE_NOOP("Battery", "You can unplug it."), // desktop/app/src/battery.rs+ QT_TRANSLATE_NOOP("Battery", "Your phone"), // desktop/app/src/battery.rs+ QT_TRANSLATE_NOOP("BtHfp", "Bluetooth connected (%1)."), // desktop/app/src/win/bt_hfp.rs+ QT_TRANSLATE_NOOP("BtHfp", "Bluetooth paired with %1 (not currently connected)."), // desktop/app/src/win/bt_hfp.rs+ QT_TRANSLATE_NOOP("BtHfp", "No paired Bluetooth phone endpoint found in Windows."), // desktop/app/src/win/bt_hfp.rs+ QT_TRANSLATE_NOOP("Calls", "Calling %1"), // desktop/app/src/calls.rs+ QT_TRANSLATE_NOOP("Calls", "Missed call from %1"), // desktop/app/src/calls.rs+ QT_TRANSLATE_NOOP("Calls", "On a call with %1"), // desktop/app/src/calls.rsQT_TRANSLATE_NOOP("Calls", "That call is over."), // desktop/app/src/calls.rs+ QT_TRANSLATE_NOOP("Calls", "Unknown caller"), // desktop/app/src/bridge/calls.rs+ QT_TRANSLATE_NOOP("Clipboard", "Copied from %1"), // desktop/app/src/clipboard.rsQT_TRANSLATE_NOOP("Clipboard", "Copied from %1."), // desktop/app/src/clipboard.rsQT_TRANSLATE_NOOP("Clipboard", "Copied to clipboard"), // desktop/app/src/clipboard.rsQT_TRANSLATE_NOOP("Clipboard", "Sending copied files to %1…"), // desktop/app/src/clipboard.rs@@ -29,18 +60,168 @@ static const char *const nectarlink_rust_strings[] = {QT_TRANSLATE_NOOP("Clipboard", "There's no text, image, or file on the clipboard."), // desktop/app/src/clipboard.rsQT_TRANSLATE_NOOP("Clipboard", "Update NectarLink on %1 to send it images."), // desktop/app/src/clipboard.rsQT_TRANSLATE_NOOP("Clipboard", "What you copied is marked private by its app, so it wasn't sent."), // desktop/app/src/clipboard.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Browse all 28 features, live capability status, and where to find them"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Browse phone storage in File Explorer"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Call %1"), // desktop/app/src/command_palette.rsQT_TRANSLATE_NOOP("CommandPalette", "Calling %1 on %2…"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Capture a photo on your phone and paste it into the active window"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Check Wake-on-LAN status in Settings"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Connection Doctor"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Continue copied video on phone"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Copied image"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Copy: %1"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Diagnose and fix firewall, discovery, or network issues"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Features guide"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Find %1"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Find my phone"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "From %1"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Hand off document to phone"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Handoff · Doc"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Handoff · Map"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Handoff · Video"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Hide Shelf"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Make %1 ring at full volume"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Make phone ring at full volume"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Mirror %1"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Mirror Apps"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Mirror phone screen"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Mute %1's ringer"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "No physical network adapter found for Wake-on-LAN."), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Open %1"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Open %1 in a window from %2"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Open %1's Cloud Files folder in Explorer"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Open Shelf"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Open conversation on %1"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Open copied link on phone"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Open copied location in Maps on phone"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Open last photo"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Open last photo from %1"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Open newest photo or screenshot"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Open the newest photo or screenshot from %1"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Open voice recordings folder for %1"), // desktop/app/src/command_palette.rsQT_TRANSLATE_NOOP("CommandPalette", "Opened Recordings folder. Start a voice note in NectarLink on %1 to send it here."), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Pair a new phone"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Place a phone call or open in dialer"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Place call on %1"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Quick Toggles"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Re-open the step-by-step setup walkthrough"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Ready on %1"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Recent Activity"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Reconnect paired phones and refresh notifications and media"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Record voice"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Ringer: Silent"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Ringer: Sound"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Ringer: Vibrate"), // desktop/app/src/command_palette.rsQT_TRANSLATE_NOOP("CommandPalette", "Ringing %1…"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Scan a document on your phone and paste it into the active window"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Scan document with phone"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Send a document to %1 and open it automatically upon arrival"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Send clipboard"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Send clipboard to %1"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Send copied text or image"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Send copied text or image to %1"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Send live keystrokes and text to %1 without screen mirroring"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Set %1's ringer mode to normal sound"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Set %1's ringer mode to vibrate"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Setup walkthrough"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Show QR code and pairing code to link another phone"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Slide-out edge panel with latest photo, screenshot, clipboard, and recent files"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Start a new message conversation"), // desktop/app/src/command_palette.rsQT_TRANSLATE_NOOP("CommandPalette", "Starting phone webcam…"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Stop phone webcam"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Stop typing on phone"), // desktop/app/src/command_palette.rsQT_TRANSLATE_NOOP("CommandPalette", "Stopped phone webcam."), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Stream %1's camera into the NectarLink virtual webcam"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Stream %1's screen in a desktop window"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Switch Bluetooth on %1"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Switch Do Not Disturb on %1"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Switch Wi-Fi on %1"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Switch to %1"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Switch torch / flashlight on %1"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Sync now"), // desktop/app/src/command_palette.rsQT_TRANSLATE_NOOP("CommandPalette", "Syncing devices…"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Take photo with phone"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Text %1"), // desktop/app/src/command_palette.rsQT_TRANSLATE_NOOP("CommandPalette", "That file is no longer in its saved location."), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Toggle Bluetooth"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Toggle Do Not Disturb"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Toggle Flashlight"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Toggle Wi-Fi"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Type on phone with PC keyboard"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Use phone as webcam"), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Wake-on-LAN is ready on %1 (phones can wake this PC)."), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("CommandPalette", "Wake-on-LAN on %1 is %2. Check Settings."), // desktop/app/src/command_palette.rs+ QT_TRANSLATE_NOOP("ContinuityCamera", "Allow Photos access for %1 in Settings first."), // desktop/app/src/continuity_camera.rs+ QT_TRANSLATE_NOOP("ContinuityCamera", "Camera capture cancelled on %1."), // desktop/app/src/continuity_camera.rs+ QT_TRANSLATE_NOOP("ContinuityCamera", "Camera is busy on %1."), // desktop/app/src/continuity_camera.rs+ QT_TRANSLATE_NOOP("ContinuityCamera", "Camera permission was denied on %1."), // desktop/app/src/continuity_camera.rsQT_TRANSLATE_NOOP("ContinuityCamera", "Couldn’t copy image to clipboard: %1"), // desktop/app/src/continuity_camera.rs+ QT_TRANSLATE_NOOP("ContinuityCamera", "Couldn’t open camera on %1: %2"), // desktop/app/src/continuity_camera.rsQT_TRANSLATE_NOOP("ContinuityCamera", "Image is on your clipboard. Press Ctrl+V in your target app."), // desktop/app/src/continuity_camera.rs+ QT_TRANSLATE_NOOP("ContinuityCamera", "Opening camera on %1…"), // desktop/app/src/continuity_camera.rs+ QT_TRANSLATE_NOOP("ContinuityCamera", "Opening document scanner on %1…"), // desktop/app/src/continuity_camera.rsQT_TRANSLATE_NOOP("ContinuityCamera", "Pair your phone first to take a photo or scan a document."), // desktop/app/src/continuity_camera.rsQT_TRANSLATE_NOOP("ContinuityCamera", "Pasted into %1"), // desktop/app/src/continuity_camera.rs+ QT_TRANSLATE_NOOP("ContinuityCamera", "Scan a document on %1…"), // desktop/app/src/continuity_camera.rs+ QT_TRANSLATE_NOOP("ContinuityCamera", "Take a photo on %1…"), // desktop/app/src/continuity_camera.rsQT_TRANSLATE_NOOP("CoreHost", "Dropped %1 queued item(s) for %2 (device unpaired)."), // desktop/app/src/core_host.rs+ QT_TRANSLATE_NOOP("Deck", "Alt + Tab"), // desktop/app/src/bridge/deck.rs+ QT_TRANSLATE_NOOP("Deck", "Application path must end with .exe or .lnk."), // desktop/app/src/deck.rs+ QT_TRANSLATE_NOOP("Deck", "Choose a key for the shortcut."), // desktop/app/src/deck.rs+ QT_TRANSLATE_NOOP("Deck", "Choose an application (.exe or .lnk) on this PC."), // desktop/app/src/deck.rs+ QT_TRANSLATE_NOOP("Deck", "Enter a command to run on this PC."), // desktop/app/src/deck.rs+ QT_TRANSLATE_NOOP("Deck", "Enter an http:// or https:// web address."), // desktop/app/src/deck.rs+ QT_TRANSLATE_NOOP("Deck", "Enter the text snippet to type."), // desktop/app/src/deck.rs+ QT_TRANSLATE_NOOP("Deck", "Invalid action configuration."), // desktop/app/src/deck.rs+ QT_TRANSLATE_NOOP("Deck", "Invalid tile properties."), // desktop/app/src/deck.rs+ QT_TRANSLATE_NOOP("Deck", "Media key"), // desktop/app/src/bridge/deck.rs+ QT_TRANSLATE_NOOP("Deck", "Page not found."), // desktop/app/src/deck.rs+ QT_TRANSLATE_NOOP("Deck", "This page already has the maximum number of tiles (24)."), // desktop/app/src/deck.rs+ QT_TRANSLATE_NOOP("Deck", "Tile not found."), // desktop/app/src/deck.rs+ QT_TRANSLATE_NOOP("Deck", "Use a single key (a-z, 0-9, f1-f12, enter, tab, space, escape, arrows, etc.)."), // desktop/app/src/deck.rs+ QT_TRANSLATE_NOOP("Deck", "Web address must start with http:// or https://."), // desktop/app/src/deck.rs+ QT_TRANSLATE_NOOP("Doctor", "%1 Open NectarLink on the phone and keep both on the same network. If the phone asks to run in the background, allow it."), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "%1 days ago"), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "%1 hours ago"), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "%1 is connected"), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "%1 is on this Wi-Fi, but the router blocks direct connections (AP isolation)"), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "%1 is set as a public network"), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "%1 isn't connected"), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "%1 minutes ago"), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "%1 · %2 ms"), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "A VPN is on"), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "Connect it to the same Wi-Fi or wired network as your phone."), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "Connected to %1"), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "Connected to a network"), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "Connecting to %1…"), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "It hasn't connected yet."), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "Keep %1 reachable in the background (%2)"), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "Last seen %1."), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "NectarLink isn't allowed through Windows Firewall"), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "On Huawei / Honor: open Settings → Battery → App launch, turn off Manage automatically for NectarLink, and keep Auto-launch, Secondary launch, and Run in background on."), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "On OnePlus / OxygenOS: open Settings → Apps → App management → NectarLink → Battery usage and turn on Allow background activity and Allow auto-launch."), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "On Oppo / Realme: open Settings → Apps → App management → NectarLink → Battery usage and turn on Allow background activity and Allow auto-launch."), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "On Pixel: open Settings → Apps → See all apps → NectarLink → App battery usage, tap Allow background usage, and choose Unrestricted."), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "On Samsung: open Settings → Apps → NectarLink → Battery and choose Unrestricted, then in Device care → Battery → Background usage limits make sure NectarLink is never put to sleep."), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "On USB"), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "On Vivo / OriginOS / Funtouch: open Settings → Battery → Background power consumption management → NectarLink and choose Unrestricted, and allow Autostart."), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "On Xiaomi / HyperOS / MIUI: open Settings → Apps → Manage apps → NectarLink, turn on Autostart, and set Battery saver to No restrictions."), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "On public networks Windows keeps other devices from finding this PC. If it's your home or work network, set it to Private."), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "On this network"), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "Someone chose not to allow it when Windows asked. Allow it, and your phone can connect."), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "This PC can see %1 announce itself on the network, but the router is blocking devices from talking directly to each other (often called AP Isolation, Client Isolation, or Guest Wi-Fi). Move both devices off any Guest Wi-Fi network, turn off AP / Client Isolation in your router's Wi-Fi settings, or connect with a USB cable."), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "This PC isn't on a network"), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "This network"), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "This usually takes a few seconds."), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "VPNs often keep devices on your network from reaching this PC. If your phone can't connect, try turning it off."), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "While away"), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "Windows Firewall blocks NectarLink"), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "Windows Firewall is off for this network"), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "Windows Firewall lets your phone connect"), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "Your phone may not be able to connect. Allow it once here."), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "a minute ago"), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "an hour ago"), // desktop/app/src/doctor.rs+ QT_TRANSLATE_NOOP("Doctor", "just now"), // desktop/app/src/doctor.rsQT_TRANSLATE_NOOP("Errors", "Something went wrong: %1"), // desktop/app/src/bridge/app.rsQT_TRANSLATE_NOOP("Errors", "That device isn't paired anymore."), // desktop/app/src/bridge/app.rsQT_TRANSLATE_NOOP("Errors", "The device declined."), // desktop/app/src/bridge/app.rs@@ -64,23 +245,47 @@ static const char *const nectarlink_rust_strings[] = {QT_TRANSLATE_NOOP("Media", "Media is turned off for that device."), // desktop/app/src/media.rsQT_TRANSLATE_NOOP("Media", "That player can't do that."), // desktop/app/src/media.rsQT_TRANSLATE_NOOP("Media", "That player isn't playing anymore."), // desktop/app/src/media.rs+ QT_TRANSLATE_NOOP("Messages", "Attachment is %1 (MMS supports up to 900 KB)"), // desktop/app/src/messages.rsQT_TRANSLATE_NOOP("Messages", "Group texts can't be sent from the PC yet."), // desktop/app/src/messages.rs+ QT_TRANSLATE_NOOP("Messages", "Only image or voice-note audio files can be attached."), // desktop/app/src/messages.rsQT_TRANSLATE_NOOP("Mirror", "Couldn't start recording."), // desktop/app/src/mirror.rs+ QT_TRANSLATE_NOOP("Mirror", "Mirror recording"), // desktop/app/src/mirror.rs+ QT_TRANSLATE_NOOP("Mirror", "Mirror screenshot"), // desktop/app/src/mirror.rsQT_TRANSLATE_NOOP("Mirror", "Mirroring is turned off for this phone."), // desktop/app/src/mirror.rs+ QT_TRANSLATE_NOOP("Mirror", "Recording from %1, saved in Downloads\\Nectarlink"), // desktop/app/src/mirror.rs+ QT_TRANSLATE_NOOP("Mirror", "Saved %1"), // desktop/app/src/mirror.rsQT_TRANSLATE_NOOP("Mirror", "Saved %1 to Downloads\\Nectarlink."), // desktop/app/src/mirror.rsQT_TRANSLATE_NOOP("Mirror", "Screenshot copied to clipboard."), // desktop/app/src/mirror.rs+ QT_TRANSLATE_NOOP("Mirror", "Screenshot from %1, saved in Downloads\\Nectarlink"), // desktop/app/src/mirror.rs+ QT_TRANSLATE_NOOP("Mirror", "Sending %1 files…"), // desktop/app/src/mirror.rs+ QT_TRANSLATE_NOOP("Mirror", "Sending %1…"), // desktop/app/src/mirror.rsQT_TRANSLATE_NOOP("Mirror", "Set up Wireless debugging in NectarLink on the phone to open its apps here."), // desktop/app/src/mirror.rs+ QT_TRANSLATE_NOOP("Mirror", "Show in folder"), // desktop/app/src/mirror.rsQT_TRANSLATE_NOOP("Mirror", "The app didn't open on the phone. Try again, or open NectarLink on the phone to check Wireless debugging."), // desktop/app/src/mirror.rsQT_TRANSLATE_NOOP("Mirror", "The phone isn't connected."), // desktop/app/src/mirror.rsQT_TRANSLATE_NOOP("Mirror", "The screenshot couldn't be copied to the clipboard."), // desktop/app/src/mirror.rsQT_TRANSLATE_NOOP("Mirror", "The screenshot couldn't be saved."), // desktop/app/src/mirror.rs+ QT_TRANSLATE_NOOP("Mirror", "This PC can't decode the phone's video."), // desktop/app/src/mirror.rsQT_TRANSLATE_NOOP("Mirror", "This phone's app doesn't share its screen yet. Update NectarLink on the phone."), // desktop/app/src/mirror.rsQT_TRANSLATE_NOOP("Mirror", "Wait for the screen to appear first."), // desktop/app/src/mirror.rs+ QT_TRANSLATE_NOOP("Mp4", "No video frames were recorded yet."), // desktop/app/src/win/mp4.rsQT_TRANSLATE_NOOP("Notifications", "Code copied"), // desktop/app/src/notifications.rs+ QT_TRANSLATE_NOOP("Notifications", "Copy code"), // desktop/app/src/notifications.rs+ QT_TRANSLATE_NOOP("Notifications", "Dismissed %1 from %2"), // desktop/app/src/bridge/notifications.rs+ QT_TRANSLATE_NOOP("Notifications", "Dismissed %1 notifications"), // desktop/app/src/bridge/notifications.rs+ QT_TRANSLATE_NOOP("Notifications", "Dismissed from %1"), // desktop/app/src/bridge/notifications.rs+ QT_TRANSLATE_NOOP("Notifications", "Notification dismissed"), // desktop/app/src/bridge/notifications.rs+ QT_TRANSLATE_NOOP("Notifications", "That notification is gone from the phone."), // desktop/app/src/notifications.rs+ QT_TRANSLATE_NOOP("Obs", "OBS isn't reachable on port %1. Turn on its WebSocket server."), // desktop/app/src/obs.rs+ QT_TRANSLATE_NOOP("Obs", "OBS: %1"), // desktop/app/src/obs.rs+ QT_TRANSLATE_NOOP("Obs", "The service on that port isn't OBS."), // desktop/app/src/obs.rsQT_TRANSLATE_NOOP("PhoneMic", "Tap Start on %1 to use its microphone."), // desktop/app/src/phone_mic.rsQT_TRANSLATE_NOOP("PhoneMic", "The microphone is turned off for this PC on %1."), // desktop/app/src/phone_mic.rsQT_TRANSLATE_NOOP("PhoneMic", "Update NectarLink on %1 to use its microphone."), // desktop/app/src/phone_mic.rsQT_TRANSLATE_NOOP("Photos", "Copied to clipboard."), // desktop/app/src/photos.rs+ QT_TRANSLATE_NOOP("Photos", "From %1"), // desktop/app/src/photos.rs+ QT_TRANSLATE_NOOP("Photos", "New photo"), // desktop/app/src/photos.rs+ QT_TRANSLATE_NOOP("Photos", "New screenshot"), // desktop/app/src/photos.rsQT_TRANSLATE_NOOP("Photos", "No recent photos found on the phone."), // desktop/app/src/photos.rsQT_TRANSLATE_NOOP("Photos", "Opening latest photo…"), // desktop/app/src/photos.rsQT_TRANSLATE_NOOP("Photos", "Saved %1 items to %2."), // desktop/app/src/photos.rs@@ -96,8 +301,28 @@ static const char *const nectarlink_rust_strings[] = {QT_TRANSLATE_NOOP("PlayOnPhone", "Sent to %1. Tap the notification there."), // desktop/app/src/play_on_phone.rsQT_TRANSLATE_NOOP("PlayOnPhone", "Tap the notification on %1 to watch."), // desktop/app/src/play_on_phone.rsQT_TRANSLATE_NOOP("PlayOnPhone", "Update NectarLink on %1 to play on it."), // desktop/app/src/play_on_phone.rs+ QT_TRANSLATE_NOOP("Prefs", "Connected to OBS."), // desktop/app/src/bridge/prefs.rs+ QT_TRANSLATE_NOOP("Recordings", "Recording from %1 saved"), // desktop/app/src/recordings.rs+ QT_TRANSLATE_NOOP("SendTo", "Copied to your phone's clipboard."), // desktop/app/src/send_to.rs+ QT_TRANSLATE_NOOP("SendTo", "Couldn't reach %1."), // desktop/app/src/send_to.rs+ QT_TRANSLATE_NOOP("SendTo", "Couldn't send %1"), // desktop/app/src/send_to.rs+ QT_TRANSLATE_NOOP("SendTo", "Couldn't send to %1"), // desktop/app/src/send_to.rs+ QT_TRANSLATE_NOOP("SendTo", "Couldn't share with %1"), // desktop/app/src/send_to.rs+ QT_TRANSLATE_NOOP("SendTo", "File failed integrity check; partial file kept to resume."), // desktop/app/src/send_to.rs+ QT_TRANSLATE_NOOP("SendTo", "Send to %1 with NectarLink"), // desktop/app/src/send_to.rs+ QT_TRANSLATE_NOOP("SendTo", "Sending to %1…"), // desktop/app/src/send_to.rs+ QT_TRANSLATE_NOOP("SendTo", "Sent to %1"), // desktop/app/src/send_to.rs+ QT_TRANSLATE_NOOP("SendTo", "The transfer didn't go through."), // desktop/app/src/send_to.rs+ QT_TRANSLATE_NOOP("SendTo", "Waiting for %1…"), // desktop/app/src/send_to.rs+ QT_TRANSLATE_NOOP("Setup", "Couldn't start setup: %1"), // desktop/app/src/setup.rs+ QT_TRANSLATE_NOOP("Setup", "Setup is taking too long. Try again after restarting the PC."), // desktop/app/src/setup.rs+ QT_TRANSLATE_NOOP("Setup", "Setup stopped with code %1."), // desktop/app/src/setup.rs+ QT_TRANSLATE_NOOP("Setup", "The uninstaller is missing. Reinstall NectarLink, then uninstall it."), // desktop/app/src/setup.rs+ QT_TRANSLATE_NOOP("Timeline", "Clip (removed from clipboard history)"), // desktop/app/src/bridge/timeline.rs+ QT_TRANSLATE_NOOP("Timeline", "Copied image"), // desktop/app/src/bridge/timeline.rsQT_TRANSLATE_NOOP("Timeline", "Copied link to clipboard."), // desktop/app/src/bridge/timeline.rsQT_TRANSLATE_NOOP("Timeline", "Copied to clipboard."), // desktop/app/src/bridge/timeline.rs+ QT_TRANSLATE_NOOP("Timeline", "In progress"), // desktop/app/src/bridge/timeline.rsQT_TRANSLATE_NOOP("Timeline", "No phone is paired yet."), // desktop/app/src/bridge/timeline.rsQT_TRANSLATE_NOOP("Timeline", "Phone microphone"), // desktop/app/src/i18n.rsQT_TRANSLATE_NOOP("Timeline", "Phone webcam"), // desktop/app/src/i18n.rs@@ -111,7 +336,30 @@ static const char *const nectarlink_rust_strings[] = {QT_TRANSLATE_NOOP("Timeline", "That photo was moved or deleted."), // desktop/app/src/bridge/timeline.rsQT_TRANSLATE_NOOP("Timeline", "The Timeline couldn't be cleared. Try again."), // desktop/app/src/bridge/timeline.rsQT_TRANSLATE_NOOP("Timeline", "The photo couldn't be copied to the clipboard."), // desktop/app/src/bridge/timeline.rs+ QT_TRANSLATE_NOOP("Timeline", "Voice recording"), // desktop/app/src/bridge/timeline.rs+ QT_TRANSLATE_NOOP("Transfers", "Accept in NectarLink to save to Downloads\\Nectarlink"), // desktop/app/src/transfers.rsQT_TRANSLATE_NOOP("Transfers", "Files are turned off for that device."), // desktop/app/src/transfers.rs+ QT_TRANSLATE_NOOP("Transfers", "From %1, opened from Downloads\\Nectarlink"), // desktop/app/src/transfers.rs+ QT_TRANSLATE_NOOP("Transfers", "From %1, saved in Downloads\\Nectarlink"), // desktop/app/src/transfers.rs+ QT_TRANSLATE_NOOP("Transfers", "Nearby device"), // desktop/app/src/transfers.rsQT_TRANSLATE_NOOP("Transfers", "That's too many files to send at once."), // desktop/app/src/transfers.rsQT_TRANSLATE_NOOP("Transfers", "There's nothing to send in there."), // desktop/app/src/transfers.rs+ QT_TRANSLATE_NOOP("Updater", "Couldn't check for updates. Check your internet connection."), // desktop/app/src/updater.rs+ QT_TRANSLATE_NOOP("Updater", "NectarLink %1 is available"), // desktop/app/src/updater.rs+ QT_TRANSLATE_NOOP("Updater", "NectarLink %1 is available."), // desktop/app/src/updater.rs+ QT_TRANSLATE_NOOP("Updater", "NectarLink is still on the version you had. Try again from Settings."), // desktop/app/src/updater.rs+ QT_TRANSLATE_NOOP("Updater", "NectarLink is up to date."), // desktop/app/src/updater.rs+ QT_TRANSLATE_NOOP("Updater", "NectarLink is updated to %1"), // desktop/app/src/updater.rs+ QT_TRANSLATE_NOOP("Updater", "The download was damaged, so it wasn't installed. Try again."), // desktop/app/src/updater.rs+ QT_TRANSLATE_NOOP("Updater", "The update couldn't be downloaded. Check your internet connection and try again."), // desktop/app/src/updater.rs+ QT_TRANSLATE_NOOP("Updater", "The update couldn't be saved. Check that there's free space and try again."), // desktop/app/src/updater.rs+ QT_TRANSLATE_NOOP("Updater", "The update couldn't be started. Try again."), // desktop/app/src/updater.rs+ QT_TRANSLATE_NOOP("Updater", "The update didn't install"), // desktop/app/src/updater.rs+ QT_TRANSLATE_NOOP("Updater", "Update now, or later from Settings."), // desktop/app/src/updater.rs+ QT_TRANSLATE_NOOP("Updater", "Your phone reconnects on its own."), // desktop/app/src/updater.rs+ QT_TRANSLATE_NOOP("Webcam", "Starting camera on %1…"), // desktop/app/src/bridge/webcam.rs+ QT_TRANSLATE_NOOP("Webcam", "Streaming %1 × %2 · %3 fps from %4"), // desktop/app/src/bridge/webcam.rs+ QT_TRANSLATE_NOOP("Widget", "No phone connected"), // desktop/app/src/win/widget.rs+ QT_TRANSLATE_NOOP("Widget", "No recent clipboard items"), // desktop/app/src/win/widget.rs+ QT_TRANSLATE_NOOP("Widget", "Not available"), // desktop/app/src/win/widget.rs};diff --git a/desktop/app/src/automations.rs b/desktop/app/src/automations.rsindex 8d2bb45..188f6e7 100644--- a/desktop/app/src/automations.rs+++ b/desktop/app/src/automations.rs@@ -2,6 +2,7 @@//! Automations ("When X, Do Y", §3.11 P2): lightweight event-driven rules//! persisted in `settings.json` (`automation_rules`).+use crate::i18n::tr;use std::{collections::HashMap,sync::{Mutex, OnceLock},@@ -77,7 +78,7 @@ fn execute_rule(rule: &AutomationRule) {let _ = crate::pc_notifications::forward_to_phones("NectarLink Automations",&rule.name,- &format!("Triggered by {}", rule.trigger),+ &tr!("Automations", "Triggered by %1", rule.trigger),);}}diff --git a/desktop/app/src/battery.rs b/desktop/app/src/battery.rsindex 1faf19f..9526e3a 100644--- a/desktop/app/src/battery.rs+++ b/desktop/app/src/battery.rs@@ -2,6 +2,7 @@//! Battery alerts: a Windows notification when a phone's battery runs low,//! and when it's fully charged. Once each, until the battery has moved on.+use crate::i18n::tr;use std::{collections::HashMap,sync::{@@ -82,10 +83,11 @@ pub fn on_event(event: &NodeEvent) {if !ENABLED.load(Ordering::Relaxed) {return;}- let name = core_host::host().hub.read(|s| s.name_of(device)).unwrap_or_else(|| "Your phone".into());+ let name =+ core_host::host().hub.read(|s| s.name_of(device)).unwrap_or_else(|| tr!("Battery", "Your phone"));let (title, body) = match alert {Alert::Low(level) => (format!("{name}'s battery is low"), format!("{level}% left. Charge it soon.")),- Alert::Full => (format!("{name} is fully charged"), "You can unplug it.".to_owned()),+ Alert::Full => (tr!("Battery", "%1 is fully charged", name), tr!("Battery", "You can unplug it.")),};toast::show(Toast {device: TOAST_GROUP.into(),diff --git a/desktop/app/src/bridge/app.rs b/desktop/app/src/bridge/app.rsindex 84d09c3..735a335 100644--- a/desktop/app/src/bridge/app.rs+++ b/desktop/app/src/bridge/app.rs@@ -516,9 +516,9 @@ pub fn install_update_in_background() {let result = crate::updater::install(move |done, total| {let fraction = if total > 0 { (done as f64 / total as f64).clamp(0.0, 1.0) } else { -1.0 };let text = if total > 0 {- format!("Downloading the update · {} of {}", megabytes(done), megabytes(total))+ tr!("App", "Downloading the update · %1 of %2", megabytes(done), megabytes(total))} else {- "Downloading the update…".to_owned()+ tr!("App", "Downloading the update…")};let _ = progress_qt.queue(move |mut object| {object.as_mut().set_update_progress(fraction);@@ -627,7 +627,7 @@ pub(crate) fn show_message_with_action(message: impl Into<String>, action_label:pub(crate) fn show_offline_queued_toast(device: DeviceId, item_id: Option<String>) -> bool {let (online, device_name) = core_host::host().hub.read(|s| {let online = s.devices.iter().any(|d| d.id == device && matches!(d.link, LinkState::Online { .. }));- let name = s.name_of(&device).unwrap_or_else(|| "Your phone".into());+ let name = s.name_of(&device).unwrap_or_else(|| tr!("App", "Your phone"));(online, name)});if online {@@ -803,14 +803,14 @@ impl cxx_qt::Initialize for qobject::AppController {);let labels = tray::MenuLabels {- open: "Open NectarLink".into(),- command_palette: "Command palette".into(),- shelf: "Toggle Shelf".into(),- take_photo: "Take photo with phone".into(),- scan_document: "Scan document with phone".into(),- find_phone: "Find my phone".into(),- open_link: "Open copied link on phone".into(),- quit: "Quit NectarLink".into(),+ open: tr!("App", "Open NectarLink"),+ command_palette: tr!("App", "Command palette"),+ shelf: tr!("App", "Toggle Shelf"),+ take_photo: tr!("App", "Take photo with phone"),+ scan_document: tr!("App", "Scan document with phone"),+ find_phone: tr!("App", "Find my phone"),+ open_link: tr!("App", "Open copied link on phone"),+ quit: tr!("App", "Quit NectarLink"),};match tray::Tray::create("NectarLink", labels, move |event| on_tray_event(&qt, event)) {Ok(tray) => self.rust_mut().tray = Some(tray),@@ -960,7 +960,7 @@ pub(crate) fn format_tray_device_summary(name: &str, b: &nectarlink_core::Batterlet charging = if b.charging { ", charging" } else { "" };let mut parts = vec![format!("{name} · {}%{charging}", b.level)];if let Some(w) = b.wifi_bars {- parts.push(format!("Wi-Fi {w}/4"));+ parts.push(tr!("App", "Wi-Fi %1/4", w));}if let Some(c) = b.cell_bars {let label = b.cell_type.as_deref().filter(|s| !s.is_empty()).unwrap_or("Cell");@@ -1092,9 +1092,9 @@ fn phone_colors_json(devices: &[crate::state::DeviceView]) -> String {let id_str = d.id.to_string();let key = if multiple { format!("phone:{id_str}") } else { "phone".to_owned() };let label = if multiple {- format!("My phone's colors ({})", d.info.name)+ tr!("App", "My phone's colors (%1)", d.info.name)} else {- "My phone's colors".to_owned()+ tr!("App", "My phone's colors")};serde_json::json!({"id": id_str,@@ -1248,13 +1248,13 @@ impl qobject::AppController {self.as_mut().set_phone_toggles_revision(toggles_version as i32);let mut tooltip = match (devices, online) {- (0, _) => "NectarLink · no devices paired".to_owned(),- (_, 0) => "NectarLink · not connected".to_owned(),+ (0, _) => tr!("App", "NectarLink · no devices paired"),+ (_, 0) => tr!("App", "NectarLink · not connected"),(_, 1) => battery.map_or_else(- || "NectarLink · 1 device connected".to_owned(),- |b| format!("NectarLink · {b}"),+ || tr!("App", "NectarLink · 1 device connected"),+ |b| tr!("App", "NectarLink · %1", b),),- (_, n) => format!("NectarLink · {n} devices connected"),+ (_, n) => tr!("App", "NectarLink · %1 devices connected", n),};if waiting_count > 0 {tooltip.push_str(&format!(" · {waiting_count} waiting"));diff --git a/desktop/app/src/bridge/calls.rs b/desktop/app/src/bridge/calls.rsindex b6eedb0..d82222d 100644--- a/desktop/app/src/bridge/calls.rs+++ b/desktop/app/src/bridge/calls.rs@@ -3,6 +3,7 @@//! controls QML sends to it, the phone's call log and contacts, and dialing//! a number from the PC.+use crate::i18n::tr;use std::pin::Pin;use cxx_qt::{CxxQtType, Threading};@@ -235,7 +236,7 @@ impl qobject::PhoneCall {let number = call.number.clone().filter(|n| !n.trim().is_empty());match name {Some(name) => (name, number.unwrap_or_default()),- None => (number.unwrap_or_else(|| "Unknown caller".into()), String::new()),+ None => (number.unwrap_or_else(|| tr!("Calls", "Unknown caller")), String::new()),}}None => Default::default(),diff --git a/desktop/app/src/bridge/deck.rs b/desktop/app/src/bridge/deck.rsindex e638e17..0cb9482 100644--- a/desktop/app/src/bridge/deck.rs+++ b/desktop/app/src/bridge/deck.rs@@ -3,6 +3,7 @@#![allow(clippy::too_many_arguments)]+use crate::i18n::tr;use std::pin::Pin;use cxx_qt::Threading;@@ -47,16 +48,16 @@ struct UiPage {fn action_fields(action: &DeckAction) -> (String, bool, bool, bool, bool, String) {match action {- DeckAction::MediaPlayPause => (String::new(), false, false, false, false, "Media key".into()),- DeckAction::MediaNext => (String::new(), false, false, false, false, "Media key".into()),- DeckAction::MediaPrevious => (String::new(), false, false, false, false, "Media key".into()),+ DeckAction::MediaPlayPause => (String::new(), false, false, false, false, tr!("Deck", "Media key")),+ DeckAction::MediaNext => (String::new(), false, false, false, false, tr!("Deck", "Media key")),+ DeckAction::MediaPrevious => (String::new(), false, false, false, false, tr!("Deck", "Media key")),DeckAction::VolumeUp => (String::new(), false, false, false, false, "+2%".into()),DeckAction::VolumeDown => (String::new(), false, false, false, false, "−2%".into()),DeckAction::VolumeMute => (String::new(), false, false, false, false, "Speaker".into()),DeckAction::MicMute => (String::new(), false, false, false, false, "Microphone".into()),DeckAction::LockPc => (String::new(), false, false, false, false, "Win + L".into()),DeckAction::ShowDesktop => (String::new(), false, false, false, false, "Win + D".into()),- DeckAction::SwitchWindow => (String::new(), false, false, false, false, "Alt + Tab".into()),+ DeckAction::SwitchWindow => (String::new(), false, false, false, false, tr!("Deck", "Alt + Tab")),DeckAction::Screenshot => (String::new(), false, false, false, false, "Win + Shift + S".into()),DeckAction::Shortcut { key, mods } => {let ctrl = mods.contains(&KeyMod::Ctrl);diff --git a/desktop/app/src/bridge/notifications.rs b/desktop/app/src/bridge/notifications.rsindex a550508..20f657f 100644--- a/desktop/app/src/bridge/notifications.rs+++ b/desktop/app/src/bridge/notifications.rs@@ -2,6 +2,7 @@//! `NotificationList`: phone notifications (newest first) as a Qt list//! model, plus the commands QML runs on them.+use crate::i18n::tr;use std::pin::Pin;use cxx_qt::{CxxQtType, Threading};@@ -488,9 +489,9 @@ impl qobject::NotificationList {});if let Some(view) = found {let label = if view.notification.app_name.is_empty() {- "Notification dismissed".to_owned()+ tr!("Notifications", "Notification dismissed")} else {- format!("Dismissed from {}", view.notification.app_name)+ tr!("Notifications", "Dismissed from %1", view.notification.app_name)};core_host::host().hub.update(|s| s.record_dismissed(vec![view], label));}@@ -515,9 +516,9 @@ impl qobject::NotificationList {let app_name = views[0].notification.app_name.clone();let count = views.len();let label = if count == 1 {- format!("Dismissed from {app_name}")+ tr!("Notifications", "Dismissed from %1", app_name)} else {- format!("Dismissed {count} from {app_name}")+ tr!("Notifications", "Dismissed %1 from %2", count, app_name)};let keys: Vec<String> = views.iter().map(|v| v.notification.key.clone()).collect();core_host::host().hub.update(|s| s.record_dismissed(views, label));@@ -541,9 +542,9 @@ impl qobject::NotificationList {}let count = views.len();let label = if count == 1 {- "Notification dismissed".to_owned()+ tr!("Notifications", "Notification dismissed")} else {- format!("Dismissed {count} notifications")+ tr!("Notifications", "Dismissed %1 notifications", count)};let keys: Vec<String> = views.iter().map(|v| v.notification.key.clone()).collect();core_host::host().hub.update(|s| s.record_dismissed(views, label));diff --git a/desktop/app/src/bridge/prefs.rs b/desktop/app/src/bridge/prefs.rsindex 82186b2..32bbb76 100644--- a/desktop/app/src/bridge/prefs.rs+++ b/desktop/app/src/bridge/prefs.rs@@ -3,6 +3,7 @@#![allow(clippy::too_many_arguments)]+use crate::i18n::tr;use std::{path::PathBuf,pin::Pin,@@ -716,7 +717,7 @@ impl qobject::Preferences {pub fn test_obs(&self) {let spawned = std::thread::Builder::new().name("obs-test".into()).spawn(|| {let message = match crate::deck::send_obs_command("GetVersion") {- Ok(()) => "Connected to OBS.".to_owned(),+ Ok(()) => tr!("Prefs", "Connected to OBS."),Err(e) => e,};crate::bridge::app::show_message(message);diff --git a/desktop/app/src/bridge/timeline.rs b/desktop/app/src/bridge/timeline.rsindex 29ce562..c296fbd 100644--- a/desktop/app/src/bridge/timeline.rs+++ b/desktop/app/src/bridge/timeline.rs@@ -607,7 +607,7 @@ fn describe_entry(let title = if entry.title.is_empty() {match entry.kind {TimelineKind::Photo => "Photo".into(),- TimelineKind::Recording => "Voice recording".into(),+ TimelineKind::Recording => tr!("Timeline", "Voice recording"),_ => "File".into(),}} else {@@ -666,9 +666,9 @@ fn describe_entry(raw_detail = detail;friendly} else if !clip_thumb.is_empty() || entry.detail == "image" {- "Copied image".into()+ tr!("Timeline", "Copied image")} else {- "Clip (removed from clipboard history)".into()+ tr!("Timeline", "Clip (removed from clipboard history)")};let mut parts = vec![who];if entry.size_bytes > 0 {@@ -702,7 +702,7 @@ fn describe_entry(if entry.duration_secs > 0 {parts.push(format_duration(entry.duration_secs as u32));} else {- parts.push("In progress".into());+ parts.push(tr!("Timeline", "In progress"));}(title, parts.join(" · "), String::new(), String::new(), 1, false, false, false, false)}diff --git a/desktop/app/src/bridge/webcam.rs b/desktop/app/src/bridge/webcam.rsindex 2a928ed..49277ef 100644--- a/desktop/app/src/bridge/webcam.rs+++ b/desktop/app/src/bridge/webcam.rs@@ -3,6 +3,7 @@//! webcam preferences (phone, 720p, 1080p or 4K when the camera can, mirror),//! and live stream state.+use crate::i18n::tr;use std::pin::Pin;use cxx_qt::Threading;@@ -120,14 +121,14 @@ impl qobject::Webcam {Phase::Idle => ("idle", String::new(), String::new()),Phase::Asking { device } => {let name = hub.read(|s| s.name_of(&device)).unwrap_or_else(|| "phone".into());- ("asking", device.to_string(), format!("Starting camera on {name}…"))+ ("asking", device.to_string(), tr!("Webcam", "Starting camera on %1…", name))}Phase::Streaming { device, width, height, fps } => {let name = hub.read(|s| s.name_of(&device)).unwrap_or_else(|| "phone".into());("streaming",device.to_string(),- format!("Streaming {width} × {height} · {fps} fps from {name}"),+ tr!("Webcam", "Streaming %1 × %2 · %3 fps from %4", width, height, fps, name),)}Phase::Ended { reason } => ("ended", String::new(), reason),diff --git a/desktop/app/src/calls.rs b/desktop/app/src/calls.rsindex 9dbb111..69893b4 100644--- a/desktop/app/src/calls.rs+++ b/desktop/app/src/calls.rs@@ -281,7 +281,7 @@ fn caller(call: &CallState) -> String {.clone().filter(|n| !n.trim().is_empty()).or_else(|| call.number.clone().filter(|n| !n.trim().is_empty()))- .unwrap_or_else(|| "Unknown caller".into())+ .unwrap_or_else(|| tr!("Calls", "Unknown caller"))}fn phone_name(device: DeviceId) -> String {@@ -302,7 +302,7 @@ fn show_ringing(device: DeviceId, call: &CallState, silenced: bool) {(Some(name), Some(number)) if !name.trim().is_empty() => {format!("{number} · on {}", phone_name(device))}- _ => format!("Calling {}", phone_name(device)),+ _ => tr!("Calls", "Calling %1", phone_name(device)),};toast::show(Toast {device: TOAST_GROUP.into(),@@ -341,7 +341,7 @@ fn show_in_progress(device: DeviceId, call: &CallState) {toast::show(Toast {device: TOAST_GROUP.into(),key: format!("{ACTIVE}{}", key(device, &call.id)),- title: format!("On a call with {}", caller(call)),+ title: tr!("Calls", "On a call with %1", caller(call)),body: format!("On {}", phone_name(device)),attribution: "NectarLink".into(),icon: None,@@ -370,7 +370,7 @@ fn show_missed(device: DeviceId, call: &CallState) {toast::show(Toast {device: TOAST_GROUP.into(),key: format!("missed {}", key(device, &call.id)),- title: format!("Missed call from {}", caller(call)),+ title: tr!("Calls", "Missed call from %1", caller(call)),body: format!("On {}", phone_name(device)),attribution: "NectarLink".into(),icon: None,diff --git a/desktop/app/src/clipboard.rs b/desktop/app/src/clipboard.rsindex 2710bd1..73145a8 100644--- a/desktop/app/src/clipboard.rs+++ b/desktop/app/src/clipboard.rs@@ -367,11 +367,11 @@ pub fn on_event(event: &NodeEvent) {if let Some(suggestion) = suggestion {let label = suggestion.action_label();*LAST_SUGGESTION.lock().unwrap_or_else(|e| e.into_inner()) = Some((*device, suggestion));- show_message_with_action(format!("Copied from {name}."), label);+ show_message_with_action(tr!("Clipboard", "Copied from %1.", name), label);crate::win::toast::show(crate::win::toast::Toast {device: TOAST_GROUP.into(),key: "clip_suggestion".into(),- title: format!("Copied from {name}"),+ title: tr!("Clipboard", "Copied from %1", name),body: String::new(),attribution: String::new(),icon: None,diff --git a/desktop/app/src/command_palette.rs b/desktop/app/src/command_palette.rsindex 501000c..f1af241 100644--- a/desktop/app/src/command_palette.rs+++ b/desktop/app/src/command_palette.rs@@ -229,12 +229,17 @@ pub fn execute(id: &str) -> Option<PaletteUiAction> {core_host::spawn(core_host::refresh_wake());let msg = core_host::host().hub.read(|s| match s.wake.primary() {Some(adapter) if s.wake.state_str() == "enabled" => {- format!("Wake-on-LAN is ready on {} (phones can wake this PC).", adapter.label)+ tr!("CommandPalette", "Wake-on-LAN is ready on %1 (phones can wake this PC).", adapter.label)}Some(adapter) => {- format!("Wake-on-LAN on {} is {}. Check Settings.", adapter.label, s.wake.state_str())+ tr!(+ "CommandPalette",+ "Wake-on-LAN on %1 is %2. Check Settings.",+ adapter.label,+ s.wake.state_str()+ )}- None => "No physical network adapter found for Wake-on-LAN.".to_owned(),+ None => tr!("CommandPalette", "No physical network adapter found for Wake-on-LAN."),});show_message(msg);return Some(PaletteUiAction::NavigatePage { page: "settings".to_owned(), device_index: None });@@ -490,9 +495,9 @@ fn build_candidates() -> Vec<PaletteCandidate> {.map(|(idx, d)| (idx, d.id, d.info.name.clone(), matches!(d.link, LinkState::Online { .. }))).collect();let wake_sub = match s.wake.primary() {- Some(a) if s.wake.state_str() == "enabled" => format!("Ready on {}", a.label),+ Some(a) if s.wake.state_str() == "enabled" => tr!("CommandPalette", "Ready on %1", a.label),Some(a) => format!("{} ({})", a.label, s.wake.state_str()),- None => "Check Wake-on-LAN status in Settings".to_owned(),+ None => tr!("CommandPalette", "Check Wake-on-LAN status in Settings"),};(devs, s.toggles.clone(), wake_sub)});@@ -513,8 +518,8 @@ fn build_candidates() -> Vec<PaletteCandidate> {let status_badge = if online { dev_name.clone() } else { format!("{dev_name} (offline)") };out.push(PaletteCandidate {id: format!("action:send_clipboard:{dev_id}"),- title: "Send clipboard".into(),- subtitle: format!("Send copied text or image to {dev_name}"),+ title: tr!("CommandPalette", "Send clipboard"),+ subtitle: tr!("CommandPalette", "Send copied text or image to %1", dev_name),category: "Actions".into(),icon: "clipboard".into(),badge: status_badge.clone(),@@ -524,8 +529,8 @@ fn build_candidates() -> Vec<PaletteCandidate> {});out.push(PaletteCandidate {id: format!("action:ring:{dev_id}"),- title: "Find my phone".into(),- subtitle: format!("Make {dev_name} ring at full volume"),+ title: tr!("CommandPalette", "Find my phone"),+ subtitle: tr!("CommandPalette", "Make %1 ring at full volume", dev_name),category: "Actions".into(),icon: "ring".into(),badge: status_badge.clone(),@@ -535,8 +540,8 @@ fn build_candidates() -> Vec<PaletteCandidate> {});out.push(PaletteCandidate {id: format!("action:open_last_photo:{dev_id}"),- title: "Open last photo".into(),- subtitle: format!("Open the newest photo or screenshot from {dev_name}"),+ title: tr!("CommandPalette", "Open last photo"),+ subtitle: tr!("CommandPalette", "Open the newest photo or screenshot from %1", dev_name),category: "Actions".into(),icon: "photo".into(),badge: status_badge.clone(),@@ -546,8 +551,8 @@ fn build_candidates() -> Vec<PaletteCandidate> {});out.push(PaletteCandidate {id: format!("action:record_voice:{dev_id}"),- title: "Record voice".into(),- subtitle: format!("Open voice recordings folder for {dev_name}"),+ title: tr!("CommandPalette", "Record voice"),+ subtitle: tr!("CommandPalette", "Open voice recordings folder for %1", dev_name),category: "Actions".into(),icon: "mic".into(),badge: status_badge.clone(),@@ -560,8 +565,15 @@ fn build_candidates() -> Vec<PaletteCandidate> {// Shelf & Continuity Camera actions (global hotkeys shown as badges/shortcuts)out.push(PaletteCandidate {id: "action:toggle_shelf".into(),- title: if crate::bridge::app::is_shelf_open() { "Hide Shelf".into() } else { "Open Shelf".into() },- subtitle: "Slide-out edge panel with latest photo, screenshot, clipboard, and recent files".into(),+ title: if crate::bridge::app::is_shelf_open() {+ tr!("CommandPalette", "Hide Shelf")+ } else {+ tr!("CommandPalette", "Open Shelf")+ },+ subtitle: tr!(+ "CommandPalette",+ "Slide-out edge panel with latest photo, screenshot, clipboard, and recent files"+ ),category: "Actions".into(),icon: "folder".into(),badge: "Shelf".into(),@@ -571,8 +583,8 @@ fn build_candidates() -> Vec<PaletteCandidate> {});out.push(PaletteCandidate {id: "action:continuity_photo".into(),- title: "Take photo with phone".into(),- subtitle: "Capture a photo on your phone and paste it into the active window".into(),+ title: tr!("CommandPalette", "Take photo with phone"),+ subtitle: tr!("CommandPalette", "Capture a photo on your phone and paste it into the active window"),category: "Actions".into(),icon: "camera".into(),badge: "Continuity".into(),@@ -582,8 +594,8 @@ fn build_candidates() -> Vec<PaletteCandidate> {});out.push(PaletteCandidate {id: "action:continuity_scan".into(),- title: "Scan document with phone".into(),- subtitle: "Scan a document on your phone and paste it into the active window".into(),+ title: tr!("CommandPalette", "Scan document with phone"),+ subtitle: tr!("CommandPalette", "Scan a document on your phone and paste it into the active window"),category: "Actions".into(),icon: "clipboardList".into(),badge: "Continuity".into(),@@ -594,26 +606,26 @@ fn build_candidates() -> Vec<PaletteCandidate> {let (link_title, link_sub, link_badge, link_keywords) = match crate::links::handoff_from_clipboard() {Some(h) => match h.kind {nectarlink_core::HandoffKind::MapLocation => (- "Open copied location in Maps on phone".to_owned(),+ tr!("CommandPalette", "Open copied location in Maps on phone"),h.label,- "Handoff · Map".to_owned(),+ tr!("CommandPalette", "Handoff · Map"),"open copied link map location address directions geo handoff phone".to_owned(),),nectarlink_core::HandoffKind::VideoLink => (- "Continue copied video on phone".to_owned(),+ tr!("CommandPalette", "Continue copied video on phone"),h.label,- "Handoff · Video".to_owned(),+ tr!("CommandPalette", "Handoff · Video"),"open copied link video youtube timestamp watch continue handoff phone".to_owned(),),nectarlink_core::HandoffKind::WebLink => (- "Open copied link on phone".to_owned(),+ tr!("CommandPalette", "Open copied link on phone"),h.label,"Handoff".to_owned(),"open copied link url browser web share handoff phone".to_owned(),),},None => (- "Open copied link on phone".to_owned(),+ tr!("CommandPalette", "Open copied link on phone"),"Send a web URL, video with timestamp, or map location on your clipboard to your phone".to_owned(),"Handoff".to_owned(),@@ -635,8 +647,8 @@ fn build_candidates() -> Vec<PaletteCandidate> {if let Some((_, dev_id, ref dev_name, _)) = primary {out.push(PaletteCandidate {id: format!("action:mirror_screen:{dev_id}"),- title: "Mirror phone screen".into(),- subtitle: format!("Stream {dev_name}'s screen in a desktop window"),+ title: tr!("CommandPalette", "Mirror phone screen"),+ subtitle: tr!("CommandPalette", "Stream %1's screen in a desktop window", dev_name),category: "Actions".into(),icon: "mirror".into(),badge: dev_name.clone(),@@ -648,11 +660,15 @@ fn build_candidates() -> Vec<PaletteCandidate> {out.push(PaletteCandidate {id: format!("action:type_on_phone:{dev_id}"),title: if typing_active {- "Stop typing on phone".into()+ tr!("CommandPalette", "Stop typing on phone")} else {- "Type on phone with PC keyboard".into()+ tr!("CommandPalette", "Type on phone with PC keyboard")},- subtitle: format!("Send live keystrokes and text to {dev_name} without screen mirroring"),+ subtitle: tr!(+ "CommandPalette",+ "Send live keystrokes and text to %1 without screen mirroring",+ dev_name+ ),category: "Actions".into(),icon: "keyboard".into(),badge: dev_name.clone(),@@ -666,8 +682,16 @@ fn build_candidates() -> Vec<PaletteCandidate> {);out.push(PaletteCandidate {id: format!("action:webcam:{dev_id}"),- title: if webcam_streaming { "Stop phone webcam".into() } else { "Use phone as webcam".into() },- subtitle: format!("Stream {dev_name}'s camera into the NectarLink virtual webcam"),+ title: if webcam_streaming {+ tr!("CommandPalette", "Stop phone webcam")+ } else {+ tr!("CommandPalette", "Use phone as webcam")+ },+ subtitle: tr!(+ "CommandPalette",+ "Stream %1's camera into the NectarLink virtual webcam",+ dev_name+ ),category: "Actions".into(),icon: "video".into(),badge: dev_name.clone(),@@ -677,19 +701,23 @@ fn build_candidates() -> Vec<PaletteCandidate> {});out.push(PaletteCandidate {id: format!("action:handoff_file:{dev_id}"),- title: "Hand off document to phone".into(),- subtitle: format!("Send a document to {dev_name} and open it automatically upon arrival"),+ title: tr!("CommandPalette", "Hand off document to phone"),+ subtitle: tr!(+ "CommandPalette",+ "Send a document to %1 and open it automatically upon arrival",+ dev_name+ ),category: "Actions".into(),icon: "send".into(),- badge: "Handoff · Doc".into(),+ badge: tr!("CommandPalette", "Handoff · Doc"),shortcut: String::new(),keywords: format!("hand off handoff document file open pdf doc txt send {dev_name}"),base_boost: 77,});out.push(PaletteCandidate {id: format!("action:phone_storage:{dev_id}"),- title: "Browse phone storage in File Explorer".into(),- subtitle: format!("Open {dev_name}'s Cloud Files folder in Explorer"),+ title: tr!("CommandPalette", "Browse phone storage in File Explorer"),+ subtitle: tr!("CommandPalette", "Open %1's Cloud Files folder in Explorer", dev_name),category: "Actions".into(),icon: "folder".into(),badge: dev_name.clone(),@@ -709,8 +737,8 @@ fn build_candidates() -> Vec<PaletteCandidate> {let badge = if *online { dev_name.clone() } else { format!("{dev_name} (offline)") };out.push(PaletteCandidate {id: format!("action:send_clipboard:{dev_id}"),- title: format!("Send clipboard to {dev_name}"),- subtitle: "Send copied text or image".into(),+ title: tr!("CommandPalette", "Send clipboard to %1", dev_name),+ subtitle: tr!("CommandPalette", "Send copied text or image"),category: "Actions".into(),icon: "clipboard".into(),badge: badge.clone(),@@ -720,8 +748,8 @@ fn build_candidates() -> Vec<PaletteCandidate> {});out.push(PaletteCandidate {id: format!("action:ring:{dev_id}"),- title: format!("Find {dev_name}"),- subtitle: "Make phone ring at full volume".into(),+ title: tr!("CommandPalette", "Find %1", dev_name),+ subtitle: tr!("CommandPalette", "Make phone ring at full volume"),category: "Actions".into(),icon: "ring".into(),badge: badge.clone(),@@ -731,8 +759,8 @@ fn build_candidates() -> Vec<PaletteCandidate> {});out.push(PaletteCandidate {id: format!("action:open_last_photo:{dev_id}"),- title: format!("Open last photo from {dev_name}"),- subtitle: "Open newest photo or screenshot".into(),+ title: tr!("CommandPalette", "Open last photo from %1", dev_name),+ subtitle: tr!("CommandPalette", "Open newest photo or screenshot"),category: "Actions".into(),icon: "photo".into(),badge,@@ -757,8 +785,8 @@ fn build_candidates() -> Vec<PaletteCandidate> {});out.push(PaletteCandidate {id: "action:sync_now".into(),- title: "Sync now".into(),- subtitle: "Reconnect paired phones and refresh notifications and media".into(),+ title: tr!("CommandPalette", "Sync now"),+ subtitle: tr!("CommandPalette", "Reconnect paired phones and refresh notifications and media"),category: "Actions".into(),icon: "refresh".into(),badge: String::new(),@@ -768,8 +796,8 @@ fn build_candidates() -> Vec<PaletteCandidate> {});out.push(PaletteCandidate {id: "action:doctor".into(),- title: "Connection Doctor".into(),- subtitle: "Diagnose and fix firewall, discovery, or network issues".into(),+ title: tr!("CommandPalette", "Connection Doctor"),+ subtitle: tr!("CommandPalette", "Diagnose and fix firewall, discovery, or network issues"),category: "Actions".into(),icon: "bolt".into(),badge: String::new(),@@ -779,8 +807,8 @@ fn build_candidates() -> Vec<PaletteCandidate> {});out.push(PaletteCandidate {id: "action:pair".into(),- title: "Pair a new phone".into(),- subtitle: "Show QR code and pairing code to link another phone".into(),+ title: tr!("CommandPalette", "Pair a new phone"),+ subtitle: tr!("CommandPalette", "Show QR code and pairing code to link another phone"),category: "Actions".into(),icon: "plus".into(),badge: String::new(),@@ -790,8 +818,11 @@ fn build_candidates() -> Vec<PaletteCandidate> {});out.push(PaletteCandidate {id: "action:features_guide".into(),- title: "Features guide".into(),- subtitle: "Browse all 28 features, live capability status, and where to find them".into(),+ title: tr!("CommandPalette", "Features guide"),+ subtitle: tr!(+ "CommandPalette",+ "Browse all 28 features, live capability status, and where to find them"+ ),category: "Actions".into(),icon: "book".into(),badge: "Guide".into(),@@ -801,8 +832,8 @@ fn build_candidates() -> Vec<PaletteCandidate> {});out.push(PaletteCandidate {id: "action:setup_walkthrough".into(),- title: "Setup walkthrough".into(),- subtitle: "Re-open the step-by-step setup walkthrough".into(),+ title: tr!("CommandPalette", "Setup walkthrough"),+ subtitle: tr!("CommandPalette", "Re-open the step-by-step setup walkthrough"),category: "Actions".into(),icon: "compass".into(),badge: "Setup".into(),@@ -822,9 +853,9 @@ fn build_candidates() -> Vec<PaletteCandidate> {out.push(PaletteCandidate {id: format!("toggle:{dev_id}:dnd"),- title: "Toggle Do Not Disturb".into(),- subtitle: format!("Switch Do Not Disturb on {dev_name}"),- category: "Quick Toggles".into(),+ title: tr!("CommandPalette", "Toggle Do Not Disturb"),+ subtitle: tr!("CommandPalette", "Switch Do Not Disturb on %1", dev_name),+ category: tr!("CommandPalette", "Quick Toggles"),icon: "moon".into(),badge: dnd_badge.into(),shortcut: String::new(),@@ -833,9 +864,9 @@ fn build_candidates() -> Vec<PaletteCandidate> {});out.push(PaletteCandidate {id: format!("toggle:{dev_id}:flashlight"),- title: "Toggle Flashlight".into(),- subtitle: format!("Switch torch / flashlight on {dev_name}"),- category: "Quick Toggles".into(),+ title: tr!("CommandPalette", "Toggle Flashlight"),+ subtitle: tr!("CommandPalette", "Switch torch / flashlight on %1", dev_name),+ category: tr!("CommandPalette", "Quick Toggles"),icon: "flashlight".into(),badge: flash_badge.into(),shortcut: String::new(),@@ -844,9 +875,9 @@ fn build_candidates() -> Vec<PaletteCandidate> {});out.push(PaletteCandidate {id: format!("toggle:{dev_id}:ringer:normal"),- title: "Ringer: Sound".into(),- subtitle: format!("Set {dev_name}'s ringer mode to normal sound"),- category: "Quick Toggles".into(),+ title: tr!("CommandPalette", "Ringer: Sound"),+ subtitle: tr!("CommandPalette", "Set %1's ringer mode to normal sound", dev_name),+ category: tr!("CommandPalette", "Quick Toggles"),icon: "speaker".into(),badge: dev_name.clone(),shortcut: String::new(),@@ -855,9 +886,9 @@ fn build_candidates() -> Vec<PaletteCandidate> {});out.push(PaletteCandidate {id: format!("toggle:{dev_id}:ringer:vibrate"),- title: "Ringer: Vibrate".into(),- subtitle: format!("Set {dev_name}'s ringer mode to vibrate"),- category: "Quick Toggles".into(),+ title: tr!("CommandPalette", "Ringer: Vibrate"),+ subtitle: tr!("CommandPalette", "Set %1's ringer mode to vibrate", dev_name),+ category: tr!("CommandPalette", "Quick Toggles"),icon: "ring".into(),badge: dev_name.clone(),shortcut: String::new(),@@ -866,9 +897,9 @@ fn build_candidates() -> Vec<PaletteCandidate> {});out.push(PaletteCandidate {id: format!("toggle:{dev_id}:ringer:silent"),- title: "Ringer: Silent".into(),- subtitle: format!("Mute {dev_name}'s ringer"),- category: "Quick Toggles".into(),+ title: tr!("CommandPalette", "Ringer: Silent"),+ subtitle: tr!("CommandPalette", "Mute %1's ringer", dev_name),+ category: tr!("CommandPalette", "Quick Toggles"),icon: "soundOff".into(),badge: dev_name.clone(),shortcut: String::new(),@@ -877,9 +908,9 @@ fn build_candidates() -> Vec<PaletteCandidate> {});out.push(PaletteCandidate {id: format!("toggle:{dev_id}:wifi"),- title: "Toggle Wi-Fi".into(),- subtitle: format!("Switch Wi-Fi on {dev_name}"),- category: "Quick Toggles".into(),+ title: tr!("CommandPalette", "Toggle Wi-Fi"),+ subtitle: tr!("CommandPalette", "Switch Wi-Fi on %1", dev_name),+ category: tr!("CommandPalette", "Quick Toggles"),icon: "wifi".into(),badge: wifi_badge.into(),shortcut: String::new(),@@ -888,9 +919,9 @@ fn build_candidates() -> Vec<PaletteCandidate> {});out.push(PaletteCandidate {id: format!("toggle:{dev_id}:bluetooth"),- title: "Toggle Bluetooth".into(),- subtitle: format!("Switch Bluetooth on {dev_name}"),- category: "Quick Toggles".into(),+ title: tr!("CommandPalette", "Toggle Bluetooth"),+ subtitle: tr!("CommandPalette", "Switch Bluetooth on %1", dev_name),+ category: tr!("CommandPalette", "Quick Toggles"),icon: "bluetooth".into(),badge: bt_badge.into(),shortcut: String::new(),@@ -912,13 +943,13 @@ fn build_candidates() -> Vec<PaletteCandidate> {continue;}let sub_text = if sub.trim().is_empty() || sub.trim() == clean {- format!("Open conversation on {dev_name}")+ tr!("CommandPalette", "Open conversation on %1", dev_name)} else {format!("{sub} · {dev_name}")};out.push(PaletteCandidate {id: format!("text_thread:{dev_id}:{thread_id}"),- title: format!("Text {clean}"),+ title: tr!("CommandPalette", "Text %1", clean),subtitle: sub_text,category: "Messages".into(),icon: "messages".into(),@@ -940,7 +971,7 @@ fn build_candidates() -> Vec<PaletteCandidate> {if seen_text.insert(text_key) {out.push(PaletteCandidate {id: format!("text_contact:{dev_id}:{clean_num}\t{clean_name}"),- title: format!("Text {clean_name}"),+ title: tr!("CommandPalette", "Text %1", clean_name),subtitle: format!("{clean_num} · {dev_name}"),category: "Messages".into(),icon: "messages".into(),@@ -953,13 +984,13 @@ fn build_candidates() -> Vec<PaletteCandidate> {let call_key = format!("{}|{}", clean_name.to_ascii_lowercase(), clean_num);if seen_call.insert(call_key) {let subtitle = if clean_name == clean_num {- format!("Place call on {dev_name}")+ tr!("CommandPalette", "Place call on %1", dev_name)} else {format!("{clean_num} · {dev_name}")};out.push(PaletteCandidate {id: format!("call_contact:{dev_id}:{clean_num}"),- title: format!("Call {clean_name}"),+ title: tr!("CommandPalette", "Call %1", clean_name),subtitle,category: "Calls".into(),icon: "call".into(),@@ -975,9 +1006,9 @@ fn build_candidates() -> Vec<PaletteCandidate> {let boost = if idx < 5 { 57 } else { 48 };out.push(PaletteCandidate {id: format!("mirror_app:{dev_id}:{pkg}\t{label}"),- title: format!("Mirror {label}"),- subtitle: format!("Open {label} in a window from {dev_name}"),- category: "Mirror Apps".into(),+ title: tr!("CommandPalette", "Mirror %1", label),+ subtitle: tr!("CommandPalette", "Open %1 in a window from %2", label, dev_name),+ category: tr!("CommandPalette", "Mirror Apps"),icon: "mirror".into(),badge: dev_name.clone(),shortcut: String::new(),@@ -1026,7 +1057,7 @@ fn build_candidates() -> Vec<PaletteCandidate> {for (idx, _, dev_name, online) in &devices {out.push(PaletteCandidate {id: format!("nav_device:{idx}"),- title: format!("Switch to {dev_name}"),+ title: tr!("CommandPalette", "Switch to %1", dev_name),subtitle: if *online { "Connected".into() } else { "Offline".into() },category: "Navigation".into(),icon: "phone".into(),@@ -1054,15 +1085,15 @@ fn build_candidates() -> Vec<PaletteCandidate> {let head: String = chars.by_ref().take(60).collect();if chars.next().is_some() { format!("{head}…") } else { head }}- ClipboardItemKind::Image => "Copied image".into(),+ ClipboardItemKind::Image => tr!("CommandPalette", "Copied image"),};if preview.is_empty() {continue;}out.push(PaletteCandidate {id: format!("clip_copy:{}", entry.id),- title: format!("Copy: {preview}"),- subtitle: format!("From {}", entry.device_name),+ title: tr!("CommandPalette", "Copy: %1", preview),+ subtitle: tr!("CommandPalette", "From %1", entry.device_name),category: "Clipboard".into(),icon: "copy".into(),badge: if entry.pinned { "Pinned".into() } else { String::new() },@@ -1096,13 +1127,13 @@ fn build_candidates() -> Vec<PaletteCandidate> {}out.push(PaletteCandidate {id: format!("timeline_open:{target}"),- title: format!("Open {}", item.title),+ title: tr!("CommandPalette", "Open %1", item.title),subtitle: if item.detail.trim().is_empty() {item.device_name.clone()} else {format!("{} · {}", item.detail, item.device_name)},- category: "Recent Activity".into(),+ category: tr!("CommandPalette", "Recent Activity"),icon: icon.into(),badge: item.kind.as_str().into(),shortcut: String::new(),@@ -1160,8 +1191,8 @@ fn synthesize_direct_command(candidates: &[PaletteCandidate], query: &str) -> Opif !target.is_empty() {return Some(PaletteCandidate {id: format!("text_contact:{dev_id}:{target}\t{target}"),- title: format!("Text {target}"),- subtitle: "Start a new message conversation".into(),+ title: tr!("CommandPalette", "Text %1", target),+ subtitle: tr!("CommandPalette", "Start a new message conversation"),category: "Messages".into(),icon: "messages".into(),badge: "New".into(),@@ -1179,8 +1210,8 @@ fn synthesize_direct_command(candidates: &[PaletteCandidate], query: &str) -> Opif !target.is_empty() {return Some(PaletteCandidate {id: format!("call_contact:{dev_id}:{target}"),- title: format!("Call {target}"),- subtitle: "Place a phone call or open in dialer".into(),+ title: tr!("CommandPalette", "Call %1", target),+ subtitle: tr!("CommandPalette", "Place a phone call or open in dialer"),category: "Calls".into(),icon: "call".into(),badge: "Dial".into(),diff --git a/desktop/app/src/continuity_camera.rs b/desktop/app/src/continuity_camera.rsindex 50eb51a..234b99d 100644--- a/desktop/app/src/continuity_camera.rs+++ b/desktop/app/src/continuity_camera.rs@@ -122,8 +122,12 @@ pub fn view() -> ContinuityView {Some(active) if !active.queued_offline => {let mode_str = active.mode.as_str().to_owned();let status_str = match active.mode {- CameraCaptureMode::Photo => format!("Take a photo on {}…", active.device_name),- CameraCaptureMode::Scan => format!("Scan a document on {}…", active.device_name),+ CameraCaptureMode::Photo => {+ tr!("ContinuityCamera", "Take a photo on %1…", active.device_name)+ }+ CameraCaptureMode::Scan => {+ tr!("ContinuityCamera", "Scan a document on %1…", active.device_name)+ }};(true, mode_str, status_str)}@@ -199,8 +203,10 @@ pub fn start_for_index(preferred_index: usize, mode_raw: &str) {if online {let open_msg = match mode {- CameraCaptureMode::Photo => format!("Opening camera on {device_name}…"),- CameraCaptureMode::Scan => format!("Opening document scanner on {device_name}…"),+ CameraCaptureMode::Photo => tr!("ContinuityCamera", "Opening camera on %1…", device_name),+ CameraCaptureMode::Scan => {+ tr!("ContinuityCamera", "Opening document scanner on %1…", device_name)+ }};crate::bridge::app::show_message(open_msg);}@@ -229,10 +235,16 @@ pub fn start_for_index(preferred_index: usize, mode_raw: &str) {if should_report {notify_continuity();let msg = match err {- Error::Denied => format!("Allow Photos access for {device_name} in Settings first."),+ Error::Denied => tr!(+ "ContinuityCamera",+ "Allow Photos access for %1 in Settings first.",+ device_name+ ),Error::Unsupported => format!("{device_name} doesn’t support Continuity Camera yet."),Error::Offline => format!("{device_name} is not connected."),- other => format!("Couldn’t open camera on {device_name}: {other}"),+ other => {+ tr!("ContinuityCamera", "Couldn’t open camera on %1: %2", device_name, other)+ }};crate::bridge::app::show_message(msg);}@@ -373,11 +385,11 @@ pub fn on_event(event: &NodeEvent) {if let Some(active) = removed {notify_continuity();let msg = match reason.as_deref() {- Some("busy") => format!("Camera is busy on {}.", active.device_name),+ Some("busy") => tr!("ContinuityCamera", "Camera is busy on %1.", active.device_name),Some("permission_denied") => {- format!("Camera permission was denied on {}.", active.device_name)+ tr!("ContinuityCamera", "Camera permission was denied on %1.", active.device_name)}- _ => format!("Camera capture cancelled on {}.", active.device_name),+ _ => tr!("ContinuityCamera", "Camera capture cancelled on %1.", active.device_name),};crate::bridge::app::show_message(msg);}diff --git a/desktop/app/src/deck.rs b/desktop/app/src/deck.rsindex e45ac47..dee958d 100644--- a/desktop/app/src/deck.rs+++ b/desktop/app/src/deck.rs@@ -2,6 +2,7 @@//! PC-owned Deck configuration, live state syncing, and action execution//! (`docs/protocol/deck.md`).+use crate::i18n::tr;use std::{path::{Path, PathBuf},sync::{@@ -453,7 +454,7 @@ pub fn build_action(deck_kinds::SHORTCUT => {let key = p.to_ascii_lowercase();if key.is_empty() {- return Err("Choose a key for the shortcut.".into());+ return Err(tr!("Deck", "Choose a key for the shortcut."));}let mut mods = Vec::new();if ctrl {@@ -472,7 +473,7 @@ pub fn build_action(}deck_kinds::OPEN_URL => {if p.is_empty() {- return Err("Enter an http:// or https:// web address.".into());+ return Err(tr!("Deck", "Enter an http:// or https:// web address."));}let url = if p.starts_with("http://") || p.starts_with("https://") {p.to_owned()@@ -483,20 +484,20 @@ pub fn build_action(}deck_kinds::TYPE_TEXT => {if param.is_empty() {- return Err("Enter the text snippet to type.".into());+ return Err(tr!("Deck", "Enter the text snippet to type."));}DeckAction::TypeText { text: param.to_owned() }}deck_kinds::LAUNCH_APP => {let unquoted = p.trim_matches('"');if unquoted.is_empty() {- return Err("Choose an application (.exe or .lnk) on this PC.".into());+ return Err(tr!("Deck", "Choose an application (.exe or .lnk) on this PC."));}DeckAction::LaunchApp { path: unquoted.to_owned() }}deck_kinds::RUN_COMMAND => {if p.is_empty() {- return Err("Enter a command to run on this PC.".into());+ return Err(tr!("Deck", "Enter a command to run on this PC."));}DeckAction::RunCommand { command: p.to_owned() }}@@ -504,12 +505,12 @@ pub fn build_action(};if !action.is_valid() {return Err(match kind {- deck_kinds::LAUNCH_APP => "Application path must end with .exe or .lnk.".into(),- deck_kinds::OPEN_URL => "Web address must start with http:// or https://.".into(),+ deck_kinds::LAUNCH_APP => tr!("Deck", "Application path must end with .exe or .lnk."),+ deck_kinds::OPEN_URL => tr!("Deck", "Web address must start with http:// or https://."),deck_kinds::SHORTCUT => {- "Use a single key (a-z, 0-9, f1-f12, enter, tab, space, escape, arrows, etc.).".into()+ tr!("Deck", "Use a single key (a-z, 0-9, f1-f12, enter, tab, space, escape, arrows, etc.).")}- _ => "Invalid action configuration.".into(),+ _ => tr!("Deck", "Invalid action configuration."),});}Ok(action)@@ -547,12 +548,12 @@ pub fn save_tile(let all_ids: Vec<String> =cfg.pages.iter().flat_map(|p| p.tiles.iter().map(|t| t.id.clone())).collect();let Some(page) = cfg.pages.iter_mut().find(|p| p.id == page_id) else {- err = Some("Page not found.".into());+ err = Some(tr!("Deck", "Page not found."));return;};if tile_id.is_empty() {if page.tiles.len() >= nectarlink_core::MAX_DECK_TILES_PER_PAGE {- err = Some("This page already has the maximum number of tiles (24).".into());+ err = Some(tr!("Deck", "This page already has the maximum number of tiles (24)."));return;}let new_id = next_unique_id("tile", &all_ids);@@ -567,7 +568,7 @@ pub fn save_tile(saved_id = clean.id.clone();page.tiles.push(clean);} else {- err = Some("Invalid tile properties.".into());+ err = Some(tr!("Deck", "Invalid tile properties."));}} else if let Some(existing) = page.tiles.iter_mut().find(|t| t.id == tile_id) {let updated = DeckTileConfig {@@ -581,10 +582,10 @@ pub fn save_tile(saved_id = clean.id.clone();*existing = clean;} else {- err = Some("Invalid tile properties.".into());+ err = Some(tr!("Deck", "Invalid tile properties."));}} else {- err = Some("Tile not found.".into());+ err = Some(tr!("Deck", "Tile not found."));}});if let Some(e) = err { Err(e) } else { Ok(saved_id) }diff --git a/desktop/app/src/doctor.rs b/desktop/app/src/doctor.rsindex 8b422b9..85508aa 100644--- a/desktop/app/src/doctor.rs+++ b/desktop/app/src/doctor.rs@@ -6,6 +6,7 @@//! Checks run on a worker thread (they ask Windows a few slow questions)//! and come back as a list for the UI.+use crate::i18n::tr;use nectarlink_core::{ConnectionPath, LinkState};use serde::Serialize;@@ -89,7 +90,7 @@ pub fn gather() -> Facts {fn network_name(name: &str) -> String {let name = name.trim();if name.is_empty() || name.ends_with("...") || name.ends_with('…') {- "This network".into()+ tr!("Doctor", "This network")} else {name.to_owned()}@@ -105,49 +106,70 @@ fn check(Check { id: id.into(), outcome, title: title.into(), detail: detail.into(), fix }}-fn match_oem(raw: &str) -> Option<(&'static str, &'static str)> {+fn match_oem(raw: &str) -> Option<(&'static str, String)> {let lower = raw.to_ascii_lowercase();if lower.contains("samsung") || lower.contains("galaxy") || lower.contains("sm-") {Some(("Samsung",- "On Samsung: open Settings → Apps → NectarLink → Battery and choose Unrestricted, then in \- Device care → Battery → Background usage limits make sure NectarLink is never put to sleep.",+ tr!(+ "Doctor",+ "On Samsung: open Settings → Apps → NectarLink → Battery and choose Unrestricted, then in \+ Device care → Battery → Background usage limits make sure NectarLink is never put to sleep."+ ),))} else if lower.contains("xiaomi") || lower.contains("redmi") || lower.contains("poco") {Some(("Xiaomi",- "On Xiaomi / HyperOS / MIUI: open Settings → Apps → Manage apps → NectarLink, turn on \- Autostart, and set Battery saver to No restrictions.",+ tr!(+ "Doctor",+ "On Xiaomi / HyperOS / MIUI: open Settings → Apps → Manage apps → NectarLink, turn on \+ Autostart, and set Battery saver to No restrictions."+ ),))} else if lower.contains("oneplus") {Some(("OnePlus",- "On OnePlus / OxygenOS: open Settings → Apps → App management → NectarLink → Battery usage and \- turn on Allow background activity and Allow auto-launch.",+ tr!(+ "Doctor",+ "On OnePlus / OxygenOS: open Settings → Apps → App management → NectarLink → Battery usage and \+ turn on Allow background activity and Allow auto-launch."+ ),))} else if lower.contains("oppo") || lower.contains("realme") || lower.contains("rmx") {Some(("Oppo / Realme",- "On Oppo / Realme: open Settings → Apps → App management → NectarLink → Battery usage and turn \- on Allow background activity and Allow auto-launch.",+ tr!(+ "Doctor",+ "On Oppo / Realme: open Settings → Apps → App management → NectarLink → Battery usage and turn \+ on Allow background activity and Allow auto-launch."+ ),))} else if lower.contains("vivo") || lower.contains("iqoo") {Some(("Vivo",- "On Vivo / OriginOS / Funtouch: open Settings → Battery → Background power consumption \- management → NectarLink and choose Unrestricted, and allow Autostart.",+ tr!(+ "Doctor",+ "On Vivo / OriginOS / Funtouch: open Settings → Battery → Background power consumption \+ management → NectarLink and choose Unrestricted, and allow Autostart."+ ),))} else if lower.contains("huawei") || lower.contains("honor") {Some(("Huawei",- "On Huawei / Honor: open Settings → Battery → App launch, turn off Manage automatically for \- NectarLink, and keep Auto-launch, Secondary launch, and Run in background on.",+ tr!(+ "Doctor",+ "On Huawei / Honor: open Settings → Battery → App launch, turn off Manage automatically for \+ NectarLink, and keep Auto-launch, Secondary launch, and Run in background on."+ ),))} else if lower.contains("pixel") || lower.contains("google") {Some(("Pixel",- "On Pixel: open Settings → Apps → See all apps → NectarLink → App battery usage, tap Allow \- background usage, and choose Unrestricted.",+ tr!(+ "Doctor",+ "On Pixel: open Settings → Apps → See all apps → NectarLink → App battery usage, tap Allow \+ background usage, and choose Unrestricted."+ ),))} else {None@@ -155,7 +177,7 @@ fn match_oem(raw: &str) -> Option<(&'static str, &'static str)> {}/// Returns the `(oem_label, guide_text)` for a phone's manufacturer when recognized.-pub fn oem_battery_guide(model: Option<&str>, name: &str) -> Option<(&'static str, &'static str)> {+pub fn oem_battery_guide(model: Option<&str>, name: &str) -> Option<(&'static str, String)> {model.and_then(match_oem).or_else(|| match_oem(name))}@@ -168,14 +190,16 @@ pub fn diagnose(facts: &Facts, now_secs: i64) -> Vec<Check> {checks.push(check("network",Outcome::Fail,- "This PC isn't on a network",- "Connect it to the same Wi-Fi or wired network as your phone.",+ tr!("Doctor", "This PC isn't on a network"),+ tr!("Doctor", "Connect it to the same Wi-Fi or wired network as your phone."),None,));} else {let title = match facts.networks.first() {- Some((name, _)) if name != "This network" => format!("Connected to {name}"),- _ => "Connected to a network".into(),+ Some((name, _)) if *name != tr!("Doctor", "This network") => {+ tr!("Doctor", "Connected to %1", name)+ }+ _ => tr!("Doctor", "Connected to a network"),};checks.push(check("network", Outcome::Ok, title, "", None));}@@ -183,9 +207,9 @@ pub fn diagnose(facts: &Facts, now_secs: i64) -> Vec<Check> {checks.push(check("profile",Outcome::Warn,- format!("{name} is set as a public network"),- "On public networks Windows keeps other devices from finding this PC. If it's your home or work \- network, set it to Private.",+ tr!("Doctor", "%1 is set as a public network", name),+ tr!("Doctor", "On public networks Windows keeps other devices from finding this PC. If it's your home or work \+ network, set it to Private."),Some("network-settings"),));}@@ -194,34 +218,47 @@ pub fn diagnose(facts: &Facts, now_secs: i64) -> Vec<Check> {match facts.firewall {None => {}Some(f) if !f.on => {- checks.push(check("firewall", Outcome::Ok, "Windows Firewall is off for this network", "", None));+ checks.push(check(+ "firewall",+ Outcome::Ok,+ tr!("Doctor", "Windows Firewall is off for this network"),+ "",+ None,+ ));}Some(f) if f.blocked => checks.push(check("firewall",Outcome::Fail,- "Windows Firewall blocks NectarLink",- "Someone chose not to allow it when Windows asked. Allow it, and your phone can connect.",+ tr!("Doctor", "Windows Firewall blocks NectarLink"),+ tr!(+ "Doctor",+ "Someone chose not to allow it when Windows asked. Allow it, and your phone can connect."+ ),Some("firewall"),)),Some(f) if !f.allowed => checks.push(check("firewall",Outcome::Warn,- "NectarLink isn't allowed through Windows Firewall",- "Your phone may not be able to connect. Allow it once here.",+ tr!("Doctor", "NectarLink isn't allowed through Windows Firewall"),+ tr!("Doctor", "Your phone may not be able to connect. Allow it once here."),Some("firewall"),)),- Some(_) => {- checks.push(check("firewall", Outcome::Ok, "Windows Firewall lets your phone connect", "", None))- }+ Some(_) => checks.push(check(+ "firewall",+ Outcome::Ok,+ tr!("Doctor", "Windows Firewall lets your phone connect"),+ "",+ None,+ )),}if facts.vpn {checks.push(check("vpn",Outcome::Warn,- "A VPN is on",- "VPNs often keep devices on your network from reaching this PC. If your phone can't connect, try \- turning it off.",+ tr!("Doctor", "A VPN is on"),+ tr!("Doctor", "VPNs often keep devices on your network from reaching this PC. If your phone can't connect, try \+ turning it off."),None,));}@@ -240,12 +277,18 @@ pub fn diagnose(facts: &Facts, now_secs: i64) -> Vec<Check> {checks.push(check(&ap_id,outcome,- format!("{name} is on this Wi-Fi, but the router blocks direct connections (AP isolation)"),- format!(- "This PC can see {name} announce itself on the network, but the router is blocking \+ tr!(+ "Doctor",+ "%1 is on this Wi-Fi, but the router blocks direct connections (AP isolation)",+ name+ ),+ tr!(+ "Doctor",+ "This PC can see %1 announce itself on the network, but the router is blocking \devices from talking directly to each other (often called AP Isolation, Client \Isolation, or Guest Wi-Fi). Move both devices off any Guest Wi-Fi network, turn off AP \- / Client Isolation in your router's Wi-Fi settings, or connect with a USB cable."+ / Client Isolation in your router's Wi-Fi settings, or connect with a USB cable.",+ name),Some("reconnect"),));@@ -255,31 +298,39 @@ pub fn diagnose(facts: &Facts, now_secs: i64) -> Vec<Check> {let finding = match &d.link {LinkState::Online { path, rtt_ms } => {let how = match path {- ConnectionPath::Lan => "On this network",- ConnectionPath::Usb => "On USB",- ConnectionPath::Relay => "While away",+ ConnectionPath::Lan => tr!("Doctor", "On this network"),+ ConnectionPath::Usb => tr!("Doctor", "On USB"),+ ConnectionPath::Relay => tr!("Doctor", "While away"),};- check(&id, Outcome::Ok, format!("{name} is connected"), format!("{how} · {rtt_ms} ms"), None)+ check(+ &id,+ Outcome::Ok,+ tr!("Doctor", "%1 is connected", name),+ tr!("Doctor", "%1 · %2 ms", how, rtt_ms),+ None,+ )}LinkState::Connecting => check(&id,Outcome::Warn,- format!("Connecting to {name}…"),- "This usually takes a few seconds.",+ tr!("Doctor", "Connecting to %1…", name),+ tr!("Doctor", "This usually takes a few seconds."),None,),LinkState::Offline { last_seen } => {let seen = last_seen.map_or_else(- || "It hasn't connected yet.".to_owned(),- |at| format!("Last seen {}.", ago(now_secs - at)),+ || tr!("Doctor", "It hasn't connected yet."),+ |at| tr!("Doctor", "Last seen %1.", ago(now_secs - at)),);check(&id,Outcome::Warn,- format!("{name} isn't connected"),- format!(- "{seen} Open NectarLink on the phone and keep both on the same network. If the phone \- asks to run in the background, allow it."+ tr!("Doctor", "%1 isn't connected", name),+ tr!(+ "Doctor",+ "%1 Open NectarLink on the phone and keep both on the same network. If the phone \+ asks to run in the background, allow it.",+ seen),Some("reconnect"),)@@ -294,7 +345,7 @@ pub fn diagnose(facts: &Facts, now_secs: i64) -> Vec<Check> {checks.push(check(&format!("oem-battery-{i}"),Outcome::Warn,- format!("Keep {name} reachable in the background ({oem})"),+ tr!("Doctor", "Keep %1 reachable in the background (%2)", name, oem),guide,None,));@@ -313,12 +364,12 @@ pub fn diagnose(facts: &Facts, now_secs: i64) -> Vec<Check> {fn ago(seconds: i64) -> String {let minutes = seconds / 60;match minutes {- ..=0 => "just now".into(),- 1 => "a minute ago".into(),- 2..=59 => format!("{minutes} minutes ago"),- 60..=119 => "an hour ago".into(),- 120..=1439 => format!("{} hours ago", minutes / 60),- _ => format!("{} days ago", minutes / 1440),+ ..=0 => tr!("Doctor", "just now"),+ 1 => tr!("Doctor", "a minute ago"),+ 2..=59 => tr!("Doctor", "%1 minutes ago", minutes),+ 60..=119 => tr!("Doctor", "an hour ago"),+ 120..=1439 => tr!("Doctor", "%1 hours ago", minutes / 60),+ _ => tr!("Doctor", "%1 days ago", minutes / 1440),}}diff --git a/desktop/app/src/messages.rs b/desktop/app/src/messages.rsindex 3f752fc..779e89a 100644--- a/desktop/app/src/messages.rs+++ b/desktop/app/src/messages.rs@@ -966,7 +966,7 @@ fn detect_or_convert_attachment(path: &Path, raw: Vec<u8>) -> Result<(String, Ve}// Convert BMP/TIFF/ICO or other Windows-decodable images to PNG.let bitmap = crate::win::image::decode(&raw)- .map_err(|_| "Only image or voice-note audio files can be attached.".to_owned())?;+ .map_err(|_| tr!("Messages", "Only image or voice-note audio files can be attached."))?;let png = crate::win::image::encode_png(&bitmap).map_err(|e| e.to_string())?;Ok(("image/png".into(), png))}@@ -1006,7 +1006,7 @@ fn stage_attachment_bytes(name: String, mime: String, data: Vec<u8>) -> bool {preview_path.as_ref().map(|p| crate::icons::file_url(p)).unwrap_or_default()};let (data, error) = if data.len() > MAX_ATTACHMENT_BYTES {- (Vec::new(), format!("Attachment is {size_text} (MMS supports up to 900 KB)"))+ (Vec::new(), tr!("Messages", "Attachment is %1 (MMS supports up to 900 KB)", size_text))} else {(data, String::new())};diff --git a/desktop/app/src/mirror.rs b/desktop/app/src/mirror.rsindex a00725b..c299199 100644--- a/desktop/app/src/mirror.rs+++ b/desktop/app/src/mirror.rs@@ -454,7 +454,7 @@ pub fn screenshot_file(window: Window) {window.device,true,file_name.clone(),- "Mirror screenshot".into(),+ tr!("Mirror", "Mirror screenshot"),path.to_string_lossy().into_owned(),png.len() as u64,0,@@ -467,7 +467,7 @@ pub fn screenshot_file(window: Window) {device: TOAST_GROUP.into(),key: path.to_string_lossy().into_owned(),title: file_name.clone(),- body: format!("Screenshot from {device_name}, saved in Downloads\\Nectarlink"),+ body: tr!("Mirror", "Screenshot from %1, saved in Downloads\\Nectarlink", device_name),attribution: "NectarLink".into(),icon: None,image: Some(path),@@ -477,7 +477,7 @@ pub fn screenshot_file(window: Window) {progress: None,call: false,});- set_notice(window, format!("Saved {file_name}"));+ set_notice(window, tr!("Mirror", "Saved %1", file_name));show_message(tr!("Mirror", "Saved %1 to Downloads\\Nectarlink.", file_name));}@@ -594,7 +594,7 @@ pub fn stop_recording(window: Window) {window.device,true,file_name.clone(),- "Mirror recording".into(),+ tr!("Mirror", "Mirror recording"),path.to_string_lossy().into_owned(),size_bytes,duration_secs,@@ -609,20 +609,20 @@ pub fn stop_recording(window: Window) {device: TOAST_GROUP.into(),key: path.to_string_lossy().into_owned(),title: file_name.clone(),- body: format!("Recording from {device_name}, saved in Downloads\\Nectarlink"),+ body: tr!("Mirror", "Recording from %1, saved in Downloads\\Nectarlink", device_name),attribution: "NectarLink".into(),icon: None,image: None,actions: vec![(ACTION_OPEN.into(), "Open".into()),- (ACTION_SHOW.into(), "Show in folder".into()),+ (ACTION_SHOW.into(), tr!("Mirror", "Show in folder")),],reply: None,silent: false,progress: None,call: false,});- set_notice(window, format!("Saved {file_name}"));+ set_notice(window, tr!("Mirror", "Saved %1", file_name));show_message(tr!("Mirror", "Saved %1 to Downloads\\Nectarlink.", file_name));}Ok(Err(msg)) => {@@ -1320,9 +1320,9 @@ pub fn drop_files(raw_urls: &[String]) {};let notice = if paths.len() == 1 {let name = paths[0].file_name().and_then(|n| n.to_str()).unwrap_or("file");- format!("Sending {name}…")+ tr!("Mirror", "Sending %1…", name)} else {- format!("Sending {} files…", paths.len())+ tr!("Mirror", "Sending %1 files…", paths.len())};set_notice(window, notice);crate::transfers::send(window.device, paths);@@ -1753,7 +1753,7 @@ fn decode(window: Window, items: &Receiver<Item>, waiting: &AtomicUsize) {Ok(decoder) => decoder,Err(e) => {tracing::error!(error = %e, "no H.264 decoder");- set_phase(window, Phase::Ended(Some("This PC can't decode the phone's video.".into())));+ set_phase(window, Phase::Ended(Some(tr!("Mirror", "This PC can't decode the phone's video."))));return;}};diff --git a/desktop/app/src/notifications.rs b/desktop/app/src/notifications.rsindex 4718e1f..ce8e17a 100644--- a/desktop/app/src/notifications.rs+++ b/desktop/app/src/notifications.rs@@ -387,7 +387,7 @@ fn show(device: DeviceId, n: &Notification) {}let mut actions: Vec<(String, String)> = Vec::new();if otp.is_some() {- actions.push((ACTION_COPY_OTP.to_owned(), "Copy code".to_owned()));+ actions.push((ACTION_COPY_OTP.to_owned(), tr!("Notifications", "Copy code")));}actions.extend(n.actions.iter().filter(|a| !a.reply).map(|a| (a.id.clone(), a.title.clone())));let reply = n.actions.iter().find(|a| a.reply);@@ -590,7 +590,7 @@ pub fn run_action(device: &str, key: String, action: String, reply: Option<Strinfn report(error: &Error) {let message = match error {- Error::NotFound => "That notification is gone from the phone.".to_owned(),+ Error::NotFound => tr!("Notifications", "That notification is gone from the phone."),other => crate::bridge::app::describe(other),};crate::bridge::app::show_message(message);diff --git a/desktop/app/src/obs.rs b/desktop/app/src/obs.rsindex 0bc2352..278fcf4 100644--- a/desktop/app/src/obs.rs+++ b/desktop/app/src/obs.rs@@ -8,6 +8,7 @@//! so the password from Settings is needed in most setups. It's stored encrypted with//! Windows DPAPI, like the device key.+use crate::i18n::tr;use std::{io::{Read, Write},net::{SocketAddr, TcpStream},@@ -65,7 +66,7 @@ pub fn run(command: &str, port: u16, password: Option<&str>) -> Result<(), StrinOk(())} else {let detail = status["comment"].as_str().unwrap_or("the request failed");- Err(format!("OBS: {detail}"))+ Err(tr!("Obs", "OBS: %1", detail))}}@@ -100,7 +101,7 @@ impl Socket {fn connect(port: u16) -> Result<Self, String> {let addr = SocketAddr::from(([127, 0, 0, 1], port));let mut stream = TcpStream::connect_timeout(&addr, TIMEOUT)- .map_err(|_| format!("OBS isn't reachable on port {port}. Turn on its WebSocket server."))?;+ .map_err(|_| tr!("Obs", "OBS isn't reachable on port %1. Turn on its WebSocket server.", port))?;let _ = stream.set_read_timeout(Some(TIMEOUT));let _ = stream.set_write_timeout(Some(TIMEOUT));let _ = stream.set_nodelay(true);@@ -134,7 +135,7 @@ impl Socket {})});if !accepted {- return Err("The service on that port isn't OBS.".into());+ return Err(tr!("Obs", "The service on that port isn't OBS."));}Ok(Self { stream })}diff --git a/desktop/app/src/photos.rs b/desktop/app/src/photos.rsindex c213004..26943f2 100644--- a/desktop/app/src/photos.rs+++ b/desktop/app/src/photos.rs@@ -153,8 +153,8 @@ fn show(device: DeviceId, photo: &Photo) {toast::show(Toast {device: TOAST_GROUP.into(),key: format!("{device} {}", photo.id),- title: if photo.screenshot { "New screenshot".into() } else { "New photo".into() },- body: format!("From {name}"),+ title: if photo.screenshot { tr!("Photos", "New screenshot") } else { tr!("Photos", "New photo") },+ body: tr!("Photos", "From %1", name),attribution: "NectarLink".into(),icon: None,image: preview,diff --git a/desktop/app/src/recordings.rs b/desktop/app/src/recordings.rsindex a7cf603..a6d7f71 100644--- a/desktop/app/src/recordings.rs+++ b/desktop/app/src/recordings.rs@@ -6,6 +6,7 @@#![allow(unsafe_code)]+use crate::i18n::tr;use std::{fs,path::{Path, PathBuf},@@ -520,7 +521,7 @@ pub fn on_done(transfer: Transfer) {toast::show(Toast {device: TOAST_GROUP.into(),key: final_path.to_string_lossy().into_owned(),- title: format!("Recording from {device} saved"),+ title: tr!("Recordings", "Recording from %1 saved", device),body,attribution: "NectarLink".into(),icon: None,diff --git a/desktop/app/src/send_to.rs b/desktop/app/src/send_to.rsindex f1bc4d4..4661504 100644--- a/desktop/app/src/send_to.rs+++ b/desktop/app/src/send_to.rs@@ -4,6 +4,7 @@//! files and follows the transfer in a Windows notification with a progress//! bar, so nothing else needs to open.+use crate::i18n::tr;use std::{collections::HashMap,io,@@ -157,7 +158,7 @@ fn reconcile(dir: &Path, desired: &[(DeviceId, String)], exe: &Path) -> io::ResuShortcut {target: exe.to_owned(),arguments: format!("{ARG} {id}"),- description: format!("Send to {name} with NectarLink"),+ description: tr!("SendTo", "Send to %1 with NectarLink", name),},));}@@ -258,8 +259,8 @@ fn share(files: Vec<PathBuf>, url: Option<String>, text: Option<String>) {toast::show(Toast {device: TOAST_GROUP.into(),key: "share-text".into(),- title: format!("Sent to {device_name}"),- body: "Copied to your phone's clipboard.".into(),+ title: tr!("SendTo", "Sent to %1", device_name),+ body: tr!("SendTo", "Copied to your phone's clipboard."),attribution: "NectarLink".into(),icon: None,image: None,@@ -273,7 +274,7 @@ fn share(files: Vec<PathBuf>, url: Option<String>, text: Option<String>) {let _ = crate::bridge::app::show_offline_queued_toast(device_id, None);}}- Err(e) => failed(&format!("Couldn't share with {device_name}"), &describe(&e)),+ Err(e) => failed(&tr!("SendTo", "Couldn't share with %1", device_name), &describe(&e)),}}});@@ -336,30 +337,35 @@ fn send(device: String, paths: Vec<PathBuf>) {let Some((id, name)) = name else {return failed("Couldn't send", "That device isn't paired with this PC anymore.");};- let outgoing = match tokio::task::spawn_blocking(move || nectarlink_core::outgoing_paths(&paths))- .await- {- Ok(Ok(files)) if !files.is_empty() => files,- Ok(Ok(_)) => {- return failed(&format!("Couldn't send to {name}"), "There's nothing to send in there.");- }- Ok(Err(Error::TooLarge)) => {- return failed(&format!("Couldn't send to {name}"), "That's too many files to send at once.");- }- Ok(Err(_)) | Err(_) => {- return failed(&format!("Couldn't send to {name}"), "Those files can't be read.");- }- };+ let outgoing =+ match tokio::task::spawn_blocking(move || nectarlink_core::outgoing_paths(&paths)).await {+ Ok(Ok(files)) if !files.is_empty() => files,+ Ok(Ok(_)) => {+ return failed(+ &tr!("SendTo", "Couldn't send to %1", name),+ "There's nothing to send in there.",+ );+ }+ Ok(Err(Error::TooLarge)) => {+ return failed(+ &tr!("SendTo", "Couldn't send to %1", name),+ "That's too many files to send at once.",+ );+ }+ Ok(Err(_)) | Err(_) => {+ return failed(&tr!("SendTo", "Couldn't send to %1", name), "Those files can't be read.");+ }+ };match node.send_files(id, outgoing).await {Ok(transfer_id) => {let _ = crate::bridge::app::show_offline_queued_toast(id, Some(transfer_id.clone()));track(transfer_id, name);}Err(Error::Denied) => failed(- &format!("Couldn't send to {name}"),+ &tr!("SendTo", "Couldn't send to %1", name),"Files are turned off for this device. Turn them on in NectarLink.",),- Err(e) => failed(&format!("Couldn't send to {name}"), &describe(&e)),+ Err(e) => failed(&tr!("SendTo", "Couldn't send to %1", name), &describe(&e)),}});}@@ -447,8 +453,8 @@ fn update(map: &mut HashMap<String, Tracked>, transfer: &Transfer) {status: match transfer.state {TransferState::Paused => "Paused".into(),TransferState::Waiting => format!("{device} is offline. Will send when it's back."),- TransferState::Requested => format!("Waiting for {device}…"),- _ => format!("Sending to {device}…"),+ TransferState::Requested => tr!("SendTo", "Waiting for %1…", device),+ _ => tr!("SendTo", "Sending to %1…", device),},value: (transfer.total > 0).then(|| transfer.done as f64 / transfer.total as f64),label: format!("{} of {}", size(transfer.done), size(transfer.total)),@@ -470,22 +476,22 @@ fn update(map: &mut HashMap<String, Tracked>, transfer: &Transfer) {tracked.shown = Some((Instant::now(), progress));}TransferState::Done { .. } => {- toast::show(finished(title, format!("Sent to {device}")));+ toast::show(finished(title, tr!("SendTo", "Sent to %1", device)));map.remove(&transfer.id);}TransferState::Failed(failure) => {let body = match failure {TransferFailure::Denied => format!("{device} doesn't accept files from this PC."),- TransferFailure::Unreachable => format!("Couldn't reach {device}."),+ TransferFailure::Unreachable => tr!("SendTo", "Couldn't reach %1.", device),TransferFailure::NoSpace => format!("{device} is out of space."),TransferFailure::Integrity => {- "File failed integrity check; partial file kept to resume.".into()+ tr!("SendTo", "File failed integrity check; partial file kept to resume.")}TransferFailure::Interrupted | TransferFailure::Other(_) => {- "The transfer didn't go through.".into()+ tr!("SendTo", "The transfer didn't go through.")}};- toast::show(finished(format!("Couldn't send {title}"), body));+ toast::show(finished(tr!("SendTo", "Couldn't send %1", title), body));map.remove(&transfer.id);}TransferState::Cancelled => {diff --git a/desktop/app/src/setup.rs b/desktop/app/src/setup.rsindex e9f8771..ec9b2b9 100644--- a/desktop/app/src/setup.rs+++ b/desktop/app/src/setup.rs@@ -19,6 +19,7 @@//! The renamed copies matter: the installer closes running copies of//! `nectarlink-desktop.exe` by name, which would otherwise include these.+use crate::i18n::tr;use std::{os::windows::process::CommandExt,path::{Path, PathBuf},@@ -169,9 +170,10 @@ pub fn install(installer: &Path, on_event: impl FnMut(Event)) -> Outcome {pub fn remove(installed: &Path, mut on_event: impl FnMut(Event)) -> Outcome {let uninstaller = installed.join("uninstall.exe");if !uninstaller.is_file() {- return Outcome::Failed(- "The uninstaller is missing. Reinstall NectarLink, then uninstall it.".into(),- );+ return Outcome::Failed(tr!(+ "Setup",+ "The uninstaller is missing. Reinstall NectarLink, then uninstall it."+ ));}let progress = progress_file("remove");let params = format!("/S /PROGRESS={}", progress.display());@@ -218,7 +220,7 @@ fn run_tracked(Ok(process) => process,Err(crate::win::elevated::Error::Declined) => return Outcome::Declined,Err(crate::win::elevated::Error::Other(e)) => {- return Outcome::Failed(format!("Couldn't start setup: {e}"));+ return Outcome::Failed(tr!("Setup", "Couldn't start setup: %1", e));}};let started = Instant::now();@@ -250,11 +252,14 @@ fn run_tracked(return if code == 0 {Outcome::Done} else {- Outcome::Failed(format!("Setup stopped with code {code}."))+ Outcome::Failed(tr!("Setup", "Setup stopped with code %1.", code))};}if started.elapsed() > limit {- return Outcome::Failed("Setup is taking too long. Try again after restarting the PC.".into());+ return Outcome::Failed(tr!(+ "Setup",+ "Setup is taking too long. Try again after restarting the PC."+ ));}std::thread::sleep(Duration::from_millis(120));}diff --git a/desktop/app/src/transfers.rs b/desktop/app/src/transfers.rsindex 21ca675..d317b82 100644--- a/desktop/app/src/transfers.rs+++ b/desktop/app/src/transfers.rs@@ -250,12 +250,12 @@ pub fn on_event(event: &NodeEvent) {core_host::node().and_then(|n| n.localsend_peers().into_iter().find(|p| p.id == t.device).map(|p| p.alias))})- .unwrap_or_else(|| "Nearby device".into());+ .unwrap_or_else(|| tr!("Transfers", "Nearby device"));toast::show(Toast {device: TOAST_GROUP.into(),key: format!("req:{}", t.id),title: format!("{device} wants to send {}", title(t)),- body: "Accept in NectarLink to save to Downloads\\Nectarlink".into(),+ body: tr!("Transfers", "Accept in NectarLink to save to Downloads\\Nectarlink"),attribution: "LocalSend".into(),icon: None,image: None,@@ -297,9 +297,9 @@ pub fn on_event(event: &NodeEvent) {key: first.to_string_lossy().into_owned(),title,body: if auto_open {- format!("From {device}, opened from Downloads\\Nectarlink")+ tr!("Transfers", "From %1, opened from Downloads\\Nectarlink", device)} else {- format!("From {device}, saved in Downloads\\Nectarlink")+ tr!("Transfers", "From %1, saved in Downloads\\Nectarlink", device)},attribution: "NectarLink".into(),icon: None,diff --git a/desktop/app/src/updater.rs b/desktop/app/src/updater.rsindex fd276fd..f85ca04 100644--- a/desktop/app/src/updater.rs+++ b/desktop/app/src/updater.rs@@ -24,6 +24,7 @@//! new version once the installer is done, or the old one again if the//! update didn't go through.+use crate::i18n::tr;use std::{os::windows::process::CommandExt,path::{Path, PathBuf},@@ -155,12 +156,12 @@ pub fn check_now(told: bool) -> Option<String> {if new {announce(&update);}- Some(format!("NectarLink {} is available.", update.version))+ Some(tr!("Updater", "NectarLink %1 is available.", update.version))}- Ok(None) => told.then(|| "NectarLink is up to date.".to_owned()),+ Ok(None) => told.then(|| tr!("Updater", "NectarLink is up to date.")),Err(e) => {tracing::info!(error = %e, "couldn't check for updates");- told.then(|| "Couldn't check for updates. Check your internet connection.".to_owned())+ told.then(|| tr!("Updater", "Couldn't check for updates. Check your internet connection."))}}}@@ -169,8 +170,8 @@ fn announce(update: &Update) {toast::show(toast::Toast {device: TOAST_GROUP.into(),key: update.version.clone(),- title: format!("NectarLink {} is available", update.version),- body: "Update now, or later from Settings.".into(),+ title: tr!("Updater", "NectarLink %1 is available", update.version),+ body: tr!("Updater", "Update now, or later from Settings."),attribution: "NectarLink".into(),icon: None,image: None,@@ -347,11 +348,16 @@ impl StageError {fn for_user(&self) -> String {match self {StageError::Network(_) => {- "The update couldn't be downloaded. Check your internet connection and try again.".into()+ tr!(+ "Updater",+ "The update couldn't be downloaded. Check your internet connection and try again."+ )+ }+ StageError::Damaged => {+ tr!("Updater", "The download was damaged, so it wasn't installed. Try again.")}- StageError::Damaged => "The download was damaged, so it wasn't installed. Try again.".into(),StageError::Disk(_) => {- "The update couldn't be saved. Check that there's free space and try again.".into()+ tr!("Updater", "The update couldn't be saved. Check that there's free space and try again.")}}}@@ -633,7 +639,7 @@ fn download_verified(update: &Update, dir: &Path) -> Result<PathBuf, String> {fn install_with_prompt(update: &Update, staged: &Path) -> Result<(), String> {let failed = |e: String| {tracing::warn!(error = e, "update failed");- "The update couldn't be started. Try again.".to_owned()+ tr!("Updater", "The update couldn't be started. Try again.")};let expected = expected_hash(update).map_err(|e| e.for_user())?;let dir = std::env::temp_dir().join("Nectarlink update");@@ -684,8 +690,8 @@ pub fn announce_update(previous: String, shown: bool) {tracing::info!(from = previous, to = current, "updated");after_start(shown,- format!("NectarLink is updated to {current}"),- "Your phone reconnects on its own.".into(),+ tr!("Updater", "NectarLink is updated to %1", current),+ tr!("Updater", "Your phone reconnects on its own."),);}@@ -695,8 +701,8 @@ pub fn announce_update_failed(shown: bool) {tracing::warn!("the update didn't install");after_start(shown,- "The update didn't install".into(),- "NectarLink is still on the version you had. Try again from Settings.".into(),+ tr!("Updater", "The update didn't install"),+ tr!("Updater", "NectarLink is still on the version you had. Try again from Settings."),);}diff --git a/desktop/app/src/win/bt_hfp.rs b/desktop/app/src/win/bt_hfp.rsindex 9a63d7b..b931b46 100644--- a/desktop/app/src/win/bt_hfp.rs+++ b/desktop/app/src/win/bt_hfp.rs@@ -9,6 +9,7 @@#![allow(dead_code)]+use crate::i18n::tr;use std::sync::{Mutex, OnceLock};use windows::{@@ -86,7 +87,7 @@ pub fn probe_status(phone_name: Option<&str>) -> HfpStatus {available: true,connected: true,device_name: name.clone(),- detail: format!("Bluetooth connected ({name})."),+ detail: tr!("BtHfp", "Bluetooth connected (%1).", name),};}*guard = None;@@ -109,9 +110,9 @@ pub fn probe_status(phone_name: Option<&str>) -> HfpStatus {.and_then(|dev| dev.ConnectionStatus().ok())== Some(BluetoothConnectionStatus::Connected);let detail = if connected {- format!("Bluetooth connected ({display}).")+ tr!("BtHfp", "Bluetooth connected (%1).", display)} else {- format!("Bluetooth paired with {display} (not currently connected).")+ tr!("BtHfp", "Bluetooth paired with %1 (not currently connected).", display)};HfpStatus { available: true, connected, device_name: display, detail }} else {@@ -119,7 +120,7 @@ pub fn probe_status(phone_name: Option<&str>) -> HfpStatus {available: false,connected: false,device_name: String::new(),- detail: "No paired Bluetooth phone endpoint found in Windows.".into(),+ detail: tr!("BtHfp", "No paired Bluetooth phone endpoint found in Windows."),}}}@@ -135,13 +136,13 @@ pub fn connect_audio(phone_name: Option<&str>) -> Result<HfpStatus, String> {available: true,connected: true,device_name: name.clone(),- detail: format!("Bluetooth connected ({name})."),+ detail: tr!("BtHfp", "Bluetooth connected (%1).", name),});}let endpoints = enumerate_endpoints().map_err(|e| e.to_string())?;let Some((id, name)) = match_endpoint(&endpoints, phone_name) else {- return Err("No paired Bluetooth phone endpoint found in Windows.".into());+ return Err(tr!("BtHfp", "No paired Bluetooth phone endpoint found in Windows."));};let display =if name.trim().is_empty() { phone_name.unwrap_or("your phone").to_owned() } else { name.clone() };@@ -161,9 +162,9 @@ pub fn connect_audio(phone_name: Option<&str>) -> Result<HfpStatus, String> {}let detail = if connected {- format!("Bluetooth connected ({display}).")+ tr!("BtHfp", "Bluetooth connected (%1).", display)} else {- format!("Bluetooth paired with {display} (not currently connected).")+ tr!("BtHfp", "Bluetooth paired with %1 (not currently connected).", display)};Ok(HfpStatus { available: true, connected, device_name: display, detail })diff --git a/desktop/app/src/win/mp4.rs b/desktop/app/src/win/mp4.rsindex a379539..cd41b5a 100644--- a/desktop/app/src/win/mp4.rs+++ b/desktop/app/src/win/mp4.rs@@ -7,6 +7,7 @@//! PC. When phone audio (16-bit PCM) is present, it is encoded to AAC-LC//! (`MFAudioFormat_AAC`) into the same `.mp4` container.+use crate::i18n::tr;use std::{path::{Path, PathBuf},time::{Instant, SystemTime, UNIX_EPOCH},@@ -247,7 +248,7 @@ impl MirrorRecorder {return Ok(self.path);}let _ = std::fs::remove_file(&self.path);- Err("No video frames were recorded yet.".into())+ Err(tr!("Mp4", "No video frames were recorded yet."))}}diff --git a/desktop/app/src/win/widget.rs b/desktop/app/src/win/widget.rsindex 57cc7d6..cb8acac 100644--- a/desktop/app/src/win/widget.rs+++ b/desktop/app/src/win/widget.rs@@ -7,6 +7,7 @@#![allow(unsafe_code, dead_code)]+use crate::i18n::tr;use std::{fs,io::Write,@@ -128,7 +129,7 @@ fn truncate_preview(text: &str, max_chars: usize) -> String {/// Renders an Adaptive Card v1.5 JSON payload for `state`.pub fn render_adaptive_card(state: &WidgetState) -> String {let title = if state.phone_name.trim().is_empty() {- "No phone connected".to_owned()+ tr!("Widget", "No phone connected")} else {state.phone_name.trim().to_owned()};@@ -137,10 +138,10 @@ pub fn render_adaptive_card(state: &WidgetState) -> String {let battery_text = match state.battery_level {Some(level) if state.battery_charging => format!("{level}% · Charging"),Some(level) => format!("{level}%"),- None => "Not available".to_owned(),+ None => tr!("Widget", "Not available"),};let clip_text = if state.last_clip_preview.trim().is_empty() {- "No recent clipboard items".to_owned()+ tr!("Widget", "No recent clipboard items")} else {truncate_preview(&state.last_clip_preview, 120)};