Linux + iPhone Continuity / iMessage / SMS
fix: i18n - add spanish, french, german
Zack Bartel05f338a17c68
diff --git a/CMakeLists.txt b/CMakeLists.txtindex e39f6d2..c90b41d 100644--- a/CMakeLists.txt+++ b/CMakeLists.txt@@ -30,6 +30,7 @@ find_package(PkgConfig REQUIRED)pkg_check_modules(WAYLAND REQUIRED IMPORTED_TARGET wayland-client)pkg_check_modules(AVAHI REQUIRED IMPORTED_TARGET avahi-client)find_package(OpenSSL REQUIRED)+find_package(Intl REQUIRED)include(FetchContent)@@ -58,6 +59,7 @@ enable_testing()# subdirectories for the targetsadd_subdirectory(src)+add_subdirectory(po)add_subdirectory(test)# Add uninstall targetdiff --git a/Makefile b/Makefileindex 111ad5f..635af87 100644--- a/Makefile+++ b/Makefile@@ -35,6 +35,10 @@ run-cli: debugrun-gtk: debug./build/debug/tether-gtk+.PHONY: pot+pot:+ @./po/update-pot.sh+.PHONY: fmtfmt:@echo "Formatting code with clang-format..."diff --git a/docs/TRANSLATING.md b/docs/TRANSLATING.mdnew file mode 100644index 0000000..2b1f258--- /dev/null+++ b/docs/TRANSLATING.md@@ -0,0 +1,55 @@+# Translating Tether++Tether uses GNU gettext. Catalogs live in `po/`, one `.po` per language, all in the+`tether` domain.++## Adding a language++1. Add the language code to `po/LINGUAS`.+2. Run `make pot`. It regenerates `po/tether.pot`, merges it into every existing+ catalog, and creates a new empty `.po` for the language you just added.+3. Translate `po/<lang>.po` with Poedit, Weblate, or any text editor.+4. Rebuild. `po/CMakeLists.txt` compiles each catalog and installs it to+ `${CMAKE_INSTALL_LOCALEDIR}/<lang>/LC_MESSAGES/tether.mo`.++## Updating after source changes++`make pot` re-extracts from the files listed in `po/POTFILES.in`. A source file with+new `_()` strings must be listed there, or its strings are never extracted.++## Testing without installing++```sh+make debug+export TETHER_LOCALEDIR=$PWD/build/debug/locale+LANGUAGE=es LC_ALL=en_US.UTF-8 ./build/debug/tether --help+LANGUAGE=de LC_ALL=en_US.UTF-8 ./build/debug/tether-gtk+```++`LANGUAGE` is only honored when the locale is not `C`/`POSIX`, so pair it with a real+`LC_ALL` that exists on the machine (`locale -a` lists them). An untranslated string+falls back to English; that is correct behavior, not a failure.++## Rules for translators++- **Keep every format placeholder.** `%s`, `%zu`, `{}`, `{0}` must all survive. Dropping+ one crashes or corrupts the output. `msgfmt --check-format` catches the printf kinds;+ `ctest -R po_` runs it over every catalog.+- **Reorder with indices, not by moving text.** Use `%1$s` / `%2$s` for printf strings+ and `{0}` / `{1}` for the `{}` kind when the target language needs another word order.+- **Preserve leading and trailing whitespace and newlines**, especially in the CLI+ strings, where padding sets the column alignment.+- **Keep Pango markup out of your way.** Markup tags are applied around translated+ strings in code, so no msgid should contain `<b>` — if you find one, report it.+- **Do not translate** protocol and product tokens: `Bluetooth`, `Wi-Fi`, `iPhone`,+ `BR/EDR`, `LE`, `ANCS`, `MAP`, `PBAP`, `OTP`, `BlueZ`, `bluetoothd`, D-Bus names such+ as `org.bluez.Bearer.LE1`, package names, and CLI flags like `--bt-setup`.+- **Match Apple's own wording** for anything naming an iPhone setting ("Show Message+ Notifications", "Sync Contacts", "Share System Notifications", "Forget This Device").+ Use the strings Apple ships in that language rather than a literal translation, so the+ advice matches what the user actually sees on the phone.++## Status of the shipped catalogs++`es`, `fr`, and `de` are machine-assisted drafts that have not been reviewed by native+speakers. Corrections are welcome.diff --git a/po/CMakeLists.txt b/po/CMakeLists.txtnew file mode 100644index 0000000..f927127--- /dev/null+++ b/po/CMakeLists.txt@@ -0,0 +1,44 @@+# Message catalogs. Missing gettext tools are not an error: the build succeeds+# and the binaries run in English.+find_program(MSGFMT_EXECUTABLE msgfmt)+find_program(XGETTEXT_EXECUTABLE xgettext)++if(NOT MSGFMT_EXECUTABLE)+ message(STATUS "msgfmt not found; translations will not be built")+ return()+endif()++file(STRINGS "${CMAKE_CURRENT_SOURCE_DIR}/LINGUAS" TETHER_LINGUAS)++set(GMO_FILES)+foreach(LANG ${TETHER_LINGUAS})+ set(PO "${CMAKE_CURRENT_SOURCE_DIR}/${LANG}.po")+ if(NOT EXISTS "${PO}")+ continue()+ endif()++ # Built into the tree so an uninstalled run works:+ # TETHER_LOCALEDIR=$PWD/build/debug/locale ./build/debug/tether-gtk+ set(GMO "${CMAKE_BINARY_DIR}/locale/${LANG}/LC_MESSAGES/tether.mo")+ add_custom_command(+ OUTPUT "${GMO}"+ COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_BINARY_DIR}/locale/${LANG}/LC_MESSAGES"+ COMMAND ${MSGFMT_EXECUTABLE} --check-format -o "${GMO}" "${PO}"+ DEPENDS "${PO}"+ COMMENT "Compiling ${LANG}.po"+ VERBATIM)+ list(APPEND GMO_FILES "${GMO}")++ install(FILES "${GMO}"+ DESTINATION "${CMAKE_INSTALL_LOCALEDIR}/${LANG}/LC_MESSAGES")+endforeach()++add_custom_target(translations ALL DEPENDS ${GMO_FILES})++if(XGETTEXT_EXECUTABLE)+ add_custom_target(pot+ COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/update-pot.sh"+ WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"+ COMMENT "Regenerating po/tether.pot"+ VERBATIM)+endif()diff --git a/po/LINGUAS b/po/LINGUASnew file mode 100644index 0000000..8ec2eb7--- /dev/null+++ b/po/LINGUAS@@ -0,0 +1,3 @@+de+es+frdiff --git a/po/POTFILES.in b/po/POTFILES.innew file mode 100644index 0000000..b079f68--- /dev/null+++ b/po/POTFILES.in@@ -0,0 +1,16 @@+src/cli/main.cpp+src/core/src/bluetooth/bearer_supervisor.cpp+src/core/src/bluetooth/connection.cpp+src/core/src/bluetooth/groups.cpp+src/core/src/bluetooth/objects.cpp+src/core/src/bluetooth/pairing.cpp+src/core/src/bluetooth/profile_supervisor.cpp+src/core/src/net.cpp+src/daemon/main.cpp+src/daemon/notification.cpp+src/gtk/daemon_client.cpp+src/gtk/devices_view.cpp+src/gtk/main.cpp+src/gtk/messages_view.cpp+src/gtk/notifications_view.cpp+src/gtk/tray.cppdiff --git a/po/de.po b/po/de.ponew file mode 100644index 0000000..4df5f28--- /dev/null+++ b/po/de.po@@ -0,0 +1,1143 @@+# German translation of Tether.+# DRAFT — machine-assisted, not reviewed by a native speaker. Corrections welcome:+# https://github.com/zackb/tether+# Copyright (C) 2026 the Tether authors+# This file is distributed under the same license as the tether package.+#+msgid ""+msgstr ""+"Project-Id-Version: tether\n"+"Report-Msgid-Bugs-To: [email protected]\n"+"POT-Creation-Date: 2026-08-22\n"+"PO-Revision-Date: 2026-08-22\n"+"Last-Translator: Tether project\n"+"Language-Team: German\n"+"Language: de\n"+"MIME-Version: 1.0\n"+"Content-Type: text/plain; charset=UTF-8\n"+"Content-Transfer-Encoding: 8bit\n"+"Plural-Forms: nplurals=2; plural=(n != 1);\n"+++#. TRANSLATORS: keep the flag names and the column alignment; only the+#. descriptions after them are prose.+#: src/cli/main.cpp:101+msgid ""+"tether - Wayland companion CLI\n"+"\n"+"Options:\n"+" -h, --help Show this help message.\n"+" -g, --get-clipboard Retrieve the current Wayland clipboard text.\n"+" -s, --set-clipboard Take string input and copy it to the local Wayland clipboard.\n"+" -f, --send-file Send a file through tether.\n"+" -n, --native-host Start the browser Native Messaging Host proxy loop.\n"+" -d, --discover Scan the local network for tetherd instances via mDNS.\n"+" --host <ip> Connect over TCP to daemon ip instead of UNIX Socket.\n"+" --port <num> Connect over TCP port (default 5134).\n"+" --timeout <ms> Discovery scan duration in milliseconds (default 3000).\n"+" --list-devices List all paired connection devices.\n"+" --bt-setup Show the one-time system setup Bluetooth still needs.\n"+" --bt-status Show Bluetooth adapter capability and delivery mode.\n"+" --bt-devices List Bluetooth devices known to BlueZ.\n"+" --bt-connection Show Bluetooth link and profile connection state.\n"+" --bt-threads List iPhone message conversations.\n"+" --bt-messages <thread> Show messages in one conversation.\n"+" --bt-send <thread> <text> Reply in one conversation.\n"+" --bt-pair <addr> Pair with an iPhone over Bluetooth.\n"+" --bt-unpair <addr> Remove a Bluetooth bond.\n"+" --bt-solicit Re-advertise for ANCS so the iPhone shows its permission\n"+" toggles again, without removing the bond.\n"+" --bt-enable <on|off> Connect to the iPhone over Bluetooth, or stop.\n"+" --bt-ancs <on|off> Turn notification mirroring on or off.\n"+" --bt-ancs-content <on|off> Mirror notification titles and bodies, not just the app.\n"+" --bt-notifications List mirrored iPhone notifications.\n"+" --bt-diagnostics Print a redacted Bluetooth report for a bug report.\n"+" --accept <fingerprint> Accept a pending pairing request locally.\n"+" --pair Send a pair_request over TCP to the daemon.\n"+"\n"+"Examples:\n"+" tether -g\n"+" tether -g --host 127.0.0.1\n"+" echo \"pipe\" | tether -s\n"+" tether --discover\n"+" tether --discover --timeout 5000\n"+" tether -f ./report.pdf\n"+" tether --accept 9a4f21...\n"+msgstr ""+"tether - Wayland-Begleitprogramm für die Kommandozeile\n"+"\n"+"Optionen:\n"+" -h, --help Diese Hilfe anzeigen.\n"+" -g, --get-clipboard Den aktuellen Text der Wayland-Zwischenablage abrufen.\n"+" -s, --set-clipboard Text von der Eingabe lesen und in die lokale Wayland-Zwischenablage kopieren.\n"+" -f, --send-file Eine Datei über tether senden.\n"+" -n, --native-host Die Native-Messaging-Host-Proxyschleife des Browsers starten.\n"+" -d, --discover Das lokale Netz per mDNS nach tetherd-Instanzen durchsuchen.\n"+" --host <ip> Per TCP mit der Daemon-IP verbinden statt über den UNIX-Socket.\n"+" --port <num> TCP-Port für die Verbindung (Vorgabe 5134).\n"+" --timeout <ms> Dauer der Suche in Millisekunden (Vorgabe 3000).\n"+" --list-devices Alle gekoppelten Geräte auflisten.\n"+" --bt-setup Die einmalige Systemeinrichtung anzeigen, die Bluetooth noch braucht.\n"+" --bt-status Fähigkeiten des Bluetooth-Adapters und Übertragungsmodus anzeigen.\n"+" --bt-devices Die BlueZ bekannten Bluetooth-Geräte auflisten.\n"+" --bt-connection Zustand von Bluetooth-Verbindung und Profilen anzeigen.\n"+" --bt-threads Nachrichtenunterhaltungen des iPhones auflisten.\n"+" --bt-messages <thread> Nachrichten einer Unterhaltung anzeigen.\n"+" --bt-send <thread> <text> In einer Unterhaltung antworten.\n"+" --bt-pair <addr> Ein iPhone per Bluetooth koppeln.\n"+" --bt-unpair <addr> Eine Bluetooth-Bindung entfernen.\n"+" --bt-solicit Erneut für ANCS werben, damit das iPhone seine Berechtigungen wieder\n"+" anzeigt, ohne die Bindung zu entfernen.\n"+" --bt-enable <on|off> Per Bluetooth mit dem iPhone verbinden oder damit aufhören.\n"+" --bt-ancs <on|off> Die Spiegelung von Mitteilungen ein- oder ausschalten.\n"+" --bt-ancs-content <on|off> Titel und Text der Mitteilungen spiegeln, nicht nur die App.\n"+" --bt-notifications Gespiegelte iPhone-Mitteilungen auflisten.\n"+" --bt-diagnostics Einen bereinigten Bluetooth-Bericht für Fehlermeldungen ausgeben.\n"+" --accept <fingerprint> Eine ausstehende Kopplungsanfrage lokal annehmen.\n"+" --pair Einen pair_request per TCP an den Daemon senden.\n"+"\n"+"Beispiele:\n"+" tether -g\n"+" tether -g --host 127.0.0.1\n"+" echo \"pipe\" | tether -s\n"+" tether --discover\n"+" tether --discover --timeout 5000\n"+" tether -f ./report.pdf\n"+" tether --accept 9a4f21...\n"++#: src/cli/main.cpp:148 src/cli/main.cpp:188+msgid ""+"Could not read Bluetooth status from the daemon.\n"+msgstr ""+"Der Bluetooth-Status konnte nicht vom Daemon gelesen werden.\n"++#: src/cli/main.cpp:153 src/cli/main.cpp:193+#, c-format+msgid ""+"Bluetooth: unavailable (is bluetoothd running?)\n"+msgstr ""+"Bluetooth: nicht verfügbar (läuft bluetoothd?)\n"++#: src/cli/main.cpp:160+#, c-format+msgid ""+"Bluetooth setup is complete. Nothing to do.\n"+msgstr ""+"Die Bluetooth-Einrichtung ist abgeschlossen. Nichts zu tun.\n"++#: src/cli/main.cpp:165+#, c-format+msgid ""+"\n"+"%zu step left before the iPhone Bluetooth features work:\n"+msgid_plural ""+"\n"+"%zu steps left before the iPhone Bluetooth features work:\n"+msgstr[0] ""+"\n"+"Noch %zu Schritt, bis die Bluetooth-Funktionen des iPhones laufen:\n"+msgstr[1] ""+"\n"+"Noch %zu Schritte, bis die Bluetooth-Funktionen des iPhones laufen:\n"++#: src/cli/main.cpp:179+#, c-format+msgid ""+"\n"+"Re-run 'tether --bt-setup' afterwards to confirm.\n"+msgstr ""+"\n"+"Führen Sie danach 'tether --bt-setup' erneut aus, um es zu prüfen.\n"++#: src/cli/main.cpp:198+#, c-format+msgid ""+"Mode: %s\n"+msgstr ""+"Modus: %s\n"++#: src/cli/main.cpp:199+#, c-format+msgid ""+"Bearer API: %s\n"+msgstr ""+"Bearer-API: %s\n"++#: src/cli/main.cpp:201+#, c-format+msgid ""+"Adapter: powered=%s central=%s peripheral=%s advertising=%s class=%s\n"+msgstr ""+"Adapter: powered=%s central=%s peripheral=%s advertising=%s class=%s\n"++#: src/cli/main.cpp:208+#, c-format+msgid ""+" secure-connections=%s\n"+msgstr ""+" secure-connections=%s\n"++#: src/cli/main.cpp:213+#, c-format+msgid ""+"Bond: %s\n"+msgstr ""+"Bindung: %s\n"++#: src/cli/main.cpp:214+#, c-format+msgid ""+"Tether: %s\n"+msgstr ""+"Tether: %s\n"++#: src/cli/main.cpp:229+#, c-format+msgid ""+"\n"+"%zu setup step remaining. Run: tether --bt-setup\n"+msgid_plural ""+"\n"+"%zu setup steps remaining. Run: tether --bt-setup\n"+msgstr[0] ""+"\n"+"Noch %zu Einrichtungsschritt offen. Ausführen: tether --bt-setup\n"+msgstr[1] ""+"\n"+"Noch %zu Einrichtungsschritte offen. Ausführen: tether --bt-setup\n"++#: src/cli/main.cpp:241+msgid ""+"Could not read Bluetooth devices from the daemon.\n"+msgstr ""+"Die Bluetooth-Geräte konnten nicht vom Daemon gelesen werden.\n"++#: src/cli/main.cpp:247+#, c-format+msgid ""+"No Bluetooth devices known to BlueZ.\n"+msgstr ""+"BlueZ sind keine Bluetooth-Geräte bekannt.\n"++#: src/cli/main.cpp:292 src/cli/main.cpp:503 src/cli/main.cpp:777+#: src/cli/main.cpp:797+msgid ""+"Could not reach the daemon.\n"+msgstr ""+"Der Daemon war nicht erreichbar.\n"++#: src/cli/main.cpp:301+msgid ""+"Daemon closed the connection before the operation finished.\n"+msgstr ""+"Der Daemon hat die Verbindung geschlossen, bevor der Vorgang fertig war.\n"++#: src/cli/main.cpp:337+msgid ""+"Could not read Bluetooth connection state from the daemon.\n"+msgstr ""+"Der Zustand der Bluetooth-Verbindung konnte nicht vom Daemon gelesen werden.\n"++#: src/cli/main.cpp:342+#, c-format+msgid ""+"Device present: %s\n"+msgstr ""+"Gerät vorhanden: %s\n"++#: src/cli/main.cpp:343+#, c-format+msgid ""+"BR/EDR: %s\n"+msgstr ""+"BR/EDR: %s\n"++#: src/cli/main.cpp:345+#, c-format+msgid ""+"LE: %s%s\n"+msgstr ""+"LE: %s%s\n"++#: src/cli/main.cpp:348+#, c-format+msgid "Messages (MAP): %s"+msgstr "Nachrichten (MAP): %s"++#: src/cli/main.cpp:351+#, c-format+msgid ""+"\n"+"Contacts (PBAP): %s"+msgstr ""+"\n"+"Kontakte (PBAP): %s"++#: src/cli/main.cpp:372+msgid ""+"Could not read Bluetooth diagnostics from the daemon.\n"+msgstr ""+"Die Bluetooth-Diagnose konnte nicht vom Daemon gelesen werden.\n"++#: src/cli/main.cpp:396+msgid ""+"Could not read notifications from the daemon.\n"+msgstr ""+"Die Mitteilungen konnten nicht vom Daemon gelesen werden.\n"++#: src/cli/main.cpp:402+#, c-format+msgid ""+"No notifications yet. Check 'tether --bt-connection'.\n"+msgstr ""+"Noch keine Mitteilungen. Prüfen Sie 'tether --bt-connection'.\n"++#: src/cli/main.cpp:430+msgid ""+"Could not read conversations from the daemon.\n"+msgstr ""+"Die Unterhaltungen konnten nicht vom Daemon gelesen werden.\n"++#: src/cli/main.cpp:436+#, c-format+msgid ""+"No conversations yet. Check 'tether --bt-connection'.\n"+msgstr ""+"Noch keine Unterhaltungen. Prüfen Sie 'tether --bt-connection'.\n"++#: src/cli/main.cpp:450+#, c++-format+msgid "({} unread)"+msgid_plural "({} unread)"+msgstr[0] "({} ungelesen)"+msgstr[1] "({} ungelesen)"++#: src/cli/main.cpp:471+msgid ""+"Could not read messages from the daemon.\n"+msgstr ""+"Die Nachrichten konnten nicht vom Daemon gelesen werden.\n"++#: src/cli/main.cpp:477+#, c-format+msgid ""+"No messages in %s\n"+msgstr ""+"Keine Nachrichten in %s\n"++#: src/cli/main.cpp:485+msgid "me"+msgstr "ich"++#: src/cli/main.cpp:485+msgid "them"+msgstr "andere"++#: src/cli/main.cpp:512+msgid ""+"Daemon closed the connection before the message was sent.\n"+msgstr ""+"Der Daemon hat die Verbindung geschlossen, bevor die Nachricht gesendet wurde.\n"++#: src/cli/main.cpp:534+#, c-format+msgid ""+"Sent to %s\n"+msgstr ""+"Gesendet an %s\n"++#: src/cli/main.cpp:537 src/gtk/messages_view.cpp:497+msgid "The message was not sent."+msgstr "Die Nachricht wurde nicht gesendet."++#: src/cli/main.cpp:641+msgid ""+"Unknown action. Run tether --help for options\n"+msgstr ""+"Unbekannte Aktion. Führen Sie tether --help aus, um die Optionen zu sehen\n"++#: src/cli/main.cpp:663+msgid ""+" No tetherd instances found.\n"+msgstr ""+" Keine tetherd-Instanzen gefunden.\n"++#: src/cli/main.cpp:667+msgid "[new]"+msgstr "[neu]"++#: src/cli/main.cpp:669+msgid "[known]"+msgstr "[bekannt]"++#: src/cli/main.cpp:680+#, c-format+msgid ""+"Found %zu device in %.1fs\n"+msgid_plural ""+"Found %zu devices in %.1fs\n"+msgstr[0] ""+"%zu Gerät in %.1fs gefunden\n"+msgstr[1] ""+"%zu Geräte in %.1fs gefunden\n"++#: src/cli/main.cpp:698+msgid ""+"Explicit framework connection locally rejected! Did you target explicitly invalid TLS or is daemon broken?\n"+msgstr ""+"Verbindung lokal abgelehnt! Haben Sie ein ungültiges TLS angegeben oder ist der Daemon defekt?\n"++#: src/cli/main.cpp:728+#, c++-format+msgid "Transfer Failed: {}"+msgstr "Übertragung fehlgeschlagen: {}"++#: src/cli/main.cpp:750+msgid ""+"A thread key is required, e.g. --bt-messages tel:+15551234567\n"+msgstr ""+"Ein Unterhaltungsschlüssel ist erforderlich, z. B. --bt-messages tel:+15551234567\n"++#: src/cli/main.cpp:756+msgid ""+"A conversation and a message are required, e.g. --bt-send tel:+15551234567 \"hi\"\n"+msgstr ""+"Eine Unterhaltung und eine Nachricht sind erforderlich, z. B. --bt-send tel:+15551234567 \"hallo\"\n"++#: src/cli/main.cpp:762+msgid ""+"A Bluetooth address is required, e.g. --bt-pair AA:BB:CC:DD:EE:FF\n"+msgstr ""+"Eine Bluetooth-Adresse ist erforderlich, z. B. --bt-pair AA:BB:CC:DD:EE:FF\n"++#: src/cli/main.cpp:770+msgid ""+"Expected on or off, e.g. --bt-enable off\n"+msgstr ""+"Erwartet wurde on oder off, z. B. --bt-enable off\n"++#: src/cli/main.cpp:781+#, c-format+msgid ""+"Bluetooth enabled.\n"+msgstr ""+"Bluetooth eingeschaltet.\n"++#: src/cli/main.cpp:784+#, c-format+msgid ""+"Bluetooth disabled. Tether will not reconnect the iPhone. A link that is\n"+"already up stays up until you disconnect it or the phone goes out of range.\n"+msgstr ""+"Bluetooth ausgeschaltet. Tether verbindet das iPhone nicht erneut. Eine bereits\n"+"bestehende Verbindung bleibt, bis Sie sie trennen oder das Telefon außer Reichweite gerät.\n"++#: src/cli/main.cpp:790+#, c++-format+msgid ""+"Expected on or off, e.g. {} on\n"+msgstr ""+"Erwartet wurde on oder off, z. B. {} on\n"++#: src/cli/main.cpp:803+msgid "Notification contents enabled."+msgstr "Mitteilungsinhalte eingeschaltet."++#: src/cli/main.cpp:803+msgid "Notification contents disabled."+msgstr "Mitteilungsinhalte ausgeschaltet."++#: src/cli/main.cpp:804+msgid "Notification mirroring enabled."+msgstr "Spiegelung von Mitteilungen eingeschaltet."++#: src/cli/main.cpp:804+msgid "Notification mirroring disabled."+msgstr "Spiegelung von Mitteilungen ausgeschaltet."++#: src/core/src/bluetooth/bearer_supervisor.cpp:62+msgid "The iPhone is not answering on LE. Its Bluetooth is wedged on its own side: turn Bluetooth off and back on on the iPhone, which clears this even when Share System Notifications is already on. Messages and contacts are unaffected."+msgstr "Das iPhone antwortet nicht über LE. Sein Bluetooth hängt auf seiner eigenen Seite: Schalten Sie Bluetooth am iPhone aus und wieder ein, das behebt es auch dann, wenn „Systemmitteilungen teilen“ bereits aktiviert ist. Nachrichten und Kontakte sind nicht betroffen."++#: src/core/src/bluetooth/bearer_supervisor.cpp:155+msgid "The iPhone keeps refusing the Bluetooth connection. Turn Bluetooth off and back on on the iPhone — that clears it even when the permissions are already on. Re-pairing is not the fix."+msgstr "Das iPhone weist die Bluetooth-Verbindung weiterhin ab. Schalten Sie Bluetooth am iPhone aus und wieder ein — das behebt es auch dann, wenn die Berechtigungen bereits erteilt sind. Erneutes Koppeln hilft nicht."++#: src/core/src/bluetooth/bearer_supervisor.cpp:159+msgid "Notifications are connected. Still reaching the iPhone for messages and contacts..."+msgstr "Mitteilungen sind verbunden. Das iPhone wird noch für Nachrichten und Kontakte kontaktiert..."++#: src/core/src/bluetooth/bearer_supervisor.cpp:161+msgid "Connecting to the iPhone over Bluetooth..."+msgstr "Verbindung zum iPhone über Bluetooth wird aufgebaut..."++#: src/core/src/bluetooth/bearer_supervisor.cpp:167+msgid "Connected. Notification mirroring is disabled."+msgstr "Verbunden. Die Spiegelung von Mitteilungen ist ausgeschaltet."++#: src/core/src/bluetooth/bearer_supervisor.cpp:172+msgid "Connected. BlueZ is not exposing an LE bearer, so notifications are unavailable."+msgstr "Verbunden. BlueZ stellt keinen LE-Bearer bereit, daher sind Mitteilungen nicht verfügbar."++#: src/core/src/bluetooth/bearer_supervisor.cpp:194+msgid "Connected. Waiting for the iPhone to open the LE link that carries notifications. If it does not, open Settings > Bluetooth > (i) on the iPhone and check Share System Notifications."+msgstr "Verbunden. Es wird darauf gewartet, dass das iPhone die LE-Verbindung für Mitteilungen öffnet. Falls nicht, öffnen Sie am iPhone Einstellungen > Bluetooth > (i) und prüfen Sie „Systemmitteilungen teilen“."++#: src/core/src/bluetooth/bearer_supervisor.cpp:200+msgid "Connected over BR/EDR and LE."+msgstr "Über BR/EDR und LE verbunden."++#: src/core/src/bluetooth/connection.cpp:90 src/gtk/messages_view.cpp:362+#: src/gtk/messages_view.cpp:389+msgid "Messages are not connected."+msgstr "Nachrichten sind nicht verbunden."++#: src/core/src/bluetooth/connection.cpp:96+msgid "Could not build a message for this conversation."+msgstr "Für diese Unterhaltung konnte keine Nachricht erzeugt werden."++#: src/core/src/bluetooth/connection.cpp:176+msgid "That message is no longer in the conversation history."+msgstr "Diese Nachricht ist nicht mehr im Verlauf der Unterhaltung."++#: src/core/src/bluetooth/connection.cpp:195+msgid "The iPhone is not serving this message right now; marked read on this computer only."+msgstr "Das iPhone liefert diese Nachricht gerade nicht; nur auf diesem Rechner als gelesen markiert."++#: src/core/src/bluetooth/connection.cpp:1159+msgid "No paired iPhone selected."+msgstr "Kein gekoppeltes iPhone ausgewählt."++#: src/core/src/bluetooth/groups.cpp:278+msgid "Group replies are turned off."+msgstr "Antworten in Gruppen sind ausgeschaltet."++#: src/core/src/bluetooth/groups.cpp:288+#, c++-format+msgid "The roster for this group contains an unusable address: {}"+msgstr "Die Mitgliederliste dieser Gruppe enthält eine unbrauchbare Adresse: {}"++#: src/core/src/bluetooth/groups.cpp:295+msgid "The roster for this group is empty."+msgstr "Die Mitgliederliste dieser Gruppe ist leer."++#: src/core/src/bluetooth/groups.cpp:303+msgid "This conversation has not been identified as a group yet, so there is nobody to reply to."+msgstr "Diese Unterhaltung wurde noch nicht als Gruppe erkannt, es gibt also niemanden zum Antworten."++#: src/core/src/bluetooth/groups.cpp:308+msgid "This group has a name but no member list. Add its members before replying."+msgstr "Diese Gruppe hat einen Namen, aber keine Mitgliederliste. Fügen Sie ihre Mitglieder hinzu, bevor Sie antworten."++#: src/core/src/bluetooth/groups.cpp:315+#, c++-format+msgid "\"{}\" is not in your contacts."+msgstr "„{}“ ist nicht in Ihren Kontakten."++#: src/core/src/bluetooth/groups.cpp:320+#, c++-format+msgid "\"{}\" matches more than one contact address."+msgstr "„{}“ passt auf mehr als eine Kontaktadresse."++#: src/core/src/bluetooth/groups.cpp:328+#, c++-format+msgid "\"{0}\" resolved to an unusable address: {1}"+msgstr "„{0}“ ergab eine unbrauchbare Adresse: {1}"++#: src/core/src/bluetooth/groups.cpp:336+msgid "No recipients could be resolved for this group."+msgstr "Für diese Gruppe konnten keine Empfänger ermittelt werden."++#: src/core/src/bluetooth/objects.cpp:356+msgid "No Bluetooth adapter found."+msgstr "Kein Bluetooth-Adapter gefunden."++#: src/core/src/bluetooth/objects.cpp:386+msgid "Bluetooth adapter is powered off."+msgstr "Der Bluetooth-Adapter ist ausgeschaltet."++#: src/core/src/bluetooth/objects.cpp:391+msgid "Adapter has no LE central role; ANCS is impossible."+msgstr "Der Adapter hat keine LE-Central-Rolle; ANCS ist damit unmöglich."++#: src/core/src/bluetooth/objects.cpp:400+msgid "Adapter cannot advertise as a peripheral, so ANCS cannot be solicited."+msgstr "Der Adapter kann nicht als Peripheriegerät werben, daher lässt sich ANCS nicht anfordern."++#: src/core/src/bluetooth/objects.cpp:404+msgid "No LE advertising instances available; the iPhone may never show its Bluetooth permission toggles."+msgstr "Keine LE-Werbeinstanzen verfügbar; das iPhone zeigt seine Bluetooth-Berechtigungen möglicherweise nie an."++#: src/core/src/bluetooth/objects.cpp:409+msgid "Notification mirroring needs BlueZ's experimental bearer API (org.bluez.Bearer.LE1), which bluetoothd is not exposing. Set this up before pairing: a bond made without it has no LE half."+msgstr "Die Spiegelung von Mitteilungen braucht die experimentelle Bearer-API von BlueZ (org.bluez.Bearer.LE1), die bluetoothd nicht bereitstellt. Richten Sie das vor dem Koppeln ein: Eine ohne sie erzeugte Bindung hat keine LE-Hälfte."++#: src/core/src/bluetooth/objects.cpp:416+msgid "Bearer API support is unconfirmed until a device is bonded."+msgstr "Ob die Bearer-API unterstützt wird, lässt sich erst nach dem Binden eines Geräts bestätigen."++#: src/core/src/bluetooth/objects.cpp:420+msgid "A device is bonded, but the bond covers BR/EDR only -- no LE keys were derived, so notification mirroring cannot work on it. Delete this computer on the iPhone (Forget This Device) and pair again."+msgstr "Ein Gerät ist gebunden, aber die Bindung umfasst nur BR/EDR — es wurden keine LE-Schlüssel abgeleitet, daher kann die Spiegelung von Mitteilungen damit nicht funktionieren. Löschen Sie diesen Rechner am iPhone („Dieses Gerät ignorieren“) und koppeln Sie erneut."++#: src/core/src/bluetooth/objects.cpp:425+msgid "Secure Connections is off on this controller, which is what blocks the derivation; re-pairing will not help until it is on."+msgstr "„Sichere Verbindungen“ ist auf diesem Controller ausgeschaltet, und genau das blockiert die Ableitung; erneutes Koppeln hilft erst, wenn es eingeschaltet ist."++#: src/core/src/bluetooth/objects.cpp:430+msgid "The iPhone will not offer its Messages and Contacts permissions until this adapter presents itself as A/V Hands-Free (major 4, minor 8)."+msgstr "Das iPhone bietet seine Berechtigungen für Nachrichten und Kontakte erst an, wenn sich dieser Adapter als A/V-Freisprecheinrichtung ausgibt (Major 4, Minor 8)."++#: src/core/src/bluetooth/pairing.cpp:408+#, c++-format+msgid ""+"{0} wants to pair.\n"+"\n"+"Confirm this code matches the one on your iPhone:\n"+"\n"+"{1}"+msgstr ""+"{0} möchte sich koppeln.\n"+"\n"+"Bestätigen Sie, dass dieser Code dem auf Ihrem iPhone entspricht:\n"+"\n"+"{1}"++#: src/core/src/bluetooth/pairing.cpp:409+msgid "Bluetooth Pairing"+msgstr "Bluetooth-Kopplung"++#: src/core/src/bluetooth/pairing.cpp:410+msgid "Confirm"+msgstr "Bestätigen"++#: src/core/src/bluetooth/pairing.cpp:411 src/gtk/messages_view.cpp:891+msgid "Cancel"+msgstr "Abbrechen"++#. TRANSLATORS: the feature name Tether shows for this profile.+#: src/core/src/bluetooth/profile_supervisor.cpp:76 src/daemon/main.cpp:152+#: src/gtk/devices_view.cpp:196 src/gtk/main.cpp:126+msgid "Messages"+msgstr "Nachrichten"++#: src/core/src/bluetooth/profile_supervisor.cpp:76+#: src/gtk/devices_view.cpp:198+msgid "Contacts"+msgstr "Kontakte"++#. TRANSLATORS: these two are toggle names in the iPhone's own Settings app.+#. Use Apple's wording for the target language, not a literal translation.+#: src/core/src/bluetooth/profile_supervisor.cpp:79+msgid "Show Message Notifications"+msgstr "Nachrichtenmitteilungen anzeigen"++#: src/core/src/bluetooth/profile_supervisor.cpp:79+msgid "Sync Contacts"+msgstr "Kontakte synchronisieren"++#. TRANSLATORS: {} is an iPhone Settings toggle name.+#: src/core/src/bluetooth/profile_supervisor.cpp:84+#, c++-format+msgid "Enable \"{}\" for this computer in the iPhone's Settings > Bluetooth > (i). This is a permission, not a pairing problem."+msgstr "Aktivieren Sie „{}“ für diesen Rechner in den Einstellungen des iPhones unter Bluetooth > (i). Das ist eine Berechtigung, kein Kopplungsproblem."++#. TRANSLATORS: {0} is Messages or Contacts, {1} is the profile name (map or pbap).+#: src/core/src/bluetooth/profile_supervisor.cpp:89+#, c++-format+msgid "{0} is unavailable because another computer is using the iPhone's {1} session. Disconnect it there, then this will connect on its own."+msgstr "{0} ist nicht verfügbar, weil ein anderer Rechner die {1}-Sitzung des iPhones benutzt. Trennen Sie ihn dort, dann verbindet sich das hier von selbst."++#. TRANSLATORS: {0} is Messages or Contacts, {1} is an iPhone Settings toggle name.+#: src/core/src/bluetooth/profile_supervisor.cpp:97+#, c++-format+msgid "{0} could not be fetched from the iPhone. Usually another computer holds the phone's Bluetooth session, or \"{1}\" is off in Settings > Bluetooth > (i). Check both; re-pairing is not the fix."+msgstr "{0} konnte nicht vom iPhone abgerufen werden. Meist belegt ein anderer Rechner die Bluetooth-Sitzung des Telefons, oder „{1}“ ist unter Einstellungen > Bluetooth > (i) ausgeschaltet. Prüfen Sie beides; erneutes Koppeln hilft nicht."++#: src/core/src/bluetooth/profile_supervisor.cpp:103+#, c++-format+msgid "{} is unreachable; waiting for the iPhone to come back."+msgstr "{} ist nicht erreichbar; es wird auf die Rückkehr des iPhones gewartet."++#: src/core/src/bluetooth/profile_supervisor.cpp:105+#, c++-format+msgid "{} needs BlueZ's OBEX daemon, which is not installed on this computer. Install it (bluez-obex on Arch, bluez-obexd on Debian and Ubuntu). Nothing needs changing on the iPhone."+msgstr "{} braucht den OBEX-Daemon von BlueZ, der auf diesem Rechner nicht installiert ist. Installieren Sie ihn (bluez-obex unter Arch, bluez-obexd unter Debian und Ubuntu). Am iPhone muss nichts geändert werden."++#: src/core/src/bluetooth/profile_supervisor.cpp:110+#, c++-format+msgid "{} could not be opened."+msgstr "{} konnte nicht geöffnet werden."++#: src/core/src/bluetooth/profile_supervisor.cpp:179+msgid "Waiting for the Bluetooth link."+msgstr "Warten auf die Bluetooth-Verbindung."++#: src/core/src/bluetooth/profile_supervisor.cpp:184+#: src/core/src/bluetooth/profile_supervisor.cpp:201+msgid "Messages and contacts are connected."+msgstr "Nachrichten und Kontakte sind verbunden."++#: src/core/src/bluetooth/profile_supervisor.cpp:208+msgid "Opening messages and contacts..."+msgstr "Nachrichten und Kontakte werden geöffnet..."++#. TRANSLATORS: {0} is the device name, {1} is a shortened key fingerprint.+#: src/core/src/net.cpp:1421+#, c++-format+msgid "{0} ({1}) wants to pair with this device."+msgstr "{0} ({1}) möchte sich mit diesem Gerät koppeln."++#: src/core/src/net.cpp:1422+msgid "Pairing Request"+msgstr "Kopplungsanfrage"++#: src/core/src/net.cpp:1423+msgid "Accept"+msgstr "Annehmen"++#: src/core/src/net.cpp:1424+msgid "Reject"+msgstr "Ablehnen"++#: src/daemon/notification.cpp:177+msgid "File arrived"+msgstr "Datei empfangen"++#: src/daemon/notification.cpp:188+msgid "Open File"+msgstr "Datei öffnen"++#: src/daemon/notification.cpp:190+msgid "Open Folder"+msgstr "Ordner öffnen"++#: src/daemon/notification.cpp:233+msgid "Reply"+msgstr "Antworten"++#: src/gtk/daemon_client.cpp:56 src/gtk/daemon_client.cpp:163+msgid "Daemon Offline"+msgstr "Daemon offline"++#: src/gtk/daemon_client.cpp:57 src/gtk/daemon_client.cpp:58+#: src/gtk/daemon_client.cpp:164 src/gtk/daemon_client.cpp:165+#: src/gtk/messages_view.cpp:736+msgid "The Tether daemon is not running."+msgstr "Der Tether-Daemon läuft nicht."++#: src/gtk/daemon_client.cpp:190+msgid "Daemon Online"+msgstr "Daemon online"++#: src/gtk/devices_view.cpp:109 src/gtk/devices_view.cpp:115+msgid "Connected."+msgstr "Verbunden."++#: src/gtk/devices_view.cpp:109 src/gtk/devices_view.cpp:113+msgid "Not connected yet."+msgstr "Noch nicht verbunden."++#: src/gtk/devices_view.cpp:117 src/gtk/devices_view.cpp:158+msgid "Bluetooth is unavailable on this machine."+msgstr "Bluetooth ist auf diesem Rechner nicht verfügbar."++#: src/gtk/devices_view.cpp:160+msgid "Full mode — messages, contacts, and notifications."+msgstr "Vollmodus — Nachrichten, Kontakte und Mitteilungen."++#: src/gtk/devices_view.cpp:162+msgid "Compatibility mode — messages and contacts, no notification mirroring."+msgstr "Kompatibilitätsmodus — Nachrichten und Kontakte, keine Spiegelung von Mitteilungen."++#: src/gtk/devices_view.cpp:164+msgid "This machine cannot carry the Bluetooth features."+msgstr "Dieser Rechner kann die Bluetooth-Funktionen nicht bereitstellen."++#: src/gtk/devices_view.cpp:189+msgid "Link"+msgstr "Verbindung"++#: src/gtk/devices_view.cpp:202 src/gtk/main.cpp:127+msgid "Notifications"+msgstr "Mitteilungen"++#: src/gtk/devices_view.cpp:210+msgid "Not paired over Bluetooth yet."+msgstr "Noch nicht über Bluetooth gekoppelt."++#: src/gtk/devices_view.cpp:212+msgid "Tether is not using this device. Pair it to select it."+msgstr "Tether benutzt dieses Gerät nicht. Koppeln Sie es, um es auszuwählen."++#: src/gtk/devices_view.cpp:216+msgid "Bluetooth is switched off for this iPhone."+msgstr "Bluetooth ist für dieses iPhone ausgeschaltet."++#: src/gtk/devices_view.cpp:286+msgid "Connected and ready."+msgstr "Verbunden und bereit."++#: src/gtk/devices_view.cpp:287+msgid "Device is offline. Open the Tether app on iPhone while on the same network."+msgstr "Das Gerät ist offline. Öffnen Sie die Tether-App auf dem iPhone im selben Netz."++#: src/gtk/devices_view.cpp:298+#, c++-format+msgid "Found at {0}:{1}"+msgstr "Gefunden unter {0}:{1}"++#: src/gtk/devices_view.cpp:329+msgid "Sending pair request..."+msgstr "Kopplungsanfrage wird gesendet..."++#: src/gtk/devices_view.cpp:335+msgid "Pair request sent. Approve on remote device!"+msgstr "Kopplungsanfrage gesendet. Bestätigen Sie sie auf dem entfernten Gerät!"++#: src/gtk/devices_view.cpp:351 src/gtk/devices_view.cpp:406+#: src/gtk/messages_view.cpp:339+msgid "Could not reach the Tether daemon."+msgstr "Der Tether-Daemon war nicht erreichbar."++#: src/gtk/devices_view.cpp:355+msgid "Pairing… confirm the prompt on the iPhone."+msgstr "Kopplung läuft… bestätigen Sie die Abfrage auf dem iPhone."++#: src/gtk/devices_view.cpp:366+#, c-format+msgid "Remove the Bluetooth pairing with %s?"+msgstr "Die Bluetooth-Kopplung mit %s entfernen?"++#: src/gtk/devices_view.cpp:370+msgid "Also delete this computer from the iPhone's Bluetooth settings before pairing again, or the phone will keep the stale bond."+msgstr "Löschen Sie diesen Rechner vor dem erneuten Koppeln auch aus den Bluetooth-Einstellungen des iPhones, sonst behält das Telefon die veraltete Bindung."++#: src/gtk/devices_view.cpp:378+msgid "Removing the pairing…"+msgstr "Kopplung wird entfernt…"++#: src/gtk/devices_view.cpp:401+msgid "Setup commands copied to the clipboard."+msgstr "Einrichtungsbefehle in die Zwischenablage kopiert."++#: src/gtk/devices_view.cpp:409 src/gtk/messages_view.cpp:342+msgid "Asking the iPhone to show its Bluetooth permissions…"+msgstr "Das iPhone wird gebeten, seine Bluetooth-Berechtigungen anzuzeigen…"++#. TRANSLATORS: {} is a file name.+#: src/gtk/devices_view.cpp:418+#, c++-format+msgid "Sending {}…"+msgstr "{} wird gesendet…"++#. TRANSLATORS: {0} is the current file's position, {1} the batch size.+#: src/gtk/devices_view.cpp:422+#, c++-format+msgid "({0} of {1})"+msgstr "({0} von {1})"++#: src/gtk/devices_view.cpp:437+msgid "Daemon unavailable."+msgstr "Daemon nicht verfügbar."++#: src/gtk/devices_view.cpp:457 src/gtk/devices_view.cpp:1247+msgid "Send File"+msgstr "Datei senden"++#: src/gtk/devices_view.cpp:528+msgid "Folders can't be sent — drop files instead."+msgstr "Ordner können nicht gesendet werden — legen Sie stattdessen Dateien ab."++#: src/gtk/devices_view.cpp:538+msgid "Clipboard, files, and OTP are connected."+msgstr "Zwischenablage, Dateien und OTP sind verbunden."++#: src/gtk/devices_view.cpp:539+msgid "No paired iPhone is connected. Open the Tether app on the phone."+msgstr "Es ist kein gekoppeltes iPhone verbunden. Öffnen Sie die Tether-App auf dem Telefon."++#: src/gtk/devices_view.cpp:551 src/gtk/devices_view.cpp:562+#: src/gtk/devices_view.cpp:599 src/gtk/devices_view.cpp:814+#: src/gtk/devices_view.cpp:815+msgid "Unknown Device"+msgstr "Unbekanntes Gerät"++#: src/gtk/devices_view.cpp:581+msgid "Scanning for nearby devices..."+msgstr "Suche nach Geräten in der Nähe..."++#: src/gtk/devices_view.cpp:638 src/gtk/devices_view.cpp:672+msgid "Connected"+msgstr "Verbunden"++#: src/gtk/devices_view.cpp:638+msgid "Offline"+msgstr "Offline"++#: src/gtk/devices_view.cpp:638 src/gtk/devices_view.cpp:672+msgid "Nearby (Tap to Pair)"+msgstr "In der Nähe (zum Koppeln tippen)"++#: src/gtk/devices_view.cpp:672+msgid "Paired"+msgstr "Gekoppelt"++#: src/gtk/devices_view.cpp:881 src/gtk/devices_view.cpp:1266+msgid "Ready"+msgstr "Bereit"++#: src/gtk/devices_view.cpp:903+#, c++-format+msgid "Sent {0} of {1} file."+msgid_plural "Sent {0} of {1} files."+msgstr[0] "{0} von {1} Datei gesendet."+msgstr[1] "{0} von {1} Dateien gesendet."++#: src/gtk/devices_view.cpp:912+#, c++-format+msgid "Skipped {} non-file item."+msgid_plural "Skipped {} non-file items."+msgstr[0] "{} Element übersprungen, das keine Datei ist."+msgstr[1] "{} Elemente übersprungen, die keine Dateien sind."++#: src/gtk/devices_view.cpp:923+msgid "Desktop Clipboard Sync triggered."+msgstr "Synchronisierung der Desktop-Zwischenablage ausgelöst."++#: src/gtk/devices_view.cpp:949+msgid "Messages and notifications are connected."+msgstr "Nachrichten und Mitteilungen sind verbunden."++#: src/gtk/devices_view.cpp:964+msgid "No iPhone found. Unlock the phone and open Settings > Bluetooth so it advertises, then scan again."+msgstr "Kein iPhone gefunden. Entsperren Sie das Telefon und öffnen Sie Einstellungen > Bluetooth, damit es wirbt, und suchen Sie erneut."++#: src/gtk/devices_view.cpp:1013+msgid "Connect your iPhone"+msgstr "Verbinden Sie Ihr iPhone"++#: src/gtk/devices_view.cpp:1058+msgid "clipboard, files, OTP"+msgstr "Zwischenablage, Dateien, OTP"++#: src/gtk/devices_view.cpp:1059+msgid ""+"1. Open the Tether app on the iPhone\n"+"2. It finds this computer by itself\n"+"3. Approve on both ends"+msgstr ""+"1. Öffnen Sie die Tether-App auf dem iPhone\n"+"2. Sie findet diesen Rechner von selbst\n"+"3. Bestätigen Sie auf beiden Seiten"++#: src/gtk/devices_view.cpp:1067+msgid "messages, notifications"+msgstr "Nachrichten, Mitteilungen"++#: src/gtk/devices_view.cpp:1068+msgid ""+"1. Pick the iPhone under BLUETOOTH\n"+"2. Press Pair over Bluetooth\n"+"3. Grant the two toggles on the phone"+msgstr ""+"1. Wählen Sie das iPhone unter BLUETOOTH\n"+"2. Drücken Sie „Über Bluetooth koppeln“\n"+"3. Erteilen Sie die zwei Berechtigungen am Telefon"++#: src/gtk/devices_view.cpp:1076+msgid "Scan for devices"+msgstr "Nach Geräten suchen"++#: src/gtk/devices_view.cpp:1101+msgid "Bluetooth needs one-time system setup"+msgstr "Bluetooth braucht eine einmalige Systemeinrichtung"++#: src/gtk/devices_view.cpp:1119+msgid "Copy commands"+msgstr "Befehle kopieren"++#: src/gtk/devices_view.cpp:1121+msgid "Run these in a terminal. Tether does not change your Bluetooth adapter or bluetoothd on its own."+msgstr "Führen Sie diese in einem Terminal aus. Tether ändert weder Ihren Bluetooth-Adapter noch bluetoothd von sich aus."++#: src/gtk/devices_view.cpp:1145+msgid "Connect to this iPhone over Bluetooth"+msgstr "Über Bluetooth mit diesem iPhone verbinden"++#: src/gtk/devices_view.cpp:1147+msgid "Keep the Bluetooth link to the iPhone up, reconnecting whenever it drops. Turning this off stops Tether reconnecting; a link that is already up stays up until you disconnect it."+msgstr "Die Bluetooth-Verbindung zum iPhone aufrechterhalten und bei jedem Abbruch neu aufbauen. Ausschalten hindert Tether am erneuten Verbinden; eine bereits bestehende Verbindung bleibt, bis Sie sie trennen."++#: src/gtk/devices_view.cpp:1154+msgid "Mirror iPhone notifications"+msgstr "iPhone-Mitteilungen spiegeln"++#: src/gtk/devices_view.cpp:1156+msgid "Show notifications from the iPhone on this desktop. Turned off automatically when pairing produces no LE bond; turn it back on after re-pairing."+msgstr "Mitteilungen vom iPhone auf diesem Desktop anzeigen. Wird automatisch ausgeschaltet, wenn beim Koppeln keine LE-Bindung entsteht; schalten Sie es nach erneutem Koppeln wieder ein."++#: src/gtk/devices_view.cpp:1162+msgid "Show notification contents"+msgstr "Mitteilungsinhalte anzeigen"++#: src/gtk/devices_view.cpp:1164+msgid "Ask the iPhone for each notification's title and message text, not just which app sent it. The phone's own Show Message Notifications toggle still has to be on."+msgstr "Das iPhone nach Titel und Text jeder Mitteilung fragen, nicht nur nach der sendenden App. Die Einstellung „Nachrichtenmitteilungen anzeigen“ am Telefon muss weiterhin aktiv sein."++#: src/gtk/devices_view.cpp:1177+msgid "Pair over Bluetooth"+msgstr "Über Bluetooth koppeln"++#: src/gtk/devices_view.cpp:1182 src/gtk/messages_view.cpp:818+msgid "Show iPhone Permissions"+msgstr "iPhone-Berechtigungen anzeigen"++#: src/gtk/devices_view.cpp:1184 src/gtk/messages_view.cpp:821+msgid "Re-advertise so the iPhone shows its Show Message Notifications and Sync Contacts toggles under Settings > Bluetooth > (i)."+msgstr "Erneut werben, damit das iPhone seine Einstellungen „Nachrichtenmitteilungen anzeigen“ und „Kontakte synchronisieren“ unter Einstellungen > Bluetooth > (i) anzeigt."++#: src/gtk/devices_view.cpp:1189+msgid "Unpair"+msgstr "Kopplung aufheben"++#: src/gtk/devices_view.cpp:1212+msgid "Pair Device"+msgstr "Gerät koppeln"++#: src/gtk/devices_view.cpp:1218+msgid "Force Trust (Accept Pending)"+msgstr "Vertrauen erzwingen (ausstehende annehmen)"++#: src/gtk/devices_view.cpp:1243+msgid "Drop files here to send"+msgstr "Dateien zum Senden hierher ziehen"++#: src/gtk/devices_view.cpp:1252+msgid "Send Clipboard"+msgstr "Zwischenablage senden"++#: src/gtk/devices_view.cpp:1259+msgid "Clipboard sync requested..."+msgstr "Synchronisierung der Zwischenablage angefordert..."++#: src/gtk/main.cpp:55+msgid "Keep running in tray when closed"+msgstr "Beim Schließen im Benachrichtigungsfeld weiterlaufen"++#: src/gtk/main.cpp:65+msgid "Quit"+msgstr "Beenden"++#: src/gtk/main.cpp:101 src/gtk/main.cpp:109 src/gtk/tether-gtk.desktop.in:2+msgid "Tether"+msgstr "Tether"++#: src/gtk/main.cpp:125+msgid "Devices"+msgstr "Geräte"++#: src/gtk/main.cpp:174+msgid "Start hidden in the system tray"+msgstr "Versteckt im Benachrichtigungsfeld starten"++#: src/gtk/main.cpp:178+msgid "Open on this tab"+msgstr "In diesem Tab öffnen"++#: src/gtk/main.cpp:185+msgid "Open the messages tab on this conversation"+msgstr "Den Nachrichten-Tab bei dieser Unterhaltung öffnen"++#: src/gtk/messages_view.cpp:387 src/gtk/messages_view.cpp:461+msgid "Sending…"+msgstr "Wird gesendet…"++#: src/gtk/messages_view.cpp:392+msgid "Enter a recipient."+msgstr "Geben Sie einen Empfänger ein."++#: src/gtk/messages_view.cpp:394+msgid "Select a conversation first."+msgstr "Wählen Sie zuerst eine Unterhaltung aus."++#: src/gtk/messages_view.cpp:398+msgid "Replying to this conversation is not available."+msgstr "Auf diese Unterhaltung kann nicht geantwortet werden."++#: src/gtk/messages_view.cpp:435+msgid "No answer about that message; it may still have been sent."+msgstr "Keine Rückmeldung zu dieser Nachricht; sie wurde möglicherweise trotzdem gesendet."++#: src/gtk/messages_view.cpp:450+msgid "Could not reach the Tether daemon; the message was not sent."+msgstr "Der Tether-Daemon war nicht erreichbar; die Nachricht wurde nicht gesendet."++#: src/gtk/messages_view.cpp:494+msgid "Sent"+msgstr "Gesendet"++#: src/gtk/messages_view.cpp:646 src/gtk/messages_view.cpp:840+msgid "New Message"+msgstr "Neue Nachricht"++#: src/gtk/messages_view.cpp:860+msgid "Select a conversation"+msgstr "Wählen Sie eine Unterhaltung"++#: src/gtk/messages_view.cpp:872+msgid "Phone number or email"+msgstr "Telefonnummer oder E-Mail"++#: src/gtk/messages_view.cpp:951+msgid "Send"+msgstr "Senden"++#: src/gtk/notifications_view.cpp:86+msgid "New notification"+msgstr "Neue Mitteilung"++#: src/gtk/notifications_view.cpp:148+msgid "No notifications yet."+msgstr "Noch keine Mitteilungen."++#: src/gtk/notifications_view.cpp:149+msgid "Notification mirroring is unavailable."+msgstr "Die Spiegelung von Mitteilungen ist nicht verfügbar."++#: src/gtk/notifications_view.cpp:164+msgid "Waiting for the iPhone."+msgstr "Warten auf das iPhone."++#: src/gtk/tray.cpp:277+msgid "connected"+msgstr "verbunden"++#: src/gtk/tray.cpp:277+msgid "not connected"+msgstr "nicht verbunden"++#. TRANSLATORS: {} is a transport name, "Wi-Fi" or "Bluetooth".+#: src/gtk/tray.cpp:279+#, c++-format+msgid "{}: {}"+msgstr "{}: {}"++#: src/gtk/tray.cpp:282+msgid "Daemon: not running"+msgstr "Daemon: läuft nicht"++#: src/gtk/tray.cpp:284+#, c++-format+msgid "{} unread message"+msgid_plural "{} unread messages"+msgstr[0] "{} ungelesene Nachricht"+msgstr[1] "{} ungelesene Nachrichten"++#: src/gtk/tether-gtk.desktop.in:3+msgid "Device Synchronization"+msgstr "Gerätesynchronisierung"++#: src/gtk/tether-gtk.desktop.in:4+msgid "Pair devices and synchronize clipboard across the network"+msgstr "Geräte koppeln und die Zwischenablage über das Netzwerk synchronisieren"diff --git a/po/es.po b/po/es.ponew file mode 100644index 0000000..74fefe1--- /dev/null+++ b/po/es.po@@ -0,0 +1,1143 @@+# Spanish translation of Tether.+# DRAFT — machine-assisted, not reviewed by a native speaker. Corrections welcome:+# https://github.com/zackb/tether+# Copyright (C) 2026 the Tether authors+# This file is distributed under the same license as the tether package.+#+msgid ""+msgstr ""+"Project-Id-Version: tether\n"+"Report-Msgid-Bugs-To: [email protected]\n"+"POT-Creation-Date: 2026-08-22\n"+"PO-Revision-Date: 2026-08-22\n"+"Last-Translator: Tether project\n"+"Language-Team: Spanish\n"+"Language: es\n"+"MIME-Version: 1.0\n"+"Content-Type: text/plain; charset=UTF-8\n"+"Content-Transfer-Encoding: 8bit\n"+"Plural-Forms: nplurals=2; plural=(n != 1);\n"+++#. TRANSLATORS: keep the flag names and the column alignment; only the+#. descriptions after them are prose.+#: src/cli/main.cpp:101+msgid ""+"tether - Wayland companion CLI\n"+"\n"+"Options:\n"+" -h, --help Show this help message.\n"+" -g, --get-clipboard Retrieve the current Wayland clipboard text.\n"+" -s, --set-clipboard Take string input and copy it to the local Wayland clipboard.\n"+" -f, --send-file Send a file through tether.\n"+" -n, --native-host Start the browser Native Messaging Host proxy loop.\n"+" -d, --discover Scan the local network for tetherd instances via mDNS.\n"+" --host <ip> Connect over TCP to daemon ip instead of UNIX Socket.\n"+" --port <num> Connect over TCP port (default 5134).\n"+" --timeout <ms> Discovery scan duration in milliseconds (default 3000).\n"+" --list-devices List all paired connection devices.\n"+" --bt-setup Show the one-time system setup Bluetooth still needs.\n"+" --bt-status Show Bluetooth adapter capability and delivery mode.\n"+" --bt-devices List Bluetooth devices known to BlueZ.\n"+" --bt-connection Show Bluetooth link and profile connection state.\n"+" --bt-threads List iPhone message conversations.\n"+" --bt-messages <thread> Show messages in one conversation.\n"+" --bt-send <thread> <text> Reply in one conversation.\n"+" --bt-pair <addr> Pair with an iPhone over Bluetooth.\n"+" --bt-unpair <addr> Remove a Bluetooth bond.\n"+" --bt-solicit Re-advertise for ANCS so the iPhone shows its permission\n"+" toggles again, without removing the bond.\n"+" --bt-enable <on|off> Connect to the iPhone over Bluetooth, or stop.\n"+" --bt-ancs <on|off> Turn notification mirroring on or off.\n"+" --bt-ancs-content <on|off> Mirror notification titles and bodies, not just the app.\n"+" --bt-notifications List mirrored iPhone notifications.\n"+" --bt-diagnostics Print a redacted Bluetooth report for a bug report.\n"+" --accept <fingerprint> Accept a pending pairing request locally.\n"+" --pair Send a pair_request over TCP to the daemon.\n"+"\n"+"Examples:\n"+" tether -g\n"+" tether -g --host 127.0.0.1\n"+" echo \"pipe\" | tether -s\n"+" tether --discover\n"+" tether --discover --timeout 5000\n"+" tether -f ./report.pdf\n"+" tether --accept 9a4f21...\n"+msgstr ""+"tether - CLI complementaria para Wayland\n"+"\n"+"Opciones:\n"+" -h, --help Mostrar esta ayuda.\n"+" -g, --get-clipboard Obtener el texto actual del portapapeles de Wayland.\n"+" -s, --set-clipboard Leer texto de la entrada y copiarlo al portapapeles local de Wayland.\n"+" -f, --send-file Enviar un archivo a través de tether.\n"+" -n, --native-host Iniciar el bucle proxy del Native Messaging Host del navegador.\n"+" -d, --discover Buscar instancias de tetherd en la red local mediante mDNS.\n"+" --host <ip> Conectar por TCP a la ip del daemon en vez de al socket UNIX.\n"+" --port <num> Puerto TCP de conexión (por omisión 5134).\n"+" --timeout <ms> Duración del escaneo de descubrimiento en milisegundos (por omisión 3000).\n"+" --list-devices Listar todos los dispositivos emparejados.\n"+" --bt-setup Mostrar la configuración inicial del sistema que aún necesita Bluetooth.\n"+" --bt-status Mostrar la capacidad del adaptador Bluetooth y el modo de entrega.\n"+" --bt-devices Listar los dispositivos Bluetooth conocidos por BlueZ.\n"+" --bt-connection Mostrar el estado del enlace y de los perfiles Bluetooth.\n"+" --bt-threads Listar las conversaciones de mensajes del iPhone.\n"+" --bt-messages <thread> Mostrar los mensajes de una conversación.\n"+" --bt-send <thread> <text> Responder en una conversación.\n"+" --bt-pair <addr> Emparejar con un iPhone por Bluetooth.\n"+" --bt-unpair <addr> Eliminar un vínculo Bluetooth.\n"+" --bt-solicit Volver a anunciarse para ANCS para que el iPhone muestre de nuevo sus\n"+" permisos, sin eliminar el vínculo.\n"+" --bt-enable <on|off> Conectar con el iPhone por Bluetooth, o detenerlo.\n"+" --bt-ancs <on|off> Activar o desactivar la duplicación de notificaciones.\n"+" --bt-ancs-content <on|off> Duplicar títulos y contenido de las notificaciones, no solo la app.\n"+" --bt-notifications Listar las notificaciones duplicadas del iPhone.\n"+" --bt-diagnostics Imprimir un informe Bluetooth redactado para un informe de error.\n"+" --accept <fingerprint> Aceptar localmente una solicitud de emparejamiento pendiente.\n"+" --pair Enviar un pair_request al daemon por TCP.\n"+"\n"+"Ejemplos:\n"+" tether -g\n"+" tether -g --host 127.0.0.1\n"+" echo \"pipe\" | tether -s\n"+" tether --discover\n"+" tether --discover --timeout 5000\n"+" tether -f ./report.pdf\n"+" tether --accept 9a4f21...\n"++#: src/cli/main.cpp:148 src/cli/main.cpp:188+msgid ""+"Could not read Bluetooth status from the daemon.\n"+msgstr ""+"No se pudo leer el estado de Bluetooth del daemon.\n"++#: src/cli/main.cpp:153 src/cli/main.cpp:193+#, c-format+msgid ""+"Bluetooth: unavailable (is bluetoothd running?)\n"+msgstr ""+"Bluetooth: no disponible (¿se está ejecutando bluetoothd?)\n"++#: src/cli/main.cpp:160+#, c-format+msgid ""+"Bluetooth setup is complete. Nothing to do.\n"+msgstr ""+"La configuración de Bluetooth está completa. No hay nada que hacer.\n"++#: src/cli/main.cpp:165+#, c-format+msgid ""+"\n"+"%zu step left before the iPhone Bluetooth features work:\n"+msgid_plural ""+"\n"+"%zu steps left before the iPhone Bluetooth features work:\n"+msgstr[0] ""+"\n"+"%zu paso pendiente antes de que funcionen las funciones Bluetooth del iPhone:\n"+msgstr[1] ""+"\n"+"%zu pasos pendientes antes de que funcionen las funciones Bluetooth del iPhone:\n"++#: src/cli/main.cpp:179+#, c-format+msgid ""+"\n"+"Re-run 'tether --bt-setup' afterwards to confirm.\n"+msgstr ""+"\n"+"Vuelva a ejecutar 'tether --bt-setup' después para confirmarlo.\n"++#: src/cli/main.cpp:198+#, c-format+msgid ""+"Mode: %s\n"+msgstr ""+"Modo: %s\n"++#: src/cli/main.cpp:199+#, c-format+msgid ""+"Bearer API: %s\n"+msgstr ""+"API bearer: %s\n"++#: src/cli/main.cpp:201+#, c-format+msgid ""+"Adapter: powered=%s central=%s peripheral=%s advertising=%s class=%s\n"+msgstr ""+"Adaptador: powered=%s central=%s peripheral=%s advertising=%s class=%s\n"++#: src/cli/main.cpp:208+#, c-format+msgid ""+" secure-connections=%s\n"+msgstr ""+" secure-connections=%s\n"++#: src/cli/main.cpp:213+#, c-format+msgid ""+"Bond: %s\n"+msgstr ""+"Vínculo: %s\n"++#: src/cli/main.cpp:214+#, c-format+msgid ""+"Tether: %s\n"+msgstr ""+"Tether: %s\n"++#: src/cli/main.cpp:229+#, c-format+msgid ""+"\n"+"%zu setup step remaining. Run: tether --bt-setup\n"+msgid_plural ""+"\n"+"%zu setup steps remaining. Run: tether --bt-setup\n"+msgstr[0] ""+"\n"+"%zu paso de configuración pendiente. Ejecute: tether --bt-setup\n"+msgstr[1] ""+"\n"+"%zu pasos de configuración pendientes. Ejecute: tether --bt-setup\n"++#: src/cli/main.cpp:241+msgid ""+"Could not read Bluetooth devices from the daemon.\n"+msgstr ""+"No se pudieron leer los dispositivos Bluetooth del daemon.\n"++#: src/cli/main.cpp:247+#, c-format+msgid ""+"No Bluetooth devices known to BlueZ.\n"+msgstr ""+"BlueZ no conoce ningún dispositivo Bluetooth.\n"++#: src/cli/main.cpp:292 src/cli/main.cpp:503 src/cli/main.cpp:777+#: src/cli/main.cpp:797+msgid ""+"Could not reach the daemon.\n"+msgstr ""+"No se pudo contactar con el daemon.\n"++#: src/cli/main.cpp:301+msgid ""+"Daemon closed the connection before the operation finished.\n"+msgstr ""+"El daemon cerró la conexión antes de terminar la operación.\n"++#: src/cli/main.cpp:337+msgid ""+"Could not read Bluetooth connection state from the daemon.\n"+msgstr ""+"No se pudo leer el estado de la conexión Bluetooth del daemon.\n"++#: src/cli/main.cpp:342+#, c-format+msgid ""+"Device present: %s\n"+msgstr ""+"Dispositivo: %s\n"++#: src/cli/main.cpp:343+#, c-format+msgid ""+"BR/EDR: %s\n"+msgstr ""+"BR/EDR: %s\n"++#: src/cli/main.cpp:345+#, c-format+msgid ""+"LE: %s%s\n"+msgstr ""+"LE: %s%s\n"++#: src/cli/main.cpp:348+#, c-format+msgid "Messages (MAP): %s"+msgstr "Mensajes (MAP): %s"++#: src/cli/main.cpp:351+#, c-format+msgid ""+"\n"+"Contacts (PBAP): %s"+msgstr ""+"\n"+"Contactos (PBAP): %s"++#: src/cli/main.cpp:372+msgid ""+"Could not read Bluetooth diagnostics from the daemon.\n"+msgstr ""+"No se pudieron leer los diagnósticos de Bluetooth del daemon.\n"++#: src/cli/main.cpp:396+msgid ""+"Could not read notifications from the daemon.\n"+msgstr ""+"No se pudieron leer las notificaciones del daemon.\n"++#: src/cli/main.cpp:402+#, c-format+msgid ""+"No notifications yet. Check 'tether --bt-connection'.\n"+msgstr ""+"Aún no hay notificaciones. Compruebe 'tether --bt-connection'.\n"++#: src/cli/main.cpp:430+msgid ""+"Could not read conversations from the daemon.\n"+msgstr ""+"No se pudieron leer las conversaciones del daemon.\n"++#: src/cli/main.cpp:436+#, c-format+msgid ""+"No conversations yet. Check 'tether --bt-connection'.\n"+msgstr ""+"Aún no hay conversaciones. Compruebe 'tether --bt-connection'.\n"++#: src/cli/main.cpp:450+#, c++-format+msgid "({} unread)"+msgid_plural "({} unread)"+msgstr[0] "({} sin leer)"+msgstr[1] "({} sin leer)"++#: src/cli/main.cpp:471+msgid ""+"Could not read messages from the daemon.\n"+msgstr ""+"No se pudieron leer los mensajes del daemon.\n"++#: src/cli/main.cpp:477+#, c-format+msgid ""+"No messages in %s\n"+msgstr ""+"No hay mensajes en %s\n"++#: src/cli/main.cpp:485+msgid "me"+msgstr "yo"++#: src/cli/main.cpp:485+msgid "them"+msgstr "ellos"++#: src/cli/main.cpp:512+msgid ""+"Daemon closed the connection before the message was sent.\n"+msgstr ""+"El daemon cerró la conexión antes de enviar el mensaje.\n"++#: src/cli/main.cpp:534+#, c-format+msgid ""+"Sent to %s\n"+msgstr ""+"Enviado a %s\n"++#: src/cli/main.cpp:537 src/gtk/messages_view.cpp:497+msgid "The message was not sent."+msgstr "El mensaje no se envió."++#: src/cli/main.cpp:641+msgid ""+"Unknown action. Run tether --help for options\n"+msgstr ""+"Acción desconocida. Ejecute tether --help para ver las opciones\n"++#: src/cli/main.cpp:663+msgid ""+" No tetherd instances found.\n"+msgstr ""+" No se encontró ninguna instancia de tetherd.\n"++#: src/cli/main.cpp:667+msgid "[new]"+msgstr "[nuevo]"++#: src/cli/main.cpp:669+msgid "[known]"+msgstr "[conocido]"++#: src/cli/main.cpp:680+#, c-format+msgid ""+"Found %zu device in %.1fs\n"+msgid_plural ""+"Found %zu devices in %.1fs\n"+msgstr[0] ""+"Se encontró %zu dispositivo en %.1fs\n"+msgstr[1] ""+"Se encontraron %zu dispositivos en %.1fs\n"++#: src/cli/main.cpp:698+msgid ""+"Explicit framework connection locally rejected! Did you target explicitly invalid TLS or is daemon broken?\n"+msgstr ""+"¡Conexión rechazada localmente! ¿Ha indicado un TLS no válido o el daemon está averiado?\n"++#: src/cli/main.cpp:728+#, c++-format+msgid "Transfer Failed: {}"+msgstr "Fallo en la transferencia: {}"++#: src/cli/main.cpp:750+msgid ""+"A thread key is required, e.g. --bt-messages tel:+15551234567\n"+msgstr ""+"Se requiere una clave de conversación, p. ej. --bt-messages tel:+15551234567\n"++#: src/cli/main.cpp:756+msgid ""+"A conversation and a message are required, e.g. --bt-send tel:+15551234567 \"hi\"\n"+msgstr ""+"Se requieren una conversación y un mensaje, p. ej. --bt-send tel:+15551234567 \"hola\"\n"++#: src/cli/main.cpp:762+msgid ""+"A Bluetooth address is required, e.g. --bt-pair AA:BB:CC:DD:EE:FF\n"+msgstr ""+"Se requiere una dirección Bluetooth, p. ej. --bt-pair AA:BB:CC:DD:EE:FF\n"++#: src/cli/main.cpp:770+msgid ""+"Expected on or off, e.g. --bt-enable off\n"+msgstr ""+"Se esperaba on u off, p. ej. --bt-enable off\n"++#: src/cli/main.cpp:781+#, c-format+msgid ""+"Bluetooth enabled.\n"+msgstr ""+"Bluetooth activado.\n"++#: src/cli/main.cpp:784+#, c-format+msgid ""+"Bluetooth disabled. Tether will not reconnect the iPhone. A link that is\n"+"already up stays up until you disconnect it or the phone goes out of range.\n"+msgstr ""+"Bluetooth desactivado. Tether no volverá a conectar el iPhone. Un enlace que ya\n"+"esté activo seguirá activo hasta que lo desconecte o el teléfono quede fuera de alcance.\n"++#: src/cli/main.cpp:790+#, c++-format+msgid ""+"Expected on or off, e.g. {} on\n"+msgstr ""+"Se esperaba on u off, p. ej. {} on\n"++#: src/cli/main.cpp:803+msgid "Notification contents enabled."+msgstr "Contenido de las notificaciones activado."++#: src/cli/main.cpp:803+msgid "Notification contents disabled."+msgstr "Contenido de las notificaciones desactivado."++#: src/cli/main.cpp:804+msgid "Notification mirroring enabled."+msgstr "Duplicación de notificaciones activada."++#: src/cli/main.cpp:804+msgid "Notification mirroring disabled."+msgstr "Duplicación de notificaciones desactivada."++#: src/core/src/bluetooth/bearer_supervisor.cpp:62+msgid "The iPhone is not answering on LE. Its Bluetooth is wedged on its own side: turn Bluetooth off and back on on the iPhone, which clears this even when Share System Notifications is already on. Messages and contacts are unaffected."+msgstr "El iPhone no responde por LE. Su Bluetooth está bloqueado por su propio lado: apague y vuelva a encender el Bluetooth en el iPhone, lo que resuelve esto incluso si «Compartir notificaciones del sistema» ya está activado. Los mensajes y los contactos no se ven afectados."++#: src/core/src/bluetooth/bearer_supervisor.cpp:155+msgid "The iPhone keeps refusing the Bluetooth connection. Turn Bluetooth off and back on on the iPhone — that clears it even when the permissions are already on. Re-pairing is not the fix."+msgstr "El iPhone sigue rechazando la conexión Bluetooth. Apague y vuelva a encender el Bluetooth en el iPhone — eso lo resuelve incluso si los permisos ya están concedidos. Volver a emparejar no es la solución."++#: src/core/src/bluetooth/bearer_supervisor.cpp:159+msgid "Notifications are connected. Still reaching the iPhone for messages and contacts..."+msgstr "Las notificaciones están conectadas. Aún se intenta contactar con el iPhone para mensajes y contactos..."++#: src/core/src/bluetooth/bearer_supervisor.cpp:161+msgid "Connecting to the iPhone over Bluetooth..."+msgstr "Conectando con el iPhone por Bluetooth..."++#: src/core/src/bluetooth/bearer_supervisor.cpp:167+msgid "Connected. Notification mirroring is disabled."+msgstr "Conectado. La duplicación de notificaciones está desactivada."++#: src/core/src/bluetooth/bearer_supervisor.cpp:172+msgid "Connected. BlueZ is not exposing an LE bearer, so notifications are unavailable."+msgstr "Conectado. BlueZ no expone un bearer LE, así que las notificaciones no están disponibles."++#: src/core/src/bluetooth/bearer_supervisor.cpp:194+msgid "Connected. Waiting for the iPhone to open the LE link that carries notifications. If it does not, open Settings > Bluetooth > (i) on the iPhone and check Share System Notifications."+msgstr "Conectado. Esperando a que el iPhone abra el enlace LE que transporta las notificaciones. Si no lo hace, abra Ajustes > Bluetooth > (i) en el iPhone y compruebe «Compartir notificaciones del sistema»."++#: src/core/src/bluetooth/bearer_supervisor.cpp:200+msgid "Connected over BR/EDR and LE."+msgstr "Conectado por BR/EDR y LE."++#: src/core/src/bluetooth/connection.cpp:90 src/gtk/messages_view.cpp:362+#: src/gtk/messages_view.cpp:389+msgid "Messages are not connected."+msgstr "Los mensajes no están conectados."++#: src/core/src/bluetooth/connection.cpp:96+msgid "Could not build a message for this conversation."+msgstr "No se pudo componer un mensaje para esta conversación."++#: src/core/src/bluetooth/connection.cpp:176+msgid "That message is no longer in the conversation history."+msgstr "Ese mensaje ya no está en el historial de la conversación."++#: src/core/src/bluetooth/connection.cpp:195+msgid "The iPhone is not serving this message right now; marked read on this computer only."+msgstr "El iPhone no está sirviendo ese mensaje ahora mismo; se marcó como leído solo en este equipo."++#: src/core/src/bluetooth/connection.cpp:1159+msgid "No paired iPhone selected."+msgstr "No hay ningún iPhone emparejado seleccionado."++#: src/core/src/bluetooth/groups.cpp:278+msgid "Group replies are turned off."+msgstr "Las respuestas a grupos están desactivadas."++#: src/core/src/bluetooth/groups.cpp:288+#, c++-format+msgid "The roster for this group contains an unusable address: {}"+msgstr "La lista de miembros de este grupo contiene una dirección inutilizable: {}"++#: src/core/src/bluetooth/groups.cpp:295+msgid "The roster for this group is empty."+msgstr "La lista de miembros de este grupo está vacía."++#: src/core/src/bluetooth/groups.cpp:303+msgid "This conversation has not been identified as a group yet, so there is nobody to reply to."+msgstr "Esta conversación aún no se ha identificado como un grupo, así que no hay a quién responder."++#: src/core/src/bluetooth/groups.cpp:308+msgid "This group has a name but no member list. Add its members before replying."+msgstr "Este grupo tiene nombre pero no lista de miembros. Añada sus miembros antes de responder."++#: src/core/src/bluetooth/groups.cpp:315+#, c++-format+msgid "\"{}\" is not in your contacts."+msgstr "«{}» no está en sus contactos."++#: src/core/src/bluetooth/groups.cpp:320+#, c++-format+msgid "\"{}\" matches more than one contact address."+msgstr "«{}» coincide con más de una dirección de contacto."++#: src/core/src/bluetooth/groups.cpp:328+#, c++-format+msgid "\"{0}\" resolved to an unusable address: {1}"+msgstr "«{0}» se resolvió a una dirección inutilizable: {1}"++#: src/core/src/bluetooth/groups.cpp:336+msgid "No recipients could be resolved for this group."+msgstr "No se pudo resolver ningún destinatario para este grupo."++#: src/core/src/bluetooth/objects.cpp:356+msgid "No Bluetooth adapter found."+msgstr "No se encontró ningún adaptador Bluetooth."++#: src/core/src/bluetooth/objects.cpp:386+msgid "Bluetooth adapter is powered off."+msgstr "El adaptador Bluetooth está apagado."++#: src/core/src/bluetooth/objects.cpp:391+msgid "Adapter has no LE central role; ANCS is impossible."+msgstr "El adaptador no tiene rol central LE; ANCS es imposible."++#: src/core/src/bluetooth/objects.cpp:400+msgid "Adapter cannot advertise as a peripheral, so ANCS cannot be solicited."+msgstr "El adaptador no puede anunciarse como periférico, así que no se puede solicitar ANCS."++#: src/core/src/bluetooth/objects.cpp:404+msgid "No LE advertising instances available; the iPhone may never show its Bluetooth permission toggles."+msgstr "No hay instancias de anuncio LE disponibles; puede que el iPhone nunca muestre sus permisos de Bluetooth."++#: src/core/src/bluetooth/objects.cpp:409+msgid "Notification mirroring needs BlueZ's experimental bearer API (org.bluez.Bearer.LE1), which bluetoothd is not exposing. Set this up before pairing: a bond made without it has no LE half."+msgstr "La duplicación de notificaciones necesita la API bearer experimental de BlueZ (org.bluez.Bearer.LE1), que bluetoothd no está exponiendo. Configúrela antes de emparejar: un vínculo creado sin ella no tiene mitad LE."++#: src/core/src/bluetooth/objects.cpp:416+msgid "Bearer API support is unconfirmed until a device is bonded."+msgstr "La compatibilidad con la API bearer no se puede confirmar hasta que haya un dispositivo vinculado."++#: src/core/src/bluetooth/objects.cpp:420+msgid "A device is bonded, but the bond covers BR/EDR only -- no LE keys were derived, so notification mirroring cannot work on it. Delete this computer on the iPhone (Forget This Device) and pair again."+msgstr "Hay un dispositivo vinculado, pero el vínculo cubre solo BR/EDR: no se derivaron claves LE, así que la duplicación de notificaciones no puede funcionar con él. Elimine este equipo en el iPhone (Olvidar este dispositivo) y empareje de nuevo."++#: src/core/src/bluetooth/objects.cpp:425+msgid "Secure Connections is off on this controller, which is what blocks the derivation; re-pairing will not help until it is on."+msgstr "«Conexiones seguras» está desactivado en esta controladora, y eso es lo que bloquea la derivación; volver a emparejar no servirá hasta que esté activado."++#: src/core/src/bluetooth/objects.cpp:430+msgid "The iPhone will not offer its Messages and Contacts permissions until this adapter presents itself as A/V Hands-Free (major 4, minor 8)."+msgstr "El iPhone no ofrecerá sus permisos de Mensajes y Contactos hasta que este adaptador se presente como manos libres A/V (mayor 4, menor 8)."++#: src/core/src/bluetooth/pairing.cpp:408+#, c++-format+msgid ""+"{0} wants to pair.\n"+"\n"+"Confirm this code matches the one on your iPhone:\n"+"\n"+"{1}"+msgstr ""+"{0} quiere emparejarse.\n"+"\n"+"Confirme que este código coincide con el del iPhone:\n"+"\n"+"{1}"++#: src/core/src/bluetooth/pairing.cpp:409+msgid "Bluetooth Pairing"+msgstr "Emparejamiento Bluetooth"++#: src/core/src/bluetooth/pairing.cpp:410+msgid "Confirm"+msgstr "Confirmar"++#: src/core/src/bluetooth/pairing.cpp:411 src/gtk/messages_view.cpp:891+msgid "Cancel"+msgstr "Cancelar"++#. TRANSLATORS: the feature name Tether shows for this profile.+#: src/core/src/bluetooth/profile_supervisor.cpp:76 src/daemon/main.cpp:152+#: src/gtk/devices_view.cpp:196 src/gtk/main.cpp:126+msgid "Messages"+msgstr "Mensajes"++#: src/core/src/bluetooth/profile_supervisor.cpp:76+#: src/gtk/devices_view.cpp:198+msgid "Contacts"+msgstr "Contactos"++#. TRANSLATORS: these two are toggle names in the iPhone's own Settings app.+#. Use Apple's wording for the target language, not a literal translation.+#: src/core/src/bluetooth/profile_supervisor.cpp:79+msgid "Show Message Notifications"+msgstr "Mostrar notificaciones de mensajes"++#: src/core/src/bluetooth/profile_supervisor.cpp:79+msgid "Sync Contacts"+msgstr "Sincronizar contactos"++#. TRANSLATORS: {} is an iPhone Settings toggle name.+#: src/core/src/bluetooth/profile_supervisor.cpp:84+#, c++-format+msgid "Enable \"{}\" for this computer in the iPhone's Settings > Bluetooth > (i). This is a permission, not a pairing problem."+msgstr "Active «{}» para este equipo en Ajustes > Bluetooth > (i) del iPhone. Es un permiso, no un problema de emparejamiento."++#. TRANSLATORS: {0} is Messages or Contacts, {1} is the profile name (map or pbap).+#: src/core/src/bluetooth/profile_supervisor.cpp:89+#, c++-format+msgid "{0} is unavailable because another computer is using the iPhone's {1} session. Disconnect it there, then this will connect on its own."+msgstr "{0} no está disponible porque otro equipo está usando la sesión {1} del iPhone. Desconéctelo allí y esto se conectará solo."++#. TRANSLATORS: {0} is Messages or Contacts, {1} is an iPhone Settings toggle name.+#: src/core/src/bluetooth/profile_supervisor.cpp:97+#, c++-format+msgid "{0} could not be fetched from the iPhone. Usually another computer holds the phone's Bluetooth session, or \"{1}\" is off in Settings > Bluetooth > (i). Check both; re-pairing is not the fix."+msgstr "No se pudo obtener {0} del iPhone. Normalmente otro equipo tiene la sesión Bluetooth del teléfono, o «{1}» está desactivado en Ajustes > Bluetooth > (i). Compruebe ambas cosas; volver a emparejar no es la solución."++#: src/core/src/bluetooth/profile_supervisor.cpp:103+#, c++-format+msgid "{} is unreachable; waiting for the iPhone to come back."+msgstr "{} no es accesible; esperando a que vuelva el iPhone."++#: src/core/src/bluetooth/profile_supervisor.cpp:105+#, c++-format+msgid "{} needs BlueZ's OBEX daemon, which is not installed on this computer. Install it (bluez-obex on Arch, bluez-obexd on Debian and Ubuntu). Nothing needs changing on the iPhone."+msgstr "{} necesita el daemon OBEX de BlueZ, que no está instalado en este equipo. Instálelo (bluez-obex en Arch, bluez-obexd en Debian y Ubuntu). No hay que cambiar nada en el iPhone."++#: src/core/src/bluetooth/profile_supervisor.cpp:110+#, c++-format+msgid "{} could not be opened."+msgstr "No se pudo abrir {}."++#: src/core/src/bluetooth/profile_supervisor.cpp:179+msgid "Waiting for the Bluetooth link."+msgstr "Esperando el enlace Bluetooth."++#: src/core/src/bluetooth/profile_supervisor.cpp:184+#: src/core/src/bluetooth/profile_supervisor.cpp:201+msgid "Messages and contacts are connected."+msgstr "Los mensajes y los contactos están conectados."++#: src/core/src/bluetooth/profile_supervisor.cpp:208+msgid "Opening messages and contacts..."+msgstr "Abriendo mensajes y contactos..."++#. TRANSLATORS: {0} is the device name, {1} is a shortened key fingerprint.+#: src/core/src/net.cpp:1421+#, c++-format+msgid "{0} ({1}) wants to pair with this device."+msgstr "{0} ({1}) quiere emparejarse con este dispositivo."++#: src/core/src/net.cpp:1422+msgid "Pairing Request"+msgstr "Solicitud de emparejamiento"++#: src/core/src/net.cpp:1423+msgid "Accept"+msgstr "Aceptar"++#: src/core/src/net.cpp:1424+msgid "Reject"+msgstr "Rechazar"++#: src/daemon/notification.cpp:177+msgid "File arrived"+msgstr "Archivo recibido"++#: src/daemon/notification.cpp:188+msgid "Open File"+msgstr "Abrir archivo"++#: src/daemon/notification.cpp:190+msgid "Open Folder"+msgstr "Abrir carpeta"++#: src/daemon/notification.cpp:233+msgid "Reply"+msgstr "Responder"++#: src/gtk/daemon_client.cpp:56 src/gtk/daemon_client.cpp:163+msgid "Daemon Offline"+msgstr "Daemon desconectado"++#: src/gtk/daemon_client.cpp:57 src/gtk/daemon_client.cpp:58+#: src/gtk/daemon_client.cpp:164 src/gtk/daemon_client.cpp:165+#: src/gtk/messages_view.cpp:736+msgid "The Tether daemon is not running."+msgstr "El daemon de Tether no se está ejecutando."++#: src/gtk/daemon_client.cpp:190+msgid "Daemon Online"+msgstr "Daemon conectado"++#: src/gtk/devices_view.cpp:109 src/gtk/devices_view.cpp:115+msgid "Connected."+msgstr "Conectado."++#: src/gtk/devices_view.cpp:109 src/gtk/devices_view.cpp:113+msgid "Not connected yet."+msgstr "Aún no conectado."++#: src/gtk/devices_view.cpp:117 src/gtk/devices_view.cpp:158+msgid "Bluetooth is unavailable on this machine."+msgstr "Bluetooth no está disponible en este equipo."++#: src/gtk/devices_view.cpp:160+msgid "Full mode — messages, contacts, and notifications."+msgstr "Modo completo — mensajes, contactos y notificaciones."++#: src/gtk/devices_view.cpp:162+msgid "Compatibility mode — messages and contacts, no notification mirroring."+msgstr "Modo de compatibilidad — mensajes y contactos, sin duplicación de notificaciones."++#: src/gtk/devices_view.cpp:164+msgid "This machine cannot carry the Bluetooth features."+msgstr "Este equipo no puede ofrecer las funciones Bluetooth."++#: src/gtk/devices_view.cpp:189+msgid "Link"+msgstr "Enlace"++#: src/gtk/devices_view.cpp:202 src/gtk/main.cpp:127+msgid "Notifications"+msgstr "Notificaciones"++#: src/gtk/devices_view.cpp:210+msgid "Not paired over Bluetooth yet."+msgstr "Aún no emparejado por Bluetooth."++#: src/gtk/devices_view.cpp:212+msgid "Tether is not using this device. Pair it to select it."+msgstr "Tether no está usando este dispositivo. Empareje para seleccionarlo."++#: src/gtk/devices_view.cpp:216+msgid "Bluetooth is switched off for this iPhone."+msgstr "Bluetooth está desactivado para este iPhone."++#: src/gtk/devices_view.cpp:286+msgid "Connected and ready."+msgstr "Conectado y listo."++#: src/gtk/devices_view.cpp:287+msgid "Device is offline. Open the Tether app on iPhone while on the same network."+msgstr "El dispositivo está desconectado. Abra la app Tether en el iPhone estando en la misma red."++#: src/gtk/devices_view.cpp:298+#, c++-format+msgid "Found at {0}:{1}"+msgstr "Encontrado en {0}:{1}"++#: src/gtk/devices_view.cpp:329+msgid "Sending pair request..."+msgstr "Enviando solicitud de emparejamiento..."++#: src/gtk/devices_view.cpp:335+msgid "Pair request sent. Approve on remote device!"+msgstr "Solicitud de emparejamiento enviada. ¡Apruébela en el dispositivo remoto!"++#: src/gtk/devices_view.cpp:351 src/gtk/devices_view.cpp:406+#: src/gtk/messages_view.cpp:339+msgid "Could not reach the Tether daemon."+msgstr "No se pudo contactar con el daemon de Tether."++#: src/gtk/devices_view.cpp:355+msgid "Pairing… confirm the prompt on the iPhone."+msgstr "Emparejando… confirme el aviso en el iPhone."++#: src/gtk/devices_view.cpp:366+#, c-format+msgid "Remove the Bluetooth pairing with %s?"+msgstr "¿Eliminar el emparejamiento Bluetooth con %s?"++#: src/gtk/devices_view.cpp:370+msgid "Also delete this computer from the iPhone's Bluetooth settings before pairing again, or the phone will keep the stale bond."+msgstr "Elimine también este equipo de los ajustes de Bluetooth del iPhone antes de volver a emparejar, o el teléfono conservará el vínculo obsoleto."++#: src/gtk/devices_view.cpp:378+msgid "Removing the pairing…"+msgstr "Eliminando el emparejamiento…"++#: src/gtk/devices_view.cpp:401+msgid "Setup commands copied to the clipboard."+msgstr "Comandos de configuración copiados al portapapeles."++#: src/gtk/devices_view.cpp:409 src/gtk/messages_view.cpp:342+msgid "Asking the iPhone to show its Bluetooth permissions…"+msgstr "Pidiendo al iPhone que muestre sus permisos de Bluetooth…"++#. TRANSLATORS: {} is a file name.+#: src/gtk/devices_view.cpp:418+#, c++-format+msgid "Sending {}…"+msgstr "Enviando {}…"++#. TRANSLATORS: {0} is the current file's position, {1} the batch size.+#: src/gtk/devices_view.cpp:422+#, c++-format+msgid "({0} of {1})"+msgstr "({0} de {1})"++#: src/gtk/devices_view.cpp:437+msgid "Daemon unavailable."+msgstr "Daemon no disponible."++#: src/gtk/devices_view.cpp:457 src/gtk/devices_view.cpp:1247+msgid "Send File"+msgstr "Enviar archivo"++#: src/gtk/devices_view.cpp:528+msgid "Folders can't be sent — drop files instead."+msgstr "No se pueden enviar carpetas — suelte archivos en su lugar."++#: src/gtk/devices_view.cpp:538+msgid "Clipboard, files, and OTP are connected."+msgstr "El portapapeles, los archivos y los OTP están conectados."++#: src/gtk/devices_view.cpp:539+msgid "No paired iPhone is connected. Open the Tether app on the phone."+msgstr "No hay ningún iPhone emparejado conectado. Abra la app Tether en el teléfono."++#: src/gtk/devices_view.cpp:551 src/gtk/devices_view.cpp:562+#: src/gtk/devices_view.cpp:599 src/gtk/devices_view.cpp:814+#: src/gtk/devices_view.cpp:815+msgid "Unknown Device"+msgstr "Dispositivo desconocido"++#: src/gtk/devices_view.cpp:581+msgid "Scanning for nearby devices..."+msgstr "Buscando dispositivos cercanos..."++#: src/gtk/devices_view.cpp:638 src/gtk/devices_view.cpp:672+msgid "Connected"+msgstr "Conectado"++#: src/gtk/devices_view.cpp:638+msgid "Offline"+msgstr "Desconectado"++#: src/gtk/devices_view.cpp:638 src/gtk/devices_view.cpp:672+msgid "Nearby (Tap to Pair)"+msgstr "Cerca (toque para emparejar)"++#: src/gtk/devices_view.cpp:672+msgid "Paired"+msgstr "Emparejado"++#: src/gtk/devices_view.cpp:881 src/gtk/devices_view.cpp:1266+msgid "Ready"+msgstr "Listo"++#: src/gtk/devices_view.cpp:903+#, c++-format+msgid "Sent {0} of {1} file."+msgid_plural "Sent {0} of {1} files."+msgstr[0] "Enviado {0} de {1} archivo."+msgstr[1] "Enviados {0} de {1} archivos."++#: src/gtk/devices_view.cpp:912+#, c++-format+msgid "Skipped {} non-file item."+msgid_plural "Skipped {} non-file items."+msgstr[0] "Se omitió {} elemento que no es un archivo."+msgstr[1] "Se omitieron {} elementos que no son archivos."++#: src/gtk/devices_view.cpp:923+msgid "Desktop Clipboard Sync triggered."+msgstr "Sincronización del portapapeles del escritorio iniciada."++#: src/gtk/devices_view.cpp:949+msgid "Messages and notifications are connected."+msgstr "Los mensajes y las notificaciones están conectados."++#: src/gtk/devices_view.cpp:964+msgid "No iPhone found. Unlock the phone and open Settings > Bluetooth so it advertises, then scan again."+msgstr "No se encontró ningún iPhone. Desbloquee el teléfono y abra Ajustes > Bluetooth para que se anuncie, y vuelva a buscar."++#: src/gtk/devices_view.cpp:1013+msgid "Connect your iPhone"+msgstr "Conecte su iPhone"++#: src/gtk/devices_view.cpp:1058+msgid "clipboard, files, OTP"+msgstr "portapapeles, archivos, OTP"++#: src/gtk/devices_view.cpp:1059+msgid ""+"1. Open the Tether app on the iPhone\n"+"2. It finds this computer by itself\n"+"3. Approve on both ends"+msgstr ""+"1. Abra la app Tether en el iPhone\n"+"2. Encontrará este equipo por sí sola\n"+"3. Apruebe en ambos extremos"++#: src/gtk/devices_view.cpp:1067+msgid "messages, notifications"+msgstr "mensajes, notificaciones"++#: src/gtk/devices_view.cpp:1068+msgid ""+"1. Pick the iPhone under BLUETOOTH\n"+"2. Press Pair over Bluetooth\n"+"3. Grant the two toggles on the phone"+msgstr ""+"1. Elija el iPhone en BLUETOOTH\n"+"2. Pulse Emparejar por Bluetooth\n"+"3. Conceda los dos permisos en el teléfono"++#: src/gtk/devices_view.cpp:1076+msgid "Scan for devices"+msgstr "Buscar dispositivos"++#: src/gtk/devices_view.cpp:1101+msgid "Bluetooth needs one-time system setup"+msgstr "Bluetooth necesita una configuración inicial del sistema"++#: src/gtk/devices_view.cpp:1119+msgid "Copy commands"+msgstr "Copiar comandos"++#: src/gtk/devices_view.cpp:1121+msgid "Run these in a terminal. Tether does not change your Bluetooth adapter or bluetoothd on its own."+msgstr "Ejecute esto en un terminal. Tether no cambia por su cuenta su adaptador Bluetooth ni bluetoothd."++#: src/gtk/devices_view.cpp:1145+msgid "Connect to this iPhone over Bluetooth"+msgstr "Conectar con este iPhone por Bluetooth"++#: src/gtk/devices_view.cpp:1147+msgid "Keep the Bluetooth link to the iPhone up, reconnecting whenever it drops. Turning this off stops Tether reconnecting; a link that is already up stays up until you disconnect it."+msgstr "Mantener activo el enlace Bluetooth con el iPhone, reconectando cada vez que se caiga. Desactivar esto impide que Tether reconecte; un enlace que ya esté activo seguirá activo hasta que lo desconecte."++#: src/gtk/devices_view.cpp:1154+msgid "Mirror iPhone notifications"+msgstr "Duplicar las notificaciones del iPhone"++#: src/gtk/devices_view.cpp:1156+msgid "Show notifications from the iPhone on this desktop. Turned off automatically when pairing produces no LE bond; turn it back on after re-pairing."+msgstr "Mostrar en este escritorio las notificaciones del iPhone. Se desactiva automáticamente cuando el emparejamiento no produce vínculo LE; vuelva a activarlo después de emparejar de nuevo."++#: src/gtk/devices_view.cpp:1162+msgid "Show notification contents"+msgstr "Mostrar el contenido de las notificaciones"++#: src/gtk/devices_view.cpp:1164+msgid "Ask the iPhone for each notification's title and message text, not just which app sent it. The phone's own Show Message Notifications toggle still has to be on."+msgstr "Pedir al iPhone el título y el texto de cada notificación, no solo qué app la envió. El propio ajuste «Mostrar notificaciones de mensajes» del teléfono debe seguir activado."++#: src/gtk/devices_view.cpp:1177+msgid "Pair over Bluetooth"+msgstr "Emparejar por Bluetooth"++#: src/gtk/devices_view.cpp:1182 src/gtk/messages_view.cpp:818+msgid "Show iPhone Permissions"+msgstr "Mostrar permisos del iPhone"++#: src/gtk/devices_view.cpp:1184 src/gtk/messages_view.cpp:821+msgid "Re-advertise so the iPhone shows its Show Message Notifications and Sync Contacts toggles under Settings > Bluetooth > (i)."+msgstr "Volver a anunciarse para que el iPhone muestre sus ajustes «Mostrar notificaciones de mensajes» y «Sincronizar contactos» en Ajustes > Bluetooth > (i)."++#: src/gtk/devices_view.cpp:1189+msgid "Unpair"+msgstr "Desemparejar"++#: src/gtk/devices_view.cpp:1212+msgid "Pair Device"+msgstr "Emparejar dispositivo"++#: src/gtk/devices_view.cpp:1218+msgid "Force Trust (Accept Pending)"+msgstr "Forzar confianza (aceptar pendiente)"++#: src/gtk/devices_view.cpp:1243+msgid "Drop files here to send"+msgstr "Suelte archivos aquí para enviarlos"++#: src/gtk/devices_view.cpp:1252+msgid "Send Clipboard"+msgstr "Enviar portapapeles"++#: src/gtk/devices_view.cpp:1259+msgid "Clipboard sync requested..."+msgstr "Sincronización del portapapeles solicitada..."++#: src/gtk/main.cpp:55+msgid "Keep running in tray when closed"+msgstr "Seguir ejecutándose en la bandeja al cerrar"++#: src/gtk/main.cpp:65+msgid "Quit"+msgstr "Salir"++#: src/gtk/main.cpp:101 src/gtk/main.cpp:109 src/gtk/tether-gtk.desktop.in:2+msgid "Tether"+msgstr "Tether"++#: src/gtk/main.cpp:125+msgid "Devices"+msgstr "Dispositivos"++#: src/gtk/main.cpp:174+msgid "Start hidden in the system tray"+msgstr "Iniciar oculto en la bandeja del sistema"++#: src/gtk/main.cpp:178+msgid "Open on this tab"+msgstr "Abrir en esta pestaña"++#: src/gtk/main.cpp:185+msgid "Open the messages tab on this conversation"+msgstr "Abrir la pestaña de mensajes en esta conversación"++#: src/gtk/messages_view.cpp:387 src/gtk/messages_view.cpp:461+msgid "Sending…"+msgstr "Enviando…"++#: src/gtk/messages_view.cpp:392+msgid "Enter a recipient."+msgstr "Introduzca un destinatario."++#: src/gtk/messages_view.cpp:394+msgid "Select a conversation first."+msgstr "Seleccione primero una conversación."++#: src/gtk/messages_view.cpp:398+msgid "Replying to this conversation is not available."+msgstr "No se puede responder a esta conversación."++#: src/gtk/messages_view.cpp:435+msgid "No answer about that message; it may still have been sent."+msgstr "No hay respuesta sobre ese mensaje; puede que se haya enviado igualmente."++#: src/gtk/messages_view.cpp:450+msgid "Could not reach the Tether daemon; the message was not sent."+msgstr "No se pudo contactar con el daemon de Tether; el mensaje no se envió."++#: src/gtk/messages_view.cpp:494+msgid "Sent"+msgstr "Enviado"++#: src/gtk/messages_view.cpp:646 src/gtk/messages_view.cpp:840+msgid "New Message"+msgstr "Mensaje nuevo"++#: src/gtk/messages_view.cpp:860+msgid "Select a conversation"+msgstr "Seleccione una conversación"++#: src/gtk/messages_view.cpp:872+msgid "Phone number or email"+msgstr "Número de teléfono o correo electrónico"++#: src/gtk/messages_view.cpp:951+msgid "Send"+msgstr "Enviar"++#: src/gtk/notifications_view.cpp:86+msgid "New notification"+msgstr "Notificación nueva"++#: src/gtk/notifications_view.cpp:148+msgid "No notifications yet."+msgstr "Aún no hay notificaciones."++#: src/gtk/notifications_view.cpp:149+msgid "Notification mirroring is unavailable."+msgstr "La duplicación de notificaciones no está disponible."++#: src/gtk/notifications_view.cpp:164+msgid "Waiting for the iPhone."+msgstr "Esperando al iPhone."++#: src/gtk/tray.cpp:277+msgid "connected"+msgstr "conectado"++#: src/gtk/tray.cpp:277+msgid "not connected"+msgstr "no conectado"++#. TRANSLATORS: {} is a transport name, "Wi-Fi" or "Bluetooth".+#: src/gtk/tray.cpp:279+#, c++-format+msgid "{}: {}"+msgstr "{}: {}"++#: src/gtk/tray.cpp:282+msgid "Daemon: not running"+msgstr "Daemon: no se está ejecutando"++#: src/gtk/tray.cpp:284+#, c++-format+msgid "{} unread message"+msgid_plural "{} unread messages"+msgstr[0] "{} mensaje sin leer"+msgstr[1] "{} mensajes sin leer"++#: src/gtk/tether-gtk.desktop.in:3+msgid "Device Synchronization"+msgstr "Sincronización de dispositivos"++#: src/gtk/tether-gtk.desktop.in:4+msgid "Pair devices and synchronize clipboard across the network"+msgstr "Empareje dispositivos y sincronice el portapapeles a través de la red"diff --git a/po/fr.po b/po/fr.ponew file mode 100644index 0000000..9ebcd0d--- /dev/null+++ b/po/fr.po@@ -0,0 +1,1143 @@+# French translation of Tether.+# DRAFT — machine-assisted, not reviewed by a native speaker. Corrections welcome:+# https://github.com/zackb/tether+# Copyright (C) 2026 the Tether authors+# This file is distributed under the same license as the tether package.+#+msgid ""+msgstr ""+"Project-Id-Version: tether\n"+"Report-Msgid-Bugs-To: [email protected]\n"+"POT-Creation-Date: 2026-08-22\n"+"PO-Revision-Date: 2026-08-22\n"+"Last-Translator: Tether project\n"+"Language-Team: French\n"+"Language: fr\n"+"MIME-Version: 1.0\n"+"Content-Type: text/plain; charset=UTF-8\n"+"Content-Transfer-Encoding: 8bit\n"+"Plural-Forms: nplurals=2; plural=(n > 1);\n"+++#. TRANSLATORS: keep the flag names and the column alignment; only the+#. descriptions after them are prose.+#: src/cli/main.cpp:101+msgid ""+"tether - Wayland companion CLI\n"+"\n"+"Options:\n"+" -h, --help Show this help message.\n"+" -g, --get-clipboard Retrieve the current Wayland clipboard text.\n"+" -s, --set-clipboard Take string input and copy it to the local Wayland clipboard.\n"+" -f, --send-file Send a file through tether.\n"+" -n, --native-host Start the browser Native Messaging Host proxy loop.\n"+" -d, --discover Scan the local network for tetherd instances via mDNS.\n"+" --host <ip> Connect over TCP to daemon ip instead of UNIX Socket.\n"+" --port <num> Connect over TCP port (default 5134).\n"+" --timeout <ms> Discovery scan duration in milliseconds (default 3000).\n"+" --list-devices List all paired connection devices.\n"+" --bt-setup Show the one-time system setup Bluetooth still needs.\n"+" --bt-status Show Bluetooth adapter capability and delivery mode.\n"+" --bt-devices List Bluetooth devices known to BlueZ.\n"+" --bt-connection Show Bluetooth link and profile connection state.\n"+" --bt-threads List iPhone message conversations.\n"+" --bt-messages <thread> Show messages in one conversation.\n"+" --bt-send <thread> <text> Reply in one conversation.\n"+" --bt-pair <addr> Pair with an iPhone over Bluetooth.\n"+" --bt-unpair <addr> Remove a Bluetooth bond.\n"+" --bt-solicit Re-advertise for ANCS so the iPhone shows its permission\n"+" toggles again, without removing the bond.\n"+" --bt-enable <on|off> Connect to the iPhone over Bluetooth, or stop.\n"+" --bt-ancs <on|off> Turn notification mirroring on or off.\n"+" --bt-ancs-content <on|off> Mirror notification titles and bodies, not just the app.\n"+" --bt-notifications List mirrored iPhone notifications.\n"+" --bt-diagnostics Print a redacted Bluetooth report for a bug report.\n"+" --accept <fingerprint> Accept a pending pairing request locally.\n"+" --pair Send a pair_request over TCP to the daemon.\n"+"\n"+"Examples:\n"+" tether -g\n"+" tether -g --host 127.0.0.1\n"+" echo \"pipe\" | tether -s\n"+" tether --discover\n"+" tether --discover --timeout 5000\n"+" tether -f ./report.pdf\n"+" tether --accept 9a4f21...\n"+msgstr ""+"tether - utilitaire compagnon pour Wayland\n"+"\n"+"Options :\n"+" -h, --help Afficher cette aide.\n"+" -g, --get-clipboard Récupérer le texte actuel du presse-papiers Wayland.\n"+" -s, --set-clipboard Lire du texte sur l'entrée et le copier dans le presse-papiers Wayland local.\n"+" -f, --send-file Envoyer un fichier via tether.\n"+" -n, --native-host Démarrer la boucle proxy Native Messaging Host du navigateur.\n"+" -d, --discover Rechercher des instances de tetherd sur le réseau local via mDNS.\n"+" --host <ip> Se connecter en TCP à l'ip du démon au lieu de la socket UNIX.\n"+" --port <num> Port TCP de connexion (5134 par défaut).\n"+" --timeout <ms> Durée de la recherche en millisecondes (3000 par défaut).\n"+" --list-devices Lister tous les appareils appairés.\n"+" --bt-setup Afficher la configuration système ponctuelle encore requise par Bluetooth.\n"+" --bt-status Afficher les capacités de l'adaptateur Bluetooth et le mode de livraison.\n"+" --bt-devices Lister les appareils Bluetooth connus de BlueZ.\n"+" --bt-connection Afficher l'état du lien et des profils Bluetooth.\n"+" --bt-threads Lister les conversations de l'iPhone.\n"+" --bt-messages <thread> Afficher les messages d'une conversation.\n"+" --bt-send <thread> <text> Répondre dans une conversation.\n"+" --bt-pair <addr> Appairer un iPhone en Bluetooth.\n"+" --bt-unpair <addr> Supprimer un lien Bluetooth.\n"+" --bt-solicit Se réannoncer pour ANCS afin que l'iPhone affiche de nouveau ses\n"+" autorisations, sans supprimer le lien.\n"+" --bt-enable <on|off> Se connecter à l'iPhone en Bluetooth, ou arrêter.\n"+" --bt-ancs <on|off> Activer ou désactiver la duplication des notifications.\n"+" --bt-ancs-content <on|off> Dupliquer les titres et le contenu des notifications, pas seulement l'app.\n"+" --bt-notifications Lister les notifications dupliquées de l'iPhone.\n"+" --bt-diagnostics Afficher un rapport Bluetooth expurgé pour un rapport de bogue.\n"+" --accept <fingerprint> Accepter localement une demande d'appairage en attente.\n"+" --pair Envoyer un pair_request au démon en TCP.\n"+"\n"+"Exemples :\n"+" tether -g\n"+" tether -g --host 127.0.0.1\n"+" echo \"pipe\" | tether -s\n"+" tether --discover\n"+" tether --discover --timeout 5000\n"+" tether -f ./report.pdf\n"+" tether --accept 9a4f21...\n"++#: src/cli/main.cpp:148 src/cli/main.cpp:188+msgid ""+"Could not read Bluetooth status from the daemon.\n"+msgstr ""+"Impossible de lire l'état Bluetooth depuis le démon.\n"++#: src/cli/main.cpp:153 src/cli/main.cpp:193+#, c-format+msgid ""+"Bluetooth: unavailable (is bluetoothd running?)\n"+msgstr ""+"Bluetooth : indisponible (bluetoothd est-il lancé ?)\n"++#: src/cli/main.cpp:160+#, c-format+msgid ""+"Bluetooth setup is complete. Nothing to do.\n"+msgstr ""+"La configuration Bluetooth est terminée. Rien à faire.\n"++#: src/cli/main.cpp:165+#, c-format+msgid ""+"\n"+"%zu step left before the iPhone Bluetooth features work:\n"+msgid_plural ""+"\n"+"%zu steps left before the iPhone Bluetooth features work:\n"+msgstr[0] ""+"\n"+"%zu étape restante avant que les fonctions Bluetooth de l'iPhone marchent :\n"+msgstr[1] ""+"\n"+"%zu étapes restantes avant que les fonctions Bluetooth de l'iPhone marchent :\n"++#: src/cli/main.cpp:179+#, c-format+msgid ""+"\n"+"Re-run 'tether --bt-setup' afterwards to confirm.\n"+msgstr ""+"\n"+"Relancez ensuite 'tether --bt-setup' pour vérifier.\n"++#: src/cli/main.cpp:198+#, c-format+msgid ""+"Mode: %s\n"+msgstr ""+"Mode : %s\n"++#: src/cli/main.cpp:199+#, c-format+msgid ""+"Bearer API: %s\n"+msgstr ""+"API bearer : %s\n"++#: src/cli/main.cpp:201+#, c-format+msgid ""+"Adapter: powered=%s central=%s peripheral=%s advertising=%s class=%s\n"+msgstr ""+"Adaptateur : powered=%s central=%s peripheral=%s advertising=%s class=%s\n"++#: src/cli/main.cpp:208+#, c-format+msgid ""+" secure-connections=%s\n"+msgstr ""+" secure-connections=%s\n"++#: src/cli/main.cpp:213+#, c-format+msgid ""+"Bond: %s\n"+msgstr ""+"Lien : %s\n"++#: src/cli/main.cpp:214+#, c-format+msgid ""+"Tether: %s\n"+msgstr ""+"Tether : %s\n"++#: src/cli/main.cpp:229+#, c-format+msgid ""+"\n"+"%zu setup step remaining. Run: tether --bt-setup\n"+msgid_plural ""+"\n"+"%zu setup steps remaining. Run: tether --bt-setup\n"+msgstr[0] ""+"\n"+"%zu étape de configuration restante. Lancez : tether --bt-setup\n"+msgstr[1] ""+"\n"+"%zu étapes de configuration restantes. Lancez : tether --bt-setup\n"++#: src/cli/main.cpp:241+msgid ""+"Could not read Bluetooth devices from the daemon.\n"+msgstr ""+"Impossible de lire les appareils Bluetooth depuis le démon.\n"++#: src/cli/main.cpp:247+#, c-format+msgid ""+"No Bluetooth devices known to BlueZ.\n"+msgstr ""+"Aucun appareil Bluetooth connu de BlueZ.\n"++#: src/cli/main.cpp:292 src/cli/main.cpp:503 src/cli/main.cpp:777+#: src/cli/main.cpp:797+msgid ""+"Could not reach the daemon.\n"+msgstr ""+"Impossible de joindre le démon.\n"++#: src/cli/main.cpp:301+msgid ""+"Daemon closed the connection before the operation finished.\n"+msgstr ""+"Le démon a fermé la connexion avant la fin de l'opération.\n"++#: src/cli/main.cpp:337+msgid ""+"Could not read Bluetooth connection state from the daemon.\n"+msgstr ""+"Impossible de lire l'état de la connexion Bluetooth depuis le démon.\n"++#: src/cli/main.cpp:342+#, c-format+msgid ""+"Device present: %s\n"+msgstr ""+"Appareil présent : %s\n"++#: src/cli/main.cpp:343+#, c-format+msgid ""+"BR/EDR: %s\n"+msgstr ""+"BR/EDR : %s\n"++#: src/cli/main.cpp:345+#, c-format+msgid ""+"LE: %s%s\n"+msgstr ""+"LE : %s%s\n"++#: src/cli/main.cpp:348+#, c-format+msgid "Messages (MAP): %s"+msgstr "Messages (MAP) : %s"++#: src/cli/main.cpp:351+#, c-format+msgid ""+"\n"+"Contacts (PBAP): %s"+msgstr ""+"\n"+"Contacts (PBAP) : %s"++#: src/cli/main.cpp:372+msgid ""+"Could not read Bluetooth diagnostics from the daemon.\n"+msgstr ""+"Impossible de lire les diagnostics Bluetooth depuis le démon.\n"++#: src/cli/main.cpp:396+msgid ""+"Could not read notifications from the daemon.\n"+msgstr ""+"Impossible de lire les notifications depuis le démon.\n"++#: src/cli/main.cpp:402+#, c-format+msgid ""+"No notifications yet. Check 'tether --bt-connection'.\n"+msgstr ""+"Aucune notification pour l'instant. Vérifiez avec 'tether --bt-connection'.\n"++#: src/cli/main.cpp:430+msgid ""+"Could not read conversations from the daemon.\n"+msgstr ""+"Impossible de lire les conversations depuis le démon.\n"++#: src/cli/main.cpp:436+#, c-format+msgid ""+"No conversations yet. Check 'tether --bt-connection'.\n"+msgstr ""+"Aucune conversation pour l'instant. Vérifiez avec 'tether --bt-connection'.\n"++#: src/cli/main.cpp:450+#, c++-format+msgid "({} unread)"+msgid_plural "({} unread)"+msgstr[0] "({} non lu)"+msgstr[1] "({} non lus)"++#: src/cli/main.cpp:471+msgid ""+"Could not read messages from the daemon.\n"+msgstr ""+"Impossible de lire les messages depuis le démon.\n"++#: src/cli/main.cpp:477+#, c-format+msgid ""+"No messages in %s\n"+msgstr ""+"Aucun message dans %s\n"++#: src/cli/main.cpp:485+msgid "me"+msgstr "moi"++#: src/cli/main.cpp:485+msgid "them"+msgstr "eux"++#: src/cli/main.cpp:512+msgid ""+"Daemon closed the connection before the message was sent.\n"+msgstr ""+"Le démon a fermé la connexion avant l'envoi du message.\n"++#: src/cli/main.cpp:534+#, c-format+msgid ""+"Sent to %s\n"+msgstr ""+"Envoyé à %s\n"++#: src/cli/main.cpp:537 src/gtk/messages_view.cpp:497+msgid "The message was not sent."+msgstr "Le message n'a pas été envoyé."++#: src/cli/main.cpp:641+msgid ""+"Unknown action. Run tether --help for options\n"+msgstr ""+"Action inconnue. Lancez tether --help pour voir les options\n"++#: src/cli/main.cpp:663+msgid ""+" No tetherd instances found.\n"+msgstr ""+" Aucune instance de tetherd trouvée.\n"++#: src/cli/main.cpp:667+msgid "[new]"+msgstr "[nouveau]"++#: src/cli/main.cpp:669+msgid "[known]"+msgstr "[connu]"++#: src/cli/main.cpp:680+#, c-format+msgid ""+"Found %zu device in %.1fs\n"+msgid_plural ""+"Found %zu devices in %.1fs\n"+msgstr[0] ""+"%zu appareil trouvé en %.1fs\n"+msgstr[1] ""+"%zu appareils trouvés en %.1fs\n"++#: src/cli/main.cpp:698+msgid ""+"Explicit framework connection locally rejected! Did you target explicitly invalid TLS or is daemon broken?\n"+msgstr ""+"Connexion rejetée localement ! Avez-vous visé un TLS invalide ou le démon est-il cassé ?\n"++#: src/cli/main.cpp:728+#, c++-format+msgid "Transfer Failed: {}"+msgstr "Échec du transfert : {}"++#: src/cli/main.cpp:750+msgid ""+"A thread key is required, e.g. --bt-messages tel:+15551234567\n"+msgstr ""+"Une clé de conversation est requise, p. ex. --bt-messages tel:+15551234567\n"++#: src/cli/main.cpp:756+msgid ""+"A conversation and a message are required, e.g. --bt-send tel:+15551234567 \"hi\"\n"+msgstr ""+"Une conversation et un message sont requis, p. ex. --bt-send tel:+15551234567 \"salut\"\n"++#: src/cli/main.cpp:762+msgid ""+"A Bluetooth address is required, e.g. --bt-pair AA:BB:CC:DD:EE:FF\n"+msgstr ""+"Une adresse Bluetooth est requise, p. ex. --bt-pair AA:BB:CC:DD:EE:FF\n"++#: src/cli/main.cpp:770+msgid ""+"Expected on or off, e.g. --bt-enable off\n"+msgstr ""+"Attendu on ou off, p. ex. --bt-enable off\n"++#: src/cli/main.cpp:781+#, c-format+msgid ""+"Bluetooth enabled.\n"+msgstr ""+"Bluetooth activé.\n"++#: src/cli/main.cpp:784+#, c-format+msgid ""+"Bluetooth disabled. Tether will not reconnect the iPhone. A link that is\n"+"already up stays up until you disconnect it or the phone goes out of range.\n"+msgstr ""+"Bluetooth désactivé. Tether ne reconnectera pas l'iPhone. Un lien déjà établi\n"+"le reste jusqu'à ce que vous le coupiez ou que le téléphone sorte de portée.\n"++#: src/cli/main.cpp:790+#, c++-format+msgid ""+"Expected on or off, e.g. {} on\n"+msgstr ""+"Attendu on ou off, p. ex. {} on\n"++#: src/cli/main.cpp:803+msgid "Notification contents enabled."+msgstr "Contenu des notifications activé."++#: src/cli/main.cpp:803+msgid "Notification contents disabled."+msgstr "Contenu des notifications désactivé."++#: src/cli/main.cpp:804+msgid "Notification mirroring enabled."+msgstr "Duplication des notifications activée."++#: src/cli/main.cpp:804+msgid "Notification mirroring disabled."+msgstr "Duplication des notifications désactivée."++#: src/core/src/bluetooth/bearer_supervisor.cpp:62+msgid "The iPhone is not answering on LE. Its Bluetooth is wedged on its own side: turn Bluetooth off and back on on the iPhone, which clears this even when Share System Notifications is already on. Messages and contacts are unaffected."+msgstr "L'iPhone ne répond pas en LE. Son Bluetooth est bloqué de son côté : désactivez puis réactivez le Bluetooth sur l'iPhone, ce qui règle le problème même si « Partager les notifications système » est déjà activé. Les messages et les contacts ne sont pas affectés."++#: src/core/src/bluetooth/bearer_supervisor.cpp:155+msgid "The iPhone keeps refusing the Bluetooth connection. Turn Bluetooth off and back on on the iPhone — that clears it even when the permissions are already on. Re-pairing is not the fix."+msgstr "L'iPhone continue de refuser la connexion Bluetooth. Désactivez puis réactivez le Bluetooth sur l'iPhone — cela règle le problème même si les autorisations sont déjà accordées. Réappairer n'est pas la solution."++#: src/core/src/bluetooth/bearer_supervisor.cpp:159+msgid "Notifications are connected. Still reaching the iPhone for messages and contacts..."+msgstr "Les notifications sont connectées. Tentative de joindre l'iPhone pour les messages et les contacts..."++#: src/core/src/bluetooth/bearer_supervisor.cpp:161+msgid "Connecting to the iPhone over Bluetooth..."+msgstr "Connexion à l'iPhone en Bluetooth..."++#: src/core/src/bluetooth/bearer_supervisor.cpp:167+msgid "Connected. Notification mirroring is disabled."+msgstr "Connecté. La duplication des notifications est désactivée."++#: src/core/src/bluetooth/bearer_supervisor.cpp:172+msgid "Connected. BlueZ is not exposing an LE bearer, so notifications are unavailable."+msgstr "Connecté. BlueZ n'expose pas de bearer LE, les notifications sont donc indisponibles."++#: src/core/src/bluetooth/bearer_supervisor.cpp:194+msgid "Connected. Waiting for the iPhone to open the LE link that carries notifications. If it does not, open Settings > Bluetooth > (i) on the iPhone and check Share System Notifications."+msgstr "Connecté. En attente que l'iPhone ouvre le lien LE qui transporte les notifications. S'il ne le fait pas, ouvrez Réglages > Bluetooth > (i) sur l'iPhone et vérifiez « Partager les notifications système »."++#: src/core/src/bluetooth/bearer_supervisor.cpp:200+msgid "Connected over BR/EDR and LE."+msgstr "Connecté en BR/EDR et LE."++#: src/core/src/bluetooth/connection.cpp:90 src/gtk/messages_view.cpp:362+#: src/gtk/messages_view.cpp:389+msgid "Messages are not connected."+msgstr "Les messages ne sont pas connectés."++#: src/core/src/bluetooth/connection.cpp:96+msgid "Could not build a message for this conversation."+msgstr "Impossible de composer un message pour cette conversation."++#: src/core/src/bluetooth/connection.cpp:176+msgid "That message is no longer in the conversation history."+msgstr "Ce message n'est plus dans l'historique de la conversation."++#: src/core/src/bluetooth/connection.cpp:195+msgid "The iPhone is not serving this message right now; marked read on this computer only."+msgstr "L'iPhone ne fournit pas ce message pour le moment ; marqué comme lu sur cet ordinateur seulement."++#: src/core/src/bluetooth/connection.cpp:1159+msgid "No paired iPhone selected."+msgstr "Aucun iPhone appairé sélectionné."++#: src/core/src/bluetooth/groups.cpp:278+msgid "Group replies are turned off."+msgstr "Les réponses aux groupes sont désactivées."++#: src/core/src/bluetooth/groups.cpp:288+#, c++-format+msgid "The roster for this group contains an unusable address: {}"+msgstr "La liste des membres de ce groupe contient une adresse inutilisable : {}"++#: src/core/src/bluetooth/groups.cpp:295+msgid "The roster for this group is empty."+msgstr "La liste des membres de ce groupe est vide."++#: src/core/src/bluetooth/groups.cpp:303+msgid "This conversation has not been identified as a group yet, so there is nobody to reply to."+msgstr "Cette conversation n'a pas encore été identifiée comme un groupe, il n'y a donc personne à qui répondre."++#: src/core/src/bluetooth/groups.cpp:308+msgid "This group has a name but no member list. Add its members before replying."+msgstr "Ce groupe a un nom mais pas de liste de membres. Ajoutez ses membres avant de répondre."++#: src/core/src/bluetooth/groups.cpp:315+#, c++-format+msgid "\"{}\" is not in your contacts."+msgstr "« {} » ne figure pas dans vos contacts."++#: src/core/src/bluetooth/groups.cpp:320+#, c++-format+msgid "\"{}\" matches more than one contact address."+msgstr "« {} » correspond à plusieurs adresses de contact."++#: src/core/src/bluetooth/groups.cpp:328+#, c++-format+msgid "\"{0}\" resolved to an unusable address: {1}"+msgstr "« {0} » a donné une adresse inutilisable : {1}"++#: src/core/src/bluetooth/groups.cpp:336+msgid "No recipients could be resolved for this group."+msgstr "Aucun destinataire n'a pu être déterminé pour ce groupe."++#: src/core/src/bluetooth/objects.cpp:356+msgid "No Bluetooth adapter found."+msgstr "Aucun adaptateur Bluetooth trouvé."++#: src/core/src/bluetooth/objects.cpp:386+msgid "Bluetooth adapter is powered off."+msgstr "L'adaptateur Bluetooth est éteint."++#: src/core/src/bluetooth/objects.cpp:391+msgid "Adapter has no LE central role; ANCS is impossible."+msgstr "L'adaptateur n'a pas de rôle central LE ; ANCS est impossible."++#: src/core/src/bluetooth/objects.cpp:400+msgid "Adapter cannot advertise as a peripheral, so ANCS cannot be solicited."+msgstr "L'adaptateur ne peut pas s'annoncer comme périphérique, ANCS ne peut donc pas être sollicité."++#: src/core/src/bluetooth/objects.cpp:404+msgid "No LE advertising instances available; the iPhone may never show its Bluetooth permission toggles."+msgstr "Aucune instance d'annonce LE disponible ; l'iPhone pourrait ne jamais afficher ses autorisations Bluetooth."++#: src/core/src/bluetooth/objects.cpp:409+msgid "Notification mirroring needs BlueZ's experimental bearer API (org.bluez.Bearer.LE1), which bluetoothd is not exposing. Set this up before pairing: a bond made without it has no LE half."+msgstr "La duplication des notifications nécessite l'API bearer expérimentale de BlueZ (org.bluez.Bearer.LE1), que bluetoothd n'expose pas. Configurez-la avant d'appairer : un lien créé sans elle n'a pas de moitié LE."++#: src/core/src/bluetooth/objects.cpp:416+msgid "Bearer API support is unconfirmed until a device is bonded."+msgstr "La prise en charge de l'API bearer reste incertaine tant qu'aucun appareil n'est lié."++#: src/core/src/bluetooth/objects.cpp:420+msgid "A device is bonded, but the bond covers BR/EDR only -- no LE keys were derived, so notification mirroring cannot work on it. Delete this computer on the iPhone (Forget This Device) and pair again."+msgstr "Un appareil est lié, mais le lien ne couvre que BR/EDR : aucune clé LE n'a été dérivée, la duplication des notifications ne peut donc pas fonctionner avec lui. Supprimez cet ordinateur sur l'iPhone (Oublier cet appareil) et appairez de nouveau."++#: src/core/src/bluetooth/objects.cpp:425+msgid "Secure Connections is off on this controller, which is what blocks the derivation; re-pairing will not help until it is on."+msgstr "« Connexions sécurisées » est désactivé sur ce contrôleur, et c'est ce qui bloque la dérivation ; réappairer ne servira à rien tant que ce n'est pas activé."++#: src/core/src/bluetooth/objects.cpp:430+msgid "The iPhone will not offer its Messages and Contacts permissions until this adapter presents itself as A/V Hands-Free (major 4, minor 8)."+msgstr "L'iPhone ne proposera ses autorisations Messages et Contacts que lorsque cet adaptateur se présentera comme mains libres A/V (majeur 4, mineur 8)."++#: src/core/src/bluetooth/pairing.cpp:408+#, c++-format+msgid ""+"{0} wants to pair.\n"+"\n"+"Confirm this code matches the one on your iPhone:\n"+"\n"+"{1}"+msgstr ""+"{0} veut s'appairer.\n"+"\n"+"Vérifiez que ce code correspond à celui affiché sur votre iPhone :\n"+"\n"+"{1}"++#: src/core/src/bluetooth/pairing.cpp:409+msgid "Bluetooth Pairing"+msgstr "Appairage Bluetooth"++#: src/core/src/bluetooth/pairing.cpp:410+msgid "Confirm"+msgstr "Confirmer"++#: src/core/src/bluetooth/pairing.cpp:411 src/gtk/messages_view.cpp:891+msgid "Cancel"+msgstr "Annuler"++#. TRANSLATORS: the feature name Tether shows for this profile.+#: src/core/src/bluetooth/profile_supervisor.cpp:76 src/daemon/main.cpp:152+#: src/gtk/devices_view.cpp:196 src/gtk/main.cpp:126+msgid "Messages"+msgstr "Messages"++#: src/core/src/bluetooth/profile_supervisor.cpp:76+#: src/gtk/devices_view.cpp:198+msgid "Contacts"+msgstr "Contacts"++#. TRANSLATORS: these two are toggle names in the iPhone's own Settings app.+#. Use Apple's wording for the target language, not a literal translation.+#: src/core/src/bluetooth/profile_supervisor.cpp:79+msgid "Show Message Notifications"+msgstr "Afficher les notifications de messages"++#: src/core/src/bluetooth/profile_supervisor.cpp:79+msgid "Sync Contacts"+msgstr "Synchroniser les contacts"++#. TRANSLATORS: {} is an iPhone Settings toggle name.+#: src/core/src/bluetooth/profile_supervisor.cpp:84+#, c++-format+msgid "Enable \"{}\" for this computer in the iPhone's Settings > Bluetooth > (i). This is a permission, not a pairing problem."+msgstr "Activez « {} » pour cet ordinateur dans Réglages > Bluetooth > (i) de l'iPhone. C'est une autorisation, pas un problème d'appairage."++#. TRANSLATORS: {0} is Messages or Contacts, {1} is the profile name (map or pbap).+#: src/core/src/bluetooth/profile_supervisor.cpp:89+#, c++-format+msgid "{0} is unavailable because another computer is using the iPhone's {1} session. Disconnect it there, then this will connect on its own."+msgstr "{0} est indisponible car un autre ordinateur utilise la session {1} de l'iPhone. Déconnectez-le là-bas, et la connexion se fera d'elle-même."++#. TRANSLATORS: {0} is Messages or Contacts, {1} is an iPhone Settings toggle name.+#: src/core/src/bluetooth/profile_supervisor.cpp:97+#, c++-format+msgid "{0} could not be fetched from the iPhone. Usually another computer holds the phone's Bluetooth session, or \"{1}\" is off in Settings > Bluetooth > (i). Check both; re-pairing is not the fix."+msgstr "Impossible de récupérer {0} depuis l'iPhone. En général un autre ordinateur occupe la session Bluetooth du téléphone, ou « {1} » est désactivé dans Réglages > Bluetooth > (i). Vérifiez les deux ; réappairer n'est pas la solution."++#: src/core/src/bluetooth/profile_supervisor.cpp:103+#, c++-format+msgid "{} is unreachable; waiting for the iPhone to come back."+msgstr "{} est injoignable ; en attente du retour de l'iPhone."++#: src/core/src/bluetooth/profile_supervisor.cpp:105+#, c++-format+msgid "{} needs BlueZ's OBEX daemon, which is not installed on this computer. Install it (bluez-obex on Arch, bluez-obexd on Debian and Ubuntu). Nothing needs changing on the iPhone."+msgstr "{} nécessite le démon OBEX de BlueZ, qui n'est pas installé sur cet ordinateur. Installez-le (bluez-obex sur Arch, bluez-obexd sur Debian et Ubuntu). Rien à changer sur l'iPhone."++#: src/core/src/bluetooth/profile_supervisor.cpp:110+#, c++-format+msgid "{} could not be opened."+msgstr "Impossible d'ouvrir {}."++#: src/core/src/bluetooth/profile_supervisor.cpp:179+msgid "Waiting for the Bluetooth link."+msgstr "En attente du lien Bluetooth."++#: src/core/src/bluetooth/profile_supervisor.cpp:184+#: src/core/src/bluetooth/profile_supervisor.cpp:201+msgid "Messages and contacts are connected."+msgstr "Les messages et les contacts sont connectés."++#: src/core/src/bluetooth/profile_supervisor.cpp:208+msgid "Opening messages and contacts..."+msgstr "Ouverture des messages et des contacts..."++#. TRANSLATORS: {0} is the device name, {1} is a shortened key fingerprint.+#: src/core/src/net.cpp:1421+#, c++-format+msgid "{0} ({1}) wants to pair with this device."+msgstr "{0} ({1}) veut s'appairer avec cet appareil."++#: src/core/src/net.cpp:1422+msgid "Pairing Request"+msgstr "Demande d'appairage"++#: src/core/src/net.cpp:1423+msgid "Accept"+msgstr "Accepter"++#: src/core/src/net.cpp:1424+msgid "Reject"+msgstr "Refuser"++#: src/daemon/notification.cpp:177+msgid "File arrived"+msgstr "Fichier reçu"++#: src/daemon/notification.cpp:188+msgid "Open File"+msgstr "Ouvrir le fichier"++#: src/daemon/notification.cpp:190+msgid "Open Folder"+msgstr "Ouvrir le dossier"++#: src/daemon/notification.cpp:233+msgid "Reply"+msgstr "Répondre"++#: src/gtk/daemon_client.cpp:56 src/gtk/daemon_client.cpp:163+msgid "Daemon Offline"+msgstr "Démon hors ligne"++#: src/gtk/daemon_client.cpp:57 src/gtk/daemon_client.cpp:58+#: src/gtk/daemon_client.cpp:164 src/gtk/daemon_client.cpp:165+#: src/gtk/messages_view.cpp:736+msgid "The Tether daemon is not running."+msgstr "Le démon Tether n'est pas lancé."++#: src/gtk/daemon_client.cpp:190+msgid "Daemon Online"+msgstr "Démon en ligne"++#: src/gtk/devices_view.cpp:109 src/gtk/devices_view.cpp:115+msgid "Connected."+msgstr "Connecté."++#: src/gtk/devices_view.cpp:109 src/gtk/devices_view.cpp:113+msgid "Not connected yet."+msgstr "Pas encore connecté."++#: src/gtk/devices_view.cpp:117 src/gtk/devices_view.cpp:158+msgid "Bluetooth is unavailable on this machine."+msgstr "Bluetooth est indisponible sur cette machine."++#: src/gtk/devices_view.cpp:160+msgid "Full mode — messages, contacts, and notifications."+msgstr "Mode complet — messages, contacts et notifications."++#: src/gtk/devices_view.cpp:162+msgid "Compatibility mode — messages and contacts, no notification mirroring."+msgstr "Mode de compatibilité — messages et contacts, sans duplication des notifications."++#: src/gtk/devices_view.cpp:164+msgid "This machine cannot carry the Bluetooth features."+msgstr "Cette machine ne peut pas assurer les fonctions Bluetooth."++#: src/gtk/devices_view.cpp:189+msgid "Link"+msgstr "Lien"++#: src/gtk/devices_view.cpp:202 src/gtk/main.cpp:127+msgid "Notifications"+msgstr "Notifications"++#: src/gtk/devices_view.cpp:210+msgid "Not paired over Bluetooth yet."+msgstr "Pas encore appairé en Bluetooth."++#: src/gtk/devices_view.cpp:212+msgid "Tether is not using this device. Pair it to select it."+msgstr "Tether n'utilise pas cet appareil. Appairez-le pour le sélectionner."++#: src/gtk/devices_view.cpp:216+msgid "Bluetooth is switched off for this iPhone."+msgstr "Bluetooth est désactivé pour cet iPhone."++#: src/gtk/devices_view.cpp:286+msgid "Connected and ready."+msgstr "Connecté et prêt."++#: src/gtk/devices_view.cpp:287+msgid "Device is offline. Open the Tether app on iPhone while on the same network."+msgstr "L'appareil est hors ligne. Ouvrez l'app Tether sur l'iPhone en étant sur le même réseau."++#: src/gtk/devices_view.cpp:298+#, c++-format+msgid "Found at {0}:{1}"+msgstr "Trouvé à {0}:{1}"++#: src/gtk/devices_view.cpp:329+msgid "Sending pair request..."+msgstr "Envoi de la demande d'appairage..."++#: src/gtk/devices_view.cpp:335+msgid "Pair request sent. Approve on remote device!"+msgstr "Demande d'appairage envoyée. Approuvez-la sur l'appareil distant !"++#: src/gtk/devices_view.cpp:351 src/gtk/devices_view.cpp:406+#: src/gtk/messages_view.cpp:339+msgid "Could not reach the Tether daemon."+msgstr "Impossible de joindre le démon Tether."++#: src/gtk/devices_view.cpp:355+msgid "Pairing… confirm the prompt on the iPhone."+msgstr "Appairage… confirmez l'invite sur l'iPhone."++#: src/gtk/devices_view.cpp:366+#, c-format+msgid "Remove the Bluetooth pairing with %s?"+msgstr "Supprimer l'appairage Bluetooth avec %s ?"++#: src/gtk/devices_view.cpp:370+msgid "Also delete this computer from the iPhone's Bluetooth settings before pairing again, or the phone will keep the stale bond."+msgstr "Supprimez aussi cet ordinateur des réglages Bluetooth de l'iPhone avant de réappairer, sinon le téléphone gardera l'ancien lien."++#: src/gtk/devices_view.cpp:378+msgid "Removing the pairing…"+msgstr "Suppression de l'appairage…"++#: src/gtk/devices_view.cpp:401+msgid "Setup commands copied to the clipboard."+msgstr "Commandes de configuration copiées dans le presse-papiers."++#: src/gtk/devices_view.cpp:409 src/gtk/messages_view.cpp:342+msgid "Asking the iPhone to show its Bluetooth permissions…"+msgstr "Demande à l'iPhone d'afficher ses autorisations Bluetooth…"++#. TRANSLATORS: {} is a file name.+#: src/gtk/devices_view.cpp:418+#, c++-format+msgid "Sending {}…"+msgstr "Envoi de {}…"++#. TRANSLATORS: {0} is the current file's position, {1} the batch size.+#: src/gtk/devices_view.cpp:422+#, c++-format+msgid "({0} of {1})"+msgstr "({0} sur {1})"++#: src/gtk/devices_view.cpp:437+msgid "Daemon unavailable."+msgstr "Démon indisponible."++#: src/gtk/devices_view.cpp:457 src/gtk/devices_view.cpp:1247+msgid "Send File"+msgstr "Envoyer un fichier"++#: src/gtk/devices_view.cpp:528+msgid "Folders can't be sent — drop files instead."+msgstr "Les dossiers ne peuvent pas être envoyés — déposez plutôt des fichiers."++#: src/gtk/devices_view.cpp:538+msgid "Clipboard, files, and OTP are connected."+msgstr "Le presse-papiers, les fichiers et les OTP sont connectés."++#: src/gtk/devices_view.cpp:539+msgid "No paired iPhone is connected. Open the Tether app on the phone."+msgstr "Aucun iPhone appairé n'est connecté. Ouvrez l'app Tether sur le téléphone."++#: src/gtk/devices_view.cpp:551 src/gtk/devices_view.cpp:562+#: src/gtk/devices_view.cpp:599 src/gtk/devices_view.cpp:814+#: src/gtk/devices_view.cpp:815+msgid "Unknown Device"+msgstr "Appareil inconnu"++#: src/gtk/devices_view.cpp:581+msgid "Scanning for nearby devices..."+msgstr "Recherche d'appareils à proximité..."++#: src/gtk/devices_view.cpp:638 src/gtk/devices_view.cpp:672+msgid "Connected"+msgstr "Connecté"++#: src/gtk/devices_view.cpp:638+msgid "Offline"+msgstr "Hors ligne"++#: src/gtk/devices_view.cpp:638 src/gtk/devices_view.cpp:672+msgid "Nearby (Tap to Pair)"+msgstr "À proximité (toucher pour appairer)"++#: src/gtk/devices_view.cpp:672+msgid "Paired"+msgstr "Appairé"++#: src/gtk/devices_view.cpp:881 src/gtk/devices_view.cpp:1266+msgid "Ready"+msgstr "Prêt"++#: src/gtk/devices_view.cpp:903+#, c++-format+msgid "Sent {0} of {1} file."+msgid_plural "Sent {0} of {1} files."+msgstr[0] "{0} fichier envoyé sur {1}."+msgstr[1] "{0} fichiers envoyés sur {1}."++#: src/gtk/devices_view.cpp:912+#, c++-format+msgid "Skipped {} non-file item."+msgid_plural "Skipped {} non-file items."+msgstr[0] "{} élément non fichier ignoré."+msgstr[1] "{} éléments non fichiers ignorés."++#: src/gtk/devices_view.cpp:923+msgid "Desktop Clipboard Sync triggered."+msgstr "Synchronisation du presse-papiers du bureau déclenchée."++#: src/gtk/devices_view.cpp:949+msgid "Messages and notifications are connected."+msgstr "Les messages et les notifications sont connectés."++#: src/gtk/devices_view.cpp:964+msgid "No iPhone found. Unlock the phone and open Settings > Bluetooth so it advertises, then scan again."+msgstr "Aucun iPhone trouvé. Déverrouillez le téléphone et ouvrez Réglages > Bluetooth pour qu'il s'annonce, puis relancez la recherche."++#: src/gtk/devices_view.cpp:1013+msgid "Connect your iPhone"+msgstr "Connectez votre iPhone"++#: src/gtk/devices_view.cpp:1058+msgid "clipboard, files, OTP"+msgstr "presse-papiers, fichiers, OTP"++#: src/gtk/devices_view.cpp:1059+msgid ""+"1. Open the Tether app on the iPhone\n"+"2. It finds this computer by itself\n"+"3. Approve on both ends"+msgstr ""+"1. Ouvrez l'app Tether sur l'iPhone\n"+"2. Elle trouve cet ordinateur toute seule\n"+"3. Approuvez des deux côtés"++#: src/gtk/devices_view.cpp:1067+msgid "messages, notifications"+msgstr "messages, notifications"++#: src/gtk/devices_view.cpp:1068+msgid ""+"1. Pick the iPhone under BLUETOOTH\n"+"2. Press Pair over Bluetooth\n"+"3. Grant the two toggles on the phone"+msgstr ""+"1. Choisissez l'iPhone sous BLUETOOTH\n"+"2. Appuyez sur Appairer en Bluetooth\n"+"3. Accordez les deux autorisations sur le téléphone"++#: src/gtk/devices_view.cpp:1076+msgid "Scan for devices"+msgstr "Rechercher des appareils"++#: src/gtk/devices_view.cpp:1101+msgid "Bluetooth needs one-time system setup"+msgstr "Bluetooth requiert une configuration système ponctuelle"++#: src/gtk/devices_view.cpp:1119+msgid "Copy commands"+msgstr "Copier les commandes"++#: src/gtk/devices_view.cpp:1121+msgid "Run these in a terminal. Tether does not change your Bluetooth adapter or bluetoothd on its own."+msgstr "Lancez ceci dans un terminal. Tether ne modifie pas de lui-même votre adaptateur Bluetooth ni bluetoothd."++#: src/gtk/devices_view.cpp:1145+msgid "Connect to this iPhone over Bluetooth"+msgstr "Se connecter à cet iPhone en Bluetooth"++#: src/gtk/devices_view.cpp:1147+msgid "Keep the Bluetooth link to the iPhone up, reconnecting whenever it drops. Turning this off stops Tether reconnecting; a link that is already up stays up until you disconnect it."+msgstr "Maintenir le lien Bluetooth avec l'iPhone, en reconnectant à chaque coupure. Désactiver ceci empêche Tether de reconnecter ; un lien déjà établi le reste jusqu'à ce que vous le coupiez."++#: src/gtk/devices_view.cpp:1154+msgid "Mirror iPhone notifications"+msgstr "Dupliquer les notifications de l'iPhone"++#: src/gtk/devices_view.cpp:1156+msgid "Show notifications from the iPhone on this desktop. Turned off automatically when pairing produces no LE bond; turn it back on after re-pairing."+msgstr "Afficher les notifications de l'iPhone sur ce bureau. Désactivé automatiquement quand l'appairage ne produit pas de lien LE ; réactivez-le après avoir réappairé."++#: src/gtk/devices_view.cpp:1162+msgid "Show notification contents"+msgstr "Afficher le contenu des notifications"++#: src/gtk/devices_view.cpp:1164+msgid "Ask the iPhone for each notification's title and message text, not just which app sent it. The phone's own Show Message Notifications toggle still has to be on."+msgstr "Demander à l'iPhone le titre et le texte de chaque notification, et pas seulement l'app émettrice. Le réglage « Afficher les notifications de messages » du téléphone doit rester activé."++#: src/gtk/devices_view.cpp:1177+msgid "Pair over Bluetooth"+msgstr "Appairer en Bluetooth"++#: src/gtk/devices_view.cpp:1182 src/gtk/messages_view.cpp:818+msgid "Show iPhone Permissions"+msgstr "Afficher les autorisations de l'iPhone"++#: src/gtk/devices_view.cpp:1184 src/gtk/messages_view.cpp:821+msgid "Re-advertise so the iPhone shows its Show Message Notifications and Sync Contacts toggles under Settings > Bluetooth > (i)."+msgstr "Se réannoncer pour que l'iPhone affiche ses réglages « Afficher les notifications de messages » et « Synchroniser les contacts » dans Réglages > Bluetooth > (i)."++#: src/gtk/devices_view.cpp:1189+msgid "Unpair"+msgstr "Désappairer"++#: src/gtk/devices_view.cpp:1212+msgid "Pair Device"+msgstr "Appairer l'appareil"++#: src/gtk/devices_view.cpp:1218+msgid "Force Trust (Accept Pending)"+msgstr "Forcer la confiance (accepter en attente)"++#: src/gtk/devices_view.cpp:1243+msgid "Drop files here to send"+msgstr "Déposez des fichiers ici pour les envoyer"++#: src/gtk/devices_view.cpp:1252+msgid "Send Clipboard"+msgstr "Envoyer le presse-papiers"++#: src/gtk/devices_view.cpp:1259+msgid "Clipboard sync requested..."+msgstr "Synchronisation du presse-papiers demandée..."++#: src/gtk/main.cpp:55+msgid "Keep running in tray when closed"+msgstr "Continuer dans la zone de notification à la fermeture"++#: src/gtk/main.cpp:65+msgid "Quit"+msgstr "Quitter"++#: src/gtk/main.cpp:101 src/gtk/main.cpp:109 src/gtk/tether-gtk.desktop.in:2+msgid "Tether"+msgstr "Tether"++#: src/gtk/main.cpp:125+msgid "Devices"+msgstr "Appareils"++#: src/gtk/main.cpp:174+msgid "Start hidden in the system tray"+msgstr "Démarrer masqué dans la zone de notification"++#: src/gtk/main.cpp:178+msgid "Open on this tab"+msgstr "Ouvrir sur cet onglet"++#: src/gtk/main.cpp:185+msgid "Open the messages tab on this conversation"+msgstr "Ouvrir l'onglet Messages sur cette conversation"++#: src/gtk/messages_view.cpp:387 src/gtk/messages_view.cpp:461+msgid "Sending…"+msgstr "Envoi…"++#: src/gtk/messages_view.cpp:392+msgid "Enter a recipient."+msgstr "Saisissez un destinataire."++#: src/gtk/messages_view.cpp:394+msgid "Select a conversation first."+msgstr "Sélectionnez d'abord une conversation."++#: src/gtk/messages_view.cpp:398+msgid "Replying to this conversation is not available."+msgstr "Répondre à cette conversation n'est pas possible."++#: src/gtk/messages_view.cpp:435+msgid "No answer about that message; it may still have been sent."+msgstr "Aucune réponse concernant ce message ; il a peut-être quand même été envoyé."++#: src/gtk/messages_view.cpp:450+msgid "Could not reach the Tether daemon; the message was not sent."+msgstr "Impossible de joindre le démon Tether ; le message n'a pas été envoyé."++#: src/gtk/messages_view.cpp:494+msgid "Sent"+msgstr "Envoyé"++#: src/gtk/messages_view.cpp:646 src/gtk/messages_view.cpp:840+msgid "New Message"+msgstr "Nouveau message"++#: src/gtk/messages_view.cpp:860+msgid "Select a conversation"+msgstr "Sélectionnez une conversation"++#: src/gtk/messages_view.cpp:872+msgid "Phone number or email"+msgstr "Numéro de téléphone ou e-mail"++#: src/gtk/messages_view.cpp:951+msgid "Send"+msgstr "Envoyer"++#: src/gtk/notifications_view.cpp:86+msgid "New notification"+msgstr "Nouvelle notification"++#: src/gtk/notifications_view.cpp:148+msgid "No notifications yet."+msgstr "Aucune notification pour l'instant."++#: src/gtk/notifications_view.cpp:149+msgid "Notification mirroring is unavailable."+msgstr "La duplication des notifications est indisponible."++#: src/gtk/notifications_view.cpp:164+msgid "Waiting for the iPhone."+msgstr "En attente de l'iPhone."++#: src/gtk/tray.cpp:277+msgid "connected"+msgstr "connecté"++#: src/gtk/tray.cpp:277+msgid "not connected"+msgstr "non connecté"++#. TRANSLATORS: {} is a transport name, "Wi-Fi" or "Bluetooth".+#: src/gtk/tray.cpp:279+#, c++-format+msgid "{}: {}"+msgstr "{} : {}"++#: src/gtk/tray.cpp:282+msgid "Daemon: not running"+msgstr "Démon : non lancé"++#: src/gtk/tray.cpp:284+#, c++-format+msgid "{} unread message"+msgid_plural "{} unread messages"+msgstr[0] "{} message non lu"+msgstr[1] "{} messages non lus"++#: src/gtk/tether-gtk.desktop.in:3+msgid "Device Synchronization"+msgstr "Synchronisation d'appareils"++#: src/gtk/tether-gtk.desktop.in:4+msgid "Pair devices and synchronize clipboard across the network"+msgstr "Appairez des appareils et synchronisez le presse-papiers sur le réseau"diff --git a/po/tether.pot b/po/tether.potnew file mode 100644index 0000000..d1e3296--- /dev/null+++ b/po/tether.pot@@ -0,0 +1,1077 @@+# SOME DESCRIPTIVE TITLE.+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER+# This file is distributed under the same license as the tether package.+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.+#+#, fuzzy+msgid ""+msgstr ""+"Project-Id-Version: tether 0.2.9-2-g3f3cfd0\n"+"Report-Msgid-Bugs-To: [email protected]\n"+"POT-Creation-Date: 2026-08-22 14:59-0700\n"+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"+"Language-Team: LANGUAGE <[email protected]>\n"+"Language: \n"+"MIME-Version: 1.0\n"+"Content-Type: text/plain; charset=UTF-8\n"+"Content-Transfer-Encoding: 8bit\n"+"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"++#. TRANSLATORS: keep the flag names and the column alignment; only the+#. descriptions after them are prose.+#: src/cli/main.cpp:101+msgid ""+"tether - Wayland companion CLI\n"+"\n"+"Options:\n"+" -h, --help Show this help message.\n"+" -g, --get-clipboard Retrieve the current Wayland clipboard text.\n"+" -s, --set-clipboard Take string input and copy it to the local "+"Wayland clipboard.\n"+" -f, --send-file Send a file through tether.\n"+" -n, --native-host Start the browser Native Messaging Host proxy "+"loop.\n"+" -d, --discover Scan the local network for tetherd instances via "+"mDNS.\n"+" --host <ip> Connect over TCP to daemon ip instead of UNIX "+"Socket.\n"+" --port <num> Connect over TCP port (default 5134).\n"+" --timeout <ms> Discovery scan duration in milliseconds (default "+"3000).\n"+" --list-devices List all paired connection devices.\n"+" --bt-setup Show the one-time system setup Bluetooth still "+"needs.\n"+" --bt-status Show Bluetooth adapter capability and delivery "+"mode.\n"+" --bt-devices List Bluetooth devices known to BlueZ.\n"+" --bt-connection Show Bluetooth link and profile connection "+"state.\n"+" --bt-threads List iPhone message conversations.\n"+" --bt-messages <thread> Show messages in one conversation.\n"+" --bt-send <thread> <text> Reply in one conversation.\n"+" --bt-pair <addr> Pair with an iPhone over Bluetooth.\n"+" --bt-unpair <addr> Remove a Bluetooth bond.\n"+" --bt-solicit Re-advertise for ANCS so the iPhone shows its "+"permission\n"+" toggles again, without removing the bond.\n"+" --bt-enable <on|off> Connect to the iPhone over Bluetooth, or stop.\n"+" --bt-ancs <on|off> Turn notification mirroring on or off.\n"+" --bt-ancs-content <on|off> Mirror notification titles and bodies, not "+"just the app.\n"+" --bt-notifications List mirrored iPhone notifications.\n"+" --bt-diagnostics Print a redacted Bluetooth report for a bug "+"report.\n"+" --accept <fingerprint> Accept a pending pairing request locally.\n"+" --pair Send a pair_request over TCP to the daemon.\n"+"\n"+"Examples:\n"+" tether -g\n"+" tether -g --host 127.0.0.1\n"+" echo \"pipe\" | tether -s\n"+" tether --discover\n"+" tether --discover --timeout 5000\n"+" tether -f ./report.pdf\n"+" tether --accept 9a4f21...\n"+msgstr ""++#: src/cli/main.cpp:148 src/cli/main.cpp:188+msgid "Could not read Bluetooth status from the daemon.\n"+msgstr ""++#: src/cli/main.cpp:153 src/cli/main.cpp:193+#, c-format+msgid "Bluetooth: unavailable (is bluetoothd running?)\n"+msgstr ""++#: src/cli/main.cpp:160+#, c-format+msgid "Bluetooth setup is complete. Nothing to do.\n"+msgstr ""++#: src/cli/main.cpp:165+#, c-format+msgid ""+"\n"+"%zu step left before the iPhone Bluetooth features work:\n"+msgid_plural ""+"\n"+"%zu steps left before the iPhone Bluetooth features work:\n"+msgstr[0] ""+msgstr[1] ""++#: src/cli/main.cpp:179+#, c-format+msgid ""+"\n"+"Re-run 'tether --bt-setup' afterwards to confirm.\n"+msgstr ""++#: src/cli/main.cpp:198+#, c-format+msgid "Mode: %s\n"+msgstr ""++#: src/cli/main.cpp:199+#, c-format+msgid "Bearer API: %s\n"+msgstr ""++#: src/cli/main.cpp:201+#, c-format+msgid ""+"Adapter: powered=%s central=%s peripheral=%s advertising=%s class=%s\n"+msgstr ""++#: src/cli/main.cpp:208+#, c-format+msgid " secure-connections=%s\n"+msgstr ""++#: src/cli/main.cpp:213+#, c-format+msgid "Bond: %s\n"+msgstr ""++#: src/cli/main.cpp:214+#, c-format+msgid "Tether: %s\n"+msgstr ""++#: src/cli/main.cpp:229+#, c-format+msgid ""+"\n"+"%zu setup step remaining. Run: tether --bt-setup\n"+msgid_plural ""+"\n"+"%zu setup steps remaining. Run: tether --bt-setup\n"+msgstr[0] ""+msgstr[1] ""++#: src/cli/main.cpp:241+msgid "Could not read Bluetooth devices from the daemon.\n"+msgstr ""++#: src/cli/main.cpp:247+#, c-format+msgid "No Bluetooth devices known to BlueZ.\n"+msgstr ""++#: src/cli/main.cpp:292 src/cli/main.cpp:503 src/cli/main.cpp:777+#: src/cli/main.cpp:797+msgid "Could not reach the daemon.\n"+msgstr ""++#: src/cli/main.cpp:301+msgid "Daemon closed the connection before the operation finished.\n"+msgstr ""++#: src/cli/main.cpp:337+msgid "Could not read Bluetooth connection state from the daemon.\n"+msgstr ""++#: src/cli/main.cpp:342+#, c-format+msgid "Device present: %s\n"+msgstr ""++#: src/cli/main.cpp:343+#, c-format+msgid "BR/EDR: %s\n"+msgstr ""++#: src/cli/main.cpp:345+#, c-format+msgid "LE: %s%s\n"+msgstr ""++#: src/cli/main.cpp:348+#, c-format+msgid "Messages (MAP): %s"+msgstr ""++#: src/cli/main.cpp:351+#, c-format+msgid ""+"\n"+"Contacts (PBAP): %s"+msgstr ""++#: src/cli/main.cpp:372+msgid "Could not read Bluetooth diagnostics from the daemon.\n"+msgstr ""++#: src/cli/main.cpp:396+msgid "Could not read notifications from the daemon.\n"+msgstr ""++#: src/cli/main.cpp:402+#, c-format+msgid "No notifications yet. Check 'tether --bt-connection'.\n"+msgstr ""++#: src/cli/main.cpp:430+msgid "Could not read conversations from the daemon.\n"+msgstr ""++#: src/cli/main.cpp:436+#, c-format+msgid "No conversations yet. Check 'tether --bt-connection'.\n"+msgstr ""++#: src/cli/main.cpp:450+#, c++-format+msgid "({} unread)"+msgid_plural "({} unread)"+msgstr[0] ""+msgstr[1] ""++#: src/cli/main.cpp:471+msgid "Could not read messages from the daemon.\n"+msgstr ""++#: src/cli/main.cpp:477+#, c-format+msgid "No messages in %s\n"+msgstr ""++#: src/cli/main.cpp:485+msgid "me"+msgstr ""++#: src/cli/main.cpp:485+msgid "them"+msgstr ""++#: src/cli/main.cpp:512+msgid "Daemon closed the connection before the message was sent.\n"+msgstr ""++#: src/cli/main.cpp:534+#, c-format+msgid "Sent to %s\n"+msgstr ""++#: src/cli/main.cpp:537 src/gtk/messages_view.cpp:497+msgid "The message was not sent."+msgstr ""++#: src/cli/main.cpp:641+msgid "Unknown action. Run tether --help for options\n"+msgstr ""++#: src/cli/main.cpp:663+msgid " No tetherd instances found.\n"+msgstr ""++#: src/cli/main.cpp:667+msgid "[new]"+msgstr ""++#: src/cli/main.cpp:669+msgid "[known]"+msgstr ""++#: src/cli/main.cpp:680+#, c-format+msgid "Found %zu device in %.1fs\n"+msgid_plural "Found %zu devices in %.1fs\n"+msgstr[0] ""+msgstr[1] ""++#: src/cli/main.cpp:698+msgid ""+"Explicit framework connection locally rejected! Did you target explicitly "+"invalid TLS or is daemon broken?\n"+msgstr ""++#: src/cli/main.cpp:728+#, c++-format+msgid "Transfer Failed: {}"+msgstr ""++#: src/cli/main.cpp:750+msgid "A thread key is required, e.g. --bt-messages tel:+15551234567\n"+msgstr ""++#: src/cli/main.cpp:756+msgid ""+"A conversation and a message are required, e.g. --bt-send tel:+15551234567 "+"\"hi\"\n"+msgstr ""++#: src/cli/main.cpp:762+msgid "A Bluetooth address is required, e.g. --bt-pair AA:BB:CC:DD:EE:FF\n"+msgstr ""++#: src/cli/main.cpp:770+msgid "Expected on or off, e.g. --bt-enable off\n"+msgstr ""++#: src/cli/main.cpp:781+#, c-format+msgid "Bluetooth enabled.\n"+msgstr ""++#: src/cli/main.cpp:784+#, c-format+msgid ""+"Bluetooth disabled. Tether will not reconnect the iPhone. A link that is\n"+"already up stays up until you disconnect it or the phone goes out of range.\n"+msgstr ""++#: src/cli/main.cpp:790+#, c++-format+msgid "Expected on or off, e.g. {} on\n"+msgstr ""++#: src/cli/main.cpp:803+msgid "Notification contents enabled."+msgstr ""++#: src/cli/main.cpp:803+msgid "Notification contents disabled."+msgstr ""++#: src/cli/main.cpp:804+msgid "Notification mirroring enabled."+msgstr ""++#: src/cli/main.cpp:804+msgid "Notification mirroring disabled."+msgstr ""++#: src/core/src/bluetooth/bearer_supervisor.cpp:62+msgid ""+"The iPhone is not answering on LE. Its Bluetooth is wedged on its own side: "+"turn Bluetooth off and back on on the iPhone, which clears this even when "+"Share System Notifications is already on. Messages and contacts are "+"unaffected."+msgstr ""++#: src/core/src/bluetooth/bearer_supervisor.cpp:155+msgid ""+"The iPhone keeps refusing the Bluetooth connection. Turn Bluetooth off and "+"back on on the iPhone — that clears it even when the permissions are already "+"on. Re-pairing is not the fix."+msgstr ""++#: src/core/src/bluetooth/bearer_supervisor.cpp:159+msgid ""+"Notifications are connected. Still reaching the iPhone for messages and "+"contacts..."+msgstr ""++#: src/core/src/bluetooth/bearer_supervisor.cpp:161+msgid "Connecting to the iPhone over Bluetooth..."+msgstr ""++#: src/core/src/bluetooth/bearer_supervisor.cpp:167+msgid "Connected. Notification mirroring is disabled."+msgstr ""++#: src/core/src/bluetooth/bearer_supervisor.cpp:172+msgid ""+"Connected. BlueZ is not exposing an LE bearer, so notifications are "+"unavailable."+msgstr ""++#: src/core/src/bluetooth/bearer_supervisor.cpp:194+msgid ""+"Connected. Waiting for the iPhone to open the LE link that carries "+"notifications. If it does not, open Settings > Bluetooth > (i) on the iPhone "+"and check Share System Notifications."+msgstr ""++#: src/core/src/bluetooth/bearer_supervisor.cpp:200+msgid "Connected over BR/EDR and LE."+msgstr ""++#: src/core/src/bluetooth/connection.cpp:90 src/gtk/messages_view.cpp:362+#: src/gtk/messages_view.cpp:389+msgid "Messages are not connected."+msgstr ""++#: src/core/src/bluetooth/connection.cpp:96+msgid "Could not build a message for this conversation."+msgstr ""++#: src/core/src/bluetooth/connection.cpp:176+msgid "That message is no longer in the conversation history."+msgstr ""++#: src/core/src/bluetooth/connection.cpp:195+msgid ""+"The iPhone is not serving this message right now; marked read on this "+"computer only."+msgstr ""++#: src/core/src/bluetooth/connection.cpp:1159+msgid "No paired iPhone selected."+msgstr ""++#: src/core/src/bluetooth/groups.cpp:278+msgid "Group replies are turned off."+msgstr ""++#: src/core/src/bluetooth/groups.cpp:288+#, c++-format+msgid "The roster for this group contains an unusable address: {}"+msgstr ""++#: src/core/src/bluetooth/groups.cpp:295+msgid "The roster for this group is empty."+msgstr ""++#: src/core/src/bluetooth/groups.cpp:303+msgid ""+"This conversation has not been identified as a group yet, so there is nobody "+"to reply to."+msgstr ""++#: src/core/src/bluetooth/groups.cpp:308+msgid ""+"This group has a name but no member list. Add its members before replying."+msgstr ""++#: src/core/src/bluetooth/groups.cpp:315+#, c++-format+msgid "\"{}\" is not in your contacts."+msgstr ""++#: src/core/src/bluetooth/groups.cpp:320+#, c++-format+msgid "\"{}\" matches more than one contact address."+msgstr ""++#: src/core/src/bluetooth/groups.cpp:328+#, c++-format+msgid "\"{0}\" resolved to an unusable address: {1}"+msgstr ""++#: src/core/src/bluetooth/groups.cpp:336+msgid "No recipients could be resolved for this group."+msgstr ""++#: src/core/src/bluetooth/objects.cpp:356+msgid "No Bluetooth adapter found."+msgstr ""++#: src/core/src/bluetooth/objects.cpp:386+msgid "Bluetooth adapter is powered off."+msgstr ""++#: src/core/src/bluetooth/objects.cpp:391+msgid "Adapter has no LE central role; ANCS is impossible."+msgstr ""++#: src/core/src/bluetooth/objects.cpp:400+msgid "Adapter cannot advertise as a peripheral, so ANCS cannot be solicited."+msgstr ""++#: src/core/src/bluetooth/objects.cpp:404+msgid ""+"No LE advertising instances available; the iPhone may never show its "+"Bluetooth permission toggles."+msgstr ""++#: src/core/src/bluetooth/objects.cpp:409+msgid ""+"Notification mirroring needs BlueZ's experimental bearer API "+"(org.bluez.Bearer.LE1), which bluetoothd is not exposing. Set this up before "+"pairing: a bond made without it has no LE half."+msgstr ""++#: src/core/src/bluetooth/objects.cpp:416+msgid "Bearer API support is unconfirmed until a device is bonded."+msgstr ""++#: src/core/src/bluetooth/objects.cpp:420+msgid ""+"A device is bonded, but the bond covers BR/EDR only -- no LE keys were "+"derived, so notification mirroring cannot work on it. Delete this computer "+"on the iPhone (Forget This Device) and pair again."+msgstr ""++#: src/core/src/bluetooth/objects.cpp:425+msgid ""+"Secure Connections is off on this controller, which is what blocks the "+"derivation; re-pairing will not help until it is on."+msgstr ""++#: src/core/src/bluetooth/objects.cpp:430+msgid ""+"The iPhone will not offer its Messages and Contacts permissions until this "+"adapter presents itself as A/V Hands-Free (major 4, minor 8)."+msgstr ""++#: src/core/src/bluetooth/pairing.cpp:408+#, c++-format+msgid ""+"{0} wants to pair.\n"+"\n"+"Confirm this code matches the one on your iPhone:\n"+"\n"+"{1}"+msgstr ""++#: src/core/src/bluetooth/pairing.cpp:409+msgid "Bluetooth Pairing"+msgstr ""++#: src/core/src/bluetooth/pairing.cpp:410+msgid "Confirm"+msgstr ""++#: src/core/src/bluetooth/pairing.cpp:411 src/gtk/messages_view.cpp:891+msgid "Cancel"+msgstr ""++#. TRANSLATORS: the feature name Tether shows for this profile.+#: src/core/src/bluetooth/profile_supervisor.cpp:76 src/daemon/main.cpp:152+#: src/gtk/devices_view.cpp:196 src/gtk/main.cpp:126+msgid "Messages"+msgstr ""++#: src/core/src/bluetooth/profile_supervisor.cpp:76+#: src/gtk/devices_view.cpp:198+msgid "Contacts"+msgstr ""++#. TRANSLATORS: these two are toggle names in the iPhone's own Settings app.+#. Use Apple's wording for the target language, not a literal translation.+#: src/core/src/bluetooth/profile_supervisor.cpp:79+msgid "Show Message Notifications"+msgstr ""++#: src/core/src/bluetooth/profile_supervisor.cpp:79+msgid "Sync Contacts"+msgstr ""++#. TRANSLATORS: {} is an iPhone Settings toggle name.+#: src/core/src/bluetooth/profile_supervisor.cpp:84+#, c++-format+msgid ""+"Enable \"{}\" for this computer in the iPhone's Settings > Bluetooth > (i). "+"This is a permission, not a pairing problem."+msgstr ""++#. TRANSLATORS: {0} is Messages or Contacts, {1} is the profile name (map or pbap).+#: src/core/src/bluetooth/profile_supervisor.cpp:89+#, c++-format+msgid ""+"{0} is unavailable because another computer is using the iPhone's {1} "+"session. Disconnect it there, then this will connect on its own."+msgstr ""++#. TRANSLATORS: {0} is Messages or Contacts, {1} is an iPhone Settings toggle name.+#: src/core/src/bluetooth/profile_supervisor.cpp:97+#, c++-format+msgid ""+"{0} could not be fetched from the iPhone. Usually another computer holds the "+"phone's Bluetooth session, or \"{1}\" is off in Settings > Bluetooth > (i). "+"Check both; re-pairing is not the fix."+msgstr ""++#: src/core/src/bluetooth/profile_supervisor.cpp:103+#, c++-format+msgid "{} is unreachable; waiting for the iPhone to come back."+msgstr ""++#: src/core/src/bluetooth/profile_supervisor.cpp:105+#, c++-format+msgid ""+"{} needs BlueZ's OBEX daemon, which is not installed on this computer. "+"Install it (bluez-obex on Arch, bluez-obexd on Debian and Ubuntu). Nothing "+"needs changing on the iPhone."+msgstr ""++#: src/core/src/bluetooth/profile_supervisor.cpp:110+#, c++-format+msgid "{} could not be opened."+msgstr ""++#: src/core/src/bluetooth/profile_supervisor.cpp:179+msgid "Waiting for the Bluetooth link."+msgstr ""++#: src/core/src/bluetooth/profile_supervisor.cpp:184+#: src/core/src/bluetooth/profile_supervisor.cpp:201+msgid "Messages and contacts are connected."+msgstr ""++#: src/core/src/bluetooth/profile_supervisor.cpp:208+msgid "Opening messages and contacts..."+msgstr ""++#. TRANSLATORS: {0} is the device name, {1} is a shortened key fingerprint.+#: src/core/src/net.cpp:1421+#, c++-format+msgid "{0} ({1}) wants to pair with this device."+msgstr ""++#: src/core/src/net.cpp:1422+msgid "Pairing Request"+msgstr ""++#: src/core/src/net.cpp:1423+msgid "Accept"+msgstr ""++#: src/core/src/net.cpp:1424+msgid "Reject"+msgstr ""++#: src/daemon/notification.cpp:177+msgid "File arrived"+msgstr ""++#: src/daemon/notification.cpp:188+msgid "Open File"+msgstr ""++#: src/daemon/notification.cpp:190+msgid "Open Folder"+msgstr ""++#: src/daemon/notification.cpp:233+msgid "Reply"+msgstr ""++#: src/gtk/daemon_client.cpp:56 src/gtk/daemon_client.cpp:163+msgid "Daemon Offline"+msgstr ""++#: src/gtk/daemon_client.cpp:57 src/gtk/daemon_client.cpp:58+#: src/gtk/daemon_client.cpp:164 src/gtk/daemon_client.cpp:165+#: src/gtk/messages_view.cpp:736+msgid "The Tether daemon is not running."+msgstr ""++#: src/gtk/daemon_client.cpp:190+msgid "Daemon Online"+msgstr ""++#: src/gtk/devices_view.cpp:109 src/gtk/devices_view.cpp:115+msgid "Connected."+msgstr ""++#: src/gtk/devices_view.cpp:109 src/gtk/devices_view.cpp:113+msgid "Not connected yet."+msgstr ""++#: src/gtk/devices_view.cpp:117 src/gtk/devices_view.cpp:158+msgid "Bluetooth is unavailable on this machine."+msgstr ""++#: src/gtk/devices_view.cpp:160+msgid "Full mode — messages, contacts, and notifications."+msgstr ""++#: src/gtk/devices_view.cpp:162+msgid "Compatibility mode — messages and contacts, no notification mirroring."+msgstr ""++#: src/gtk/devices_view.cpp:164+msgid "This machine cannot carry the Bluetooth features."+msgstr ""++#: src/gtk/devices_view.cpp:189+msgid "Link"+msgstr ""++#: src/gtk/devices_view.cpp:202 src/gtk/main.cpp:127+msgid "Notifications"+msgstr ""++#: src/gtk/devices_view.cpp:210+msgid "Not paired over Bluetooth yet."+msgstr ""++#: src/gtk/devices_view.cpp:212+msgid "Tether is not using this device. Pair it to select it."+msgstr ""++#: src/gtk/devices_view.cpp:216+msgid "Bluetooth is switched off for this iPhone."+msgstr ""++#: src/gtk/devices_view.cpp:286+msgid "Connected and ready."+msgstr ""++#: src/gtk/devices_view.cpp:287+msgid ""+"Device is offline. Open the Tether app on iPhone while on the same network."+msgstr ""++#: src/gtk/devices_view.cpp:298+#, c++-format+msgid "Found at {0}:{1}"+msgstr ""++#: src/gtk/devices_view.cpp:329+msgid "Sending pair request..."+msgstr ""++#: src/gtk/devices_view.cpp:335+msgid "Pair request sent. Approve on remote device!"+msgstr ""++#: src/gtk/devices_view.cpp:351 src/gtk/devices_view.cpp:406+#: src/gtk/messages_view.cpp:339+msgid "Could not reach the Tether daemon."+msgstr ""++#: src/gtk/devices_view.cpp:355+msgid "Pairing… confirm the prompt on the iPhone."+msgstr ""++#: src/gtk/devices_view.cpp:366+#, c-format+msgid "Remove the Bluetooth pairing with %s?"+msgstr ""++#: src/gtk/devices_view.cpp:370+msgid ""+"Also delete this computer from the iPhone's Bluetooth settings before "+"pairing again, or the phone will keep the stale bond."+msgstr ""++#: src/gtk/devices_view.cpp:378+msgid "Removing the pairing…"+msgstr ""++#: src/gtk/devices_view.cpp:401+msgid "Setup commands copied to the clipboard."+msgstr ""++#: src/gtk/devices_view.cpp:409 src/gtk/messages_view.cpp:342+msgid "Asking the iPhone to show its Bluetooth permissions…"+msgstr ""++#. TRANSLATORS: {} is a file name.+#: src/gtk/devices_view.cpp:418+#, c++-format+msgid "Sending {}…"+msgstr ""++#. TRANSLATORS: {0} is the current file's position, {1} the batch size.+#: src/gtk/devices_view.cpp:422+#, c++-format+msgid "({0} of {1})"+msgstr ""++#: src/gtk/devices_view.cpp:437+msgid "Daemon unavailable."+msgstr ""++#: src/gtk/devices_view.cpp:457 src/gtk/devices_view.cpp:1247+msgid "Send File"+msgstr ""++#: src/gtk/devices_view.cpp:528+msgid "Folders can't be sent — drop files instead."+msgstr ""++#: src/gtk/devices_view.cpp:538+msgid "Clipboard, files, and OTP are connected."+msgstr ""++#: src/gtk/devices_view.cpp:539+msgid "No paired iPhone is connected. Open the Tether app on the phone."+msgstr ""++#: src/gtk/devices_view.cpp:551 src/gtk/devices_view.cpp:562+#: src/gtk/devices_view.cpp:599 src/gtk/devices_view.cpp:814+#: src/gtk/devices_view.cpp:815+msgid "Unknown Device"+msgstr ""++#: src/gtk/devices_view.cpp:581+msgid "Scanning for nearby devices..."+msgstr ""++#: src/gtk/devices_view.cpp:638 src/gtk/devices_view.cpp:672+msgid "Connected"+msgstr ""++#: src/gtk/devices_view.cpp:638+msgid "Offline"+msgstr ""++#: src/gtk/devices_view.cpp:638 src/gtk/devices_view.cpp:672+msgid "Nearby (Tap to Pair)"+msgstr ""++#: src/gtk/devices_view.cpp:672+msgid "Paired"+msgstr ""++#: src/gtk/devices_view.cpp:881 src/gtk/devices_view.cpp:1266+msgid "Ready"+msgstr ""++#: src/gtk/devices_view.cpp:903+#, c++-format+msgid "Sent {0} of {1} file."+msgid_plural "Sent {0} of {1} files."+msgstr[0] ""+msgstr[1] ""++#: src/gtk/devices_view.cpp:912+#, c++-format+msgid "Skipped {} non-file item."+msgid_plural "Skipped {} non-file items."+msgstr[0] ""+msgstr[1] ""++#: src/gtk/devices_view.cpp:923+msgid "Desktop Clipboard Sync triggered."+msgstr ""++#: src/gtk/devices_view.cpp:949+msgid "Messages and notifications are connected."+msgstr ""++#: src/gtk/devices_view.cpp:964+msgid ""+"No iPhone found. Unlock the phone and open Settings > Bluetooth so it "+"advertises, then scan again."+msgstr ""++#: src/gtk/devices_view.cpp:1013+msgid "Connect your iPhone"+msgstr ""++#: src/gtk/devices_view.cpp:1058+msgid "clipboard, files, OTP"+msgstr ""++#: src/gtk/devices_view.cpp:1059+msgid ""+"1. Open the Tether app on the iPhone\n"+"2. It finds this computer by itself\n"+"3. Approve on both ends"+msgstr ""++#: src/gtk/devices_view.cpp:1067+msgid "messages, notifications"+msgstr ""++#: src/gtk/devices_view.cpp:1068+msgid ""+"1. Pick the iPhone under BLUETOOTH\n"+"2. Press Pair over Bluetooth\n"+"3. Grant the two toggles on the phone"+msgstr ""++#: src/gtk/devices_view.cpp:1076+msgid "Scan for devices"+msgstr ""++#: src/gtk/devices_view.cpp:1101+msgid "Bluetooth needs one-time system setup"+msgstr ""++#: src/gtk/devices_view.cpp:1119+msgid "Copy commands"+msgstr ""++#: src/gtk/devices_view.cpp:1121+msgid ""+"Run these in a terminal. Tether does not change your Bluetooth adapter or "+"bluetoothd on its own."+msgstr ""++#: src/gtk/devices_view.cpp:1145+msgid "Connect to this iPhone over Bluetooth"+msgstr ""++#: src/gtk/devices_view.cpp:1147+msgid ""+"Keep the Bluetooth link to the iPhone up, reconnecting whenever it drops. "+"Turning this off stops Tether reconnecting; a link that is already up stays "+"up until you disconnect it."+msgstr ""++#: src/gtk/devices_view.cpp:1154+msgid "Mirror iPhone notifications"+msgstr ""++#: src/gtk/devices_view.cpp:1156+msgid ""+"Show notifications from the iPhone on this desktop. Turned off automatically "+"when pairing produces no LE bond; turn it back on after re-pairing."+msgstr ""++#: src/gtk/devices_view.cpp:1162+msgid "Show notification contents"+msgstr ""++#: src/gtk/devices_view.cpp:1164+msgid ""+"Ask the iPhone for each notification's title and message text, not just "+"which app sent it. The phone's own Show Message Notifications toggle still "+"has to be on."+msgstr ""++#: src/gtk/devices_view.cpp:1177+msgid "Pair over Bluetooth"+msgstr ""++#: src/gtk/devices_view.cpp:1182 src/gtk/messages_view.cpp:818+msgid "Show iPhone Permissions"+msgstr ""++#: src/gtk/devices_view.cpp:1184 src/gtk/messages_view.cpp:821+msgid ""+"Re-advertise so the iPhone shows its Show Message Notifications and Sync "+"Contacts toggles under Settings > Bluetooth > (i)."+msgstr ""++#: src/gtk/devices_view.cpp:1189+msgid "Unpair"+msgstr ""++#: src/gtk/devices_view.cpp:1212+msgid "Pair Device"+msgstr ""++#: src/gtk/devices_view.cpp:1218+msgid "Force Trust (Accept Pending)"+msgstr ""++#: src/gtk/devices_view.cpp:1243+msgid "Drop files here to send"+msgstr ""++#: src/gtk/devices_view.cpp:1252+msgid "Send Clipboard"+msgstr ""++#: src/gtk/devices_view.cpp:1259+msgid "Clipboard sync requested..."+msgstr ""++#: src/gtk/main.cpp:55+msgid "Keep running in tray when closed"+msgstr ""++#: src/gtk/main.cpp:65+msgid "Quit"+msgstr ""++#: src/gtk/main.cpp:101 src/gtk/main.cpp:109 src/gtk/tether-gtk.desktop.in:2+msgid "Tether"+msgstr ""++#: src/gtk/main.cpp:125+msgid "Devices"+msgstr ""++#: src/gtk/main.cpp:174+msgid "Start hidden in the system tray"+msgstr ""++#: src/gtk/main.cpp:178+msgid "Open on this tab"+msgstr ""++#: src/gtk/main.cpp:185+msgid "Open the messages tab on this conversation"+msgstr ""++#: src/gtk/messages_view.cpp:387 src/gtk/messages_view.cpp:461+msgid "Sending…"+msgstr ""++#: src/gtk/messages_view.cpp:392+msgid "Enter a recipient."+msgstr ""++#: src/gtk/messages_view.cpp:394+msgid "Select a conversation first."+msgstr ""++#: src/gtk/messages_view.cpp:398+msgid "Replying to this conversation is not available."+msgstr ""++#: src/gtk/messages_view.cpp:435+msgid "No answer about that message; it may still have been sent."+msgstr ""++#: src/gtk/messages_view.cpp:450+msgid "Could not reach the Tether daemon; the message was not sent."+msgstr ""++#: src/gtk/messages_view.cpp:494+msgid "Sent"+msgstr ""++#: src/gtk/messages_view.cpp:646 src/gtk/messages_view.cpp:840+msgid "New Message"+msgstr ""++#: src/gtk/messages_view.cpp:860+msgid "Select a conversation"+msgstr ""++#: src/gtk/messages_view.cpp:872+msgid "Phone number or email"+msgstr ""++#: src/gtk/messages_view.cpp:951+msgid "Send"+msgstr ""++#: src/gtk/notifications_view.cpp:86+msgid "New notification"+msgstr ""++#: src/gtk/notifications_view.cpp:148+msgid "No notifications yet."+msgstr ""++#: src/gtk/notifications_view.cpp:149+msgid "Notification mirroring is unavailable."+msgstr ""++#: src/gtk/notifications_view.cpp:164+msgid "Waiting for the iPhone."+msgstr ""++#: src/gtk/tray.cpp:277+msgid "connected"+msgstr ""++#: src/gtk/tray.cpp:277+msgid "not connected"+msgstr ""++#. TRANSLATORS: {} is a transport name, "Wi-Fi" or "Bluetooth".+#: src/gtk/tray.cpp:279+#, c++-format+msgid "{}: {}"+msgstr ""++#: src/gtk/tray.cpp:282+msgid "Daemon: not running"+msgstr ""++#: src/gtk/tray.cpp:284+#, c++-format+msgid "{} unread message"+msgid_plural "{} unread messages"+msgstr[0] ""+msgstr[1] ""++#: src/gtk/tether-gtk.desktop.in:3+msgid "Device Synchronization"+msgstr ""++#: src/gtk/tether-gtk.desktop.in:4+msgid "Pair devices and synchronize clipboard across the network"+msgstr ""diff --git a/po/update-pot.sh b/po/update-pot.shnew file mode 100755index 0000000..a4bd405--- /dev/null+++ b/po/update-pot.sh@@ -0,0 +1,53 @@+#!/bin/sh+# Regenerate po/tether.pot from the sources in POTFILES.in and merge it into+# every catalog listed in LINGUAS. Run from the repository root, or via `make pot`.+set -e++cd "$(dirname "$0")/.."++VERSION=$(git describe --tags --always 2>/dev/null | sed 's/^v//' || true)+[ -n "$VERSION" ] || VERSION=unknown++# The metadata has to be repeated on the --join-existing call: it rewrites the+# header from its own defaults rather than keeping the one already in the file.+META="--package-name=tether --package-version=$VERSION [email protected]"++NEW=$(mktemp)+OLD_STRIPPED=$(mktemp)+NEW_STRIPPED=$(mktemp)+trap 'rm -f "$NEW" "$OLD_STRIPPED" "$NEW_STRIPPED"' EXIT++# shellcheck disable=SC2086+xgettext --files-from=po/POTFILES.in --directory=. \+ --output="$NEW" --from-code=UTF-8 --c++ \+ --keyword=_ --keyword=N_ --keyword=P_:1,2 \+ --add-comments=TRANSLATORS $META++# Desktop entry keys join the same catalog, so msgfmt --desktop can localize them.+# shellcheck disable=SC2086+xgettext -j -L Desktop --output="$NEW" \+ --keyword=Name --keyword=GenericName --keyword=Comment $META \+ src/gtk/tether-gtk.desktop.in++# POT-Creation-Date alone changes on every run and would dirty the pot and all+# four catalogs for nothing, so a run that changed only the timestamp is dropped.+if [ -f po/tether.pot ]; then+ grep -v '^"POT-Creation-Date:' po/tether.pot > "$OLD_STRIPPED"+ grep -v '^"POT-Creation-Date:' "$NEW" > "$NEW_STRIPPED"+ if cmp -s "$OLD_STRIPPED" "$NEW_STRIPPED"; then+ echo "po/tether.pot is up to date"+ exit 0+ fi+fi+cp "$NEW" po/tether.pot++while read -r lang; do+ [ -n "$lang" ] || continue+ if [ -f "po/$lang.po" ]; then+ msgmerge --quiet --update --backup=none "po/$lang.po" po/tether.pot+ else+ msginit --no-translator --locale="$lang" --input=po/tether.pot --output="po/$lang.po"+ fi+done < po/LINGUAS++echo "po/tether.pot updated; $(grep -c '^msgid' po/tether.pot) entries"diff --git a/src/cli/main.cpp b/src/cli/main.cppindex afc68fc..74d1d9e 100644--- a/src/cli/main.cpp+++ b/src/cli/main.cpp@@ -8,6 +8,7 @@#include <tether/client.hpp>#include <tether/crypto.hpp>#include <tether/discovery.hpp>+#include <tether/i18n.hpp>#include <tether/log.hpp>#include <thread>#include <unistd.h>@@ -95,44 +96,45 @@ void run_native_messaging_host(tether::Client& client) {}void print_help() {- std::cout << "tether - Wayland companion CLI\n\n"- << "Options:\n"- << " -h, --help Show this help message.\n"- << " -g, --get-clipboard Retrieve the current Wayland clipboard text.\n"- << " -s, --set-clipboard Take string input and copy it to the local Wayland clipboard.\n"- << " -f, --send-file Send a file through tether.\n"- << " -n, --native-host Start the browser Native Messaging Host proxy loop.\n"- << " -d, --discover Scan the local network for tetherd instances via mDNS.\n"- << " --host <ip> Connect over TCP to daemon ip instead of UNIX Socket.\n"- << " --port <num> Connect over TCP port (default 5134).\n"- << " --timeout <ms> Discovery scan duration in milliseconds (default 3000).\n"- << " --list-devices List all paired connection devices.\n"- << " --bt-setup Show the one-time system setup Bluetooth still needs.\n"- << " --bt-status Show Bluetooth adapter capability and delivery mode.\n"- << " --bt-devices List Bluetooth devices known to BlueZ.\n"- << " --bt-connection Show Bluetooth link and profile connection state.\n"- << " --bt-threads List iPhone message conversations.\n"- << " --bt-messages <thread> Show messages in one conversation.\n"- << " --bt-send <thread> <text> Reply in one conversation.\n"- << " --bt-pair <addr> Pair with an iPhone over Bluetooth.\n"- << " --bt-unpair <addr> Remove a Bluetooth bond.\n"- << " --bt-solicit Re-advertise for ANCS so the iPhone shows its permission\n"- << " toggles again, without removing the bond.\n"- << " --bt-enable <on|off> Connect to the iPhone over Bluetooth, or stop.\n"- << " --bt-ancs <on|off> Turn notification mirroring on or off.\n"- << " --bt-ancs-content <on|off> Mirror notification titles and bodies, not just the app.\n"- << " --bt-notifications List mirrored iPhone notifications.\n"- << " --bt-diagnostics Print a redacted Bluetooth report for a bug report.\n"- << " --accept <fingerprint> Accept a pending pairing request locally.\n"- << " --pair Send a pair_request over TCP to the daemon.\n\n"- << "Examples:\n"- << " tether -g\n"- << " tether -g --host 127.0.0.1\n"- << " echo \"pipe\" | tether -s\n"- << " tether --discover\n"- << " tether --discover --timeout 5000\n"- << " tether -f ./report.pdf\n"- << " tether --accept 9a4f21...\n";+ // TRANSLATORS: keep the flag names and the column alignment; only the descriptions after them are prose.+ std::cout << _("tether - Wayland companion CLI\n\n"+ "Options:\n"+ " -h, --help Show this help message.\n"+ " -g, --get-clipboard Retrieve the current Wayland clipboard text.\n"+ " -s, --set-clipboard Take string input and copy it to the local Wayland clipboard.\n"+ " -f, --send-file Send a file through tether.\n"+ " -n, --native-host Start the browser Native Messaging Host proxy loop.\n"+ " -d, --discover Scan the local network for tetherd instances via mDNS.\n"+ " --host <ip> Connect over TCP to daemon ip instead of UNIX Socket.\n"+ " --port <num> Connect over TCP port (default 5134).\n"+ " --timeout <ms> Discovery scan duration in milliseconds (default 3000).\n"+ " --list-devices List all paired connection devices.\n"+ " --bt-setup Show the one-time system setup Bluetooth still needs.\n"+ " --bt-status Show Bluetooth adapter capability and delivery mode.\n"+ " --bt-devices List Bluetooth devices known to BlueZ.\n"+ " --bt-connection Show Bluetooth link and profile connection state.\n"+ " --bt-threads List iPhone message conversations.\n"+ " --bt-messages <thread> Show messages in one conversation.\n"+ " --bt-send <thread> <text> Reply in one conversation.\n"+ " --bt-pair <addr> Pair with an iPhone over Bluetooth.\n"+ " --bt-unpair <addr> Remove a Bluetooth bond.\n"+ " --bt-solicit Re-advertise for ANCS so the iPhone shows its permission\n"+ " toggles again, without removing the bond.\n"+ " --bt-enable <on|off> Connect to the iPhone over Bluetooth, or stop.\n"+ " --bt-ancs <on|off> Turn notification mirroring on or off.\n"+ " --bt-ancs-content <on|off> Mirror notification titles and bodies, not just the app.\n"+ " --bt-notifications List mirrored iPhone notifications.\n"+ " --bt-diagnostics Print a redacted Bluetooth report for a bug report.\n"+ " --accept <fingerprint> Accept a pending pairing request locally.\n"+ " --pair Send a pair_request over TCP to the daemon.\n\n"+ "Examples:\n"+ " tether -g\n"+ " tether -g --host 127.0.0.1\n"+ " echo \"pipe\" | tether -s\n"+ " tether --discover\n"+ " tether --discover --timeout 5000\n"+ " tether -f ./report.pdf\n"+ " tether --accept 9a4f21...\n");}// The two known gaps (adapter class, experimental API) change the machine@@ -142,26 +144,27 @@ static int print_bt_setup(tether::Client& client) {try {resp = nlohmann::json::parse(client.send_and_wait("{\"command\":\"bt_status\"}\n"));} catch (const std::exception&) {- debug::log(ERR, "Could not read Bluetooth status from the daemon.\n");+ debug::log(ERR, _("Could not read Bluetooth status from the daemon.\n"));return 1;}if (!resp.value("available", false)) {- fprintf(stdout, "Bluetooth: unavailable (is bluetoothd running?)\n");+ fprintf(stdout, _("Bluetooth: unavailable (is bluetoothd running?)\n"));return 1;}const auto& cap = resp["capability"];const auto& setup = cap["setup"];if (setup.empty()) {- fprintf(stdout, "Bluetooth setup is complete. Nothing to do.\n");+ fprintf(stdout, _("Bluetooth setup is complete. Nothing to do.\n"));return 0;}fprintf(stdout,- "\n%zu step%s left before the iPhone Bluetooth features work:\n",- setup.size(),- setup.size() == 1 ? "" : "s");+ P_("\n%zu step left before the iPhone Bluetooth features work:\n",+ "\n%zu steps left before the iPhone Bluetooth features work:\n",+ setup.size()),+ setup.size());size_t n = 0;for (const auto& step : setup) {@@ -172,7 +175,7 @@ static int print_bt_setup(tether::Client& client) {fprintf(stdout, " %s\n", line.c_str());}- fprintf(stdout, "\nRe-run 'tether --bt-setup' afterwards to confirm.\n");+ fprintf(stdout, _("\nRe-run 'tether --bt-setup' afterwards to confirm.\n"));return 0;}@@ -181,33 +184,33 @@ static int print_bt_status(tether::Client& client) {try {resp = nlohmann::json::parse(client.send_and_wait("{\"command\":\"bt_status\"}\n"));} catch (const std::exception&) {- debug::log(ERR, "Could not read Bluetooth status from the daemon.\n");+ debug::log(ERR, _("Could not read Bluetooth status from the daemon.\n"));return 1;}if (!resp.value("available", false)) {- fprintf(stdout, "Bluetooth: unavailable (is bluetoothd running?)\n");+ fprintf(stdout, _("Bluetooth: unavailable (is bluetoothd running?)\n"));return 1;}const auto& cap = resp["capability"];- fprintf(stdout, "Mode: %s\n", cap.value("mode", "unknown").c_str());- fprintf(stdout, "Bearer API: %s\n", cap.value("bearer_api", "unknown").c_str());+ fprintf(stdout, _("Mode: %s\n"), cap.value("mode", "unknown").c_str());+ fprintf(stdout, _("Bearer API: %s\n"), cap.value("bearer_api", "unknown").c_str());fprintf(stdout,- "Adapter: powered=%s central=%s peripheral=%s advertising=%s class=%s\n",+ _("Adapter: powered=%s central=%s peripheral=%s advertising=%s class=%s\n"),cap.value("powered", false) ? "yes" : "no",cap.value("le_central", false) ? "yes" : "no",cap.value("le_peripheral", false) ? "yes" : "no",cap.value("advertising", false) ? "yes" : "no",cap.value("class_ok", false) ? "ok" : "wrong");fprintf(stdout,- " secure-connections=%s\n",+ _(" secure-connections=%s\n"),cap.contains("secure_connections") && cap["secure_connections"].is_boolean()? (cap["secure_connections"].get<bool>() ? "on" : "OFF"): "unknown");if (cap.value("bonded_device_present", false))- fprintf(stdout, "Bond: %s\n", cap.value("bond_has_le", false) ? "BR/EDR + LE" : "BR/EDR only");- fprintf(stdout, "Tether: %s\n", resp.value("enabled", true) ? "connecting" : "off (--bt-enable on)");+ fprintf(stdout, _("Bond: %s\n"), cap.value("bond_has_le", false) ? "BR/EDR + LE" : "BR/EDR only");+ fprintf(stdout, _("Tether: %s\n"), resp.value("enabled", true) ? "connecting" : "off (--bt-enable on)");for (const auto& adapter : resp["adapters"]) {fprintf(stdout, " %s %s\n", adapter.value("address", "").c_str(), adapter.value("name", "").c_str());@@ -221,7 +224,11 @@ static int print_bt_status(tether::Client& client) {const size_t pending = cap.contains("setup") ? cap["setup"].size() : 0;if (pending > 0)- fprintf(stdout, "\n%zu setup step%s remaining. Run: tether --bt-setup\n", pending, pending == 1 ? "" : "s");+ fprintf(stdout,+ P_("\n%zu setup step remaining. Run: tether --bt-setup\n",+ "\n%zu setup steps remaining. Run: tether --bt-setup\n",+ pending),+ pending);return 0;}@@ -230,13 +237,13 @@ static int print_bt_devices(tether::Client& client) {try {resp = nlohmann::json::parse(client.send_and_wait("{\"command\":\"bt_list_devices\"}\n"));} catch (const std::exception&) {- debug::log(ERR, "Could not read Bluetooth devices from the daemon.\n");+ debug::log(ERR, _("Could not read Bluetooth devices from the daemon.\n"));return 1;}const auto& devices = resp["devices"];if (devices.empty()) {- fprintf(stdout, "No Bluetooth devices known to BlueZ.\n");+ fprintf(stdout, _("No Bluetooth devices known to BlueZ.\n"));return 0;}@@ -281,7 +288,7 @@ static int run_bt_transaction(tether::Client& client, const std::string& commandif (!address.empty())request["address"] = address;if (!client.send(request.dump() + "\n")) {- debug::log(ERR, "Could not reach the daemon.\n");+ debug::log(ERR, _("Could not reach the daemon.\n"));return 1;}@@ -290,7 +297,7 @@ static int run_bt_transaction(tether::Client& client, const std::string& commandwhile (true) {ssize_t n = client.read(buf, sizeof(buf));if (n <= 0) {- debug::log(ERR, "Daemon closed the connection before the operation finished.\n");+ debug::log(ERR, _("Daemon closed the connection before the operation finished.\n"));return 1;}buffer.append(buf, n);@@ -326,21 +333,21 @@ static int print_bt_connection(tether::Client& client) {try {resp = nlohmann::json::parse(client.send_and_wait("{\"command\":\"bt_connection\"}\n"));} catch (const std::exception&) {- debug::log(ERR, "Could not read Bluetooth connection state from the daemon.\n");+ debug::log(ERR, _("Could not read Bluetooth connection state from the daemon.\n"));return 1;}auto yn = [](bool v) { return v ? "yes" : "no"; };- fprintf(stdout, "Device present: %s\n", yn(resp.value("device_present", false)));- fprintf(stdout, "BR/EDR: %s\n", yn(resp.value("classic_connected", false)));+ fprintf(stdout, _("Device present: %s\n"), yn(resp.value("device_present", false)));+ fprintf(stdout, _("BR/EDR: %s\n"), yn(resp.value("classic_connected", false)));fprintf(stdout,- "LE: %s%s\n",+ _("LE: %s%s\n"),yn(resp.value("le_connected", false)),resp.value("le_available", false) ? "" : " (bearer unavailable)");- fprintf(stdout, "Messages (MAP): %s", yn(resp.value("map_open", false)));+ fprintf(stdout, _("Messages (MAP): %s"), yn(resp.value("map_open", false)));if (resp.value("map_error", std::string("none")) != "none")fprintf(stdout, " [%s]", resp.value("map_error", "").c_str());- fprintf(stdout, "\nContacts (PBAP): %s", yn(resp.value("pbap_open", false)));+ fprintf(stdout, _("\nContacts (PBAP): %s"), yn(resp.value("pbap_open", false)));if (resp.value("pbap_error", std::string("none")) != "none")fprintf(stdout, " [%s]", resp.value("pbap_error", "").c_str());fprintf(stdout, "\n");@@ -361,7 +368,7 @@ static int print_bt_diagnostics(tether::Client& client) {try {resp = nlohmann::json::parse(client.send_and_wait("{\"command\":\"bt_diagnostics\"}\n"));} catch (const std::exception&) {- debug::log(ERR, "Could not read Bluetooth diagnostics from the daemon.\n");+ debug::log(ERR, _("Could not read Bluetooth diagnostics from the daemon.\n"));return 1;}@@ -385,13 +392,13 @@ static int print_bt_notifications(tether::Client& client) {try {resp = nlohmann::json::parse(client.send_and_wait("{\"command\":\"bt_list_notifications\"}\n"));} catch (const std::exception&) {- debug::log(ERR, "Could not read notifications from the daemon.\n");+ debug::log(ERR, _("Could not read notifications from the daemon.\n"));return 1;}const auto& notifications = resp["notifications"];if (notifications.empty()) {- fprintf(stdout, "No notifications yet. Check 'tether --bt-connection'.\n");+ fprintf(stdout, _("No notifications yet. Check 'tether --bt-connection'.\n"));return 0;}@@ -419,13 +426,13 @@ static int print_bt_threads(tether::Client& client) {try {resp = nlohmann::json::parse(client.send_and_wait("{\"command\":\"bt_list_threads\"}\n"));} catch (const std::exception&) {- debug::log(ERR, "Could not read conversations from the daemon.\n");+ debug::log(ERR, _("Could not read conversations from the daemon.\n"));return 1;}const auto& threads = resp["threads"];if (threads.empty()) {- fprintf(stdout, "No conversations yet. Check 'tether --bt-connection'.\n");+ fprintf(stdout, _("No conversations yet. Check 'tether --bt-connection'.\n"));return 0;}@@ -438,7 +445,8 @@ static int print_bt_threads(tether::Client& client) {if (c == '\n' || c == '\r')c = ' ';- const std::string unread_note = unread > 0 ? " (" + std::to_string(unread) + " unread)" : "";+ const std::string unread_note =+ unread > 0 ? " " + tether::tr_format(P_("({} unread)", "({} unread)", unread), unread) : "";fprintf(stdout," %-24s %-18s %s%s\n",t.value("name", "").c_str(),@@ -459,13 +467,13 @@ static int print_bt_messages(tether::Client& client, const std::string& thread)try {resp = nlohmann::json::parse(client.send_and_wait(request.dump() + "\n"));} catch (const std::exception&) {- debug::log(ERR, "Could not read messages from the daemon.\n");+ debug::log(ERR, _("Could not read messages from the daemon.\n"));return 1;}const auto& messages = resp["messages"];if (messages.empty()) {- fprintf(stdout, "No messages in %s\n", thread.c_str());+ fprintf(stdout, _("No messages in %s\n"), thread.c_str());return 0;}@@ -473,7 +481,7 @@ static int print_bt_messages(tether::Client& client, const std::string& thread)fprintf(stdout,"%s %-8s %s%s\n",format_time(m.value("timestamp", (int64_t)0)).c_str(),- m.value("outgoing", false) ? "me" : "them",+ m.value("outgoing", false) ? _("me") : _("them"),m.value("body", "").c_str(),m.value("read", true) ? "" : " *");}@@ -491,7 +499,7 @@ static int send_bt_message(tether::Client& client, const std::string& thread, co// reply to the request.client.send("{\"command\":\"subscribe\"}\n");if (!client.send(request.dump() + "\n")) {- debug::log(ERR, "Could not reach the daemon.\n");+ debug::log(ERR, _("Could not reach the daemon.\n"));return 1;}@@ -500,7 +508,7 @@ static int send_bt_message(tether::Client& client, const std::string& thread, cowhile (true) {ssize_t n = client.read(buf, sizeof(buf));if (n <= 0) {- debug::log(ERR, "Daemon closed the connection before the message was sent.\n");+ debug::log(ERR, _("Daemon closed the connection before the message was sent.\n"));return 1;}buffer.append(buf, n);@@ -522,16 +530,18 @@ static int send_bt_message(tether::Client& client, const std::string& thread, coif (event.value("command", "") != "bt_send_result")continue;if (event.value("success", false)) {- fprintf(stdout, "Sent to %s\n", thread.c_str());+ fprintf(stdout, _("Sent to %s\n"), thread.c_str());return 0;}- debug::log(ERR, "{}\n", event.value("message", "The message was not sent."));+ debug::log(ERR, "{}\n", event.value("message", _("The message was not sent.")));return 1;}}}int main(int argc, char* argv[]) {+ tether::init_locale();+if (argc < 2) {print_help();return 0;@@ -627,7 +637,7 @@ int main(int argc, char* argv[]) {}if (action.empty()) {- debug::log(ERR, "Unknown action. Run tether --help for options\n");+ debug::log(ERR, _("Unknown action. Run tether --help for options\n"));return 1;}@@ -649,13 +659,13 @@ int main(int argc, char* argv[]) {auto devices = tether::group_discovered_hosts(hosts);if (devices.empty()) {- debug::log(INFO, " No tetherd instances found.\n");+ debug::log(INFO, _(" No tetherd instances found.\n"));} else {tether::Crypto::instance().init();for (const auto& dev : devices) {- std::string status = "[new]";+ std::string status = _("[new]");if (!dev.fingerprint.empty() && tether::Crypto::instance().is_host_known(dev.fingerprint)) {- status = "[known]";+ status = _("[known]");}fprintf(stdout, " %-20s %s\n", dev.name.c_str(), status.c_str());for (const auto& addr : dev.addresses) {@@ -665,7 +675,10 @@ int main(int argc, char* argv[]) {}}- fprintf(stdout, "Found %zu device(s) in %.1fs\n", devices.size(), timeout_ms / 1000.0);+ fprintf(stdout,+ P_("Found %zu device in %.1fs\n", "Found %zu devices in %.1fs\n", devices.size()),+ devices.size(),+ timeout_ms / 1000.0);return 0;}@@ -679,9 +692,10 @@ int main(int argc, char* argv[]) {// Bind network abstraction nativelyif (!client.connect(host, port)) {- debug::log(ERR,- "Explicit framework connection locally rejected! Did you target explicitly invalid TLS or is daemon "- "broken?\n");+ debug::log(+ ERR,+ _("Explicit framework connection locally rejected! Did you target explicitly invalid TLS or is daemon "+ "broken?\n"));return 1;}@@ -710,7 +724,7 @@ int main(int argc, char* argv[]) {} else if (action == "file") {debug::log(INFO, "Sending {}...", arg_val);if (!client.send_file(arg_val, err)) {- debug::log(ERR, "Transfer Failed: {}", err);+ debug::log(ERR, _("Transfer Failed: {}"), err);return 1;}debug::log(INFO, "File transfer delivered.\n");@@ -732,19 +746,19 @@ int main(int argc, char* argv[]) {return print_bt_notifications(client);} else if (action == "bt_messages") {if (arg_val.empty()) {- debug::log(ERR, "A thread key is required, e.g. --bt-messages tel:+15551234567\n");+ debug::log(ERR, _("A thread key is required, e.g. --bt-messages tel:+15551234567\n"));return 1;}return print_bt_messages(client, arg_val);} else if (action == "bt_send") {if (arg_val.empty() || arg_val2.empty()) {- debug::log(ERR, "A conversation and a message are required, e.g. --bt-send tel:+15551234567 \"hi\"\n");+ debug::log(ERR, _("A conversation and a message are required, e.g. --bt-send tel:+15551234567 \"hi\"\n"));return 1;}return send_bt_message(client, arg_val, arg_val2);} else if (action == "bt_pair" || action == "bt_unpair") {if (arg_val.empty()) {- debug::log(ERR, "A Bluetooth address is required, e.g. --bt-pair AA:BB:CC:DD:EE:FF\n");+ debug::log(ERR, _("A Bluetooth address is required, e.g. --bt-pair AA:BB:CC:DD:EE:FF\n"));return 1;}return run_bt_transaction(client, action == "bt_pair" ? "bt_pair" : "bt_unpair", arg_val);@@ -752,40 +766,41 @@ int main(int argc, char* argv[]) {return run_bt_transaction(client, "bt_solicit");} else if (action == "bt_enable") {if (arg_val != "on" && arg_val != "off") {- debug::log(ERR, "Expected on or off, e.g. --bt-enable off\n");+ debug::log(ERR, _("Expected on or off, e.g. --bt-enable off\n"));return 1;}nlohmann::json request;request["command"] = "bt_set_enabled";request["enabled"] = arg_val == "on";if (!client.send(request.dump() + "\n")) {- debug::log(ERR, "Could not reach the daemon.\n");+ debug::log(ERR, _("Could not reach the daemon.\n"));return 1;}if (arg_val == "on") {- fprintf(stdout, "Bluetooth enabled.\n");+ fprintf(stdout, _("Bluetooth enabled.\n"));} else {fprintf(stdout,- "Bluetooth disabled. Tether will not reconnect the iPhone. A link that is\n"- "already up stays up until you disconnect it or the phone goes out of range.\n");+ _("Bluetooth disabled. Tether will not reconnect the iPhone. A link that is\n"+ "already up stays up until you disconnect it or the phone goes out of range.\n"));}} else if (action == "bt_ancs" || action == "bt_ancs_content") {const bool content = action == "bt_ancs_content";if (arg_val != "on" && arg_val != "off") {- debug::log(ERR, "Expected on or off, e.g. {} on\n", content ? "--bt-ancs-content" : "--bt-ancs");+ debug::log(ERR, _("Expected on or off, e.g. {} on\n"), content ? "--bt-ancs-content" : "--bt-ancs");return 1;}nlohmann::json request;request["command"] = content ? "bt_set_ancs_content" : "bt_set_ancs";request["enabled"] = arg_val == "on";if (!client.send(request.dump() + "\n")) {- debug::log(ERR, "Could not reach the daemon.\n");+ debug::log(ERR, _("Could not reach the daemon.\n"));return 1;}+ const bool on = arg_val == "on";fprintf(stdout,- "%s %s.\n",- content ? "Notification contents" : "Notification mirroring",- arg_val == "on" ? "enabled" : "disabled");+ "%s\n",+ content ? (on ? _("Notification contents enabled.") : _("Notification contents disabled."))+ : (on ? _("Notification mirroring enabled.") : _("Notification mirroring disabled.")));}return 0;diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txtindex e276734..cf3038d 100644--- a/src/core/CMakeLists.txt+++ b/src/core/CMakeLists.txt@@ -1,5 +1,6 @@add_library(tether STATICsrc/core.cpp+ src/i18n.cppsrc/event_loop.cppsrc/net.cppsrc/clipboard.cpp@@ -47,6 +48,8 @@ target_include_directories(tether PUBLIC# Where the bluetooth.service drop-in is shipped, so --bt-setup can name it.target_compile_definitions(tether PRIVATETETHER_DATADIR="${CMAKE_INSTALL_FULL_DATADIR}/tether"+ TETHER_LOCALEDIR="${CMAKE_INSTALL_FULL_LOCALEDIR}"+ TETHER_GETTEXT_DOMAIN="tether")@@ -57,4 +60,5 @@ target_link_libraries(tether PUBLICOpenSSL::CryptoPkgConfig::AVAHIPkgConfig::GLIB+ Intl::Intl)diff --git a/src/core/include/tether/i18n.hpp b/src/core/include/tether/i18n.hppnew file mode 100644index 0000000..37ecb06--- /dev/null+++ b/src/core/include/tether/i18n.hpp@@ -0,0 +1,29 @@+#pragma once++#include <format>+#include <libintl.h>+#include <string>+#include <string_view>++// Defines the `_` macro, so include this from .cpp files only+#define _(s) gettext(s)+#define N_(s) (s)+#define P_(sing, plur, n) ngettext(sing, plur, static_cast<unsigned long>(n))++namespace tether {++ // Call once. setlocale + bindtextdomain.+ void init_locale();++ // std::format against a runtime format string, so a translation can reorder+ // arguments with {0}/{1}. Returns the format string itself if a translation+ // drops or mangles a placeholder, rather than throwing at the user.+ template <typename... Args> std::string tr_format(std::string_view f, const Args&... args) {+ try {+ return std::vformat(f, std::make_format_args(args...));+ } catch (const std::format_error&) {+ return std::string(f);+ }+ }++} // namespace tetherdiff --git a/src/core/src/bluetooth/bearer_supervisor.cpp b/src/core/src/bluetooth/bearer_supervisor.cppindex 8b8697d..62f26f8 100644--- a/src/core/src/bluetooth/bearer_supervisor.cpp+++ b/src/core/src/bluetooth/bearer_supervisor.cpp@@ -1,5 +1,6 @@#include "tether/bluetooth/bearer_supervisor.hpp"#include "tether/log.hpp"+#include <tether/i18n.hpp>#include <algorithm>@@ -56,10 +57,11 @@ namespace tether::bluetooth {return is_transient(err) ? BEARER_BACKOFF_MIN_SECONDS : grow_backoff(current, ceiling);}+ // Marked here, translated where it is read: gettext cannot run at namespace scope.constexpr const char* LE_PHONE_SILENT_ADVICE =- "The iPhone is not answering on LE. Its Bluetooth is wedged on its own side: turn Bluetooth off "- "and back on on the iPhone, which clears this even when Share System Notifications is already on. "- "Messages and contacts are unaffected.";+ N_("The iPhone is not answering on LE. Its Bluetooth is wedged on its own side: turn Bluetooth off "+ "and back on on the iPhone, which clears this even when Share System Notifications is already on. "+ "Messages and contacts are unaffected.");} // namespace@@ -150,23 +152,24 @@ namespace tether::bluetooth {// permissions already on, is wedged on its own side: nothing here// clears it, and saying "connecting" forever hides that.status_.reason = classic_failures_ >= CLASSIC_FAILURES_BEFORE_ADVICE && !status_.le_connected- ? "The iPhone keeps refusing the Bluetooth connection. Turn Bluetooth off and "- "back on on the iPhone — that clears it even when the permissions are already "- "on. Re-pairing is not the fix."+ ? _("The iPhone keeps refusing the Bluetooth connection. Turn Bluetooth off and "+ "back on on the iPhone — that clears it even when the permissions are already "+ "on. Re-pairing is not the fix."): status_.le_connected- ? "Notifications are connected. Still reaching the iPhone for messages and contacts..."- : "Connecting to the iPhone over Bluetooth...";+ ? _("Notifications are connected. Still reaching the iPhone for messages and "+ "contacts...")+ : _("Connecting to the iPhone over Bluetooth...");return !(status_ == previous);}// Classic is up. LE is only worth attempting once the ACL has settled.if (!ancs_enabled_) {- status_.reason = "Connected. Notification mirroring is disabled.";+ status_.reason = _("Connected. Notification mirroring is disabled.");return !(status_ == previous);}if (!status_.le_available) {- status_.reason = "Connected. BlueZ is not exposing an LE bearer, so notifications are unavailable.";+ status_.reason = _("Connected. BlueZ is not exposing an LE bearer, so notifications are unavailable.");return !(status_ == previous);}@@ -187,14 +190,14 @@ namespace tether::bluetooth {status_.le_dialling = ops_.le_connect_outstanding();status_.reason = le_down_since_ >= 0 && now - le_down_since_ >= LE_SILENT_SECONDS- ? LE_PHONE_SILENT_ADVICE- : "Connected. Waiting for the iPhone to open the LE link that carries "- "notifications. If it does not, open Settings > Bluetooth > (i) on the "- "iPhone and check Share System Notifications.";+ ? _(LE_PHONE_SILENT_ADVICE)+ : _("Connected. Waiting for the iPhone to open the LE link that carries "+ "notifications. If it does not, open Settings > Bluetooth > (i) on the "+ "iPhone and check Share System Notifications.");return !(status_ == previous);}- status_.reason = "Connected over BR/EDR and LE.";+ status_.reason = _("Connected over BR/EDR and LE.");return !(status_ == previous);}diff --git a/src/core/src/bluetooth/connection.cpp b/src/core/src/bluetooth/connection.cppindex 9035cc2..16364f8 100644--- a/src/core/src/bluetooth/connection.cpp+++ b/src/core/src/bluetooth/connection.cpp@@ -9,6 +9,7 @@#include "tether/bluetooth/pairing.hpp"#include "tether/bluetooth/pbap_session.hpp"#include "tether/log.hpp"+#include <tether/i18n.hpp>#include <algorithm>#include <atomic>@@ -86,13 +87,13 @@ namespace tether::bluetooth {session = g_map_session;}if (!session) {- err_out = "Messages are not connected.";+ err_out = _("Messages are not connected.");return false;}const std::string bmessage = build_bmessage(recipients, body);if (bmessage.empty()) {- err_out = "Could not build a message for this conversation.";+ err_out = _("Could not build a message for this conversation.");return false;}@@ -172,7 +173,7 @@ namespace tether::bluetooth {}}if (!known) {- err_out = "That message is no longer in the conversation history.";+ err_out = _("That message is no longer in the conversation history.");return false;}@@ -191,7 +192,7 @@ namespace tether::bluetooth {err_out = sync_err;}} else {- err_out = "The iPhone is not serving this message right now; marked read on this computer only.";+ err_out = _("The iPhone is not serving this message right now; marked read on this computer only.");}std::lock_guard<std::mutex> lock(g_messages_mutex);@@ -1155,7 +1156,7 @@ namespace tether::bluetooth {idle["command"] = "bt_connection_changed";idle["device_present"] = false;idle["device_paired"] = false;- idle["link_reason"] = "No paired iPhone selected.";+ idle["link_reason"] = _("No paired iPhone selected.");idle["profile_reason"] = "";return idle;}diff --git a/src/core/src/bluetooth/groups.cpp b/src/core/src/bluetooth/groups.cppindex 38bad64..1996b1c 100644--- a/src/core/src/bluetooth/groups.cpp+++ b/src/core/src/bluetooth/groups.cpp@@ -1,4 +1,5 @@#include "tether/bluetooth/groups.hpp"+#include <tether/i18n.hpp>#include <algorithm>#include <cctype>@@ -274,7 +275,7 @@ namespace tether::bluetooth {std::string& reason) {out.clear();if (!group_replies_enabled) {- reason = "Group replies are turned off.";+ reason = _("Group replies are turned off.");return ReplyEligibility::Disabled;}@@ -284,14 +285,14 @@ namespace tether::bluetooth {Recipient recipient;std::string err;if (!recipient_from_thread_key(address, recipient, err)) {- reason = "The roster for this group contains an unusable address: " + err;+ reason = tr_format(_("The roster for this group contains an unusable address: {}"), err);out.clear();return ReplyEligibility::Unresolved;}out.push_back(recipient);}if (out.empty()) {- reason = "The roster for this group is empty.";+ reason = _("The roster for this group is empty.");return ReplyEligibility::NeedsRoster;}return ReplyEligibility::Allowed;@@ -299,24 +300,24 @@ namespace tether::bluetooth {// thread with no correlated notification behind itif (!info.is_group) {- reason = "This conversation has not been identified as a group yet, so there is nobody to reply to.";+ reason = _("This conversation has not been identified as a group yet, so there is nobody to reply to.");return ReplyEligibility::NeedsRoster;}if (info.named) {- reason = "This group has a name but no member list. Add its members before replying.";+ reason = _("This group has a name but no member list. Add its members before replying.");return ReplyEligibility::NeedsRoster;}for (const auto& participant : info.participants) {std::vector<std::string> addresses = contacts.addresses_for_name(participant);if (addresses.empty()) {- reason = "\"" + participant + "\" is not in your contacts.";+ reason = tr_format(_("\"{}\" is not in your contacts."), participant);out.clear();return ReplyEligibility::Unresolved;}if (addresses.size() > 1) {- reason = "\"" + participant + "\" matches more than one contact address.";+ reason = tr_format(_("\"{}\" matches more than one contact address."), participant);out.clear();return ReplyEligibility::Unresolved;}@@ -324,7 +325,7 @@ namespace tether::bluetooth {Recipient recipient;std::string err;if (!recipient_from_thread_key(addresses.front(), recipient, err)) {- reason = "\"" + participant + "\" resolved to an unusable address: " + err;+ reason = tr_format(_("\"{0}\" resolved to an unusable address: {1}"), participant, err);out.clear();return ReplyEligibility::Unresolved;}@@ -332,7 +333,7 @@ namespace tether::bluetooth {}if (out.empty()) {- reason = "No recipients could be resolved for this group.";+ reason = _("No recipients could be resolved for this group.");return ReplyEligibility::Unresolved;}return ReplyEligibility::Allowed;diff --git a/src/core/src/bluetooth/objects.cpp b/src/core/src/bluetooth/objects.cppindex 603cab4..be6683c 100644--- a/src/core/src/bluetooth/objects.cpp+++ b/src/core/src/bluetooth/objects.cpp@@ -1,4 +1,5 @@#include "tether/bluetooth/objects.hpp"+#include <tether/i18n.hpp>#include <algorithm>#include <cstdio>@@ -348,8 +349,11 @@ namespace tether::bluetooth {if (!adapter && !objects.adapters.empty())adapter = &objects.adapters.front();+ // ponytail: tetherd is per-user, so its locale is the user's and these+ // strings can be translated here. A system-wide daemon serving several+ // users would have to send codes and let each client translate them.if (!adapter) {- cap.reasons.emplace_back("No Bluetooth adapter found.");+ cap.reasons.emplace_back(_("No Bluetooth adapter found."));return cap;}@@ -379,12 +383,12 @@ namespace tether::bluetooth {cap.secure_connections_known = read_secure_connections(cap.adapter_id, cap.secure_connections);if (!cap.powered) {- cap.reasons.emplace_back("Bluetooth adapter is powered off.");+ cap.reasons.emplace_back(_("Bluetooth adapter is powered off."));cap.mode = DeliveryMode::Blocked;return cap;}if (!cap.le_central) {- cap.reasons.emplace_back("Adapter has no LE central role; ANCS is impossible.");+ cap.reasons.emplace_back(_("Adapter has no LE central role; ANCS is impossible."));cap.mode = DeliveryMode::Blocked;return cap;}@@ -393,37 +397,38 @@ namespace tether::bluetooth {cap.mode = DeliveryMode::Full;if (!cap.le_peripheral) {- cap.reasons.emplace_back("Adapter cannot advertise as a peripheral, so ANCS cannot be solicited.");+ cap.reasons.emplace_back(_("Adapter cannot advertise as a peripheral, so ANCS cannot be solicited."));cap.mode = DeliveryMode::Compatibility;}if (!cap.advertising) {- cap.reasons.emplace_back("No LE advertising instances available; the iPhone may never show its "- "Bluetooth permission toggles.");+ cap.reasons.emplace_back(_("No LE advertising instances available; the iPhone may never show its "+ "Bluetooth permission toggles."));cap.mode = DeliveryMode::Compatibility;}if (cap.bearer_api == BearerApi::Absent) {- cap.setup.push_back({"Notification mirroring needs BlueZ's experimental bearer API "- "(org.bluez.Bearer.LE1), which bluetoothd is not exposing. Set this up before "- "pairing: a bond made without it has no LE half.",+ cap.setup.push_back({_("Notification mirroring needs BlueZ's experimental bearer API "+ "(org.bluez.Bearer.LE1), which bluetoothd is not exposing. Set this up before "+ "pairing: a bond made without it has no LE half."),enable_experimental_command()});cap.mode = DeliveryMode::Compatibility;} else if (cap.bearer_api == BearerApi::Unknown && !cap.bonded_device_present) {// only an iphone bond can confirm the api- cap.reasons.emplace_back("Bearer API support is unconfirmed until a device is bonded.");+ cap.reasons.emplace_back(_("Bearer API support is unconfirmed until a device is bonded."));}if (cap.bonded_device_present && !cap.bond_has_le) {- std::string reason = "A device is bonded, but the bond covers BR/EDR only -- no LE keys were derived, "- "so notification mirroring cannot work on it. Delete this computer on the iPhone "- "(Forget This Device) and pair again.";+ std::string reason = _("A device is bonded, but the bond covers BR/EDR only -- no LE keys were derived, "+ "so notification mirroring cannot work on it. Delete this computer on the iPhone "+ "(Forget This Device) and pair again.");if (cap.secure_connections_known && !cap.secure_connections)- reason += " Secure Connections is off on this controller, which is what blocks the derivation; "- "re-pairing will not help until it is on.";+ reason += std::string(" ") ++ _("Secure Connections is off on this controller, which is what blocks the derivation; "+ "re-pairing will not help until it is on.");cap.reasons.emplace_back(std::move(reason));}if (!cap.class_ok) {- cap.setup.push_back({"The iPhone will not offer its Messages and Contacts permissions until this "- "adapter presents itself as A/V Hands-Free (major 4, minor 8).",+ cap.setup.push_back({_("The iPhone will not offer its Messages and Contacts permissions until this "+ "adapter presents itself as A/V Hands-Free (major 4, minor 8)."),"sudo systemctl enable --now tether-btclass@" + cap.adapter_id});}diff --git a/src/core/src/bluetooth/pairing.cpp b/src/core/src/bluetooth/pairing.cppindex 3184782..ba4061c 100644--- a/src/core/src/bluetooth/pairing.cpp+++ b/src/core/src/bluetooth/pairing.cpp@@ -3,6 +3,7 @@#include "tether/bluetooth/agent.hpp"#include "tether/bluetooth/monitor.hpp"#include "tether/log.hpp"+#include <tether/i18n.hpp>#include <atomic>#include <chrono>@@ -400,8 +401,14 @@ namespace tether::bluetooth {}bool confirm_with_dialog(const std::string& device_name, const std::string& code) {- std::string body =- device_name + " wants to pair.\n\nConfirm this code matches the one on your iPhone:\n\n" + code;+ // Translated before the fork: gettext takes a lock, and calling it in the+ // child of a threaded process can deadlock if another thread held it.+ // TRANSLATORS: {0} is the device name, {1} is the numeric pairing code.+ const std::string body = tr_format(+ _("{0} wants to pair.\n\nConfirm this code matches the one on your iPhone:\n\n{1}"), device_name, code);+ const std::string title = _("Bluetooth Pairing");+ const std::string accept = _("Confirm");+ const std::string reject = _("Cancel");pid_t pid = fork();if (pid < 0) {@@ -421,26 +428,26 @@ namespace tether::bluetooth {execl(sibling.c_str(),"tether-dialog","--title",- "Bluetooth Pairing",+ title.c_str(),"--body",body.c_str(),"--accept",- "Confirm",+ accept.c_str(),"--reject",- "Cancel",+ reject.c_str(),"--timeout",timeout.c_str(),nullptr);execlp("tether-dialog","tether-dialog","--title",- "Bluetooth Pairing",+ title.c_str(),"--body",body.c_str(),"--accept",- "Confirm",+ accept.c_str(),"--reject",- "Cancel",+ reject.c_str(),"--timeout",timeout.c_str(),nullptr);diff --git a/src/core/src/bluetooth/profile_supervisor.cpp b/src/core/src/bluetooth/profile_supervisor.cppindex 48050eb..eeb66de 100644--- a/src/core/src/bluetooth/profile_supervisor.cpp+++ b/src/core/src/bluetooth/profile_supervisor.cpp@@ -1,5 +1,6 @@#include "tether/bluetooth/profile_supervisor.hpp"#include "tether/log.hpp"+#include <tether/i18n.hpp>#include <algorithm>#include <cctype>@@ -70,32 +71,43 @@ namespace tether::bluetooth {}std::string obex_error_advice(ObexError error, const std::string& profile) {- const std::string label = profile == "map" ? "Messages" : "Contacts";+ const bool map = profile == "map";+ // TRANSLATORS: the feature name Tether shows for this profile.+ const std::string label = map ? _("Messages") : _("Contacts");+ // TRANSLATORS: these two are toggle names in the iPhone's own Settings app.+ // Use Apple's wording for the target language, not a literal translation.+ const std::string toggle = map ? _("Show Message Notifications") : _("Sync Contacts");+switch (error) {case ObexError::Forbidden:- return "Enable \"" +- (profile == "map" ? std::string("Show Message Notifications") : std::string("Sync Contacts")) +- "\" for this computer in the iPhone's Settings > Bluetooth > (i). "- "This is a permission, not a pairing problem.";+ // TRANSLATORS: {} is an iPhone Settings toggle name.+ return tr_format(_("Enable \"{}\" for this computer in the iPhone's Settings > Bluetooth > (i). "+ "This is a permission, not a pairing problem."),+ toggle);case ObexError::Busy:- return label + " is unavailable because another computer is using the iPhone's " + profile +- " session. Disconnect it there, then this will connect on its own.";+ // TRANSLATORS: {0} is Messages or Contacts, {1} is the profile name (map or pbap).+ return tr_format(_("{0} is unavailable because another computer is using the iPhone's {1} session. "+ "Disconnect it there, then this will connect on its own."),+ label,+ profile);case ObexError::NoRecord:// obexd reports a missing record whenever its SDP fetch is refused, so the real cause is usually one layer// down.- return label +- " could not be fetched from the iPhone. Usually another computer holds the phone's "- "Bluetooth session, or \"" +- (profile == "map" ? std::string("Show Message Notifications") : std::string("Sync Contacts")) +- "\" is off in Settings > Bluetooth > (i). Check both; re-pairing is not the fix.";+ // TRANSLATORS: {0} is Messages or Contacts, {1} is an iPhone Settings toggle name.+ return tr_format(_("{0} could not be fetched from the iPhone. Usually another computer holds the "+ "phone's Bluetooth session, or \"{1}\" is off in Settings > Bluetooth > (i). "+ "Check both; re-pairing is not the fix."),+ label,+ toggle);case ObexError::Unavailable:- return label + " is unreachable; waiting for the iPhone to come back.";+ return tr_format(_("{} is unreachable; waiting for the iPhone to come back."), label);case ObexError::NoDaemon:- return label +- " needs BlueZ's OBEX daemon, which is not installed on this computer. Install it "- "(bluez-obex on Arch, bluez-obexd on Debian and Ubuntu). Nothing needs changing on the iPhone.";+ return tr_format(_("{} needs BlueZ's OBEX daemon, which is not installed on this computer. Install it "+ "(bluez-obex on Arch, bluez-obexd on Debian and Ubuntu). Nothing needs changing on "+ "the iPhone."),+ label);case ObexError::Other:- return label + " could not be opened.";+ return tr_format(_("{} could not be opened."), label);default:return {};}@@ -164,12 +176,12 @@ namespace tether::bluetooth {if (!link_ready) {// Nothing to do until the Classic bearer is up; hold what we have and// let reset() handle an actual disconnect.- status_.reason = "Waiting for the Bluetooth link.";+ status_.reason = _("Waiting for the Bluetooth link.");return !(status_ == previous);}if (status_.map_open && status_.pbap_open) {- status_.reason = "Messages and contacts are connected.";+ status_.reason = _("Messages and contacts are connected.");return !(status_ == previous);}@@ -186,14 +198,14 @@ namespace tether::bluetooth {next_attempt_ = now + (opened_once_ ? PROFILE_STEADY_POLL_SECONDS : PROFILE_INITIAL_POLL_SECONDS);if (status_.map_open && status_.pbap_open) {- status_.reason = "Messages and contacts are connected.";+ status_.reason = _("Messages and contacts are connected.");} else if (!status_.map_open && status_.map_error != ObexError::None) {// MAP is the feature people notice, so its problem leads.status_.reason = obex_error_advice(status_.map_error, "map");} else if (!status_.pbap_open && status_.pbap_error != ObexError::None) {status_.reason = obex_error_advice(status_.pbap_error, "pbap");} else {- status_.reason = "Opening messages and contacts...";+ status_.reason = _("Opening messages and contacts...");}return !(status_ == previous);diff --git a/src/core/src/i18n.cpp b/src/core/src/i18n.cppnew file mode 100644index 0000000..58913ee--- /dev/null+++ b/src/core/src/i18n.cpp@@ -0,0 +1,20 @@+#include "tether/i18n.hpp"++#include <clocale>+#include <cstdlib>++namespace tether {++ void init_locale() {+ setlocale(LC_ALL, "");+ // The wire protocol and JSON must keep '.' as the decimal separator+ setlocale(LC_NUMERIC, "C");++ // Uninstalled runs point this at the build tree.+ const char* dir = std::getenv("TETHER_LOCALEDIR");+ bindtextdomain(TETHER_GETTEXT_DOMAIN, (dir && *dir) ? dir : TETHER_LOCALEDIR);+ bind_textdomain_codeset(TETHER_GETTEXT_DOMAIN, "UTF-8");+ textdomain(TETHER_GETTEXT_DOMAIN);+ }++} // namespace tetherdiff --git a/src/core/src/net.cpp b/src/core/src/net.cppindex 80c236f..1a2a766 100644--- a/src/core/src/net.cpp+++ b/src/core/src/net.cpp@@ -1,4 +1,5 @@#include "tether/net.hpp"+#include <tether/i18n.hpp>#include <arpa/inet.h>#include <errno.h>@@ -1410,6 +1411,18 @@ namespace tether {SSL* ssl,const std::string& fingerprint,const std::string& device_name) {+ // Translated before the fork: gettext takes a lock, and calling it in the+ // child of a threaded process can deadlock if another thread held it.+ std::string short_fp = fingerprint;+ if (short_fp.size() > 16) {+ short_fp = short_fp.substr(0, 16) + "...";+ }+ // TRANSLATORS: {0} is the device name, {1} is a shortened key fingerprint.+ const std::string body = tr_format(_("{0} ({1}) wants to pair with this device."), device_name, short_fp);+ const std::string title = _("Pairing Request");+ const std::string accept = _("Accept");+ const std::string reject = _("Reject");+// Create a pipe so the parent can detect when the child exits via epollint pipefd[2];if (pipe(pipefd) < 0) {@@ -1431,13 +1444,6 @@ namespace tether {// The write end stays open; it will close when this process exits,// signaling EOF to the parent's read end.- // Build body text with truncated fingerprint for readability- std::string short_fp = fingerprint;- if (short_fp.size() > 16) {- short_fp = short_fp.substr(0, 16) + "...";- }- std::string body = device_name + " (" + short_fp + ") wants to pair with this device.";-// Try alongside the daemon binary first, then fall back to PATHstd::filesystem::path self_path;try {@@ -1449,13 +1455,13 @@ namespace tether {execl(sibling.c_str(),"tether-dialog","--title",- "Pairing Request",+ title.c_str(),"--body",body.c_str(),"--accept",- "Accept",+ accept.c_str(),"--reject",- "Reject",+ reject.c_str(),"--timeout","60",nullptr);@@ -1463,13 +1469,13 @@ namespace tether {execlp("tether-dialog","tether-dialog","--title",- "Pairing Request",+ title.c_str(),"--body",body.c_str(),"--accept",- "Accept",+ accept.c_str(),"--reject",- "Reject",+ reject.c_str(),"--timeout","60",nullptr);diff --git a/src/daemon/main.cpp b/src/daemon/main.cppindex 908c257..fb03f23 100644--- a/src/daemon/main.cpp+++ b/src/daemon/main.cpp@@ -12,6 +12,7 @@#include <tether/discovery.hpp>#include <tether/event_loop.hpp>#include <tether/file_transfer.hpp>+#include <tether/i18n.hpp>#include <tether/log.hpp>#include <tether/net.hpp>#include <tether/otp.hpp>@@ -29,6 +30,7 @@ void signal_handler(int) {}int main(int argc, char** argv) {+ tether::init_locale();debug::log(INFO, "tetherd version {}", tether::get_version());try {@@ -147,7 +149,7 @@ int main(int argc, char** argv) {who = message.peer_name.empty() ? message.peer_address : message.peer_name;tether::bluetooth::ancs::Notification as_notification;as_notification.app_id = tether::bluetooth::ancs::APP_ID_MESSAGES;- notifier.notify({"Messages",+ notifier.notify({_("Messages"),who.empty() ? "iPhone" : who,message.body,tether::bluetooth::ancs::icon_candidates(as_notification),diff --git a/src/daemon/notification.cpp b/src/daemon/notification.cppindex a239de4..1b59e10 100644--- a/src/daemon/notification.cpp+++ b/src/daemon/notification.cpp@@ -1,5 +1,7 @@#include "notification.hpp"+#include <tether/i18n.hpp>+#include <gio/gio.h>#include <glib.h>#include <libnotify/notify.h>@@ -172,7 +174,7 @@ namespace tether {}NotifyNotification* notification =- notify_notification_new("File arrived", file.filename().c_str(), "document-save");+ notify_notification_new(_("File arrived"), file.filename().c_str(), "document-save");set_identity(notification, "");notify_notification_set_hint(notification, "resident", g_variant_new_boolean(TRUE));@@ -183,9 +185,9 @@ namespace tether {g_signal_connect(notification, "closed", G_CALLBACK(on_notification_closed), nullptr);notify_notification_add_action(- notification, "open-file", "Open File", on_notification_action, open_file, free_action_data);+ notification, "open-file", _("Open File"), on_notification_action, open_file, free_action_data);notify_notification_add_action(- notification, "open-folder", "Open Folder", on_notification_action, open_folder, free_action_data);+ notification, "open-folder", _("Open Folder"), on_notification_action, open_folder, free_action_data);GError* error = nullptr;gboolean shown = notify_notification_show(notification, &error);@@ -228,7 +230,7 @@ namespace tether {free_action_data);notify_notification_add_action(notification,"reply",- "Reply",+ _("Reply"),on_reply_action,new NotificationActionData{spec->reply_thread},free_action_data);diff --git a/src/gtk/CMakeLists.txt b/src/gtk/CMakeLists.txtindex f81032e..cb72a90 100644--- a/src/gtk/CMakeLists.txt+++ b/src/gtk/CMakeLists.txt@@ -23,7 +23,25 @@ include(GNUInstallDirs)install(TARGETS tether-gtkRUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})-configure_file(tether-gtk.desktop.in tether-gtk.desktop @ONLY)+# msgfmt --desktop injects Name[xx]/GenericName[xx]/Comment[xx] from the catalogs.+# Without gettext tools the entry is still installed, English only.+find_program(MSGFMT_EXECUTABLE msgfmt)+file(GLOB TETHER_PO_FILES "${CMAKE_SOURCE_DIR}/po/*.po")+if(MSGFMT_EXECUTABLE AND TETHER_PO_FILES)+ add_custom_command(+ OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/tether-gtk.desktop"+ COMMAND ${MSGFMT_EXECUTABLE} --desktop+ --template "${CMAKE_CURRENT_SOURCE_DIR}/tether-gtk.desktop.in"+ -d "${CMAKE_SOURCE_DIR}/po"+ -o "${CMAKE_CURRENT_BINARY_DIR}/tether-gtk.desktop"+ DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/tether-gtk.desktop.in" ${TETHER_PO_FILES}+ COMMENT "Localizing tether-gtk.desktop"+ VERBATIM)+ add_custom_target(desktop-file ALL+ DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/tether-gtk.desktop")+else()+ configure_file(tether-gtk.desktop.in tether-gtk.desktop @ONLY)+endif()install(FILES ${CMAKE_CURRENT_BINARY_DIR}/tether-gtk.desktopDESTINATION ${CMAKE_INSTALL_DATADIR}/applications)diff --git a/src/gtk/daemon_client.cpp b/src/gtk/daemon_client.cppindex 2aa2a75..44ed081 100644--- a/src/gtk/daemon_client.cpp+++ b/src/gtk/daemon_client.cpp@@ -1,6 +1,7 @@#include "daemon_client.hpp"#include "tray.hpp"#include "ui_util.hpp"+#include <tether/i18n.hpp>#include <cerrno>#include <cstdio>@@ -52,9 +53,9 @@ namespace tether::ui {void handle_disconnect() {stop_event_subscription();schedule_event_retry();- set_status_main("Daemon Offline");- set_route_status(Route::WiFi, false, "The Tether daemon is not running.");- set_route_status(Route::Bluetooth, false, "The Tether daemon is not running.");+ set_status_main(_("Daemon Offline"));+ set_route_status(Route::WiFi, false, _("The Tether daemon is not running."));+ set_route_status(Route::Bluetooth, false, _("The Tether daemon is not running."));if (g_on_disconnect)g_on_disconnect();}@@ -159,9 +160,9 @@ namespace tether::ui {}}schedule_event_retry();- set_status_main("Daemon Offline");- set_route_status(Route::WiFi, false, "The Tether daemon is not running.");- set_route_status(Route::Bluetooth, false, "The Tether daemon is not running.");+ set_status_main(_("Daemon Offline"));+ set_route_status(Route::WiFi, false, _("The Tether daemon is not running."));+ set_route_status(Route::Bluetooth, false, _("The Tether daemon is not running."));return G_SOURCE_REMOVE;}@@ -186,7 +187,7 @@ namespace tether::ui {daemon_send({{"command", "bt_list_devices"}});// primes the tray unread countdaemon_send({{"command", "bt_list_threads"}});- set_status_main("Daemon Online");+ set_status_main(_("Daemon Online"));tray_refresh();return G_SOURCE_REMOVE;}diff --git a/src/gtk/devices_view.cpp b/src/gtk/devices_view.cppindex 52a27e1..9ac1b22 100644--- a/src/gtk/devices_view.cpp+++ b/src/gtk/devices_view.cpp@@ -1,6 +1,7 @@#include "devices_view.hpp"#include "daemon_client.hpp"#include "ui_util.hpp"+#include <tether/i18n.hpp>#include <algorithm>#include <deque>@@ -105,15 +106,15 @@ namespace tether::ui {void update_welcome_pane() {const bool wifi_ok = !g_devices.connected_fps.empty();- set_text(g_devices.lbl_welcome_wifi, wifi_ok ? "Connected." : "Not connected yet.");+ set_text(g_devices.lbl_welcome_wifi, wifi_ok ? _("Connected.") : _("Not connected yet."));const bool bt_ok =g_devices.bt_connection.value("map_open", false) || g_devices.bt_connection.value("ancs_ready", false);- std::string bt_note = "Not connected yet.";+ std::string bt_note = _("Not connected yet.");if (bt_ok)- bt_note = "Connected.";+ bt_note = _("Connected.");else if (!g_devices.bt_status.empty() && !g_devices.bt_status.value("available", false))- bt_note = "Bluetooth is unavailable on this machine.";+ bt_note = _("Bluetooth is unavailable on this machine.");set_text(g_devices.lbl_welcome_bt, bt_note);}@@ -154,13 +155,13 @@ namespace tether::ui {std::string mode;if (!g_devices.bt_status.empty()) {if (!available || capability.is_null()) {- mode = "Bluetooth is unavailable on this machine.";+ mode = _("Bluetooth is unavailable on this machine.");} else if (capability.value("mode", "") == "full") {- mode = "Full mode \u2014 messages, contacts, and notifications.";+ mode = _("Full mode \u2014 messages, contacts, and notifications.");} else if (capability.value("mode", "") == "compatibility") {- mode = "Compatibility mode \u2014 messages and contacts, no notification mirroring.";+ mode = _("Compatibility mode \u2014 messages and contacts, no notification mirroring.");} else {- mode = "This machine cannot carry the Bluetooth features.";+ mode = _("This machine cannot carry the Bluetooth features.");}// The reasons name what is missing (adapter class, LE roles, BlueZ// version) and are the only place that detail surfaces outside the CLI.@@ -185,18 +186,20 @@ namespace tether::ui {const bool ancs_ready = supervised && connection.value("ancs_ready", false);set_capability_row(g_devices.lbl_bt_link,- "Link",+ _("Link"),classic || le,std::string("BR/EDR ") + (classic ? "on" : "off") + ", LE " + (le ? "on" : "off"));const std::string map_error = connection.value("map_error", "none");const std::string pbap_error = connection.value("pbap_error", "none");set_capability_row(- g_devices.lbl_bt_messages, "Messages", map_open, map_open || map_error == "none" ? "" : map_error);- set_capability_row(- g_devices.lbl_bt_contacts, "Contacts", pbap_open, pbap_open || pbap_error == "none" ? "" : pbap_error);+ g_devices.lbl_bt_messages, _("Messages"), map_open, map_open || map_error == "none" ? "" : map_error);+ set_capability_row(g_devices.lbl_bt_contacts,+ _("Contacts"),+ pbap_open,+ pbap_open || pbap_error == "none" ? "" : pbap_error);set_capability_row(g_devices.lbl_bt_notifications,- "Notifications",+ _("Notifications"),ancs_ready,ancs_ready ? "" : connection.value("ancs_reason", ""));@@ -204,13 +207,13 @@ namespace tether::ui {// verbatim rather than replaced with something vaguer.std::string reason;if (!paired) {- reason = "Not paired over Bluetooth yet.";+ reason = _("Not paired over Bluetooth yet.");} else if (!supervised) {- reason = "Tether is not using this device. Pair it to select it.";+ reason = _("Tether is not using this device. Pair it to select it.");} else if (!bt_on) {// Supervision is idle while switched off, so its status would// otherwise report no device selected.- reason = "Bluetooth is switched off for this iPhone.";+ reason = _("Bluetooth is switched off for this iPhone.");} else {reason = connection.value("profile_reason", "");if (reason.empty())@@ -279,9 +282,9 @@ namespace tether::ui {bool online = std::find(g_devices.connected_fps.begin(),g_devices.connected_fps.end(),g_devices.selected_device_fp) != g_devices.connected_fps.end();- set_status_action(online- ? "Connected and ready."- : "Device is offline. Open the Tether app on iPhone while on the same network.");+ set_status_action(+ online ? _("Connected and ready.")+ : _("Device is offline. Open the Tether app on iPhone while on the same network."));if (g_devices.btn_grid) {gtk_widget_set_visible(g_devices.btn_grid, online);}@@ -289,9 +292,10 @@ namespace tether::ui {gtk_stack_set_visible_child_name(GTK_STACK(g_devices.right_pane_stack), "pair");set_markup(g_devices.lbl_unpaired_name,("<b>" + escape_markup(g_devices.selected_device_name) + "</b>"));+ // TRANSLATORS: {0} is an IP address, {1} a port number.set_text(g_devices.lbl_unpaired_ip,- ("Found at " + g_devices.selected_device_ip + ":" +- std::to_string(g_devices.selected_device_port)));+ tether::tr_format(+ _("Found at {0}:{1}"), g_devices.selected_device_ip, g_devices.selected_device_port));}}@@ -322,13 +326,13 @@ namespace tether::ui {void on_pair_click(GtkWidget*, gpointer) {if (g_devices.selected_device_ip.empty())return;- set_text(g_devices.lbl_unpaired_ip, "Sending pair request...");+ set_text(g_devices.lbl_unpaired_ip, _("Sending pair request..."));nlohmann::json j;j["command"] = "pair_request";j["host"] = g_devices.selected_device_ip;j["port"] = g_devices.selected_device_port;daemon_send(j);- set_status_main("Pair request sent. Approve on remote device!");+ set_status_main(_("Pair request sent. Approve on remote device!"));}void on_accept_click(GtkWidget*, gpointer) {@@ -344,11 +348,11 @@ namespace tether::ui {if (g_devices.selected_bt_address.empty())return;if (!daemon_send({{"command", "bt_pair"}, {"address", g_devices.selected_bt_address}})) {- set_text(g_devices.lbl_bt_progress, "Could not reach the Tether daemon.");+ set_text(g_devices.lbl_bt_progress, _("Could not reach the Tether daemon."));return;}gtk_widget_set_sensitive(g_devices.btn_bt_pair, FALSE);- set_text(g_devices.lbl_bt_progress, "Pairing\u2026 confirm the prompt on the iPhone.");+ set_text(g_devices.lbl_bt_progress, _("Pairing\u2026 confirm the prompt on the iPhone."));}void on_bt_unpair_click(GtkWidget*, gpointer) {@@ -359,19 +363,19 @@ namespace tether::ui {GTK_DIALOG_MODAL,GTK_MESSAGE_QUESTION,GTK_BUTTONS_OK_CANCEL,- "Remove the Bluetooth pairing with %s?",+ _("Remove the Bluetooth pairing with %s?"),g_devices.selected_bt_name.c_str());gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog),- "Also delete this computer from the iPhone's Bluetooth settings before pairing again, "- "or the phone will keep the stale bond.");+ _("Also delete this computer from the iPhone's Bluetooth settings before pairing again, "+ "or the phone will keep the stale bond."));const bool confirmed = gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_OK;gtk_widget_destroy(dialog);if (!confirmed)return;daemon_send({{"command", "bt_unpair"}, {"address", g_devices.selected_bt_address}});- set_text(g_devices.lbl_bt_progress, "Removing the pairing\u2026");+ set_text(g_devices.lbl_bt_progress, _("Removing the pairing\u2026"));}void on_bt_enabled_toggled(GtkWidget* widget, gpointer) {@@ -394,15 +398,15 @@ namespace tether::ui {void on_bt_setup_copy_click(GtkWidget*, gpointer) {gtk_clipboard_set_text(gtk_clipboard_get(GDK_SELECTION_CLIPBOARD), g_devices.bt_setup_commands.c_str(), -1);- set_status_main("Setup commands copied to the clipboard.");+ set_status_main(_("Setup commands copied to the clipboard."));}void on_bt_solicit_click(GtkWidget*, gpointer) {if (!daemon_send({{"command", "bt_solicit"}})) {- set_text(g_devices.lbl_bt_progress, "Could not reach the Tether daemon.");+ set_text(g_devices.lbl_bt_progress, _("Could not reach the Tether daemon."));return;}- set_text(g_devices.lbl_bt_progress, "Asking the iPhone to show its Bluetooth permissions\u2026");+ set_text(g_devices.lbl_bt_progress, _("Asking the iPhone to show its Bluetooth permissions\u2026"));}// The daemon opens a fresh connection per send_file, batch one file at a time@@ -410,10 +414,12 @@ namespace tether::ui {if (g_devices.send_queue.empty())return;const std::filesystem::path& path = g_devices.send_queue.front();- std::string status = "Sending " + path.filename().string() + "…";+ // TRANSLATORS: {} is a file name.+ std::string status = tether::tr_format(_("Sending {}…"), path.filename().string());if (g_devices.send_batch_total > 1) {const size_t index = g_devices.send_batch_total - g_devices.send_queue.size() + 1;- status += " (" + std::to_string(index) + " of " + std::to_string(g_devices.send_batch_total) + ")";+ // TRANSLATORS: {0} is the current file's position, {1} the batch size.+ status += " " + tether::tr_format(_("({0} of {1})"), index, g_devices.send_batch_total);}set_status_action(status);nlohmann::json j;@@ -428,7 +434,7 @@ namespace tether::ui {if (paths.empty())return;if (!daemon_connected()) {- set_status_action("Daemon unavailable.");+ set_status_action(_("Daemon unavailable."));return;}const bool idle = g_devices.send_queue.empty();@@ -448,7 +454,7 @@ namespace tether::ui {}void on_choose_file(GtkWidget*, gpointer) {- GtkWidget* dialog = gtk_file_chooser_dialog_new("Send File",+ GtkWidget* dialog = gtk_file_chooser_dialog_new(_("Send File"),GTK_WINDOW(main_window()),GTK_FILE_CHOOSER_ACTION_OPEN,"_Cancel",@@ -519,7 +525,7 @@ namespace tether::ui {gtk_drag_finish(context, !files.empty(), FALSE, time);if (files.empty()) {- set_status_action("Folders can't be sent — drop files instead.");+ set_status_action(_("Folders can't be sent — drop files instead."));return;}queue_files(std::move(files), skipped);@@ -529,8 +535,8 @@ namespace tether::ui {const bool connected = !g_devices.connected_fps.empty();set_route_status(Route::WiFi,connected,- connected ? "Clipboard, files, and OTP are connected."- : "No paired iPhone is connected. Open the Tether app on the phone.");+ connected ? _("Clipboard, files, and OTP are connected.")+ : _("No paired iPhone is connected. Open the Tether app on the phone."));}void apply_state_snapshot(const nlohmann::json& j) {@@ -542,7 +548,7 @@ namespace tether::ui {} else {tether::DiscoveredDevice dev;dev.fingerprint = c.value("fingerprint", "");- dev.name = c.value("device_name", "Unknown Device");+ dev.name = c.value("device_name", _("Unknown Device"));dev.addresses.push_back({c.value("address", ""), 5134});g_devices.discovered_devices.push_back(dev);}@@ -553,7 +559,7 @@ namespace tether::ui {for (auto& p : j["pending_pairs"]) {tether::DiscoveredDevice req;req.fingerprint = p.value("fingerprint", "");- req.name = p.value("device_name", "Unknown Device");+ req.name = p.value("device_name", _("Unknown Device"));g_devices.pending_pairing_requests.push_back(req);}}@@ -572,7 +578,7 @@ namespace tether::ui {}void devices_view_trigger_discovery() {- set_status_main("Scanning for nearby devices...");+ set_status_main(_("Scanning for nearby devices..."));// Refresh means both routes: mDNS for Wi-Fi peers, and a real BlueZ discovery for Bluetooth.daemon_send({{"command", "discover"}});daemon_send({{"command", "bt_status"}});@@ -590,7 +596,7 @@ namespace tether::ui {if (!known.empty()) {for (auto& [fingerprint, name_value] : known.items()) {g_devices.paired_devices.push_back(- {fingerprint, name_value.is_string() ? name_value.get<std::string>() : "Unknown Device"});+ {fingerprint, name_value.is_string() ? name_value.get<std::string>() : _("Unknown Device")});}}} catch (...) {@@ -628,7 +634,8 @@ namespace tether::ui {gtk_label_set_xalign(GTK_LABEL(title), 0.0);gtk_box_pack_start(GTK_BOX(labels), title, FALSE, FALSE, 0);- GtkWidget* subtitle = gtk_label_new(paired ? (online ? "Connected" : "Offline") : "Nearby (Tap to Pair)");+ GtkWidget* subtitle =+ gtk_label_new(paired ? (online ? _("Connected") : _("Offline")) : _("Nearby (Tap to Pair)"));gtk_label_set_xalign(GTK_LABEL(subtitle), 0.0);gtk_style_context_add_class(gtk_widget_get_style_context(subtitle), "muted");gtk_box_pack_start(GTK_BOX(labels), subtitle, FALSE, FALSE, 0);@@ -661,7 +668,8 @@ namespace tether::ui {gtk_label_set_xalign(GTK_LABEL(title), 0.0);gtk_box_pack_start(GTK_BOX(labels), title, FALSE, FALSE, 0);- GtkWidget* subtitle = gtk_label_new(connected ? "Connected" : (paired ? "Paired" : "Nearby (Tap to Pair)"));+ GtkWidget* subtitle =+ gtk_label_new(connected ? _("Connected") : (paired ? _("Paired") : _("Nearby (Tap to Pair)")));gtk_label_set_xalign(GTK_LABEL(subtitle), 0.0);gtk_style_context_add_class(gtk_widget_get_style_context(subtitle), "muted");gtk_box_pack_start(GTK_BOX(labels), subtitle, FALSE, FALSE, 0);@@ -803,8 +811,8 @@ namespace tether::ui {tether::DiscoveredDevice req;req.fingerprint = event.value("fingerprint", "");- std::string resolved_name = event.value("device_name", "Unknown Device");- if (resolved_name == "Unknown Device") {+ std::string resolved_name = event.value("device_name", _("Unknown Device"));+ if (resolved_name == _("Unknown Device")) {for (const auto& d : g_devices.discovered_devices) {if (d.fingerprint == req.fingerprint && !d.name.empty()) {resolved_name = d.name;@@ -870,7 +878,7 @@ namespace tether::ui {}}devices_view_refresh();- set_status_main("Ready");+ set_status_main(_("Ready"));return true;}if (command == "file_send_complete") {@@ -890,13 +898,19 @@ namespace tether::ui {std::string message = event.value("message", "");if (g_devices.send_batch_total > 1) {const size_t sent = g_devices.send_batch_total - g_devices.send_failed;+ // TRANSLATORS: {0} is how many were sent, {1} the batch size.message =- "Sent " + std::to_string(sent) + " of " + std::to_string(g_devices.send_batch_total) + " files.";+ tether::tr_format(P_("Sent {0} of {1} file.", "Sent {0} of {1} files.", g_devices.send_batch_total),+ sent,+ g_devices.send_batch_total);if (g_devices.send_failed > 0 && !g_devices.send_last_error.empty())message += " " + g_devices.send_last_error;}if (g_devices.send_skipped > 0)- message += " Skipped " + std::to_string(g_devices.send_skipped) + " non-file item(s).";+ message +=+ " " + tether::tr_format(+ P_("Skipped {} non-file item.", "Skipped {} non-file items.", g_devices.send_skipped),+ g_devices.send_skipped);set_status_action(message);g_devices.send_batch_total = 0;@@ -906,7 +920,7 @@ namespace tether::ui {return true;}if (command == "clipboard_content") {- set_status_action("Desktop Clipboard Sync triggered.");+ set_status_action(_("Desktop Clipboard Sync triggered."));return true;}if (command == "bt_status") {@@ -932,7 +946,7 @@ namespace tether::ui {if (detail.empty())detail = event.value("link_reason", "");if (detail.empty() && connected)- detail = "Messages and notifications are connected.";+ detail = _("Messages and notifications are connected.");set_route_status(Route::Bluetooth, connected, detail);update_right_pane();// A status broadcast, not a command this view owns: the Messages and@@ -947,8 +961,8 @@ namespace tether::ui {// ran and found nothing wants the "check the phone" advice.if (event.value("success", false) && g_devices.bt_devices.empty())set_text(g_devices.lbl_welcome_bt,- "No iPhone found. Unlock the phone and open Settings > Bluetooth so it advertises, "- "then scan again.");+ _("No iPhone found. Unlock the phone and open Settings > Bluetooth so it advertises, "+ "then scan again."));else if (!event.value("success", false))set_text(g_devices.lbl_welcome_bt, message);return true;@@ -996,7 +1010,7 @@ namespace tether::ui {gtk_widget_set_valign(placeholder, GTK_ALIGN_CENTER);GtkWidget* welcome_title = gtk_label_new(nullptr);- gtk_label_set_markup(GTK_LABEL(welcome_title), "<big><b>Connect your iPhone</b></big>");+ set_markup(welcome_title, "<big><b>" + escape_markup(_("Connect your iPhone")) + "</b></big>");gtk_box_pack_start(GTK_BOX(placeholder), welcome_title, FALSE, FALSE, 0);// A plain box cannot reflow, and the two blocks do not both fit in a narrow@@ -1041,24 +1055,25 @@ namespace tether::ui {gtk_container_add(GTK_CONTAINER(routes),build_route_block("network-wireless-signal-excellent-symbolic",- "<b>Wi-Fi</b>\nclipboard, files, OTP",- "1. Open the Tether app on the iPhone\n"- "2. It finds this computer by itself\n"- "3. Approve on both ends",+ ("<b>Wi-Fi</b>\n" + escape_markup(_("clipboard, files, OTP"))).c_str(),+ _("1. Open the Tether app on the iPhone\n"+ "2. It finds this computer by itself\n"+ "3. Approve on both ends"),&g_devices.lbl_welcome_wifi));- gtk_container_add(GTK_CONTAINER(routes),- build_route_block("bluetooth-active-symbolic",- "<b>Bluetooth</b>\nmessages, notifications",- "1. Pick the iPhone under BLUETOOTH\n"- "2. Press Pair over Bluetooth\n"- "3. Grant the two toggles on the phone",- &g_devices.lbl_welcome_bt));+ gtk_container_add(+ GTK_CONTAINER(routes),+ build_route_block("bluetooth-active-symbolic",+ ("<b>Bluetooth</b>\n" + escape_markup(_("messages, notifications"))).c_str(),+ _("1. Pick the iPhone under BLUETOOTH\n"+ "2. Press Pair over Bluetooth\n"+ "3. Grant the two toggles on the phone"),+ &g_devices.lbl_welcome_bt));gtk_box_pack_start(GTK_BOX(placeholder), routes, FALSE, FALSE, 0);// One button for both routes: scanning is what refreshes either list.- GtkWidget* welcome_scan = gtk_button_new_with_label("Scan for devices");+ GtkWidget* welcome_scan = gtk_button_new_with_label(_("Scan for devices"));gtk_widget_set_halign(welcome_scan, GTK_ALIGN_CENTER);g_signal_connect(welcome_scan,"clicked",@@ -1083,7 +1098,7 @@ namespace tether::ui {GtkWidget* lbl_setup_title = gtk_label_new(nullptr);gtk_label_set_xalign(GTK_LABEL(lbl_setup_title), 0.0);- gtk_label_set_markup(GTK_LABEL(lbl_setup_title), "<b>Bluetooth needs one-time system setup</b>");+ set_markup(lbl_setup_title, "<b>" + escape_markup(_("Bluetooth needs one-time system setup")) + "</b>");gtk_box_pack_start(GTK_BOX(g_devices.bt_setup_box), lbl_setup_title, FALSE, FALSE, 0);g_devices.lbl_bt_setup_what = gtk_label_new(nullptr);@@ -1101,10 +1116,10 @@ namespace tether::ui {gtk_box_pack_start(GTK_BOX(g_devices.bt_setup_box), g_devices.lbl_bt_setup_command, FALSE, FALSE, 0);GtkWidget* setup_actions = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 8);- GtkWidget* btn_setup_copy = gtk_button_new_with_label("Copy commands");+ GtkWidget* btn_setup_copy = gtk_button_new_with_label(_("Copy commands"));gtk_widget_set_tooltip_text(btn_setup_copy,- "Run these in a terminal. Tether does not change your Bluetooth "- "adapter or bluetoothd on its own.");+ _("Run these in a terminal. Tether does not change your Bluetooth "+ "adapter or bluetoothd on its own."));g_signal_connect(btn_setup_copy, "clicked", G_CALLBACK(on_bt_setup_copy_click), nullptr);gtk_box_pack_start(GTK_BOX(setup_actions), btn_setup_copy, FALSE, FALSE, 0);gtk_box_pack_start(GTK_BOX(g_devices.bt_setup_box), setup_actions, FALSE, FALSE, 0);@@ -1127,28 +1142,28 @@ namespace tether::ui {}gtk_box_pack_start(GTK_BOX(bt_box), capabilities, FALSE, FALSE, 0);- g_devices.chk_bt_enabled = gtk_check_button_new_with_label("Connect to this iPhone over Bluetooth");+ g_devices.chk_bt_enabled = gtk_check_button_new_with_label(_("Connect to this iPhone over Bluetooth"));gtk_widget_set_tooltip_text(g_devices.chk_bt_enabled,- "Keep the Bluetooth link to the iPhone up, reconnecting whenever it drops. "- "Turning this off stops Tether reconnecting; a link that is already up stays "- "up until you disconnect it.");+ _("Keep the Bluetooth link to the iPhone up, reconnecting whenever it drops. "+ "Turning this off stops Tether reconnecting; a link that is already up stays "+ "up until you disconnect it."));g_signal_connect(g_devices.chk_bt_enabled, "toggled", G_CALLBACK(on_bt_enabled_toggled), nullptr);gtk_box_pack_start(GTK_BOX(bt_box), g_devices.chk_bt_enabled, FALSE, FALSE, 0);// pairing that produced no LE half latches mirroring off, and this is the only way back to it without the CLI.- g_devices.chk_bt_ancs = gtk_check_button_new_with_label("Mirror iPhone notifications");+ g_devices.chk_bt_ancs = gtk_check_button_new_with_label(_("Mirror iPhone notifications"));gtk_widget_set_tooltip_text(g_devices.chk_bt_ancs,- "Show notifications from the iPhone on this desktop. Turned off "- "automatically when pairing produces no LE bond; turn it back on after "- "re-pairing.");+ _("Show notifications from the iPhone on this desktop. Turned off "+ "automatically when pairing produces no LE bond; turn it back on after "+ "re-pairing."));g_signal_connect(g_devices.chk_bt_ancs, "toggled", G_CALLBACK(on_bt_ancs_toggled), nullptr);gtk_box_pack_start(GTK_BOX(bt_box), g_devices.chk_bt_ancs, FALSE, FALSE, 0);- g_devices.chk_bt_content = gtk_check_button_new_with_label("Show notification contents");+ g_devices.chk_bt_content = gtk_check_button_new_with_label(_("Show notification contents"));gtk_widget_set_tooltip_text(g_devices.chk_bt_content,- "Ask the iPhone for each notification's title and message text, not just "- "which app sent it. The phone's own Show Message Notifications toggle still "- "has to be on.");+ _("Ask the iPhone for each notification's title and message text, not just "+ "which app sent it. The phone's own Show Message Notifications toggle still "+ "has to be on."));g_signal_connect(g_devices.chk_bt_content, "toggled", G_CALLBACK(on_bt_content_toggled), nullptr);gtk_box_pack_start(GTK_BOX(bt_box), g_devices.chk_bt_content, FALSE, FALSE, 0);@@ -1159,19 +1174,19 @@ namespace tether::ui {gtk_box_pack_start(GTK_BOX(bt_box), g_devices.lbl_bt_reason, FALSE, FALSE, 0);GtkWidget* bt_buttons = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 8);- g_devices.btn_bt_pair = gtk_button_new_with_label("Pair over Bluetooth");+ g_devices.btn_bt_pair = gtk_button_new_with_label(_("Pair over Bluetooth"));gtk_style_context_add_class(gtk_widget_get_style_context(g_devices.btn_bt_pair), "suggested-action");g_signal_connect(g_devices.btn_bt_pair, "clicked", G_CALLBACK(on_bt_pair_click), nullptr);gtk_box_pack_start(GTK_BOX(bt_buttons), g_devices.btn_bt_pair, FALSE, FALSE, 0);- g_devices.btn_bt_solicit = gtk_button_new_with_label("Show iPhone Permissions");+ g_devices.btn_bt_solicit = gtk_button_new_with_label(_("Show iPhone Permissions"));gtk_widget_set_tooltip_text(g_devices.btn_bt_solicit,- "Re-advertise so the iPhone shows its Show Message Notifications and "- "Sync Contacts toggles under Settings > Bluetooth > (i).");+ _("Re-advertise so the iPhone shows its Show Message Notifications and "+ "Sync Contacts toggles under Settings > Bluetooth > (i)."));g_signal_connect(g_devices.btn_bt_solicit, "clicked", G_CALLBACK(on_bt_solicit_click), nullptr);gtk_box_pack_start(GTK_BOX(bt_buttons), g_devices.btn_bt_solicit, FALSE, FALSE, 0);- g_devices.btn_bt_unpair = gtk_button_new_with_label("Unpair");+ g_devices.btn_bt_unpair = gtk_button_new_with_label(_("Unpair"));g_signal_connect(g_devices.btn_bt_unpair, "clicked", G_CALLBACK(on_bt_unpair_click), nullptr);gtk_box_pack_start(GTK_BOX(bt_buttons), g_devices.btn_bt_unpair, FALSE, FALSE, 0);gtk_box_pack_start(GTK_BOX(bt_box), bt_buttons, FALSE, FALSE, 0);@@ -1194,13 +1209,13 @@ namespace tether::ui {gtk_style_context_add_class(gtk_widget_get_style_context(g_devices.lbl_unpaired_ip), "muted");gtk_box_pack_start(GTK_BOX(pair_box), g_devices.lbl_unpaired_ip, FALSE, FALSE, 0);- GtkWidget* pair_btn = gtk_button_new_with_label("Pair Device");+ GtkWidget* pair_btn = gtk_button_new_with_label(_("Pair Device"));gtk_style_context_add_class(gtk_widget_get_style_context(pair_btn), "suggested-action");g_signal_connect(pair_btn, "clicked", G_CALLBACK(on_pair_click), nullptr);gtk_box_pack_start(GTK_BOX(pair_box), pair_btn, FALSE, FALSE, 0);// optional accept override button- GtkWidget* accept_btn = gtk_button_new_with_label("Force Trust (Accept Pending)");+ GtkWidget* accept_btn = gtk_button_new_with_label(_("Force Trust (Accept Pending)"));g_signal_connect(accept_btn, "clicked", G_CALLBACK(on_accept_click), nullptr);gtk_box_pack_start(GTK_BOX(pair_box), accept_btn, FALSE, FALSE, 0);@@ -1225,30 +1240,30 @@ namespace tether::ui {g_devices.dropzone = dropzone;gtk_box_pack_start(GTK_BOX(btn_grid), dropzone, FALSE, FALSE, 0);- GtkWidget* lbl_drop = gtk_label_new("Drop files here to send");+ GtkWidget* lbl_drop = gtk_label_new(_("Drop files here to send"));gtk_style_context_add_class(gtk_widget_get_style_context(lbl_drop), "muted");gtk_box_pack_start(GTK_BOX(dropzone), lbl_drop, FALSE, FALSE, 0);- GtkWidget* btn_send_file = gtk_button_new_with_label("Send File");+ GtkWidget* btn_send_file = gtk_button_new_with_label(_("Send File"));gtk_style_context_add_class(gtk_widget_get_style_context(btn_send_file), "suggested-action");g_signal_connect(btn_send_file, "clicked", G_CALLBACK(on_choose_file), nullptr);gtk_box_pack_start(GTK_BOX(dropzone), btn_send_file, FALSE, FALSE, 0);- GtkWidget* btn_send_clip = gtk_button_new_with_label("Send Clipboard");+ GtkWidget* btn_send_clip = gtk_button_new_with_label(_("Send Clipboard"));g_signal_connect(btn_send_clip,"clicked",G_CALLBACK(+[](GtkWidget*, gpointer) {nlohmann::json j;j["command"] = "clipboard_set"; // triggers clipboard senddaemon_send(j);- set_status_action("Clipboard sync requested...");+ set_status_action(_("Clipboard sync requested..."));}),nullptr);gtk_box_pack_start(GTK_BOX(btn_grid), btn_send_clip, FALSE, FALSE, 0);gtk_box_pack_start(GTK_BOX(action_box), btn_grid, FALSE, FALSE, 0);- g_devices.lbl_action_status = gtk_label_new("Ready");+ g_devices.lbl_action_status = gtk_label_new(_("Ready"));gtk_widget_set_halign(g_devices.lbl_action_status, GTK_ALIGN_CENTER);gtk_style_context_add_class(gtk_widget_get_style_context(g_devices.lbl_action_status), "muted");gtk_box_pack_start(GTK_BOX(action_box), g_devices.lbl_action_status, FALSE, FALSE, 0);diff --git a/src/gtk/main.cpp b/src/gtk/main.cppindex a619377..c9042cb 100644--- a/src/gtk/main.cpp+++ b/src/gtk/main.cpp@@ -8,6 +8,7 @@#include <gtk/gtk.h>#include <string>#include <tether/crypto.hpp>+#include <tether/i18n.hpp>namespace {@@ -51,7 +52,7 @@ namespace {GtkWidget* create_app_menu_button() {GtkWidget* menu = gtk_menu_new();- GtkWidget* close_to_tray = gtk_check_menu_item_new_with_label("Keep running in tray when closed");+ GtkWidget* close_to_tray = gtk_check_menu_item_new_with_label(_("Keep running in tray when closed"));gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(close_to_tray), tray_close_to_tray());g_signal_connect(close_to_tray,"toggled",@@ -61,7 +62,7 @@ namespace {nullptr);gtk_menu_shell_append(GTK_MENU_SHELL(menu), close_to_tray);- GtkWidget* quit = gtk_menu_item_new_with_label("Quit");+ GtkWidget* quit = gtk_menu_item_new_with_label(_("Quit"));g_signal_connect(quit,"activate",G_CALLBACK(+[](GtkMenuItem*, gpointer) {@@ -97,7 +98,7 @@ namespace {install_style();GtkWidget* window = gtk_application_window_new(app);- gtk_window_set_title(GTK_WINDOW(window), "Tether");+ gtk_window_set_title(GTK_WINDOW(window), _("Tether"));gtk_window_set_default_size(GTK_WINDOW(window), 820, 560);set_main_window(window);g_signal_connect(window, "delete-event", G_CALLBACK(on_window_delete), nullptr);@@ -105,7 +106,7 @@ namespace {GtkWidget* header_bar = gtk_header_bar_new();gtk_header_bar_set_show_close_button(GTK_HEADER_BAR(header_bar), TRUE);- gtk_header_bar_set_title(GTK_HEADER_BAR(header_bar), "Tether");+ gtk_header_bar_set_title(GTK_HEADER_BAR(header_bar), _("Tether"));gtk_window_set_titlebar(GTK_WINDOW(window), header_bar);set_header_bar(header_bar);@@ -121,9 +122,9 @@ namespace {GtkWidget* stack = gtk_stack_new();g_stack = stack;gtk_stack_set_transition_type(GTK_STACK(stack), GTK_STACK_TRANSITION_TYPE_CROSSFADE);- gtk_stack_add_titled(GTK_STACK(stack), devices_view_new(), "devices", "Devices");- gtk_stack_add_titled(GTK_STACK(stack), messages_view_new(), "messages", "Messages");- gtk_stack_add_titled(GTK_STACK(stack), notifications_view_new(), "notifications", "Notifications");+ gtk_stack_add_titled(GTK_STACK(stack), devices_view_new(), "devices", _("Devices"));+ gtk_stack_add_titled(GTK_STACK(stack), messages_view_new(), "messages", _("Messages"));+ gtk_stack_add_titled(GTK_STACK(stack), notifications_view_new(), "notifications", _("Notifications"));GtkWidget* switcher = gtk_stack_switcher_new();gtk_stack_switcher_set_stack(GTK_STACK_SWITCHER(switcher), GTK_STACK(stack));@@ -162,24 +163,26 @@ namespace {} // namespaceint main(int argc, char** argv) {+ tether::init_locale();+GtkApplication* app = gtk_application_new("com.tether.desktop", G_APPLICATION_HANDLES_COMMAND_LINE);g_application_add_main_option(G_APPLICATION(app),"tray",0,G_OPTION_FLAG_NONE,G_OPTION_ARG_NONE,- "Start hidden in the system tray",+ _("Start hidden in the system tray"),nullptr);for (const char* view : {"devices", "messages", "notifications"}) {g_application_add_main_option(- G_APPLICATION(app), view, 0, G_OPTION_FLAG_NONE, G_OPTION_ARG_NONE, "Open on this tab", nullptr);+ G_APPLICATION(app), view, 0, G_OPTION_FLAG_NONE, G_OPTION_ARG_NONE, _("Open on this tab"), nullptr);}g_application_add_main_option(G_APPLICATION(app),"thread",0,G_OPTION_FLAG_NONE,G_OPTION_ARG_STRING,- "Open the messages tab on this conversation",+ _("Open the messages tab on this conversation"),"KEY");g_signal_connect(app,diff --git a/src/gtk/messages_view.cpp b/src/gtk/messages_view.cppindex b351443..fde678b 100644--- a/src/gtk/messages_view.cpp+++ b/src/gtk/messages_view.cpp@@ -1,4 +1,5 @@#include "messages_view.hpp"+#include <tether/i18n.hpp>#include "daemon_client.hpp"#include "tray.hpp"@@ -335,10 +336,10 @@ namespace tether::ui {// only way back to those toggles is to remove the bond and pair again.void on_solicit_clicked(GtkWidget*, gpointer) {if (!daemon_send({{"command", "bt_solicit"}})) {- set_status_main("Could not reach the Tether daemon.");+ set_status_main(_("Could not reach the Tether daemon."));return;}- set_status_main("Asking the iPhone to show its Bluetooth permissions…");+ set_status_main(_("Asking the iPhone to show its Bluetooth permissions…"));}void update_connection(const nlohmann::json& event) {@@ -358,7 +359,7 @@ namespace tether::ui {if (reason.empty())reason = event.value("link_reason", "");if (reason.empty())- reason = "Messages are not connected.";+ reason = _("Messages are not connected.");// Re-soliciting only helps when the phone is withholding the profile,// not when the link itself is down.@@ -383,18 +384,18 @@ namespace tether::ui {const char* reason = nullptr;if (g_messages.sending)- reason = "Sending…";+ reason = _("Sending…");else if (!g_messages.map_open)- reason = "Messages are not connected.";+ reason = _("Messages are not connected.");else if (g_messages.selected_thread.empty())reason = g_messages.composing- ? (g_messages.selected_block_reason.empty() ? "Enter a recipient."+ ? (g_messages.selected_block_reason.empty() ? _("Enter a recipient."): g_messages.selected_block_reason.c_str())- : "Select a conversation first.";+ : _("Select a conversation first.");else if (!g_messages.selected_block_reason.empty())reason = g_messages.selected_block_reason.c_str();else if (!can_send)- reason = "Replying to this conversation is not available.";+ reason = _("Replying to this conversation is not available.");gtk_widget_set_tooltip_text(g_messages.send_button, reason);if (g_messages.composer_notice) {@@ -431,7 +432,7 @@ namespace tether::ui {if (g_messages.sending) {g_messages.sending = false;update_composer_sensitivity();- set_status_main("No answer about that message; it may still have been sent.");+ set_status_main(_("No answer about that message; it may still have been sent."));}return G_SOURCE_REMOVE;}@@ -446,7 +447,7 @@ namespace tether::ui {j["thread"] = g_messages.selected_thread;j["body"] = body;if (!daemon_send(j)) {- set_status_main("Could not reach the Tether daemon; the message was not sent.");+ set_status_main(_("Could not reach the Tether daemon; the message was not sent."));return;}@@ -457,7 +458,7 @@ namespace tether::ui {g_messages.sending = true;g_messages.send_watchdog_id = g_timeout_add_seconds(SEND_TIMEOUT_SECONDS, on_send_timeout, nullptr);update_composer_sensitivity();- set_status_main("Sending…");+ set_status_main(_("Sending…"));}// Every messaging app has trained people that Enter sends and Shift+Enter@@ -490,10 +491,10 @@ namespace tether::ui {// The conversation now exists under this key, so the thread list// refresh that follows will select it like any other.leave_compose();- set_status_main("Sent");+ set_status_main(_("Sent"));return;}- set_status_main(event.value("message", "The message was not sent."));+ set_status_main(event.value("message", _("The message was not sent.")));}void clear_selection() {@@ -642,7 +643,7 @@ namespace tether::ui {GTK_ENTRY_ICON_SECONDARY,bad ? g_messages.selected_block_reason.c_str() : nullptr);- std::string header = "New Message";+ std::string header = _("New Message");if (!g_messages.selected_name.empty())header = g_messages.selected_name;else if (!g_messages.selected_thread.empty())@@ -732,7 +733,7 @@ namespace tether::ui {// is owed from the one that just ended.g_messages.marked_read.clear();update_composer_sensitivity();- set_banner("The Tether daemon is not running.");+ set_banner(_("The Tether daemon is not running."));}void messages_view_open_thread(const std::string& thread_key) {@@ -814,11 +815,11 @@ namespace tether::ui {gtk_label_set_line_wrap(GTK_LABEL(g_messages.banner_label), TRUE);gtk_box_pack_start(GTK_BOX(g_messages.banner), g_messages.banner_label, TRUE, TRUE, 0);- g_messages.banner_action = gtk_button_new_with_label("Show iPhone Permissions");+ g_messages.banner_action = gtk_button_new_with_label(_("Show iPhone Permissions"));gtk_widget_set_valign(g_messages.banner_action, GTK_ALIGN_CENTER);gtk_widget_set_tooltip_text(g_messages.banner_action,- "Re-advertise so the iPhone shows its Show Message Notifications and "- "Sync Contacts toggles under Settings > Bluetooth > (i).");+ _("Re-advertise so the iPhone shows its Show Message Notifications and "+ "Sync Contacts toggles under Settings > Bluetooth > (i)."));g_signal_connect(g_messages.banner_action, "clicked", G_CALLBACK(on_solicit_clicked), nullptr);gtk_box_pack_start(GTK_BOX(g_messages.banner), g_messages.banner_action, FALSE, FALSE, 0);@@ -836,7 +837,7 @@ namespace tether::ui {gtk_container_add(GTK_CONTAINER(thread_scroll), g_messages.thread_list);GtkWidget* thread_side = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);- GtkWidget* new_message = gtk_button_new_with_label("New Message");+ GtkWidget* new_message = gtk_button_new_with_label(_("New Message"));gtk_button_set_image(GTK_BUTTON(new_message),gtk_image_new_from_icon_name("list-add-symbolic", GTK_ICON_SIZE_BUTTON));gtk_button_set_always_show_image(GTK_BUTTON(new_message), TRUE);@@ -856,7 +857,7 @@ namespace tether::ui {gtk_widget_set_halign(placeholder, GTK_ALIGN_CENTER);GtkWidget* placeholder_icon = gtk_image_new_from_icon_name("mail-unread-symbolic", GTK_ICON_SIZE_DIALOG);gtk_box_pack_start(GTK_BOX(placeholder), placeholder_icon, FALSE, FALSE, 0);- GtkWidget* placeholder_label = gtk_label_new("Select a conversation");+ GtkWidget* placeholder_label = gtk_label_new(_("Select a conversation"));gtk_style_context_add_class(gtk_widget_get_style_context(placeholder_label), "muted");gtk_box_pack_start(GTK_BOX(placeholder), placeholder_label, FALSE, FALSE, 0);gtk_stack_add_named(GTK_STACK(g_messages.placeholder_stack), placeholder, "placeholder");@@ -868,7 +869,7 @@ namespace tether::ui {gtk_box_pack_start(GTK_BOX(g_messages.compose_bar), gtk_label_new("To:"), FALSE, FALSE, 0);g_messages.compose_entry = gtk_entry_new();- gtk_entry_set_placeholder_text(GTK_ENTRY(g_messages.compose_entry), "Phone number or email");+ gtk_entry_set_placeholder_text(GTK_ENTRY(g_messages.compose_entry), _("Phone number or email"));// Lets the entry shrink with the pane. At its natural minimum the Cancel// button beside it is pushed off the edge of a narrow window.gtk_entry_set_width_chars(GTK_ENTRY(g_messages.compose_entry), 12);@@ -887,7 +888,7 @@ namespace tether::ui {gtk_entry_set_completion(GTK_ENTRY(g_messages.compose_entry), completion);g_object_unref(completion);- GtkWidget* compose_cancel = gtk_button_new_with_label("Cancel");+ GtkWidget* compose_cancel = gtk_button_new_with_label(_("Cancel"));g_signal_connect(compose_cancel, "clicked", G_CALLBACK(on_compose_cancel), nullptr);gtk_box_pack_start(GTK_BOX(g_messages.compose_bar), compose_cancel, FALSE, FALSE, 0);@@ -947,7 +948,7 @@ namespace tether::ui {gtk_container_add(GTK_CONTAINER(composer_frame), g_messages.composer);gtk_box_pack_start(GTK_BOX(composer_box), composer_frame, TRUE, TRUE, 0);- g_messages.send_button = gtk_button_new_with_label("Send");+ g_messages.send_button = gtk_button_new_with_label(_("Send"));gtk_widget_set_valign(g_messages.send_button, GTK_ALIGN_END);gtk_style_context_add_class(gtk_widget_get_style_context(g_messages.send_button), "suggested-action");gtk_box_pack_start(GTK_BOX(composer_box), g_messages.send_button, FALSE, FALSE, 0);diff --git a/src/gtk/notifications_view.cpp b/src/gtk/notifications_view.cppindex 2c33c98..bbda3e5 100644--- a/src/gtk/notifications_view.cpp+++ b/src/gtk/notifications_view.cpp@@ -1,6 +1,7 @@#include "notifications_view.hpp"#include "daemon_client.hpp"#include "ui_util.hpp"+#include <tether/i18n.hpp>#include <ctime>#include <string>@@ -82,7 +83,7 @@ namespace tether::ui {// With content mirroring off only the app is known, so the row says// so rather than looking broken.- const std::string detail = !title.empty() ? title : (!body.empty() ? body : "New notification");+ const std::string detail = !title.empty() ? title : (!body.empty() ? body : _("New notification"));GtkWidget* detail_label = gtk_label_new(detail.c_str());gtk_label_set_xalign(GTK_LABEL(detail_label), 0.0);gtk_label_set_line_wrap(GTK_LABEL(detail_label), TRUE);@@ -144,8 +145,8 @@ namespace tether::ui {// toggle to enable on the phone, so it is shown verbatim.const std::string reason = event.value("ancs_reason", "");set_text(g_notifications.status_label,- g_notifications.ready ? "No notifications yet."- : (reason.empty() ? "Notification mirroring is unavailable." : reason));+ g_notifications.ready ? _("No notifications yet.")+ : (reason.empty() ? _("Notification mirroring is unavailable.") : reason));return false;}return false;@@ -160,7 +161,7 @@ namespace tether::ui {GtkWidget* icon =gtk_image_new_from_icon_name("preferences-system-notifications-symbolic", GTK_ICON_SIZE_DIALOG);gtk_box_pack_start(GTK_BOX(status_box), icon, FALSE, FALSE, 0);- g_notifications.status_label = gtk_label_new("Waiting for the iPhone.");+ g_notifications.status_label = gtk_label_new(_("Waiting for the iPhone."));gtk_label_set_line_wrap(GTK_LABEL(g_notifications.status_label), TRUE);gtk_label_set_justify(GTK_LABEL(g_notifications.status_label), GTK_JUSTIFY_CENTER);gtk_style_context_add_class(gtk_widget_get_style_context(g_notifications.status_label), "muted");diff --git a/src/gtk/tray.cpp b/src/gtk/tray.cppindex 1ae9aad..43b59f1 100644--- a/src/gtk/tray.cpp+++ b/src/gtk/tray.cpp@@ -1,5 +1,7 @@#include "tray.hpp"+#include "daemon_client.hpp"+#include <tether/i18n.hpp>#include <filesystem>#include <fstream>@@ -272,13 +274,14 @@ namespace tether::ui {std::string tooltip;for (Route route : {Route::WiFi, Route::Bluetooth}) {const RouteState& r = state(route);- tooltip += std::string(route_name(route)) + ": " +- (r.ok ? "connected" : (r.detail.empty() ? "not connected" : r.detail)) + "\n";+ const std::string status = r.ok ? _("connected") : r.detail.empty() ? _("not connected") : r.detail;+ // TRANSLATORS: {} is a transport name, "Wi-Fi" or "Bluetooth".+ tooltip += tether::tr_format(_("{}: {}"), route_name(route), status) + "\n";}if (!daemon_connected())- tooltip += "Daemon: not running\n";+ tooltip += std::string(_("Daemon: not running")) + "\n";if (g_unread > 0)- tooltip += std::to_string(g_unread) + (g_unread == 1 ? " unread message\n" : " unread messages\n");+ tooltip += tether::tr_format(P_("{} unread message", "{} unread messages", g_unread), g_unread) + "\n";if (!tooltip.empty())tooltip.pop_back();diff --git a/test/CMakeLists.txt b/test/CMakeLists.txtindex b3d6053..2da0365 100644--- a/test/CMakeLists.txt+++ b/test/CMakeLists.txt@@ -29,3 +29,15 @@ target_link_libraries(tether_test PRIVATEinclude(GoogleTest)gtest_discover_tests(tether_test)++find_program(MSGFMT_EXECUTABLE msgfmt)+if(MSGFMT_EXECUTABLE)+ file(STRINGS "${CMAKE_SOURCE_DIR}/po/LINGUAS" TETHER_LINGUAS)+ foreach(LANG ${TETHER_LINGUAS})+ if(EXISTS "${CMAKE_SOURCE_DIR}/po/${LANG}.po")+ add_test(NAME po_${LANG}+ COMMAND ${MSGFMT_EXECUTABLE} --check --check-format+ -o /dev/null "${CMAKE_SOURCE_DIR}/po/${LANG}.po")+ endif()+ endforeach()+endif()