From 24acc1910a85604d24c93e493651137918cce073 Mon Sep 17 00:00:00 2001 From: Faumaray Date: Sun, 4 Oct 2026 19:11:37 +0300 Subject: [PATCH] account Signed-off-by: Faumaray --- Cargo.lock | 234 + Cargo.toml | 4 +- THIRD_PARTY_NOTICES.md | 845 ++- about.hbs | 7 + crates/proto/UPSTREAM.md | 12 + crates/proto/tsclientlib/src/lib.rs | 23 +- crates/proto/tsclientlib/src/myts.rs | 91 + crates/proto/tsproto/Cargo.toml | 2 + crates/proto/tsproto/src/lib.rs | 1 + crates/proto/tsproto/src/myts.rs | 247 + crates/voelin-core/Cargo.toml | 1 + crates/voelin-core/src/lib.rs | 14 +- crates/voelin-core/src/session.rs | 12 +- crates/voelin-core/src/versions.rs | 175 + crates/voelin-core/src/voice.rs | 243 +- crates/voelin-core/tests/myts_live.rs | 149 + crates/voelin-ui/Cargo.toml | 1 + crates/voelin-ui/lang/voelin-ui.pot | 6513 +++++++++++++++++ crates/voelin-ui/src/app.rs | 33 +- crates/voelin-ui/src/bind/settings.rs | 20 + crates/voelin-ui/src/dev.rs | 25 + crates/voelin-ui/src/lib.rs | 2 + crates/voelin-ui/src/myts.rs | 710 ++ crates/voelin-ui/src/servers.rs | 9 + crates/voelin-ui/ui/app.slint | 36 +- crates/voelin-ui/ui/bridge.slint | 23 + crates/voelin-ui/ui/screens/account.slint | 204 + crates/voelin-ui/ui/screens/mobile.slint | 3 +- .../voelin-ui/ui/screens/settings-pages.slint | 17 +- crates/voelin-ui/ui/screens/settings.slint | 2 +- crates/voelin-ui/ui/shells/common.slint | 10 +- docs/i18n.md | 15 +- docs/identity.md | 18 +- docs/research/myteamspeak.md | 235 +- docs/ui.md | 18 +- scripts/notices.sh | 4 + tools/voelinctl/src/session.rs | 7 +- tools/voelinctl/src/versions.rs | 102 +- 38 files changed, 9850 insertions(+), 217 deletions(-) create mode 100644 crates/proto/tsclientlib/src/myts.rs create mode 100644 crates/proto/tsproto/src/myts.rs create mode 100644 crates/voelin-core/src/versions.rs create mode 100644 crates/voelin-core/tests/myts_live.rs create mode 100644 crates/voelin-ui/lang/voelin-ui.pot create mode 100644 crates/voelin-ui/src/myts.rs create mode 100644 crates/voelin-ui/ui/screens/account.slint diff --git a/Cargo.lock b/Cargo.lock index 8d8e7e8..3a3ccfc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3502,6 +3502,19 @@ dependencies = [ "tower-service", ] +[[package]] +name = "hyper-timeout" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b90d566bffbce6a75bd8b09a05aa8c2cb1fabb6cb348f8840c9e4c90a0d83b0" +dependencies = [ + "hyper", + "hyper-util", + "pin-project-lite", + "tokio", + "tower-service", +] + [[package]] name = "hyper-util" version = "0.1.21" @@ -4861,6 +4874,12 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "multimap" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d87ecb2933e8aeadb3e3a02b828fed80a7528047e68b4f424523a0981a3a084" + [[package]] name = "multiversion_no_op" version = "1.0.0" @@ -5839,6 +5858,7 @@ checksum = "112d82ceb8c5bf524d9af484d4e4970c9fd5a0cc15ba14ad93dccd28873b0629" dependencies = [ "digest 0.11.3", "hmac 0.13.0", + "sha2 0.11.0", ] [[package]] @@ -6317,6 +6337,27 @@ dependencies = [ "prost-derive", ] +[[package]] +name = "prost-build" +version = "0.14.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03da047801ff44bb6a4d407d4860c05fd70bb81714e6b2f3812603d5b145b042" +dependencies = [ + "heck", + "itertools 0.14.0", + "log", + "multimap", + "petgraph", + "prettyplease", + "prost", + "prost-types", + "pulldown-cmark", + "pulldown-cmark-to-cmark", + "regex", + "syn 2.0.119", + "tempfile", +] + [[package]] name = "prost-derive" version = "0.14.4" @@ -6330,6 +6371,79 @@ dependencies = [ "syn 2.0.119", ] +[[package]] +name = "prost-types" +version = "0.14.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f94967dc7688f3054c7fac87473ffae4cc4c3904800e2d9f5b857246d8963b0a" +dependencies = [ + "prost", +] + +[[package]] +name = "protoc-bin-vendored" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1c381df33c98266b5f08186583660090a4ffa0889e76c7e9a5e175f645a67fa" +dependencies = [ + "protoc-bin-vendored-linux-aarch_64", + "protoc-bin-vendored-linux-ppcle_64", + "protoc-bin-vendored-linux-s390_64", + "protoc-bin-vendored-linux-x86_32", + "protoc-bin-vendored-linux-x86_64", + "protoc-bin-vendored-macos-aarch_64", + "protoc-bin-vendored-macos-x86_64", + "protoc-bin-vendored-win32", +] + +[[package]] +name = "protoc-bin-vendored-linux-aarch_64" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c350df4d49b5b9e3ca79f7e646fde2377b199e13cfa87320308397e1f37e1a4c" + +[[package]] +name = "protoc-bin-vendored-linux-ppcle_64" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a55a63e6c7244f19b5c6393f025017eb5d793fd5467823a099740a7a4222440c" + +[[package]] +name = "protoc-bin-vendored-linux-s390_64" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1dba5565db4288e935d5330a07c264a4ee8e4a5b4a4e6f4e83fad824cc32f3b0" + +[[package]] +name = "protoc-bin-vendored-linux-x86_32" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8854774b24ee28b7868cd71dccaae8e02a2365e67a4a87a6cd11ee6cdbdf9cf5" + +[[package]] +name = "protoc-bin-vendored-linux-x86_64" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b38b07546580df720fa464ce124c4b03630a6fb83e05c336fea2a241df7e5d78" + +[[package]] +name = "protoc-bin-vendored-macos-aarch_64" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "89278a9926ce312e51f1d999fee8825d324d603213344a9a706daa009f1d8092" + +[[package]] +name = "protoc-bin-vendored-macos-x86_64" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81745feda7ccfb9471d7a4de888f0652e806d5795b61480605d4943176299756" + +[[package]] +name = "protoc-bin-vendored-win32" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95067976aca6421a523e491fce939a3e65249bac4b977adee0ee9771568e8aa3" + [[package]] name = "pulldown-cmark" version = "0.13.4" @@ -6341,6 +6455,15 @@ dependencies = [ "unicase", ] +[[package]] +name = "pulldown-cmark-to-cmark" +version = "22.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "84bbb29c624230c4bd1047bbdb2aa47e41c860e9665ce62ba9504eebe91bf867" +dependencies = [ + "pulldown-cmark", +] + [[package]] name = "pxfm" version = "0.1.30" @@ -7136,7 +7259,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0d41d731c7d2f962d1ccc364cec258de3c0e93b38c2fb3ba97ac74513048d634" dependencies = [ "aws-lc-rs", + "log", "once_cell", + "ring", "rustls-pki-types", "rustls-webpki", "subtle", @@ -7253,6 +7378,20 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "schema-api" +version = "0.1.0" +dependencies = [ + "prost", + "prost-build", + "prost-types", + "protoc-bin-vendored", + "thiserror 2.0.21", + "tonic", + "tonic-prost", + "tonic-prost-build", +] + [[package]] name = "scoped-tls" version = "1.0.1" @@ -8712,6 +8851,76 @@ version = "1.1.2+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7d56353a2a665ad0f41a421187180aab746c8c325620617ad883a99a1cbe66d2" +[[package]] +name = "tonic" +version = "0.14.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac2a5518c70fa84342385732db33fb3f44bc4cc748936eb5833d2df34d6445ef" +dependencies = [ + "async-trait", + "axum", + "base64 0.22.1", + "bytes", + "h2", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-timeout", + "hyper-util", + "percent-encoding", + "pin-project", + "rustls-native-certs", + "socket2", + "sync_wrapper", + "tokio", + "tokio-rustls", + "tokio-stream", + "tower", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "tonic-build" +version = "0.14.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c68f61875ac5293cf72e6c8cf0158086428c82c37229e98c840878f1706b0322" +dependencies = [ + "prettyplease", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "tonic-prost" +version = "0.14.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50849f68853be452acf590cde0b146665b8d507b3b8af17261df47e02c209ea0" +dependencies = [ + "bytes", + "prost", + "tonic", +] + +[[package]] +name = "tonic-prost-build" +version = "0.14.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "654e5643eff75d7f8c99197ce1440ed19a3474eada74c12bbac488b2cafdae27" +dependencies = [ + "prettyplease", + "proc-macro2", + "prost-build", + "prost-types", + "quote", + "syn 2.0.119", + "tempfile", + "tonic-build", +] + [[package]] name = "tower" version = "0.5.3" @@ -8720,9 +8929,12 @@ checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4" dependencies = [ "futures-core", "futures-util", + "indexmap", "pin-project-lite", + "slab", "sync_wrapper", "tokio", + "tokio-util", "tower-layer", "tower-service", "tracing", @@ -9096,6 +9308,7 @@ dependencies = [ "rand 0.10.3", "rug", "serde", + "serde_json", "sha-1", "sha2 0.10.9", "thiserror 2.0.21", @@ -9105,6 +9318,7 @@ dependencies = [ "tracing-subscriber", "tsproto-packets", "tsproto-types", + "zeroize", ] [[package]] @@ -9496,6 +9710,7 @@ dependencies = [ "voelin-gateway-proto", "voelin-media", "voelin-model", + "voelin-myts", "voelin-observer", "voelin-platform", "voelin-query", @@ -9599,6 +9814,24 @@ dependencies = [ "serde_json", ] +[[package]] +name = "voelin-myts" +version = "0.1.0" +dependencies = [ + "aes 0.9.3", + "aes-gcm", + "base64 0.22.1", + "ctr 0.10.1", + "pbkdf2", + "reqwest", + "schema-api", + "subtle", + "thiserror 2.0.21", + "tokio", + "tsproto", + "zeroize", +] + [[package]] name = "voelin-observer" version = "0.1.0" @@ -9693,6 +9926,7 @@ dependencies = [ "voelin-core", "voelin-gateway-proto", "voelin-model", + "voelin-myts", "voelin-platform", "voelin-query", "voelin-store", diff --git a/Cargo.toml b/Cargo.toml index e85f785..7f58499 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ resolver = "3" # third_party: vendored crates patched in below (not workspace members, so # their own tests and dev-dependencies stay out of our builds). -exclude = ["fuzz", "third_party"] +exclude = ["fuzz", "third_party", "third_party/schema-api"] members = [ "crates/proto/tsproto-types", "crates/proto/tsproto-structs", @@ -17,6 +17,7 @@ members = [ "crates/voelin-gateway-proto", "crates/voelin-media", "crates/voelin-model", + "crates/voelin-myts", "crates/voelin-observer", "crates/voelin-platform", "crates/voelin-query", @@ -37,6 +38,7 @@ default-members = [ "crates/voelin-gateway", "crates/voelin-gateway-proto", "crates/voelin-model", + "crates/voelin-myts", "crates/voelin-observer", "crates/voelin-platform", "crates/voelin-query", diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md index 4954751..f34ab46 100644 --- a/THIRD_PARTY_NOTICES.md +++ b/THIRD_PARTY_NOTICES.md @@ -53,6 +53,13 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ```` +## schema-api + +The account client uses message bindings and session helpers from the local +schema-api 0.1.0 snapshot vendored under third_party/schema-api. The supplied +snapshot has no declared license or license file; no MIT or Apache license is +implied for it or its supplied schemas. See its VOELIN-PATCH.md for provenance. + ## Native libraries - Opus (libopus), compiled into the app: BSD-3-Clause, Copyright 2001-2023 @@ -175,12 +182,12 @@ the crate's authors are listed as its copyright holders. | License | Crates | |---|---| -| MIT License | 654 | -| Apache License 2.0 | 31 | +| MIT License | 657 | +| Apache License 2.0 | 34 | | Unicode License v3 | 26 | +| ISC License | 24 | | BSD 3-Clause "New" or "Revised" License | 22 | | LicenseRef-Slint-Royalty-free-2.0 | 12 | -| ISC License | 8 | | BSD 2-Clause "Simplified" License | 3 | | zlib License | 3 | | Boost Software License 1.0 | 2 | @@ -398,6 +405,284 @@ Used by: flagset 0.4.7, hound 3.5.1 ```` +Used by: ring 0.17.14 + +````text + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +Licenses for support code +------------------------- + +Parts of the TLS test suite are under the Go license. This code is not included +in BoringSSL (i.e. libcrypto and libssl) when compiled, however, so +distributing code linked against BoringSSL does not trigger this license: + +Copyright (c) 2009 The Go Authors. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +BoringSSL uses the Chromium test infrastructure to run a continuous build, +trybots etc. The scripts which manage this, and the script for generating build +metadata, are under the Chromium license. Distributing code linked against +BoringSSL does not trigger this license. + +Copyright 2015 The Chromium Authors. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +```` + Used by: moka 0.12.16 ````text @@ -1019,7 +1304,7 @@ Used by: cpal 0.18.2, imgref 1.12.3, self_cell 1.3.0, unicode-linebreak 0.1.5 ```` -Used by: gethostname 1.1.0, prost-derive 0.14.4, prost 0.14.4 +Used by: gethostname 1.1.0, prost-derive 0.14.4, prost-types 0.14.4, prost 0.14.4, ring 0.17.14 ````text Apache License @@ -1796,7 +2081,7 @@ Standard text, used by: - openh264 0.9.8: Ralf Biedert (https://github.com/ralfbiedert/openh264-rs) ````text -Copyright (c) +Copyright (c) Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -2009,7 +2294,7 @@ TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ```` @@ -2078,7 +2363,7 @@ TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ```` @@ -2090,7 +2375,7 @@ Standard text, used by: - sonora-aec3 0.2.0 (https://github.com/dignifiedquire/sonora) ````text -Copyright (c) . +Copyright (c) . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -2233,6 +2518,84 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI ### ISC License +Used by: ring 0.17.14 + +````text +/* Copyright (c) 2014, Intel Corporation. + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY + * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION + * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN + * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ + +#ifndef OPENSSL_HEADER_EC_ECP_NISTZ384_H +#define OPENSSL_HEADER_EC_ECP_NISTZ384_H + +#include "../../limbs/limbs.h" + +#define P384_LIMBS (384u / LIMB_BITS) + +typedef struct { + Limb X[P384_LIMBS]; + Limb Y[P384_LIMBS]; + Limb Z[P384_LIMBS]; +} P384_POINT; + +typedef struct { + Limb X[P384_LIMBS]; + Limb Y[P384_LIMBS]; +} P384_POINT_AFFINE; + + +#endif // OPENSSL_HEADER_EC_ECP_NISTZ384_H + +```` + +Used by: ring 0.17.14 + +````text +// Copyright 2015-2016 Brian Smith. +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +//! EdDSA Signatures. + +use super::ops::ELEM_LEN; +use crate::digest; + +pub mod signing; +pub mod verification; + +/// The length of an Ed25519 public key. +pub const ED25519_PUBLIC_KEY_LEN: usize = ELEM_LEN; + +pub fn eddsa_digest(signature_r: &[u8], public_key: &[u8], msg: &[u8]) -> digest::Digest { + let mut ctx = digest::Context::new(&digest::SHA512); + ctx.update(signature_r); + ctx.update(public_key); + ctx.update(msg); + ctx.finish() +} + +```` + Used by: untrusted 0.7.1, untrusted 0.9.0 ````text @@ -2252,6 +2615,397 @@ Used by: untrusted 0.7.1, untrusted 0.9.0 ```` +Used by: ring 0.17.14 + +````text +// Copyright 2015-2022 Brian Smith. +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +use crate::limb::Limb; + +#[derive(Clone, Copy)] +#[repr(transparent)] +pub struct N0([Limb; 2]); + +impl N0 { + #[cfg(feature = "alloc")] + pub(super) const LIMBS_USED: usize = 64 / crate::limb::LIMB_BITS; + + #[inline] + pub const fn precalculated(n0: u64) -> Self { + #[cfg(target_pointer_width = "64")] + { + Self([n0, 0]) + } + + #[cfg(target_pointer_width = "32")] + { + Self([n0 as Limb, (n0 >> crate::limb::LIMB_BITS) as Limb]) + } + } +} + +```` + +Used by: ring 0.17.14 + +````text +// Copyright 2015-2025 Brian Smith. +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +use crate::{bb, error}; + +#[deprecated( + note = "To be removed. Internal function not intended for external use with no promises regarding side channels." +)] +pub fn verify_slices_are_equal(a: &[u8], b: &[u8]) -> Result<(), error::Unspecified> { + bb::verify_slices_are_equal(a, b) +} + +```` + +Used by: ring 0.17.14 + +````text +// Copyright 2016 Brian Smith. +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +//! Elliptic curve operations and schemes using Curve25519. + +pub mod ed25519; + +pub mod x25519; + +mod ops; +mod scalar; + +```` + +Used by: ring 0.17.14 + +````text +// Copyright 2016-2024 Brian Smith. +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +use crate::error::{KeyRejected, Unspecified}; + +impl From for Unspecified { + fn from(source: untrusted::EndOfInput) -> Self { + super::erase(source) + } +} + +impl From for Unspecified { + fn from(source: core::array::TryFromSliceError) -> Self { + super::erase(source) + } +} + +impl From for Unspecified { + fn from(source: KeyRejected) -> Self { + super::erase(source) + } +} + +```` + +Used by: ring 0.17.14 + +````text +// Copyright 2018 Brian Smith. +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +//! Serialization and deserialization. + +#[doc(hidden)] +pub mod der; + +#[cfg(feature = "alloc")] +mod writer; + +#[cfg(feature = "alloc")] +pub(crate) mod der_writer; + +pub(crate) mod positive; + +pub use self::positive::Positive; + +#[cfg(feature = "alloc")] +pub(crate) use self::writer::TooLongError; + +```` + +Used by: ring 0.17.14 + +````text +// Copyright 2019-2024 Brian Smith. +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +use super::BlockLen; + +pub(super) use self::{ + sha2_32::{block_data_order_32, State32, SHA256_BLOCK_LEN}, + sha2_64::{block_data_order_64, State64, SHA512_BLOCK_LEN}, +}; + +pub(super) const CHAINING_WORDS: usize = 8; + +#[cfg(any( + all(target_arch = "aarch64", target_endian = "little"), + all(target_arch = "arm", target_endian = "little"), + target_arch = "x86_64" +))] +#[macro_use] +mod ffi; + +pub(super) mod fallback; +mod sha2_32; +mod sha2_64; + +```` + +Used by: ring 0.17.14 + +````text +// Copyright 2024 Brian Smith. +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +// TODO(MSRV 1.76): Replace with `core::ptr::from_mut`. +#[allow(dead_code)] +#[inline(always)] +pub fn from_mut(r: &mut T) -> *mut T { + r +} + +// TODO(MSRV 1.76): Replace with `core::ptr::from_ref`. +#[allow(dead_code)] +#[inline(always)] +pub const fn from_ref(r: &T) -> *const T { + r +} + +```` + +Used by: ring 0.17.14 + +````text +// Copyright 2024 Brian Smith. +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +//! Integration tests for non-public APIs. + +mod bits_tests; + +```` + +Used by: ring 0.17.14 + +````text +// Copyright 2024 Brian Smith. +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +pub use self::{ + array::Array, + base::{IndexError, Overlapping}, + partial_block::PartialBlock, +}; + +mod array; +mod base; +mod partial_block; + +```` + +Used by: ring 0.17.14 + +````text +// Copyright 2025 Brian Smith. +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +#![cfg(all(target_arch = "aarch64", target_endian = "little"))] + +pub(in super::super) mod mont; + +```` + +Used by: ring 0.17.14 + +````text +// Copyright 2025 Brian Smith. +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +#![cfg(target_arch = "x86_64")] + +pub(in super::super::super) mod mont; + +```` + +Used by: ring 0.17.14 + +````text +// Copyright 2025 Brian Smith. +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +mod storage; + +pub(super) use self::storage::{AlignedStorage, LIMBS_PER_CHUNK}; + +```` + +Used by: ring 0.17.14 + +````text +// Copyright 2025 Brian Smith. +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +pub(super) mod aarch64; +pub(super) mod x86_64; + +```` + Used by: aws-lc-sys 0.45.0 ````text @@ -2593,6 +3347,25 @@ THIS SOFTWARE. ```` +Used by: ring 0.17.14 + +````text +Copyright 2015-2025 Brian Smith. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +```` + Used by: libloading 0.8.9 ````text @@ -7899,6 +8672,31 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ```` +Used by: tonic 0.14.6 + +````text +Copyright (c) 2025 Lucio Franco + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +```` + Used by: secret-service 5.2.0 ````text @@ -9760,6 +10558,7 @@ Standard text, used by: - str0m-proto 0.7.0: Martin Algesten (https://github.com/algesten/str0m) - taffy 0.10.1: Alice Cecile , Johnathan Kelley , Nico Burns (https://github.com/DioxusLabs/taffy) - tauri-winrt-notification 0.7.3: allenbenz, Tauri Programme within The Commons Conservancy (https://github.com/tauri-apps/winrt-notification) +- tonic-prost 0.14.6: Lucio Franco (https://github.com/hyperium/tonic) - tract-extra 0.23.8: Mathieu Poumeyrol (https://github.com/sonos/tract) - tract-transformers 0.23.8: Mathieu Poumeyrol , Louis Chouraki (https://github.com/sonos/tract) - windows-collections 0.2.0 (https://github.com/microsoft/windows-rs) @@ -10725,6 +11524,34 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +```` + +Used by: hyper-timeout 0.5.2 + +````text +The MIT License (MIT) + +Copyright (c) 2016 The weldr Project Developers + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + ```` Used by: same-file 1.0.6, winapi-util 0.1.11 @@ -11327,7 +12154,7 @@ Mozilla Public License Version 2.0 means any form of the work other than Source Code Form. 1.7. "Larger Work" - means a work that combines Covered Software with other material, in + means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. "License" diff --git a/about.hbs b/about.hbs index 926f2e7..4c9efc4 100644 --- a/about.hbs +++ b/about.hbs @@ -53,6 +53,13 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ```` +## schema-api + +The account client uses message bindings and session helpers from the local +schema-api 0.1.0 snapshot vendored under third_party/schema-api. The supplied +snapshot has no declared license or license file; no MIT or Apache license is +implied for it or its supplied schemas. See its VOELIN-PATCH.md for provenance. + ## Native libraries - Opus (libopus), compiled into the app: BSD-3-Clause, Copyright 2001-2023 diff --git a/crates/proto/UPSTREAM.md b/crates/proto/UPSTREAM.md index f9a7792..bb544e3 100644 --- a/crates/proto/UPSTREAM.md +++ b/crates/proto/UPSTREAM.md @@ -106,3 +106,15 @@ against or offered back to upstream. handed those fewer than 32 bytes to `from_short`, which refused them: one identity in 256 (the official client's ones included) could not be imported. The scalar is padded to 32 bytes now; a test round-trips such keys. +13. **myTeamSpeak connection identity** (`tsproto/src/myts.rs`, + `tsclientlib/src/myts.rs`, `tsclientlib/src/lib.rs`). Validated, redacted account + credentials retain the original raw signing scalar and validate again when + deserialized from a credential store. Connection-bound account proofs use the + negotiated shared IV and the official raw-scalar signing construction, not + Ed25519 seed expansion. `clientinit` and `updatemytsid` carry the six official + case-sensitive proof fields; clearing an account sends only an empty + `myTeamspeakId`. Connection options retain the latest account for reconnects; + callers cancel and rebuild an in-flight attempt when its snapshot changes. + Tests cover an independent signature vector, persistence validation/redaction, + wire field names, clearing and reconnect snapshot replacement. The account + UUID and the ordinary server identity remain separate. diff --git a/crates/proto/tsclientlib/src/lib.rs b/crates/proto/tsclientlib/src/lib.rs index e01a16e..41d7fe4 100644 --- a/crates/proto/tsclientlib/src/lib.rs +++ b/crates/proto/tsclientlib/src/lib.rs @@ -44,6 +44,7 @@ use tsproto_packets::packets::{InCommandBuf, OutCommand, OutPacket, PacketType}; #[cfg(feature = "audio")] pub mod audio; +mod myts; pub mod prelude; pub mod resolver; pub mod sync; @@ -382,9 +383,11 @@ impl Connection { address: address.into(), local_address: None, identity: None, + myts_identity: None, server: None, name: "TeamSpeakUser".into(), version: Version::Windows_3_X_X__1, + metadata: Cow::Borrowed(""), hardware_id: "923f136fb1e22ae6ce95e60255529c00,d13231b1bc33edfecfb9169cc7a63bcc".into(), channel: None, channel_password: None, @@ -536,7 +539,7 @@ impl Connection { .as_ref() .map(|p| tsproto_types::crypto::encode_password(p.as_bytes())) .unwrap_or_default(); - let packet = c2s::OutClientInitMessage::new(&mut iter::once(c2s::OutClientInitPart { + let mut packet = c2s::OutClientInitMessage::new(&mut iter::once(c2s::OutClientInitPart { name: Cow::Borrowed(options.name.as_ref()), version: Cow::Borrowed(client_version), platform: Cow::Borrowed(client_platform), @@ -549,7 +552,7 @@ impl Connection { default_channel: Cow::Borrowed(options.channel.as_deref().unwrap_or_default()), default_channel_password: Cow::Borrowed(default_channel_password.as_ref()), password: Cow::Borrowed(password.as_ref()), - metadata: "".into(), + metadata: Cow::Borrowed(options.metadata.as_ref()), version_sign: Cow::Borrowed(client_version_sign.as_ref()), client_key_offset: counter, phonetic_name: "".into(), @@ -564,6 +567,13 @@ impl Connection { security_hash: None, })); + // Voelin patch: account proof is bound to this transport's negotiated IV. + // The generated legacy client_myteamspeak_id field stays absent. + if let Some(identity) = &options.myts_identity { + let params = client.params.as_ref().ok_or(Error::InitserverParamsMissing)?; + identity.proof(¶ms.shared_iv).write_to(&mut packet); + } + client.send_packet(packet.into_packet()).map_err(Error::SendClientinit)?; match tokio::time::timeout( @@ -1711,9 +1721,11 @@ pub struct ConnectOptions { address: ServerAddress, local_address: Option, identity: Option, + myts_identity: Option, server: Option, name: Cow<'static, str>, version: Version, + metadata: Cow<'static, str>, hardware_id: Cow<'static, str>, channel: Option>, channel_password: Option>, @@ -1853,6 +1865,13 @@ impl ConnectOptions { self } + /// Application metadata, independently of the signed compatibility version. + /// Voelin patch: carries the actual application name/build to the server. + pub fn metadata>>(mut self, metadata: S) -> Self { + self.metadata = metadata.into(); + self + } + /// The hardware ID (HWID) of the client. /// /// # Default diff --git a/crates/proto/tsclientlib/src/myts.rs b/crates/proto/tsclientlib/src/myts.rs new file mode 100644 index 0000000..91bd276 --- /dev/null +++ b/crates/proto/tsclientlib/src/myts.rs @@ -0,0 +1,91 @@ +//! Voelin patch: connection-bound myTeamSpeak proof and live account changes. + +use tsproto::myts::Identity; +use tsproto_packets::packets::{Direction, Flags, OutCommand, PacketType}; + +use crate::{ConnectOptions, Connection, ConnectionState, Error, MessageHandle, Result}; + +impl ConnectOptions { + /// Snapshot the account credential for the initial connection and reconnects. + /// This is separate from the server identity and account profile UUID. + pub fn myts_identity(mut self, identity: Option) -> Self { + self.myts_identity = identity; + self + } +} + +impl Connection { + /// Publish a connection-bound account proof, or clear the account identity. + /// + /// Always updates the reconnect options, even if currently disconnected or + /// sending fails. A running connection attempt owns its previous snapshot: + /// callers must cancel and rebuild that attempt after `NotConnected`. + /// Await the returned handle's `StreamItem::MessageResult` for server acceptance. + pub fn update_myts_identity(&mut self, identity: Option) -> Result { + self.options.myts_identity = identity; + let iv = match &self.state { + ConnectionState::Connected { con, .. } => { + con.client.params.as_ref().ok_or(Error::InitserverParamsMissing)?.shared_iv + } + _ => return Err(Error::NotConnected), + }; + let packet = update_packet(self.options.myts_identity.as_ref(), &iv); + self.send_command_with_result(packet) + } +} + +fn update_packet(identity: Option<&Identity>, iv: &[u8; 64]) -> OutCommand { + let mut packet = + OutCommand::new(Direction::C2S, Flags::empty(), PacketType::Command, "updatemytsid"); + if let Some(identity) = identity { + identity.proof(iv).write_to(&mut packet); + } else { + // Empty arguments are serialized without '=' by the existing writer. + packet.write_arg("myTeamspeakId", &""); + } + packet +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn clear_contains_no_previous_account_proof() { + let packet = update_packet(None, &[0; 64]).into_packet(); + assert_eq!(packet.content(), b"updatemytsid myTeamspeakId"); + } + + #[test] + fn update_uses_current_connection_challenge() { + // Scalar one and the standard compressed Edwards base point. + let mut private = [0; 32]; + private[0] = 1; + let mut public = [0x66; 32]; + public[0] = 0x58; + let identity = Identity::new(vec![1; 33], 42, public, private, vec![2; 65]).unwrap(); + let first = update_packet(Some(&identity), &[0; 64]).into_packet(); + let second = update_packet(Some(&identity), &[1; 64]).into_packet(); + assert_ne!(first.content(), second.content()); + let wire = std::str::from_utf8(first.content()).unwrap(); + assert!(wire.starts_with("updatemytsid myTeamspeakId=")); + assert!(wire.contains(" acTime=42 ")); + assert!(!wire.contains("client_myteamspeak_id")); + assert_eq!(wire.split(' ').count(), 7); + } + + #[test] + fn failed_update_still_replaces_reconnect_snapshot() { + // Building opens no socket until the connection future is polled. + let mut private = [0; 32]; + private[0] = 1; + let mut public = [0x66; 32]; + public[0] = 0x58; + let identity = Identity::new(vec![1; 33], 42, public, private, vec![2; 65]).unwrap(); + let mut connection = + Connection::build("localhost").myts_identity(Some(identity)).connect().unwrap(); + assert!(connection.options.myts_identity.is_some()); + assert!(matches!(connection.update_myts_identity(None), Err(Error::NotConnected))); + assert!(connection.options.myts_identity.is_none()); + } +} diff --git a/crates/proto/tsproto/Cargo.toml b/crates/proto/tsproto/Cargo.toml index 588880b..e17cb4d 100644 --- a/crates/proto/tsproto/Cargo.toml +++ b/crates/proto/tsproto/Cargo.toml @@ -43,8 +43,10 @@ tsproto-packets = { path = "../tsproto-packets", version = "0.1" } tsproto-types = { path = "../tsproto-types", version = "0.1" } quicklz = "0.3" crypto-bigint = "0.6" +zeroize = "1" [dev-dependencies] +serde_json = "1" anyhow = "1" criterion = "0.8" once_cell = "1" diff --git a/crates/proto/tsproto/src/lib.rs b/crates/proto/tsproto/src/lib.rs index 972d9b9..ecd530b 100644 --- a/crates/proto/tsproto/src/lib.rs +++ b/crates/proto/tsproto/src/lib.rs @@ -26,6 +26,7 @@ pub mod client; pub mod connection; pub mod license; pub mod log; +pub mod myts; pub mod packet_codec; pub mod resend; pub mod utils; diff --git a/crates/proto/tsproto/src/myts.rs b/crates/proto/tsproto/src/myts.rs new file mode 100644 index 0000000..06cf39a --- /dev/null +++ b/crates/proto/tsproto/src/myts.rs @@ -0,0 +1,247 @@ +//! Validated myTeamSpeak signing credentials and connection-bound public proofs. +//! +//! Serializing an [`Identity`] exports its private key. Persist it only in a +//! credential store, never application settings, diagnostics or packet logs. + +use std::fmt; + +use base64::prelude::*; +use curve25519_dalek::{constants::ED25519_BASEPOINT_TABLE, scalar::Scalar}; +use serde::{Deserialize, Deserializer, Serialize}; +use sha2::{Digest, Sha256, Sha512}; +use thiserror::Error; +use tsproto_packets::packets::OutCommand; +use zeroize::Zeroize; + +/// An account identity; distinct from the account UUID and server identity. +#[derive(Clone, Serialize)] +pub struct Identity { + myts_id: Vec, + creation_time: u64, + public_key: [u8; 32], + private_key: [u8; 32], + public_signature: Vec, +} + +#[derive(Debug, Error)] +pub enum IdentityError { + #[error("myTeamSpeak identity must contain 33 bytes")] + InvalidId, + #[error("myTeamSpeak public signature must contain 65 to 4096 bytes")] + InvalidSignature, + #[error("myTeamSpeak private key is zero or does not match its public key")] + InvalidKeyPair, +} + +impl fmt::Debug for Identity { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.write_str("Identity([REDACTED])") } +} + +impl Drop for Identity { + fn drop(&mut self) { self.private_key.zeroize(); } +} + +impl<'de> Deserialize<'de> for Identity { + fn deserialize>(deserializer: D) -> Result { + #[derive(Deserialize)] + #[serde(deny_unknown_fields)] + struct Stored { + myts_id: Vec, + creation_time: u64, + public_key: [u8; 32], + private_key: [u8; 32], + public_signature: Vec, + } + let mut stored = Stored::deserialize(deserializer)?; + let result = Self::new( + stored.myts_id, + stored.creation_time, + stored.public_key, + stored.private_key, + stored.public_signature, + ); + stored.private_key.zeroize(); + result.map_err(serde::de::Error::custom) + } +} + +impl Identity { + /// `creation_time` is the voice protocol's decimal `acTime` integer, + /// byte-swapped from the account service's numeric creation timestamp. + pub fn new( + myts_id: Vec, creation_time: u64, public_key: [u8; 32], mut private_key: [u8; 32], + public_signature: Vec, + ) -> Result { + let result = (|| { + if myts_id.len() != 33 { + return Err(IdentityError::InvalidId); + } + if !(65..=4096).contains(&public_signature.len()) { + return Err(IdentityError::InvalidSignature); + } + let mut scalar = Scalar::from_bytes_mod_order(private_key); + let valid = scalar != Scalar::ZERO + && (ED25519_BASEPOINT_TABLE * &scalar).compress().to_bytes() == public_key; + scalar.zeroize(); + if !valid { + return Err(IdentityError::InvalidKeyPair); + } + Ok(Self { myts_id, creation_time, public_key, private_key, public_signature }) + })(); + private_key.zeroize(); + result + } + + pub fn id(&self) -> String { BASE64_STANDARD.encode(&self.myts_id) } + + /// Sign this connection's challenge with the original raw private scalar. + /// This is not Ed25519's seed expansion: the account already stores a scalar. + pub fn proof(&self, shared_iv: &[u8; 64]) -> Proof { + let mut challenge = Sha256::new(); + challenge.update([0x30, 0x08, 0, 0, 0, 0]); + challenge.update(shared_iv); + let mut message = challenge.finalize().to_vec(); + message.extend_from_slice(b"MyTeamSpeakID"); + let mut nonce_hash = Sha512::new(); + nonce_hash.update(self.private_key); + nonce_hash.update(&message); + let mut nonce = Scalar::from_bytes_mod_order_wide(&nonce_hash.finalize().into()); + let public_nonce = (ED25519_BASEPOINT_TABLE * &nonce).compress().to_bytes(); + let mut hash = Sha512::new(); + hash.update(public_nonce); + hash.update(self.public_key); + hash.update(&message); + let challenge = Scalar::from_bytes_mod_order_wide(&hash.finalize().into()); + let mut scalar = Scalar::from_bytes_mod_order(self.private_key); + let mut response = challenge * scalar + nonce; + let mut signature = [0; 64]; + signature[..32].copy_from_slice(&public_nonce); + signature[32..].copy_from_slice(response.as_bytes()); + scalar.zeroize(); + nonce.zeroize(); + response.zeroize(); + Proof { + myteamspeak_id: self.id(), + creation_time: self.creation_time, + public_key: BASE64_STANDARD.encode(self.public_key), + auth_signature: BASE64_STANDARD.encode(signature), + public_signature: BASE64_STANDARD.encode(&self.public_signature[..64]), + public_signature_certificate: BASE64_STANDARD.encode(&self.public_signature[64..]), + } + } +} + +/// Public, connection-bound authentication values. Never contains private keys. +#[derive(Clone)] +pub struct Proof { + pub myteamspeak_id: String, + pub creation_time: u64, + pub public_key: String, + pub auth_signature: String, + pub public_signature: String, + pub public_signature_certificate: String, +} + +impl fmt::Debug for Proof { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.write_str("Proof([REDACTED])") } +} + +impl Proof { + /// Append the official case-sensitive wire fields to an outgoing command. + pub fn write_to(&self, packet: &mut OutCommand) { + packet.write_arg("myTeamspeakId", &self.myteamspeak_id); + packet.write_arg("acTime", &self.creation_time); + packet.write_arg("userPubKey", &self.public_key); + packet.write_arg("authSign", &self.auth_signature); + packet.write_arg("pubSign", &self.public_signature); + packet.write_arg("pubSignCert", &self.public_signature_certificate); + } +} + +#[cfg(test)] +mod tests { + use super::*; + use tsproto_packets::packets::{Direction, Flags, PacketType}; + + fn hex(value: &str) -> [u8; N] { + let mut bytes = [0; N]; + for (i, byte) in bytes.iter_mut().enumerate() { + *byte = u8::from_str_radix(&value[i * 2..i * 2 + 2], 16).unwrap(); + } + bytes + } + + fn identity() -> Identity { + Identity::new( + vec![7; 33], + 123456, + hex("ce92350b547b6cf028df0618bf9aba55f949930059308d83ebd727e13472ed99"), + std::array::from_fn(|i| i as u8 + 1), + vec![9; 65], + ) + .unwrap() + } + + #[test] + fn raw_scalar_signature_matches_independent_vector() { + // Python integer Edwards arithmetic + hashlib, independent of dalek. + let proof = identity().proof(&std::array::from_fn(|i| i as u8)); + let expected = hex::<64>( + "d56e1808e1ded53e20fc2849f016603c88eefe0494d75e9b869653e2bacaa495c562b571289d88a561c0f4b568cf90cc515b557b6d4321962e94ccf85f105a08", + ); + assert_eq!(BASE64_STANDARD.decode(proof.auth_signature).unwrap(), expected); + assert_ne!( + identity().proof(&[0; 64]).auth_signature, + identity().proof(&[1; 64]).auth_signature + ); + } + + #[test] + fn credentials_roundtrip_validate_and_redact() { + let identity = identity(); + let stored = serde_json::to_value(&identity).unwrap(); + let restored: Identity = serde_json::from_value(stored.clone()).unwrap(); + assert_eq!(serde_json::to_value(&restored).unwrap(), stored); + assert_eq!( + identity.proof(&[0; 64]).auth_signature, + restored.proof(&[0; 64]).auth_signature + ); + assert_eq!(format!("{:?}", restored), "Identity([REDACTED])"); + assert_eq!(format!("{:?}", restored.proof(&[0; 64])), "Proof([REDACTED])"); + for field in ["myts_id", "public_signature", "public_key", "private_key"] { + let mut invalid = stored.clone(); + invalid[field] = serde_json::json!([]); + assert!(serde_json::from_value::(invalid).is_err(), "{}", field); + } + for private in [vec![0; 32], vec![1; 32]] { + let mut invalid = stored.clone(); + invalid["private_key"] = serde_json::json!(private); + assert!(serde_json::from_value::(invalid).is_err()); + } + for length in [64, 4097] { + let mut invalid = stored.clone(); + invalid["public_signature"] = serde_json::json!(vec![9; length]); + assert!(serde_json::from_value::(invalid).is_err()); + } + } + + #[test] + fn proof_writes_exact_public_wire_fields() { + let mut command = + OutCommand::new(Direction::C2S, Flags::empty(), PacketType::Command, "clientinit"); + identity().proof(&[0; 64]).write_to(&mut command); + let packet = command.into_packet(); + let wire = std::str::from_utf8(packet.content()).unwrap(); + let fields: Vec<_> = + wire.split(' ').skip(1).map(|field| field.split('=').next().unwrap()).collect(); + assert_eq!(fields, [ + "myTeamspeakId", + "acTime", + "userPubKey", + "authSign", + "pubSign", + "pubSignCert" + ]); + assert!(!wire.contains("private")); + } +} diff --git a/crates/voelin-core/Cargo.toml b/crates/voelin-core/Cargo.toml index 44fb3fd..e4fee8b 100644 --- a/crates/voelin-core/Cargo.toml +++ b/crates/voelin-core/Cargo.toml @@ -55,6 +55,7 @@ tsproto-packets = { path = "../proto/tsproto-packets" } tsproto-types = { path = "../proto/tsproto-types" } [dev-dependencies] +voelin-myts = { path = "../voelin-myts" } # `process`: the browser interop test drives Chromium through Node.js. tokio = { version = "1", features = ["macros", "net", "process", "rt-multi-thread", "test-util"] } diff --git a/crates/voelin-core/src/lib.rs b/crates/voelin-core/src/lib.rs index 3163b08..cf8314a 100644 --- a/crates/voelin-core/src/lib.rs +++ b/crates/voelin-core/src/lib.rs @@ -61,13 +61,14 @@ pub mod settings; pub mod stream; #[cfg(feature = "media")] pub mod studio; +pub mod versions; mod voice; use std::collections::HashMap; use std::path::PathBuf; use std::sync::Arc; -use tokio::sync::{broadcast, mpsc}; +use tokio::sync::{broadcast, mpsc, watch}; pub use voelin_audio::settings::TransmitMode; pub use voelin_audio::{AudioSettings, ProcessingSettings, VadSettings}; use voelin_model::{ @@ -98,6 +99,8 @@ pub type SessionId = u64; /// What the UI asks for. #[derive(Clone, Debug)] pub enum Command { + /// Main account proof for every current and future voice connection. + SetMytsIdentity(Option>), ConnectVoice { session: SessionId, options: Box, @@ -795,6 +798,7 @@ async fn run( // Before any command: a contact set meanwhile would be lost. contacts.load().await; let mut sessions: HashMap = HashMap::new(); + let (myts_identity, _) = watch::channel(None); let mut current = shared.current(); // Pruning: at start, then hourly (and when the setting changes). let mut prune = tokio::time::interval(std::time::Duration::from_secs(3600)); @@ -839,6 +843,10 @@ async fn run( }, }; let id = match command { + Command::SetMytsIdentity(identity) => { + myts_identity.send_replace(identity); + continue; + } Command::SetAudioSettings(new) => { settings = (*new).clone(); for s in sessions.values() { @@ -914,6 +922,7 @@ async fn run( frames.clone(), settings.clone(), engine.clone(), + myts_identity.subscribe(), ); if let Some(profiles) = &srtp_profiles { s.send(Command::SetSrtpProfiles(profiles.clone())); @@ -991,7 +1000,8 @@ fn command_session(command: &Command) -> SessionId { | Command::DeleteOfflineMessage { session, .. } | Command::SetOfflineMessageRead { session, .. } | Command::CloseSession { session } => *session, - Command::SetAudioSettings(_) + Command::SetMytsIdentity(_) + | Command::SetAudioSettings(_) | Command::SetSrtpProfiles(_) | Command::TestMicrophone { .. } | Command::SetSetting { .. } diff --git a/crates/voelin-core/src/session.rs b/crates/voelin-core/src/session.rs index 8a76b19..9953c31 100644 --- a/crates/voelin-core/src/session.rs +++ b/crates/voelin-core/src/session.rs @@ -81,9 +81,12 @@ impl SessionHandle { frames: broadcast::Sender, audio_settings: AudioSettings, shared: Shared, + myts_identity: watch::Receiver>>, ) -> Self { let (tx, rx) = mpsc::unbounded_channel(); - tokio::spawn(Session::new(id, events, frames, audio_settings, shared).run(rx)); + tokio::spawn( + Session::new(id, events, frames, audio_settings, shared, myts_identity).run(rx), + ); Self { tx } } @@ -120,6 +123,7 @@ struct OwnStream { } struct Session { + myts_identity: watch::Receiver>>, id: SessionId, events: broadcast::Sender, state: SessionState, @@ -184,11 +188,13 @@ impl Session { frames: broadcast::Sender, audio_settings: AudioSettings, shared: Shared, + myts_identity: watch::Receiver>>, ) -> Self { let (sources_tx, sources_rx) = mpsc::unbounded_channel(); let Shared { settings, history, cache, contacts } = shared; let contacts_rx = Some(contacts.watch()); Self { + myts_identity, cache, contacts, contacts_rx, @@ -310,6 +316,7 @@ impl Session { self.forward(audio_rx, move |e| SourceEvent::Audio(generation, e)); } let link = VoiceLink { + myts_identity: self.myts_identity.clone(), session: self.id, events: self.events.clone(), settings: self.settings.clone(), @@ -620,7 +627,8 @@ impl Session { self.voice_request(Some(request), VoiceCmd::OfflineFlag { request, id, read }); } // Engine-wide. - Command::CloseSession { .. } + Command::SetMytsIdentity(_) + | Command::CloseSession { .. } | Command::TestMicrophone { .. } | Command::SetSetting { .. } | Command::ResetSetting { .. } diff --git a/crates/voelin-core/src/versions.rs b/crates/voelin-core/src/versions.rs new file mode 100644 index 0000000..89b7f41 --- /dev/null +++ b/crates/voelin-core/src/versions.rs @@ -0,0 +1,175 @@ +//! Known signed client versions. +//! +//! `clientinit` must carry a `client_version_sign` produced by TeamSpeak's +//! private key, so a client can only claim versions from this list of captured +//! signatures (the `Versions.csv` declaration file). + +use anyhow::{Context, Result, bail}; +use base64::prelude::*; +use tsclientlib::Version; + +const VERSIONS_CSV: &str = include_str!("../../proto/tsproto-structs/declarations/Versions.csv"); + +#[derive(Clone, Debug, PartialEq, Eq)] +pub struct KnownVersion { + pub version: String, + pub platform: String, + pub signature: String, +} + +impl KnownVersion { + pub fn to_version(&self) -> Result { + let signature = BASE64_STANDARD + .decode(&self.signature) + .with_context(|| format!("invalid signature for {}@{}", self.platform, self.version))?; + Ok(Version::Custom { + platform: self.platform.clone(), + version: self.version.clone(), + signature, + }) + } +} + +pub fn known_versions() -> Vec { + VERSIONS_CSV + .lines() + .skip(1) + .filter(|l| !l.trim().is_empty()) + .filter_map(|l| { + // The version string contains no commas, the signature is base64. + let mut parts = l.splitn(3, ','); + Some(KnownVersion { + version: parts.next()?.to_string(), + platform: parts.next()?.to_string(), + signature: parts.next()?.trim().to_string(), + }) + }) + .collect() +} + +/// Resolve a `--client-version` argument. +/// +/// Accepts `default` (the core native-platform default), an index into [`known_versions`], +/// or `@` with the exact strings from `voelinctl versions`. +pub fn resolve(spec: &str) -> Result> { + if spec == "default" { + return Ok(None); + } + let versions = known_versions(); + if let Ok(i) = spec.parse::() { + let Some(v) = versions.get(i) else { + bail!("version index {i} out of range (0..{})", versions.len()); + }; + return v.to_version().map(Some); + } + let Some((platform, version)) = spec.split_once('@') else { + bail!("expected `default`, an index or `@`, got {spec:?}"); + }; + match versions.iter().find(|v| v.platform == platform && v.version == version) { + Some(v) => v.to_version().map(Some), + None => bail!("unknown client version {spec:?}, see `voelinctl versions`"), + } +} + +/// The signed compatibility tuple for the native operating system. +/// +/// The generic version retains the library's minimum-version compatibility. +/// Its version, platform and signature must stay together: the signature does +/// not authorize renaming the client or changing its platform. +/// +/// Unsupported operating systems return an error rather than claiming another +/// platform. Product identity belongs in [`client_metadata`], not this tuple. +pub fn native_version() -> Result { + compatibility_version(std::env::consts::OS) +} + +fn compatibility_version(os: &str) -> Result { + let platform = match os { + "linux" => "Linux", + "windows" => "Windows", + "macos" => "OS X", + "android" => "Android", + "ios" => "iOS", + _ => bail!("no signed compatibility version for operating system {os:?}"), + }; + known_versions() + .into_iter() + .find(|version| version.platform == platform && version.version.contains("3.6")) + .with_context(|| format!("missing signed compatibility version for {platform}"))? + .to_version() +} + +/// Truthful product identity, separate from the signed compatibility tuple. +pub fn client_metadata() -> String { + serde_json::json!({ + "name": "Voelin", + "version": env!("CARGO_PKG_VERSION"), + "platform": std::env::consts::OS, + }) + .to_string() +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn native_platform_preserves_complete_signed_tuple() { + for (os, platform) in [ + ("linux", "Linux"), + ("windows", "Windows"), + ("macos", "OS X"), + ("android", "Android"), + ("ios", "iOS"), + ] { + let version = compatibility_version(os).unwrap(); + assert_eq!(version.get_platform(), platform); + assert_eq!(version.get_version_string(), "3.?.? [Build: 5680278000]"); + assert_eq!(version.get_signature().len(), 64); + let known = known_versions() + .into_iter() + .find(|known| { + known.platform == platform && known.version == version.get_version_string() + }) + .unwrap(); + assert_eq!(version, known.to_version().unwrap()); + } + assert!(compatibility_version("freebsd").is_err()); + assert!(compatibility_version("unknown").is_err()); + match compatibility_version(std::env::consts::OS) { + Ok(expected) => assert_eq!(native_version().unwrap(), expected), + Err(_) => assert!(native_version().is_err()), + } + } + + #[test] + fn metadata_identifies_voelin_without_changing_signed_version() { + let metadata: serde_json::Value = serde_json::from_str(&client_metadata()).unwrap(); + assert_eq!(metadata["name"], "Voelin"); + assert_eq!(metadata["version"], env!("CARGO_PKG_VERSION")); + assert_eq!(metadata["platform"], std::env::consts::OS); + } + + #[test] + fn parses_all_rows() { + let versions = known_versions(); + assert!(versions.len() > 50); + for v in &versions { + let signature = BASE64_STANDARD.decode(&v.signature).unwrap(); + assert_eq!(signature.len(), 64, "{v:?}"); + } + } + + #[test] + fn resolves_specs() { + assert!(resolve("default").unwrap().is_none()); + let by_index = resolve("0").unwrap().unwrap(); + let first = &known_versions()[0]; + let by_name = resolve(&format!("{}@{}", first.platform, first.version)).unwrap().unwrap(); + assert_eq!(by_index, by_name); + assert_eq!(by_name.get_platform(), first.platform); + assert!(resolve("Nope@1.0").is_err()); + assert!(resolve("100000").is_err()); + assert!(resolve("garbage").is_err()); + } +} diff --git a/crates/voelin-core/src/voice.rs b/crates/voelin-core/src/voice.rs index e53ce02..f2f3077 100644 --- a/crates/voelin-core/src/voice.rs +++ b/crates/voelin-core/src/voice.rs @@ -8,11 +8,12 @@ use std::collections::HashMap; use std::path::PathBuf; +use std::sync::Arc; use std::time::Duration; use base64::Engine as _; use futures::prelude::*; -use tokio::sync::{broadcast, mpsc}; +use tokio::sync::{broadcast, mpsc, watch}; use tokio::task::AbortHandle; use tokio::time::{Instant, timeout}; use tracing::{debug, info, warn}; @@ -38,7 +39,7 @@ pub struct VoiceOptions { pub address: String, pub nickname: String, pub identity: Option, - /// Signed client version; `None` for the library default. + /// Signed compatibility version; `None` selects the native platform's tuple. pub client_version: Option, pub server_password: Option, /// Channel path to join, e.g. `Lobby/Sub`. @@ -67,6 +68,7 @@ impl VoiceOptions { /// Where a voice connection reports answers the session does not need to see. #[derive(Clone)] pub(crate) struct VoiceLink { + pub myts_identity: watch::Receiver>>, pub session: SessionId, pub events: broadcast::Sender, pub settings: SharedSettings, @@ -223,6 +225,8 @@ fn now_ms() -> i64 { } enum Input { + MytsIdentityChanged, + AccountSourceClosed, Item(Option>), Cmd(Option), Tick, @@ -230,6 +234,7 @@ enum Input { /// A command waiting for the server's answer. enum Pending { + MytsIdentity(Instant), Stream(Request), FileList { request: RequestId, @@ -312,35 +317,55 @@ async fn run_inner( commands: &mut mpsc::UnboundedReceiver, events: &mpsc::UnboundedSender, ) -> anyhow::Result<()> { - let mut builder = Connection::build(options.address.clone()).name(options.nickname.clone()); + let version = match &options.client_version { + Some(version) => version.clone(), + None => crate::versions::native_version()?, + }; + let mut builder = Connection::build(options.address.clone()) + .name(options.nickname.clone()) + .version(version) + .metadata(crate::versions::client_metadata()); if let Some(identity) = &options.identity { builder = builder.identity(identity.clone()); } - if let Some(version) = &options.client_version { - builder = builder.version(version.clone()); - } if let Some(pw) = &options.server_password { builder = builder.password(pw.clone()); } if let Some(channel) = &options.channel { builder = builder.channel(channel.clone()); } - let mut con = builder.connect()?; - - // Wait for the initial state. - let connected = timeout(Duration::from_secs(30), async { - con.events() - .try_filter(|e| future::ready(matches!(e, StreamItem::BookEvents(_)))) - .next() - .await + let mut identity = link.myts_identity.clone(); + // A changed account invalidates an in-flight handshake. Drop that connection + // and take a fresh snapshot before publishing any connected state. + let mut con = timeout(Duration::from_secs(30), async { + loop { + let snapshot = identity.borrow_and_update().as_deref().cloned(); + let mut con = builder.clone().myts_identity(snapshot).connect()?; + let connected = tokio::select! { + biased; + changed = identity.changed() => { + changed.map_err(|_| anyhow::anyhow!("account source closed"))?; + continue; + } + connected = async { + con.events() + .try_filter(|e| future::ready(matches!(e, StreamItem::BookEvents(_)))) + .next().await + } => connected, + }; + match connected { + Some(Ok(_)) => {} + Some(Err(e)) => return Err(anyhow::Error::from(e)), + None => anyhow::bail!("connection closed"), + } + if identity.has_changed().unwrap_or(true) { + continue; + } + return Ok(con); + } }) .await - .map_err(|_| anyhow::anyhow!("timed out while connecting"))?; - match connected { - Some(Ok(_)) => {} - Some(Err(e)) => return Err(e.into()), - None => anyhow::bail!("connection closed"), - } + .map_err(|_| anyhow::anyhow!("timed out while connecting"))??; let server_uid = { let state = con.get_state()?; let flavor = ServerFlavor::from_version_string(&state.server.version); @@ -378,15 +403,25 @@ async fn run_inner( let mut tick = tokio::time::interval(Duration::from_millis(250)); let result = loop { - let input = { - let mut stream = voice.con.events(); - tokio::select! { - item = stream.next() => Input::Item(item), - cmd = commands.recv() => Input::Cmd(cmd), - _ = tick.tick() => Input::Tick, - } - }; + // Check on every turn so busy command/audio queues cannot delay expiry. + if voice.pending.values().any(|pending| { + matches!(pending, Pending::MytsIdentity(started) + if started.elapsed() >= Duration::from_secs(10)) + }) { + break Err(anyhow::anyhow!("myTeamSpeak account update timed out")); + } + let input = next_input(&mut voice.con.events(), commands, &mut tick, &mut identity).await; match input { + Input::AccountSourceClosed => break Err(anyhow::anyhow!("account source closed")), + Input::MytsIdentityChanged => { + let snapshot = identity.borrow_and_update().as_deref().cloned(); + match voice.con.update_myts_identity(snapshot) { + Ok(handle) => { + voice.pending.insert(handle, Pending::MytsIdentity(Instant::now())); + } + Err(e) => break Err(anyhow::anyhow!("myTeamSpeak account update: {e}")), + } + } Input::Item(None) => break Err(anyhow::anyhow!("connection closed")), Input::Item(Some(Err(e))) => break Err(e.into()), Input::Item(Some(Ok(item))) => { @@ -407,10 +442,52 @@ async fn run_inner( for (_, job) in voice.jobs.drain() { job.report()(TransferState::Failed("disconnected".into())); } + let disconnect = shutdown_connection(voice.con).await; result?; - voice.con.disconnect(DisconnectOptions::new())?; - let _ = - timeout(Duration::from_secs(3), voice.con.events().for_each(|_| future::ready(()))).await; + disconnect?; + Ok(()) +} + +async fn next_input( + stream: &mut (impl Stream> + Unpin), + commands: &mut mpsc::UnboundedReceiver, + tick: &mut tokio::time::Interval, + identity: &mut watch::Receiver>>, +) -> Input { + tokio::select! { + biased; + changed = identity.changed() => if changed.is_ok() { + Input::MytsIdentityChanged + } else { + Input::AccountSourceClosed + }, + input = async { + // Keep account changes first without starving network or timers when + // the audio command queue remains ready. + tokio::select! { + cmd = commands.recv() => Input::Cmd(cmd), + _ = tick.tick() => Input::Tick, + item = stream.next() => Input::Item(item), + } + } => input, + } +} + +async fn shutdown_connection(mut con: Connection) -> Result<(), tsclientlib::Error> { + // disconnect() also returns Ok while Connecting. Never poll that stale + // handshake: dropping it is the cancellation boundary for logout. + if con.get_state().is_err() { + return Ok(()); + } + con.disconnect(DisconnectOptions::new())?; + let _ = timeout(Duration::from_secs(3), async { + while con.get_state().is_ok() { + if con.events().next().await.is_none() { + break; + } + } + }) + .await; Ok(()) } @@ -464,7 +541,13 @@ impl Voice { StreamItem::MessageEvent(msg) => self.message_event(&msg), StreamItem::MessageResult(handle, result) => { if let Some(pending) = self.pending.remove(&handle) { - self.answered(pending, result.map_err(|e| e.error)); + if matches!(pending, Pending::MytsIdentity(_)) { + result.map_err(|e| { + anyhow::anyhow!("myTeamSpeak account update: {}", e.error) + })?; + } else { + self.answered(pending, result.map_err(|e| e.error)); + } } } StreamItem::FileDownload(handle, download) => { @@ -665,7 +748,7 @@ impl Voice { }; self.link.emit(Event::OfflineMessage { session, request, result }); } - Pending::Quiet => {} + Pending::Quiet | Pending::MytsIdentity(_) => {} Pending::Report(what) => { if let Err(e) = result { let _ = self.events.send(VoiceEvent::Error(format!("{what}: {e}"))); @@ -923,3 +1006,97 @@ fn transfer_error(error: &tsclientlib::Error) -> String { e => e.to_string(), } } + +#[cfg(test)] +mod account_tests { + use super::*; + + #[tokio::test(start_paused = true)] + async fn account_priority_preserves_ready_network_and_timer_progress() { + let (account, mut identity) = watch::channel(None); + let (commands, mut receiver) = mpsc::unbounded_channel(); + for _ in 0..512 { + commands.send(VoiceCmd::SetInputMuted(false)).unwrap(); + } + let mut stream = futures::stream::poll_fn(|_| { + std::task::Poll::Ready(Some(Err(tsclientlib::Error::NotConnected))) + }); + let mut tick = tokio::time::interval(Duration::from_millis(1)); + account.send_replace(None); + assert!(matches!( + next_input(&mut stream, &mut receiver, &mut tick, &mut identity).await, + Input::MytsIdentityChanged + )); + identity.borrow_and_update(); + let (mut network, mut timers, mut audio) = (0, 0, 0); + for _ in 0..512 { + tokio::time::advance(Duration::from_millis(1)).await; + match next_input(&mut stream, &mut receiver, &mut tick, &mut identity).await { + Input::Item(_) => network += 1, + Input::Tick => timers += 1, + Input::Cmd(_) => audio += 1, + _ => panic!("unexpected account change"), + } + } + assert!(network > 0 && timers > 0 && audio > 0); + } + + #[tokio::test] + async fn shutdown_never_polls_a_connecting_connection() { + let server = tokio::net::UdpSocket::bind("127.0.0.1:0").await.unwrap(); + let mut con = + Connection::build(server.local_addr().unwrap().to_string()).connect().unwrap(); + assert!(matches!(con.update_myts_identity(None), Err(tsclientlib::Error::NotConnected))); + // tsclientlib returns Ok here despite retaining its Connecting future. + assert!(con.disconnect(DisconnectOptions::new()).is_ok()); + timeout(Duration::from_millis(100), shutdown_connection(con)).await.unwrap().unwrap(); + let mut packet = [0; 2048]; + assert!(matches!(server.try_recv_from(&mut packet), Err(error) + if error.kind() == std::io::ErrorKind::WouldBlock)); + } + + #[tokio::test] + async fn account_change_cancels_pending_handshake() { + // A silent UDP peer keeps the handshake in flight without an external server. + let server = tokio::net::UdpSocket::bind("127.0.0.1:0").await.unwrap(); + let (account, identity) = watch::channel(None); + let (events, _) = broadcast::channel(8); + let link = VoiceLink { + session: 1, + events, + settings: SharedSettings::new(crate::settings::Settings::default()), + myts_identity: identity, + }; + let (_commands, commands) = mpsc::unbounded_channel(); + let (events, mut received) = mpsc::unbounded_channel(); + let task = tokio::spawn(run( + VoiceOptions::new(server.local_addr().unwrap().to_string(), "account-test"), + link, + commands, + events, + )); + let mut packet = [0; 2048]; + let (_, first) = + timeout(Duration::from_secs(5), server.recv_from(&mut packet)).await.unwrap().unwrap(); + // A logout/clear notification must cancel the old socket and restart. + account.send_replace(None); + let second = timeout(Duration::from_secs(5), async { + loop { + let (_, peer) = server.recv_from(&mut packet).await.unwrap(); + if peer != first { + break peer; + } + } + }) + .await + .unwrap(); + assert_ne!(first, second); + // Losing the account authority fails closed immediately, not after connect timeout. + drop(account); + timeout(Duration::from_secs(2), task).await.unwrap().unwrap(); + assert!( + matches!(received.recv().await, Some(VoiceEvent::Disconnected(Some(reason))) if reason == "account source closed") + ); + assert!(received.try_recv().is_err()); + } +} diff --git a/crates/voelin-core/tests/myts_live.rs b/crates/voelin-core/tests/myts_live.rs new file mode 100644 index 0000000..64b9e02 --- /dev/null +++ b/crates/voelin-core/tests/myts_live.rs @@ -0,0 +1,149 @@ +//! Opt-in account + isolated server interoperability check. No keys are saved. +//! Requires VOELIN_MYTS_LIVE=1, EMAIL/PASSWORD/DEVICE_ID and optional OTP under +//! the VOELIN_MYTS_ prefix; TEST_TS3/TEST_TS6 and QUERY_TS3/QUERY_TS6 give +//! loopback voice/query addresses. QUERY_PASSWORD authenticates local query. +#![cfg(not(target_os = "android"))] + +use std::{sync::Arc, time::Duration}; + +use anyhow::{Context, Result, bail, ensure}; +use tokio::{sync::broadcast, time::timeout}; +use voelin_core::{Command, Engine, Event, VoiceOptions, VoiceState}; +use voelin_myts::{Client, ServerIdentity}; +use voelin_query::{Command as QueryCommand, QueryClient, Row}; + +fn env(name: &str) -> Result { + std::env::var(format!("VOELIN_MYTS_{name}")).with_context(|| format!("missing {name}")) +} + +async fn connected(events: &mut broadcast::Receiver, session_id: u64) -> Result { + timeout(Duration::from_secs(35), async { + loop { + match events.recv().await? { + Event::State { session, state } + if session == session_id && state.voice == VoiceState::Connected => + { + if let Some(id) = state.own_client { + return Ok(id); + } + } + Event::Error { message, .. } => bail!("engine: {message}"), + _ => {} + } + } + }) + .await? +} + +async fn info(query: &QueryClient, client: u16) -> Result { + query + .send(&QueryCommand::new("clientinfo").arg("clid", client)) + .await? + .into_iter() + .next() + .context("clientinfo missing") +} + +async fn wait_id(query: &QueryClient, client: u16, expected: &str) -> Result<()> { + timeout(Duration::from_secs(12), async { + loop { + let row = info(query, client).await?; + if row.get("client_myteamspeak_id") == Some(expected) { + return Ok(()); + } + tokio::time::sleep(Duration::from_millis(200)).await; + } + }) + .await + .context("server did not report the expected myTS association")? +} + +async fn server(identity: Arc, kind: &str) -> Result<()> { + let address = env(&format!("TEST_{kind}"))?; + let query_address = env(&format!("QUERY_{kind}"))?; + // This test is deliberately limited to caller-owned loopback test servers. + ensure!(address.starts_with("127.0.0.1:"), "voice endpoint must be loopback"); + ensure!(query_address.starts_with("127.0.0.1:"), "query endpoint must be loopback"); + let (query, _) = QueryClient::connect(&voelin_query::Connect { + transport: if kind == "TS3" { + voelin_query::Transport::Raw + } else { + voelin_query::Transport::Ssh + }, + addr: query_address, + user: "serveradmin".into(), + secret: Some(env("QUERY_PASSWORD")?), + server_id: Some(1), + server_port: None, + line: voelin_query::LineOptions { rate_limit: None, ..Default::default() }, + }) + .await?; + let engine = Engine::start(); + let mut events = engine.subscribe(); + let result = async { + engine.send(Command::SetMytsIdentity(Some(identity.clone()))); + for session in 1..=2 { + engine.send(Command::ConnectVoice { + session, + options: Box::new(VoiceOptions::new(&address, format!("myts-proof-{session}"))), + }); + let client = connected(&mut events, session).await?; + let row = info(&query, client).await?; + let version = voelin_core::versions::native_version()?; + ensure!(row.get("client_platform") == Some(version.get_platform()), "wrong platform"); + ensure!( + row.get("client_version") == Some(version.get_version_string()), + "wrong version" + ); + let metadata: serde_json::Value = + serde_json::from_str(row.get("client_meta_data").context("missing metadata")?)?; + ensure!(metadata["name"] == "Voelin", "wrong client metadata"); + ensure!(metadata["platform"] == std::env::consts::OS, "wrong metadata platform"); + eprintln!("{kind}: native platform/Voelin metadata passed"); + wait_id(&query, client, &identity.id()).await?; + eprintln!("{kind}: signed clientinit myTS ID passed"); + // Two fresh connections prove the signature is bound to each handshake. + engine.send(Command::SetMytsIdentity(None)); + wait_id(&query, client, "").await?; + engine.send(Command::SetMytsIdentity(Some(identity.clone()))); + wait_id(&query, client, &identity.id()).await?; + eprintln!("{kind}: live clear and reattach passed"); + engine.send(Command::CloseSession { session }); + } + Ok(()) + } + .await; + engine.send(Command::SetMytsIdentity(None)); + for session in 1..=2 { + engine.send(Command::CloseSession { session }); + } + query.quit().await; + result +} + +#[tokio::test(flavor = "multi_thread")] +#[ignore = "requires owner-authorized account and isolated loopback servers"] +async fn authenticated_account_and_server_lifecycle() -> Result<()> { + ensure!(env("LIVE")? == "1", "explicit live opt-in required"); + let client = Client::new()?; + let login = client + .login(&env("EMAIL")?, &env("PASSWORD")?, env("OTP").ok().as_deref(), &env("DEVICE_ID")?) + .await?; + // Capture every result before deleting the newly created remote session. + let result = async { + client.validate_session(&login.token).await?; + let identity = Arc::new(login.identity.context("server identity unlock failed")?); + let mut failures = Vec::new(); + for kind in ["TS3", "TS6"] { + if let Err(error) = server(identity.clone(), kind).await { + failures.push(format!("{kind}: {error:#}")); + } + } + ensure!(failures.is_empty(), "{}", failures.join("; ")); + Ok(()) + } + .await; + let logout = client.logout(&login.token).await; + logout.context("remote test session revocation failed")?; + result +} diff --git a/crates/voelin-ui/Cargo.toml b/crates/voelin-ui/Cargo.toml index 9b84489..b0a786e 100644 --- a/crates/voelin-ui/Cargo.toml +++ b/crates/voelin-ui/Cargo.toml @@ -45,6 +45,7 @@ tsclientlib = { path = "../proto/tsclientlib" } # Desktop: the keyring for passwords, stream media with libvpx, OpenH264, X11 # and PipeWire, global hotkeys through the portal and X11. [target.'cfg(not(target_os = "android"))'.dependencies] +voelin-myts = { path = "../voelin-myts" } slint = { version = "1.18", features = ["renderer-software"] } voelin-core = { path = "../voelin-core", default-features = false, features = ["media-desktop"] } voelin-platform = { path = "../voelin-platform" } diff --git a/crates/voelin-ui/lang/voelin-ui.pot b/crates/voelin-ui/lang/voelin-ui.pot new file mode 100644 index 0000000..253e5e5 --- /dev/null +++ b/crates/voelin-ui/lang/voelin-ui.pot @@ -0,0 +1,6513 @@ +# +msgid "" +msgstr "" +"Project-Id-Version: voelin-ui VERSION\n" +"POT-Creation-Date: 2026-10-04 15:14+0000\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#: crates/voelin-ui/ui/app.slint:134 crates/voelin-ui/ui/app.slint:220 +msgctxt "MainWindow" +msgid "Settings" +msgstr "" + +#: crates/voelin-ui/ui/app.slint:134 +msgctxt "MainWindow" +msgid "Stream Studio" +msgstr "" + +#: crates/voelin-ui/ui/app.slint:221 +msgctxt "MainWindow" +msgid "Friends" +msgstr "" + +#: crates/voelin-ui/ui/app.slint:222 +msgctxt "MainWindow" +msgid "Messages" +msgstr "" + +#: crates/voelin-ui/ui/app.slint:223 +msgctxt "MainWindow" +msgid "Library" +msgstr "" + +#: crates/voelin-ui/ui/app.slint:224 +msgctxt "MainWindow" +msgid "Events" +msgstr "" + +#: crates/voelin-ui/ui/app.slint:227 +msgctxt "MainWindow" +msgid "You" +msgstr "" + +#: crates/voelin-ui/ui/app.slint:228 +msgctxt "MainWindow" +msgid "Activity" +msgstr "" + +#: crates/voelin-ui/ui/app.slint:232 +msgctxt "MainWindow" +msgid "Find your people. Talk beyond." +msgstr "" + +#: crates/voelin-ui/ui/bridge.slint:816 +msgctxt "Bridge" +msgid "No server selected" +msgstr "" + +#: crates/voelin-ui/ui/components/badge.slint:30 +msgctxt "LiveBadge" +msgid "LIVE" +msgstr "" + +#: crates/voelin-ui/ui/components/emoji.slint:72 +msgctxt "EmojiPicker" +msgid "Smileys" +msgstr "" + +#: crates/voelin-ui/ui/components/emoji.slint:72 +msgctxt "EmojiPicker" +msgid "People" +msgstr "" + +#: crates/voelin-ui/ui/components/emoji.slint:72 +msgctxt "EmojiPicker" +msgid "Nature" +msgstr "" + +#: crates/voelin-ui/ui/components/emoji.slint:72 +msgctxt "EmojiPicker" +msgid "Food" +msgstr "" + +#: crates/voelin-ui/ui/components/emoji.slint:72 +msgctxt "EmojiPicker" +msgid "Activities" +msgstr "" + +#: crates/voelin-ui/ui/components/emoji.slint:73 +msgctxt "EmojiPicker" +msgid "Travel" +msgstr "" + +#: crates/voelin-ui/ui/components/emoji.slint:73 +msgctxt "EmojiPicker" +msgid "Objects" +msgstr "" + +#: crates/voelin-ui/ui/components/emoji.slint:73 +msgctxt "EmojiPicker" +msgid "Symbols" +msgstr "" + +#: crates/voelin-ui/ui/components/emoji.slint:73 +msgctxt "EmojiPicker" +msgid "Flags" +msgstr "" + +#: crates/voelin-ui/ui/components/emoji.slint:87 +msgctxt "EmojiPicker" +msgid "Emoji" +msgstr "" + +#: crates/voelin-ui/ui/components/emoji.slint:101 +msgctxt "EmojiPicker" +msgid "Search emoji" +msgstr "" + +#: crates/voelin-ui/ui/components/emoji.slint:132 +msgctxt "EmojiPicker" +msgid "No emoji found" +msgstr "" + +#: crates/voelin-ui/ui/components/emoji.slint:132 +msgctxt "EmojiPicker" +msgid "Search results" +msgstr "" + +#: crates/voelin-ui/ui/components/icon.slint:24 +msgctxt "Spinner" +msgid "Loading" +msgstr "" + +#: crates/voelin-ui/ui/components/meter.slint:23 +msgctxt "Meter" +msgid "Microphone level" +msgstr "" + +#: crates/voelin-ui/ui/components/meter.slint:24 +msgctxt "Meter" +msgid "{} dB" +msgstr "" + +#: crates/voelin-ui/ui/components/overlay.slint:220 +msgctxt "Modal" +msgid "Close" +msgstr "" + +#: crates/voelin-ui/ui/components/overlay.slint:287 +msgctxt "ResizeHandle" +msgid "Panel width" +msgstr "" + +#: crates/voelin-ui/ui/components/tabs.slint:72 +msgctxt "TabItem" +msgid "{} unread" +msgstr "" + +#: crates/voelin-ui/ui/components/tabs.slint:123 +msgctxt "TabItem" +msgid "Close {}" +msgstr "" + +#: crates/voelin-ui/ui/components/text-field.slint:84 +msgctxt "TextField" +msgid "Cut" +msgstr "" + +#: crates/voelin-ui/ui/components/text-field.slint:89 +msgctxt "TextField" +msgid "Copy" +msgstr "" + +#: crates/voelin-ui/ui/components/text-field.slint:94 +msgctxt "TextField" +msgid "Paste" +msgstr "" + +#: crates/voelin-ui/ui/components/text-field.slint:99 +msgctxt "TextField" +msgid "Select All" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:26 +#: crates/voelin-ui/ui/screens/account.slint:26 +msgctxt "LoginForm" +msgid "Email" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:35 +#: crates/voelin-ui/ui/screens/account.slint:35 +msgctxt "LoginForm" +msgid "Password" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:44 +#: crates/voelin-ui/ui/screens/account.slint:44 +msgctxt "LoginForm" +msgid "One-time code" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:54 +msgctxt "LoginForm" +msgid "Sign in" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:59 +msgctxt "LoginForm" +msgid "Create account in browser" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:64 +msgctxt "LoginForm" +msgid "Forgot password?" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:68 +msgctxt "LoginForm" +msgid "" +"Registration and password recovery open the official myTeamSpeak website. " +"Return here to sign in when finished." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:72 +msgctxt "AccountCard" +msgid "myTeamSpeak" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:74 +msgctxt "AccountCard" +msgid "" +"Saved session could not be validated. Your saved credentials were retained; " +"sign in again or clear them." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:75 +msgctxt "AccountCard" +msgid "Enter your password again and the one-time code." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:76 +msgctxt "AccountCard" +msgid "" +"Sign-in failed. Check your credentials and connection; the experimental " +"service may be unavailable." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:77 +msgctxt "AccountCard" +msgid "Signed out." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:78 +msgctxt "AccountCard" +msgid "" +"Signed out and saved credentials cleared. Remote session revocation failed." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:79 +msgctxt "AccountCard" +msgid "" +"Could not open your browser. Visit myteamspeak.com to manage your account." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:80 +msgctxt "AccountCard" +msgid "" +"Account website opened in your browser. When finished, return here and sign " +"in again to apply changes." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:81 +msgctxt "AccountCard" +msgid "" +"Your email address has not been verified. Activate your account using the " +"link in your email, or request a new activation email." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:82 +msgctxt "AccountCard" +msgid "The one-time code was not accepted. Enter your password and a new code." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:83 +msgctxt "AccountCard" +msgid "Your saved session has expired. Sign in again." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:84 +msgctxt "AccountCard" +msgid "Email or password was not accepted. Check your details and try again." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:85 +msgctxt "AccountCard" +msgid "Too many requests. Wait a while before trying again." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:86 +msgctxt "AccountCard" +msgid "Account sign-in is available on desktop." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:90 +msgctxt "AccountCard" +msgid "Primary account" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:100 +#: crates/voelin-ui/ui/screens/account.slint:100 +msgctxt "AccountCard" +msgid "Account ID" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:108 +#: crates/voelin-ui/ui/screens/account.slint:108 +msgctxt "AccountCard" +msgid "myTS ID" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:116 +msgctxt "AccountCard" +msgid "Your account identity is available for authentication on voice servers." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:119 +msgctxt "AccountCard" +msgid "" +"Sign out and sign in with your password to enable your myTS ID on voice " +"servers." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:122 +msgctxt "AccountCard" +msgid "" +"Signed in, but the account identity could not be unlocked. Voice servers " +"will not receive your myTS ID. Try signing in again; older account " +"encryption may be unsupported." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:124 +msgctxt "AccountCard" +msgid "" +"This is your main app profile. Server identities and server nicknames are " +"managed separately." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:125 +msgctxt "AccountCard" +msgid "" +"Account management opens the official website. Check which account is signed " +"in there. Sign in again here after making changes." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:127 +msgctxt "AccountCard" +msgid "Manage account in browser" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:132 +msgctxt "AccountCard" +msgid "Change username" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:133 +msgctxt "AccountCard" +msgid "Change email" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:134 +msgctxt "AccountCard" +msgid "Change password" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:135 +msgctxt "AccountCard" +msgid "Two-factor authentication" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:136 +msgctxt "AccountCard" +msgid "Manage account deletion" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:137 +msgctxt "AccountCard" +msgid "Export account data" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:145 +msgctxt "AccountCard" +msgid "Contacting account service…" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:148 +msgctxt "AccountCard" +msgid "" +"Saved account credentials could not be read. Unlock the keyring or clear the " +"saved session." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:151 +msgctxt "AccountCard" +msgid "" +"Account credentials could not be saved. This session will not be restored " +"after restarting." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:154 +msgctxt "AccountCard" +msgid "" +"Account credentials could not be saved, and older credentials could not be " +"removed. Unlock your keyring and clear the saved session." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:157 +msgctxt "AccountCard" +msgid "" +"Signed out locally, but saved credentials could not be removed. Unlock your " +"keyring and clear the saved session again." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:160 +msgctxt "AccountCard" +msgid "Resend activation email in browser" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:165 +msgctxt "AccountCard" +msgid "Check session" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:165 +msgctxt "AccountCard" +msgid "Retry saved session" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:169 +msgctxt "AccountCard" +msgid "Cancel and clear session" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:169 +msgctxt "AccountCard" +msgid "Sign out" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:169 +msgctxt "AccountCard" +msgid "Clear saved session" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:187 +msgctxt "LoginPage" +msgid "Welcome to {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:193 +msgctxt "LoginPage" +msgid "Sign in to make your myTeamSpeak account your main profile." +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:196 +msgctxt "LoginPage" +msgid "Continue without an account" +msgstr "" + +#: crates/voelin-ui/ui/screens/account.slint:199 +msgctxt "LoginPage" +msgid "" +"You can connect to servers without an account and sign in later in Settings " +"→ My Account." +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:57 +msgctxt "ServerHeader" +msgid "Server menu" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:74 +msgctxt "ServerHeader" +msgid "Connecting…" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:75 +msgctxt "ServerHeader" +msgid "Not connected" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:75 +msgctxt "ServerHeader" +msgid "Add a server to start" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:84 +msgctxt "ServerHeader" +msgid "Edit server" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:85 +msgctxt "ServerHeader" +msgid "Stop observing" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:85 +msgctxt "ServerHeader" +msgid "Observe invisibly" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:86 +msgctxt "ServerHeader" +msgid "Add server" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:107 +msgctxt "ConnectActions" +msgid "Connecting…" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:107 +msgctxt "ConnectActions" +msgid "Connect" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:113 +msgctxt "ConnectActions" +msgid "Stop observing" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:113 +msgctxt "ConnectActions" +msgid "Observe" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:131 +msgctxt "TreeRow" +msgid "Channel {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:132 +msgctxt "TreeRow" +msgid "talking" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:132 +msgctxt "TreeRow" +msgid "streaming" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:132 +msgctxt "TreeRow" +msgid "microphone off" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:132 +#: crates/voelin-ui/ui/screens/channels.slint:132 +msgctxt "TreeRow" +msgid "muted for you" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:162 +msgctxt "TreeRow" +msgid "Expand" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:162 +msgctxt "TreeRow" +msgid "Collapse" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:234 +msgctxt "TreeRow" +msgid "Your stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:234 +msgctxt "TreeRow" +msgid "Watch {}'s stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:259 +msgctxt "TreeRow" +msgid "{}%" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:270 +msgctxt "TreeRow" +msgid "mic off" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:278 +msgctxt "TreeRow" +msgid "sound off" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:281 +msgctxt "TreeRow" +msgid "away" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:294 +msgctxt "ChannelTree" +msgid "Channels" +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:299 +msgctxt "ChannelTree" +msgid "No server yet." +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:299 +msgctxt "ChannelTree" +msgid "Connect or observe to see the channels." +msgstr "" + +#: crates/voelin-ui/ui/screens/channels.slint:307 +msgctxt "ChannelTree" +msgid "Channels and clients" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:76 +msgctxt "Reactions" +msgid "{} reacted {} times" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:115 +msgctxt "Reactions" +msgid "Add a reaction" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:196 +msgctxt "FileCard" +msgid "Downloaded" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:196 +msgctxt "FileCard" +msgid "Download {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:257 +msgctxt "MessageActions" +msgid "React" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:272 +msgctxt "MessageActions" +msgid "More emoji" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:282 +msgctxt "MessageActions" +msgid "Unpin" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:282 +msgctxt "MessageActions" +msgid "Pin" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:290 +msgctxt "MessageActions" +msgid "Start a topic" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:350 +msgctxt "MessageRow" +msgid "via relay" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:356 +msgctxt "MessageRow" +msgid "pinned" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:369 +msgctxt "MessageRow" +msgid "Message from a blocked contact." +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:463 +msgctxt "MessageList" +msgid "Only messages seen by this device." +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:477 +msgctxt "MessageList" +msgid "Loading…" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:477 +msgctxt "MessageList" +msgid "Older messages" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:488 +msgctxt "MessageList" +msgid "Messages" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:510 +msgctxt "Composer" +msgid "Attach a file" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:533 +msgctxt "Composer" +msgid "Message" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:547 +msgctxt "Composer" +msgid "Emoji" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:557 +msgctxt "Composer" +msgid "Send" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:601 +msgctxt "ChatView" +msgid "Pinned Messages" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:608 +msgctxt "ChatView" +msgid "Topics" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:616 +msgctxt "ChatView" +msgid "Voice channel" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:622 +msgctxt "ChatView" +msgid "Members" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:637 +msgctxt "ChatView" +msgid "Open folder" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:644 +msgctxt "ChatView" +msgid "Delete" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:650 +msgctxt "ChatView" +msgid "Dismiss" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:662 +msgctxt "ChatView" +msgid "Chats" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:691 +msgctxt "ChatView" +msgid "Back to the chat" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:724 +msgctxt "ChatView" +msgid "Reply in {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:725 +msgctxt "ChatView" +msgid "Message {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/chat.slint:725 +msgctxt "ChatView" +msgid "Message" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:28 +msgctxt "BookmarkDialog" +msgid "Join a server" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:28 +msgctxt "BookmarkDialog" +msgid "Add server" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:28 +msgctxt "BookmarkDialog" +msgid "Edit server" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:29 +msgctxt "BookmarkDialog" +msgid "Only the address is needed; Voelin finds the rest." +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:42 +#: crates/voelin-ui/ui/screens/dialogs.slint:42 +msgctxt "BookmarkDialog" +msgid "Address" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:43 +msgctxt "BookmarkDialog" +msgid "" +"Host name, IP address or server nickname; a port only if the server needs " +"one." +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:47 +msgctxt "BookmarkDialog" +msgid "Server password (optional)" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:48 +msgctxt "BookmarkDialog" +msgid "Server password" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:56 +msgctxt "BookmarkDialog" +msgid "Advanced" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:60 +msgctxt "BookmarkDialog" +msgid "Name, nickname, gateway, ServerQuery" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:71 +#: crates/voelin-ui/ui/screens/dialogs.slint:71 +msgctxt "BookmarkDialog" +msgid "Name" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:72 +msgctxt "BookmarkDialog" +msgid "Empty: the address, then the server's own name once connected." +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:73 +msgctxt "BookmarkDialog" +msgid "The server's name" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:76 +#: crates/voelin-ui/ui/screens/dialogs.slint:76 +msgctxt "BookmarkDialog" +msgid "Nickname" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:77 +msgctxt "BookmarkDialog" +msgid "Empty: the nickname of your identity." +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:81 +msgctxt "BookmarkDialog" +msgid "Invisible presence and chat without joining" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:87 +#: crates/voelin-ui/ui/screens/dialogs.slint:87 +msgctxt "BookmarkDialog" +msgid "Gateway URL" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:88 +msgctxt "BookmarkDialog" +msgid "Empty: looked up in DNS, as published by the server's admin." +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:89 +msgctxt "BookmarkDialog" +msgid "Found automatically" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:94 +#: crates/voelin-ui/ui/screens/dialogs.slint:94 +msgctxt "BookmarkDialog" +msgid "Query transport" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:103 +#: crates/voelin-ui/ui/screens/dialogs.slint:103 +msgctxt "BookmarkDialog" +msgid "Query address" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:110 +#: crates/voelin-ui/ui/screens/dialogs.slint:110 +msgctxt "BookmarkDialog" +msgid "Query login" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:114 +#: crates/voelin-ui/ui/screens/dialogs.slint:114 +msgctxt "BookmarkDialog" +msgid "Query password" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:125 +msgctxt "BookmarkDialog" +msgid "Delete" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:133 +msgctxt "BookmarkDialog" +msgid "Cancel" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:138 +msgctxt "BookmarkDialog" +msgid "Join" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:138 +msgctxt "BookmarkDialog" +msgid "Add" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:138 +msgctxt "BookmarkDialog" +msgid "Save" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:223 +#: crates/voelin-ui/ui/screens/dialogs.slint:223 +msgctxt "ShareAudio" +msgid "Audio sources" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:233 +msgctxt "ShareAudio" +msgid "Add" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:238 +msgctxt "ShareAudio" +msgid "No audio: add your microphone, the desktop or an application." +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:261 +msgctxt "ShareCard" +msgid "You are sharing your screen" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:261 +#: crates/voelin-ui/ui/screens/dialogs.slint:261 +msgctxt "ShareCard" +msgid "Starting…" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:261 +msgctxt "ShareCard" +msgid "Share screen" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:262 +msgctxt "ShareCard" +msgid "Stream to the people in your channel." +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:272 +#: crates/voelin-ui/ui/screens/dialogs.slint:272 +msgctxt "ShareCard" +msgid "Viewers" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:277 +msgctxt "ShareCard" +msgid "" +"Nobody is watching yet. Viewers in your channel can join from their streams " +"list." +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:311 +msgctxt "ShareCard" +msgid "asks to watch" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:311 +msgctxt "ShareCard" +msgid "asks to watch: {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:311 +msgctxt "ShareCard" +msgid "connecting" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:311 +msgctxt "ShareCard" +msgid "watching" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:320 +msgctxt "ShareCard" +msgid "Accept" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:326 +msgctxt "ShareCard" +msgid "Deny" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:332 +msgctxt "ShareCard" +msgid "Remove" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:333 +msgctxt "ShareCard" +msgid "Remove {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:344 +msgctxt "ShareCard" +msgid "This stream has no sound." +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:350 +msgctxt "ShareCard" +msgid "Close" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:356 +msgctxt "ShareCard" +msgid "Stop sharing" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:365 +#: crates/voelin-ui/ui/screens/dialogs.slint:365 +msgctxt "ShareCard" +msgid "What to share" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:384 +#: crates/voelin-ui/ui/screens/dialogs.slint:384 +msgctxt "ShareCard" +msgid "Stream name" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:390 +#: crates/voelin-ui/ui/screens/dialogs.slint:390 +msgctxt "ShareCard" +msgid "Frame rate" +msgstr "" + +#. FPS_CHOICES (settings.rs). +#: crates/voelin-ui/ui/screens/dialogs.slint:395 +msgctxt "ShareCard" +msgid "15 fps" +msgstr "" + +#. FPS_CHOICES (settings.rs). +#: crates/voelin-ui/ui/screens/dialogs.slint:395 +msgctxt "ShareCard" +msgid "30 fps" +msgstr "" + +#. FPS_CHOICES (settings.rs). +#: crates/voelin-ui/ui/screens/dialogs.slint:395 +msgctxt "ShareCard" +msgid "60 fps" +msgstr "" + +#. FPS_CHOICES (settings.rs). +#: crates/voelin-ui/ui/screens/dialogs.slint:395 +msgctxt "ShareCard" +msgid "120 fps" +msgstr "" + +#. FPS_CHOICES (settings.rs). +#: crates/voelin-ui/ui/screens/dialogs.slint:395 +msgctxt "ShareCard" +msgid "144 fps" +msgstr "" + +#. FPS_CHOICES (settings.rs). +#: crates/voelin-ui/ui/screens/dialogs.slint:395 +msgctxt "ShareCard" +msgid "240 fps" +msgstr "" + +#. FPS_CHOICES (settings.rs). +#: crates/voelin-ui/ui/screens/dialogs.slint:395 +msgctxt "ShareCard" +msgid "320 fps" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:403 +msgctxt "ShareCard" +msgid "fps" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:404 +msgctxt "ShareCard" +msgid "Frames per second" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:412 +#: crates/voelin-ui/ui/screens/dialogs.slint:412 +msgctxt "ShareCard" +msgid "Quality" +msgstr "" + +#. BITRATE_CHOICES (settings.rs); Auto leaves the field empty. +#: crates/voelin-ui/ui/screens/dialogs.slint:417 +msgctxt "ShareCard" +msgid "Auto (up to 60 Mbit/s)" +msgstr "" + +#. BITRATE_CHOICES (settings.rs); Auto leaves the field empty. +#: crates/voelin-ui/ui/screens/dialogs.slint:417 +msgctxt "ShareCard" +msgid "Low (2.5 Mbit/s)" +msgstr "" + +#. BITRATE_CHOICES (settings.rs); Auto leaves the field empty. +#: crates/voelin-ui/ui/screens/dialogs.slint:417 +msgctxt "ShareCard" +msgid "Standard (4.6 Mbit/s)" +msgstr "" + +#. BITRATE_CHOICES (settings.rs); Auto leaves the field empty. +#: crates/voelin-ui/ui/screens/dialogs.slint:417 +msgctxt "ShareCard" +msgid "High (8 Mbit/s)" +msgstr "" + +#. BITRATE_CHOICES (settings.rs); Auto leaves the field empty. +#: crates/voelin-ui/ui/screens/dialogs.slint:417 +msgctxt "ShareCard" +msgid "10 Mbit/s" +msgstr "" + +#. BITRATE_CHOICES (settings.rs); Auto leaves the field empty. +#: crates/voelin-ui/ui/screens/dialogs.slint:417 +msgctxt "ShareCard" +msgid "20 Mbit/s" +msgstr "" + +#. BITRATE_CHOICES (settings.rs); Auto leaves the field empty. +#: crates/voelin-ui/ui/screens/dialogs.slint:417 +msgctxt "ShareCard" +msgid "40 Mbit/s" +msgstr "" + +#. BITRATE_CHOICES (settings.rs); Auto leaves the field empty. +#: crates/voelin-ui/ui/screens/dialogs.slint:417 +msgctxt "ShareCard" +msgid "Best (60 Mbit/s)" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:425 +msgctxt "ShareCard" +msgid "auto" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:425 +msgctxt "ShareCard" +msgid "kbit/s" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:426 +msgctxt "ShareCard" +msgid "Bitrate in kbit/s" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:436 +msgctxt "ShareCard" +msgid "Share system audio" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:444 +msgctxt "ShareCard" +msgid "Let everyone in the channel watch without asking" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:455 +msgctxt "ShareCard" +msgid "Cancel" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:461 +msgctxt "ShareCard" +msgid "Start sharing" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:497 +msgctxt "ClientAudioDialog" +msgid "Only changes what you hear." +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:505 +msgctxt "ClientAudioDialog" +msgid "Volume" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:516 +msgctxt "ClientAudioDialog" +msgid "Volume of {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:523 +msgctxt "ClientAudioDialog" +msgid "{}%" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:531 +msgctxt "ClientAudioDialog" +msgid "Mute for me" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:542 +msgctxt "ClientAudioDialog" +msgid "Watch {}'s stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:551 +msgctxt "ClientAudioDialog" +msgid "Reset" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:561 +msgctxt "ClientAudioDialog" +msgid "Close" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:571 +msgctxt "Credits" +msgid "Fonts, icons and emoji" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:598 +msgctxt "AboutDialog" +msgid "" +"Unofficial TeamSpeak 3/6 compatible client. Not affiliated with TeamSpeak " +"Systems GmbH." +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:628 +#: crates/voelin-ui/ui/screens/dialogs.slint:628 +msgctxt "AboutDialog" +msgid "Third-party notices" +msgstr "" + +#: crates/voelin-ui/ui/screens/dialogs.slint:653 +msgctxt "AboutDialog" +msgid "Close" +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:42 +msgctxt "Drawer" +msgid "Close" +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:107 +msgctxt "PinCard" +msgid "Unpin" +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:157 +msgctxt "PinsDrawer" +msgid "Pinned Messages" +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:169 +msgctxt "PinsDrawer" +msgid "Nothing pinned yet." +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:175 +msgctxt "PinsDrawer" +msgid "Hover a message and press the pin." +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:184 +msgctxt "PinsDrawer" +msgid "Pinned messages" +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:274 +#: crates/voelin-ui/ui/screens/drawers.slint:274 +msgctxt "TopicsDrawer" +msgid "Topics" +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:282 +msgctxt "TopicsDrawer" +msgid "Search topics…" +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:283 +msgctxt "TopicsDrawer" +msgid "Search topics" +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:296 +msgctxt "TopicsDrawer" +msgid "No topics yet." +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:302 +msgctxt "TopicsDrawer" +msgid "Start one from a message, or below." +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:328 +msgctxt "TopicsDrawer" +msgid "Create Topic" +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:336 +msgctxt "TopicDialog" +msgid "Start a topic" +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:337 +msgctxt "TopicDialog" +msgid "From the chosen message." +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:337 +msgctxt "TopicDialog" +msgid "A new thread in this chat." +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:347 +msgctxt "TopicDialog" +msgid "What is it about?" +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:348 +msgctxt "TopicDialog" +msgid "Title" +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:361 +msgctxt "TopicDialog" +msgid "Cancel" +msgstr "" + +#: crates/voelin-ui/ui/screens/drawers.slint:367 +msgctxt "TopicDialog" +msgid "Create" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:17 +msgctxt "ServerLinks" +msgid "Events" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:25 +msgctxt "ServerLinks" +msgid "Members" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:141 +msgctxt "EventCard" +msgid "Stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:206 +msgctxt "EventCard" +msgid "Going" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:213 +msgctxt "EventCard" +msgid "Maybe" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:220 +msgctxt "EventCard" +msgid "Not going" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:230 +msgctxt "EventCard" +msgid "Watch" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:237 +msgctxt "EventCard" +msgid "Hide" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:237 +msgctxt "EventCard" +msgid "Who answered" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:242 +msgctxt "EventCard" +msgid "Edit {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:249 +msgctxt "EventCard" +msgid "Delete {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:260 +msgctxt "EventCard" +msgid "No answers yet." +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:260 +msgctxt "EventCard" +msgid "Answers" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:274 +msgctxt "EventCard" +msgid "Created by {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:301 +msgctxt "EventsPage" +msgid "Events" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:307 +msgctxt "EventsPage" +msgid "Scheduled on {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:316 +msgctxt "EventsPage" +msgid "Create Event" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:322 +msgctxt "EventsPage" +msgid "This server's gateway does not keep events (or there is no gateway)." +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:327 +msgctxt "EventsPage" +msgid "Loading events…" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:327 +msgctxt "EventsPage" +msgid "" +"Nothing scheduled. Create an event to invite people, or schedule a stream." +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:349 +msgctxt "EventDialog" +msgid "Create Event" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:349 +msgctxt "EventDialog" +msgid "Edit Event" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:350 +msgctxt "EventDialog" +msgid "Everyone on {} can see it and answer." +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:362 +#: crates/voelin-ui/ui/screens/events.slint:362 +msgctxt "EventDialog" +msgid "Title" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:363 +msgctxt "EventDialog" +msgid "Raid night" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:366 +#: crates/voelin-ui/ui/screens/events.slint:366 +msgctxt "EventDialog" +msgid "Description" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:367 +msgctxt "EventDialog" +msgid "What happens, what to bring" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:372 +#: crates/voelin-ui/ui/screens/events.slint:372 +msgctxt "EventDialog" +msgid "Starts" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:373 +msgctxt "EventDialog" +msgid "YYYY-MM-DD HH:MM, local time" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:377 +msgctxt "EventDialog" +msgid "Ends (optional)" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:378 +msgctxt "EventDialog" +msgid "Empty: no end" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:379 +msgctxt "EventDialog" +msgid "Ends" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:383 +msgctxt "EventDialog" +msgid "Where" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:388 +msgctxt "EventDialog" +msgid "Channel" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:393 +msgctxt "EventDialog" +msgid "A scheduled stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:394 +msgctxt "EventDialog" +msgid "Linked to the stream directory once the host goes live." +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:400 +#: crates/voelin-ui/ui/screens/events.slint:400 +msgctxt "EventDialog" +msgid "Stream title" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:404 +#: crates/voelin-ui/ui/screens/events.slint:404 +msgctxt "EventDialog" +msgid "Game or subject" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:420 +msgctxt "EventDialog" +msgid "Delete" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:428 +msgctxt "EventDialog" +msgid "Cancel" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:434 +msgctxt "EventDialog" +msgid "Create" +msgstr "" + +#: crates/voelin-ui/ui/screens/events.slint:434 +msgctxt "EventDialog" +msgid "Save" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:62 +msgctxt "ContactRow" +msgid "Blocked" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:88 +msgctxt "ContactRow" +msgid "Message {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:98 +msgctxt "ContactRow" +msgid "Poke {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:108 +msgctxt "ContactRow" +msgid "Join {}'s channel" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:118 +msgctxt "ContactRow" +msgid "Watch {}'s stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:146 +msgctxt "FriendsPage" +msgid "Friends" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:155 +msgctxt "FriendsPage" +msgid "Online — {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:155 +msgctxt "FriendsPage" +msgid "All — {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:155 +msgctxt "FriendsPage" +msgid "Blocked — {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:157 +#: crates/voelin-ui/ui/screens/friends.slint:157 +msgctxt "FriendsPage" +msgid "Which contacts" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:171 +#: crates/voelin-ui/ui/screens/friends.slint:171 +#: crates/voelin-ui/ui/screens/friends.slint:171 +#: crates/voelin-ui/ui/screens/friends.slint:171 +msgctxt "FriendsPage" +msgid "Search contacts" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:177 +msgctxt "FriendsPage" +msgid "Online" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:177 +msgctxt "FriendsPage" +msgid "All" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:177 +msgctxt "FriendsPage" +msgid "Blocked" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:197 +msgctxt "FriendsPage" +msgid "None of your friends is online right now." +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:198 +msgctxt "FriendsPage" +msgid "You have blocked no one." +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:199 +msgctxt "FriendsPage" +msgid "No contacts yet." +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:205 +msgctxt "FriendsPage" +msgid "" +"Open a person's card in a server's members panel to add them as a friend or " +"to block them. Friends show up here on every server they are on." +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:215 +msgctxt "FriendsPage" +msgid "Go to a server" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:223 +msgctxt "FriendsPage" +msgid "Contacts" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:246 +msgctxt "ContactPanel" +msgid "Close" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:285 +msgctxt "ContactPanel" +msgid "Friend" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:290 +msgctxt "ContactPanel" +msgid "Blocked" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:302 +msgctxt "ContactPanel" +msgid "Message" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:310 +msgctxt "ContactPanel" +msgid "Poke" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:321 +msgctxt "ContactPanel" +msgid "Join" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:329 +msgctxt "ContactPanel" +msgid "Watch" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:336 +msgctxt "ContactPanel" +msgid "Where" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:336 +msgctxt "ContactPanel" +msgid "Last seen" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:357 +msgctxt "ContactPanel" +msgid "Not seen on your servers yet." +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:364 +msgctxt "ContactPanel" +msgid "Note" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:365 +msgctxt "ContactPanel" +msgid "Only on this device. Press Enter to keep it." +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:368 +msgctxt "ContactPanel" +msgid "Add a note" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:370 +msgctxt "ContactPanel" +msgid "Note about {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:378 +msgctxt "ContactPanel" +msgid "Volume for me" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:384 +msgctxt "ContactPanel" +msgid "{}%" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:393 +msgctxt "ContactPanel" +msgid "Unmute for me" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:393 +msgctxt "ContactPanel" +msgid "Mute for me" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:407 +msgctxt "ContactPanel" +msgid "Volume of {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:417 +msgctxt "ContactPanel" +msgid "Remove friend" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:417 +msgctxt "ContactPanel" +msgid "Add friend" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:424 +msgctxt "ContactPanel" +msgid "Unblock" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:424 +msgctxt "ContactPanel" +msgid "Block" +msgstr "" + +#: crates/voelin-ui/ui/screens/friends.slint:431 +msgctxt "ContactPanel" +msgid "Forget this contact" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:105 +msgctxt "SidebarArt" +msgid "Hang out" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:105 +msgctxt "SidebarArt" +msgid "Play together" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:105 +msgctxt "SidebarArt" +msgid "Find your people" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:128 +msgctxt "HomeNav" +msgid "Home" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:134 +msgctxt "HomeNav" +msgid "Friends" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:140 +msgctxt "HomeNav" +msgid "Direct Messages" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:147 +msgctxt "HomeNav" +msgid "Library" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:157 +msgctxt "HomeNav" +msgid "Quick Actions" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:165 +msgctxt "HomeNav" +msgid "Add a Server" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:170 +msgctxt "HomeNav" +msgid "Join a Server" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:175 +msgctxt "HomeNav" +msgid "Find Friends" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:257 +msgctxt "HomeBanner" +msgid "Talk." +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:257 +msgctxt "HomeBanner" +msgid "Watch." +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:257 +msgctxt "HomeBanner" +msgid "Share." +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:257 +msgctxt "HomeBanner" +msgid "Together." +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:308 +msgctxt "HomeBanner" +msgid "Voice, chat and streams\non TeamSpeak servers." +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:309 +msgctxt "HomeBanner" +msgid "Not reached yet" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:316 +msgctxt "HomeBanner" +msgid "Talk. Watch. Share. Or look in without joining." +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:327 +msgctxt "HomeBanner" +msgid "Add a Server" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:333 +msgctxt "HomeBanner" +msgid "Connecting…" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:333 +msgctxt "HomeBanner" +msgid "Connect" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:339 +msgctxt "HomeBanner" +msgid "Open" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:350 +msgctxt "HomeBanner" +msgid "Previous" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:357 +msgctxt "HomeBanner" +msgid "Next" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:650 +msgctxt "ServerCard" +msgid "Invisible" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:660 +msgctxt "ServerCard" +msgid "Open" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:660 +msgctxt "ServerCard" +msgid "Connecting…" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:660 +msgctxt "ServerCard" +msgid "Join" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:911 +msgctxt "HomePage" +msgid "Friends Online" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:913 +msgctxt "HomePage" +msgid "View All ({})" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:921 +msgctxt "HomePage" +msgid "" +"No friends online. Add friends from a person's card on a server: they show " +"up here, wherever they are." +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:950 +#: crates/voelin-ui/ui/screens/home.slint:950 +#: crates/voelin-ui/ui/screens/home.slint:950 +msgctxt "HomePage" +msgid "Find Friends" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:981 +msgctxt "HomePage" +msgid "Messages" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:983 +#: crates/voelin-ui/ui/screens/home.slint:983 +msgctxt "HomePage" +msgid "See All" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:995 +#: crates/voelin-ui/ui/screens/home.slint:995 +msgctxt "HomePage" +msgid "Your Servers" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:997 +#: crates/voelin-ui/ui/screens/home.slint:997 +msgctxt "HomePage" +msgid "Add a Server" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1001 +#: crates/voelin-ui/ui/screens/home.slint:1001 +msgctxt "HomePage" +msgid "No servers yet. Add one with its address." +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1020 +msgctxt "HomePage" +msgid "Live Now" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1020 +msgctxt "HomePage" +msgid "Featured Live Rooms" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1022 +#: crates/voelin-ui/ui/screens/home.slint:1022 +msgctxt "HomePage" +msgid "See More Live" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1026 +msgctxt "HomePage" +msgid "" +"No one is live on your servers right now. Streams of TeamSpeak 6 servers and " +"those a gateway lists show up here." +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1076 +msgctxt "HomePage" +msgid "Recent Chats" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1078 +msgctxt "HomePage" +msgid "View All" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1082 +msgctxt "HomePage" +msgid "Chats you had show up here, from every server." +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1093 +msgctxt "HomePage" +msgid "Recent Activity" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1246 +msgctxt "HomeAside" +msgid "Friend Activity" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1247 +msgctxt "HomeAside" +msgid "See All" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1251 +msgctxt "HomeAside" +msgid "What your friends do shows up here." +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1265 +msgctxt "HomeAside" +msgid "Quick Actions" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1269 +msgctxt "HomeAside" +msgid "Find Friends" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1270 +msgctxt "HomeAside" +msgid "Search your contacts" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1279 +msgctxt "HomeAside" +msgid "Join a Server" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1280 +msgctxt "HomeAside" +msgid "Enter an address" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1285 +msgctxt "HomeAside" +msgid "Add a Server" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1286 +msgctxt "HomeAside" +msgid "Save it for later" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1291 +msgctxt "HomeAside" +msgid "What's Happening" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1294 +msgctxt "HomeAside" +msgid "Events, scheduled streams and news of your servers show up here." +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1325 +msgctxt "LibraryPage" +msgid "Library" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1331 +msgctxt "LibraryPage" +msgid "Recordings and clips from the Stream Studio, in {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1339 +msgctxt "LibraryPage" +msgid "Open Folder" +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1345 +msgctxt "LibraryPage" +msgid "" +"Nothing recorded yet. Recordings and clips saved in the Stream Studio appear " +"here." +msgstr "" + +#: crates/voelin-ui/ui/screens/home.slint:1397 +msgctxt "LibraryPage" +msgid "Play" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:21 +msgctxt "MemberBadges" +msgid "server admin" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:28 +msgctxt "MemberBadges" +msgid "priority speaker" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:35 +msgctxt "MemberBadges" +msgid "channel commander" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:42 +msgctxt "MemberBadges" +msgid "recording" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:60 +msgctxt "GroupHeader" +msgid "{} — {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:177 +msgctxt "MemberRow" +msgid "talk power {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:227 +msgctxt "MemberCardPopup" +msgid "Close" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:242 +msgctxt "MemberCardPopup" +msgid "Groups" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:258 +msgctxt "MemberCardPopup" +msgid "talk power {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:273 +msgctxt "MemberCardPopup" +msgid "Volume" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:280 +msgctxt "MemberCardPopup" +msgid "{}%" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:290 +msgctxt "MemberCardPopup" +msgid "Unmute for me" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:290 +msgctxt "MemberCardPopup" +msgid "Mute for me" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:305 +msgctxt "MemberCardPopup" +msgid "Volume of {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:315 +msgctxt "MemberCardPopup" +msgid "Watch stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:324 +msgctxt "MemberCardPopup" +msgid "Message" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:332 +msgctxt "MemberCardPopup" +msgid "Poke" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:342 +msgctxt "MemberCardPopup" +msgid "Friend" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:342 +msgctxt "MemberCardPopup" +msgid "Add friend" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:352 +msgctxt "MemberCardPopup" +msgid "Blocked" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:352 +msgctxt "MemberCardPopup" +msgid "Block" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:372 +msgctxt "MembersPanel" +msgid "Members — {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:382 +#: crates/voelin-ui/ui/screens/members.slint:382 +msgctxt "MembersPanel" +msgid "Search members" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:400 +msgctxt "MembersPanel" +msgid "Search members…" +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:410 +msgctxt "MembersPanel" +msgid "Connect or observe to see who is here." +msgstr "" + +#: crates/voelin-ui/ui/screens/members.slint:419 +msgctxt "MembersPanel" +msgid "Members" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:139 +msgctxt "ConversationList" +msgid "Messages" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:148 +msgctxt "ConversationList" +msgid "New message" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:159 +msgctxt "ConversationList" +msgid "Search messages…" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:160 +msgctxt "ConversationList" +msgid "Search messages" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:167 +msgctxt "ConversationList" +msgid "All" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:175 +msgctxt "ConversationList" +msgid "Unread" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:184 +msgctxt "ConversationList" +msgid "Inbox" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:194 +msgctxt "ConversationList" +msgid "" +"No offline messages. Servers keep them for you while you are away; connect " +"with voice to fetch them." +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:195 +msgctxt "ConversationList" +msgid "Nothing unread." +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:196 +msgctxt "ConversationList" +msgid "" +"No conversations yet. Message someone from their card on a server, or with " +"the + above." +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:204 +msgctxt "ConversationList" +msgid "Conversations" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:230 +msgctxt "Conversation" +msgid "Pick a conversation, or start one with +." +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:283 +msgctxt "Conversation" +msgid "Poke {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:291 +msgctxt "Conversation" +msgid "Join {}'s channel" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:299 +msgctxt "Conversation" +msgid "Remove friend" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:299 +msgctxt "Conversation" +msgid "Add friend" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:308 +msgctxt "Conversation" +msgid "More" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:322 +msgctxt "Conversation" +msgid "Unmute for me" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:322 +msgctxt "Conversation" +msgid "Mute for me" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:323 +msgctxt "Conversation" +msgid "Write an offline message" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:324 +msgctxt "Conversation" +msgid "Unblock" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:324 +msgctxt "Conversation" +msgid "Block" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:366 +msgctxt "Conversation" +msgid "Fetching the message…" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:377 +msgctxt "Conversation" +msgid "Reply" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:383 +msgctxt "Conversation" +msgid "Mark unread" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:389 +msgctxt "Conversation" +msgid "Delete" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:416 +msgctxt "Conversation" +msgid "Connect" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:423 +msgctxt "Conversation" +msgid "Offline message" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:432 +msgctxt "Conversation" +msgid "Message @{}…" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:432 +msgctxt "Conversation" +msgid "{} cannot get messages now" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:479 +msgctxt "DmProfile" +msgid "Online" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:479 +msgctxt "DmProfile" +msgid "Offline" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:501 +msgctxt "DmProfile" +msgid "About" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:506 +msgctxt "DmProfile" +msgid "No note. Add one on the Friends page." +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:528 +msgctxt "DmProfile" +msgid "Servers — {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:556 +msgctxt "DmProfile" +msgid "Shared Media — {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:576 +msgctxt "DmProfile" +msgid "Picture {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:612 +msgctxt "DmProfile" +msgid "Shared Files — {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:649 +msgctxt "DmProfile" +msgid "Files linked in this conversation show up here." +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:659 +msgctxt "DmProfile" +msgid "Volume for me" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:665 +msgctxt "DmProfile" +msgid "{}%" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:674 +msgctxt "DmProfile" +msgid "Unmute for me" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:674 +msgctxt "DmProfile" +msgid "Mute for me" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:688 +msgctxt "DmProfile" +msgid "Volume of {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:702 +msgctxt "OfflineDialog" +msgid "Offline message to {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:703 +msgctxt "OfflineDialog" +msgid "The server keeps it until {} reads it." +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:709 +#: crates/voelin-ui/ui/screens/messages.slint:709 +#: crates/voelin-ui/ui/screens/messages.slint:709 +msgctxt "OfflineDialog" +msgid "Subject" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:717 +#: crates/voelin-ui/ui/screens/messages.slint:717 +msgctxt "OfflineDialog" +msgid "Message" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:720 +msgctxt "OfflineDialog" +msgid "Your message" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:731 +msgctxt "OfflineDialog" +msgid "Cancel" +msgstr "" + +#: crates/voelin-ui/ui/screens/messages.slint:737 +msgctxt "OfflineDialog" +msgid "Send" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:32 +msgctxt "ChannelBar" +msgid "Back" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:65 +msgctxt "ChannelBar" +msgid "Leave" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:122 +msgctxt "PhonePlayer" +msgid "Stream picture" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:167 +msgctxt "PhonePlayer" +msgid "Quality" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:173 +msgctxt "PhonePlayer" +msgid "{}p" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:178 +msgctxt "PhonePlayer" +msgid "Full screen" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:229 +msgctxt "PhonePlayer" +msgid "Mute" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:229 +msgctxt "PhonePlayer" +msgid "Unmute" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:242 +msgctxt "PhonePlayer" +msgid "Stream volume" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:247 +msgctxt "PhonePlayer" +msgid "Close" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:247 +msgctxt "PhonePlayer" +msgid "Stop watching" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:284 +msgctxt "StreamPrompt" +msgid "{} is streaming" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:284 +msgctxt "StreamPrompt" +msgid "Untitled stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:292 +msgctxt "StreamPrompt" +msgid "Looking it up…" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:292 +msgctxt "StreamPrompt" +msgid "In {}; looking it up…" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:293 +msgctxt "StreamPrompt" +msgid "Your stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:294 +msgctxt "StreamPrompt" +msgid "{} · in {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:295 +msgctxt "StreamPrompt" +msgid "{} · {} watching" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:306 +msgctxt "StreamPrompt" +msgid "Show" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:306 +msgctxt "StreamPrompt" +msgid "Watch" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:415 +msgctxt "ChatHeader" +msgid "{} Chat" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:422 +msgctxt "ChatHeader" +msgid "Linked to this voice channel" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:430 +msgctxt "ChatHeader" +msgid "Pinned Messages" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:440 +msgctxt "ChatHeader" +msgid "Topics" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:449 +msgctxt "ChatHeader" +msgid "Members" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:518 +msgctxt "VoiceBar" +msgid "Voice" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:526 +msgctxt "VoiceBar" +msgid "Unmute" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:526 +msgctxt "VoiceBar" +msgid "Mute" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:533 +msgctxt "VoiceBar" +msgid "Undeafen" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:533 +msgctxt "VoiceBar" +msgid "Deafen" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:544 +#: crates/voelin-ui/ui/screens/mobile-voice.slint:544 +msgctxt "VoiceBar" +msgid "Go Live" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:562 +msgctxt "VoiceBar" +msgid "Live" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:571 +msgctxt "VoiceBar" +msgid "Sharing" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:571 +msgctxt "VoiceBar" +msgid "Share" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:577 +msgctxt "VoiceBar" +msgid "Leave" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:596 +msgctxt "TalkButton" +msgid "Hold to talk" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:668 +msgctxt "MobileVoice" +msgid "Invite: copy a link to this channel" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:683 +msgctxt "MobileVoice" +msgid "Invite" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile-voice.slint:703 +msgctxt "MobileVoice" +msgid "Message #{}…" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:62 +msgctxt "MobileServers" +msgid "Add server" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:89 +msgctxt "ActivityPage" +msgid "Dismiss" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:151 +msgctxt "YouPage" +msgid "Offline" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:161 +msgctxt "YouPage" +msgid "Unmute" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:161 +msgctxt "YouPage" +msgid "Mute" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:169 +msgctxt "YouPage" +msgid "Undeafen" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:169 +msgctxt "YouPage" +msgid "Deafen" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:179 +msgctxt "YouPage" +msgid "Live" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:179 +msgctxt "YouPage" +msgid "Go Live" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:187 +msgctxt "YouPage" +msgid "Leave" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:196 +msgctxt "YouPage" +msgid "Settings" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:201 +msgctxt "YouPage" +msgid "My Account" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:202 +msgctxt "YouPage" +msgid "Profiles" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:203 +msgctxt "YouPage" +msgid "Appearance" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:204 +msgctxt "YouPage" +msgid "Voice & Video" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:205 +msgctxt "YouPage" +msgid "Streaming" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:206 +msgctxt "YouPage" +msgid "Notifications" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:207 +msgctxt "YouPage" +msgid "Privacy & Safety" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:208 +msgctxt "YouPage" +msgid "Devices" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:209 +msgctxt "YouPage" +msgid "Keybinds" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:210 +msgctxt "YouPage" +msgid "Integrations" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:211 +msgctxt "YouPage" +msgid "Advanced" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:220 +msgctxt "YouPage" +msgid "About {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/mobile.slint:243 +msgctxt "PhoneSheet" +msgid "Back" +msgstr "" + +#: crates/voelin-ui/ui/screens/overlays.slint:112 +#: crates/voelin-ui/ui/screens/overlays.slint:112 +msgctxt "NotificationsPanel" +msgid "Notifications" +msgstr "" + +#: crates/voelin-ui/ui/screens/overlays.slint:139 +msgctxt "NotificationsPanel" +msgid "Mark all read" +msgstr "" + +#: crates/voelin-ui/ui/screens/overlays.slint:146 +msgctxt "NotificationsPanel" +msgid "Clear all" +msgstr "" + +#: crates/voelin-ui/ui/screens/overlays.slint:155 +msgctxt "NotificationsPanel" +msgid "Notification settings" +msgstr "" + +#: crates/voelin-ui/ui/screens/overlays.slint:185 +msgctxt "NotificationsPanel" +msgid "{} want to watch your stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/overlays.slint:225 +msgctxt "NotificationsPanel" +msgid "" +"Nothing new. Mentions, pokes, messages, event reminders and friends coming " +"online show up here." +msgstr "" + +#: crates/voelin-ui/ui/screens/overlays.slint:343 +#: crates/voelin-ui/ui/screens/overlays.slint:343 +msgctxt "SearchPalette" +msgid "Search" +msgstr "" + +#: crates/voelin-ui/ui/screens/overlays.slint:353 +msgctxt "SearchPalette" +msgid "Search servers, channels, people, settings…" +msgstr "" + +#: crates/voelin-ui/ui/screens/overlays.slint:391 +msgctxt "SearchPalette" +msgid "Type to find a server, a channel, a person or a settings page." +msgstr "" + +#: crates/voelin-ui/ui/screens/overlays.slint:391 +msgctxt "SearchPalette" +msgid "Nothing matches “{}”." +msgstr "" + +#: crates/voelin-ui/ui/screens/overlays.slint:417 +msgctxt "SearchPalette" +msgid "to choose" +msgstr "" + +#: crates/voelin-ui/ui/screens/overlays.slint:427 +msgctxt "SearchPalette" +msgid "to open" +msgstr "" + +#: crates/voelin-ui/ui/screens/overlays.slint:437 +msgctxt "SearchPalette" +msgid "to close" +msgstr "" + +#: crates/voelin-ui/ui/screens/overlays.slint:451 +msgctxt "Lightbox" +msgid "Picture" +msgstr "" + +#: crates/voelin-ui/ui/screens/overlays.slint:477 +msgctxt "Lightbox" +msgid "Close" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:174 +msgctxt "AccountSection" +msgid "Identity in use" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:176 +msgctxt "AccountSection" +msgid "On {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:176 +msgctxt "AccountSection" +msgid "The default identity" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:200 +msgctxt "AccountSection" +msgid "Identity “{}” · security level {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:207 +msgctxt "AccountSection" +msgid "Manage identities" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:213 +msgctxt "AccountSection" +msgid "Unique id on TeamSpeak 3 servers" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:217 +msgctxt "AccountSection" +msgid "Unique id on TeamSpeak 6 servers" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:221 +msgctxt "AccountSection" +msgid "" +"Servers know you by this id: your groups and permissions belong to it. Your " +"nickname is set per server, in the server's bookmark." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:232 +msgctxt "IdentityActions" +msgid "Use as default" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:239 +msgctxt "IdentityActions" +msgid "Export" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:245 +msgctxt "IdentityActions" +msgid "Delete {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:276 +msgctxt "IdentityRow" +msgid "Name of the identity" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:280 +msgctxt "IdentityRow" +msgid "Default" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:298 +msgctxt "IdentityRow" +msgid "TeamSpeak 3: {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:304 +msgctxt "IdentityRow" +msgid "TeamSpeak 6: {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:313 +msgctxt "IdentityRow" +msgid "" +"{} · security level {}; raising it to {} on every core (best so far: {})…" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:314 +msgctxt "IdentityRow" +msgid "{} · security level {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:329 +msgctxt "IdentityRow" +msgid "Level to reach" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:334 +msgctxt "IdentityRow" +msgid "Stop" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:334 +msgctxt "IdentityRow" +msgid "Raise" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:346 +msgctxt "IdentityRow" +msgid "Used by {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:358 +msgctxt "ProfilesSection" +msgid "Identities" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:360 +msgctxt "ProfilesSection" +msgid "" +"Each identity is a unique id on every server. Keys never leave this device " +"unless you export them." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:371 +msgctxt "ProfilesSection" +msgid "" +"Servers know you by the default identity's unique id, from the next " +"connection on, unless a server names another below. The security level is " +"hash cash: servers may require a minimum (often 8). Each level takes about " +"twice as long as the one before. Exported identities are written as " +"TeamSpeak 3 .ini files into your downloads folder; they hold the private key." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:375 +msgctxt "ProfilesSection" +msgid "Import from TeamSpeak" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:377 +msgctxt "ProfilesSection" +msgid "" +"From the official clients' settings and .ini exports on this device; their " +"files are only read." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:379 +msgctxt "ProfilesSection" +msgid "Import identities from TeamSpeak on start" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:380 +msgctxt "ProfilesSection" +msgid "" +"While you use the identity Voelin made for you, the one TeamSpeak uses " +"becomes your default, once." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:389 +msgctxt "ProfilesSection" +msgid "Find identities" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:395 +msgctxt "ProfilesSection" +msgid "Import the chosen ones" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:412 +msgctxt "ProfilesSection" +msgid "{} (already here)" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:412 +msgctxt "ProfilesSection" +msgid "{} · level {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:426 +msgctxt "ProfilesSection" +msgid "Identity per server" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:429 +msgctxt "ProfilesSection" +msgid "Add a server first." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:445 +msgctxt "ProfilesSection" +msgid "Identity for {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:459 +msgctxt "LayerRow" +msgid "Size or scale" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:460 +msgctxt "LayerRow" +msgid "Max fps" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:461 +msgctxt "LayerRow" +msgid "kbit/s" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:462 +msgctxt "LayerRow" +msgid "Min kbit/s" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:463 +msgctxt "LayerRow" +msgid "Max kbit/s" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:485 +#: crates/voelin-ui/ui/screens/settings-pages.slint:485 +msgctxt "LayerRow" +msgid "Remove the layer" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:506 +msgctxt "GainSlider" +msgid "Gain of {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:513 +msgctxt "GainSlider" +msgid "{}%" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:565 +msgctxt "SourceRow" +msgid "Unmute" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:565 +msgctxt "SourceRow" +msgid "Mute" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:577 +msgctxt "SourceRow" +msgid "Remove {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:596 +msgctxt "StreamingSection" +msgid "Stream defaults" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:599 +msgctxt "StreamingSection" +msgid "Frame rate" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:600 +msgctxt "StreamingSection" +msgid "The most frames a second; the source may give fewer." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:609 +msgctxt "StreamingSection" +msgid "Video bitrate" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:610 +msgctxt "StreamingSection" +msgid "" +"Of the single layer, when no layers are set below. 0: automatic, from the " +"size and frame rate, up to 60 Mbit/s." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:619 +msgctxt "StreamingSection" +msgid "Video codec" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:621 +#: crates/voelin-ui/ui/screens/settings-pages.slint:621 +msgctxt "StreamingSection" +msgid "Auto" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:629 +msgctxt "StreamingSection" +msgid "Screen capture" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:631 +msgctxt "StreamingSection" +msgid "Portal" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:640 +msgctxt "StreamingSection" +msgid "Simulcast layers" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:642 +msgctxt "StreamingSection" +msgid "" +"Copies of the stream at other sizes and bitrates; each viewer gets the one " +"their connection carries. None: one layer." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:651 +msgctxt "StreamingSection" +msgid "Add a layer" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:656 +msgctxt "StreamingSection" +msgid "" +"Size is WIDTHxHEIGHT (1280x720) or a scale of the source (0.5). Changes " +"apply to a live stream at once." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:660 +msgctxt "StreamingSection" +msgid "Audio sources" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:662 +msgctxt "StreamingSection" +msgid "Mixed into the stream's sound; none: the stream is silent." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:672 +msgctxt "StreamingSection" +msgid "Desktop without {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:678 +msgctxt "StreamingSection" +msgid "Microphone" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:684 +msgctxt "StreamingSection" +msgid "The shared window's app" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:694 +msgctxt "StreamingSection" +msgid "No application plays audio now" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:695 +msgctxt "StreamingSection" +msgid "Application" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:700 +msgctxt "StreamingSection" +msgid "Add the application" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:708 +msgctxt "StreamingSection" +msgid "Recording and replay" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:711 +msgctxt "StreamingSection" +msgid "Replay buffer" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:712 +msgctxt "StreamingSection" +msgid "Seconds kept for saving a clip after the fact (0: off)." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:721 +msgctxt "StreamingSection" +msgid "Replay memory" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:722 +msgctxt "StreamingSection" +msgid "Kept in memory; older parts go to a temporary file." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:731 +msgctxt "StreamingSection" +msgid "Recordings and clips go to" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:732 +msgctxt "StreamingSection" +msgid "Empty: Videos/{}. Press Enter to apply." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:736 +msgctxt "StreamingSection" +msgid "Recording folder" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:774 +msgctxt "ConfigRow" +msgid "Reset {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:783 +msgctxt "ConfigRow" +msgid "(read at start only)" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:814 +msgctxt "PermRow" +msgid "Everyone may {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:819 +msgctxt "PermRow" +msgid "server groups" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:820 +msgctxt "PermRow" +msgid "Server groups for {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:824 +msgctxt "PermRow" +msgid "channel groups" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:825 +msgctxt "PermRow" +msgid "Channel groups for {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:829 +msgctxt "PermRow" +msgid "Set" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:835 +msgctxt "PermRow" +msgid "Reset {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:881 +msgctxt "IntegrationsSection" +msgid "Gateways" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:883 +msgctxt "IntegrationsSection" +msgid "" +"A gateway gives a server invisible presence, chat without joining, history, " +"pins, reactions, topics, events and the stream directory." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:885 +msgctxt "IntegrationsSection" +msgid "" +"None of your servers has a gateway. Add its URL to a server's bookmark (Edit " +"server)." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:916 +msgctxt "IntegrationsSection" +msgid "Administer" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:933 +msgctxt "IntegrationsSection" +msgid "Gateway administration" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:935 +msgctxt "IntegrationsSection" +msgid "" +"The gateway's settings and who may do what. Values are JSON; Enter applies." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:941 +msgctxt "IntegrationsSection" +msgid "Reload its file" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:946 +msgctxt "IntegrationsSection" +msgid "Close" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:955 +msgctxt "IntegrationsSection" +msgid "Permissions" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:963 +msgctxt "IntegrationsSection" +msgid "Groups are TeamSpeak group ids, separated by commas." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:967 +msgctxt "IntegrationsSection" +msgid "Video encoders and decoders" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:984 +msgctxt "IntegrationsSection" +msgid "Check again" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:996 +msgctxt "IntegrationsSection" +msgid "Encoders" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1004 +msgctxt "IntegrationsSection" +msgid "Decoders" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1009 +msgctxt "IntegrationsSection" +msgid "" +"Each codec's decoders in the order they are tried: when one fails the next " +"takes over." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1056 +msgctxt "SettingRow" +msgid "Reset {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1076 +msgctxt "AdvancedSection" +msgid "Video encoding and decoding" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1079 +msgctxt "AdvancedSection" +msgid "Encoder" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1080 +msgctxt "AdvancedSection" +msgid "" +"auto, software, or the name of an encoder from Integrations. Press Enter to " +"apply." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1083 +msgctxt "AdvancedSection" +msgid "Encoder backend" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1091 +msgctxt "AdvancedSection" +msgid "Hardware acceleration" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1092 +msgctxt "AdvancedSection" +msgid "GPU encoders where available" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1100 +msgctxt "AdvancedSection" +msgid "Decoder" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1101 +msgctxt "AdvancedSection" +msgid "" +"auto, software, or the name of a decoder from Integrations; for streams " +"watched from now on. Press Enter to apply." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1104 +msgctxt "AdvancedSection" +msgid "Decoder backend" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1112 +msgctxt "AdvancedSection" +msgid "Hardware decoding" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1113 +msgctxt "AdvancedSection" +msgid "GPU decoders where available, before the software ones" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1122 +msgctxt "AdvancedSection" +msgid "Stream encryption" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1124 +msgctxt "AdvancedSection" +msgid "SRTP profiles offered for stream media, most preferred first." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1135 +msgctxt "AdvancedSection" +msgid "Earlier" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1143 +msgctxt "AdvancedSection" +msgid "Later" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1151 +msgctxt "AdvancedSection" +msgid "Do not offer {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1169 +msgctxt "AdvancedSection" +msgid "Offer" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1175 +msgctxt "AdvancedSection" +msgid "Chat history" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1178 +msgctxt "AdvancedSection" +msgid "Keep chat history on this device" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1179 +msgctxt "AdvancedSection" +msgid "Off: messages are kept in memory for this run only" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1187 +msgctxt "AdvancedSection" +msgid "Messages per page" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1188 +msgctxt "AdvancedSection" +msgid "Shown when a chat opens and per step back (0: all)." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1196 +msgctxt "AdvancedSection" +msgid "Delete messages after" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1197 +msgctxt "AdvancedSection" +msgid "Pinned ones stay (0: keep all)." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1199 +msgctxt "AdvancedSection" +msgid "days" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1206 +msgctxt "AdvancedSection" +msgid "Same message within" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1207 +msgctxt "AdvancedSection" +msgid "Two copies from different sources this close are one." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1216 +msgctxt "AdvancedSection" +msgid "Pictures in chat up to" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1217 +msgctxt "AdvancedSection" +msgid "Linked pictures this small are downloaded and shown (0: never)." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1227 +msgctxt "AdvancedSection" +msgid "Cache" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1230 +msgctxt "AdvancedSection" +msgid "Avatars and icons on disk" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1231 +msgctxt "AdvancedSection" +msgid "The least recently used go first (0: no limit)." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1240 +msgctxt "AdvancedSection" +msgid "Download avatars and icons" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1241 +msgctxt "AdvancedSection" +msgid "Of the servers you are on" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1249 +msgctxt "AdvancedSection" +msgid "Transfer progress every" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1250 +msgctxt "AdvancedSection" +msgid "How often file transfers report (0: continuously)." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1260 +msgctxt "AdvancedSection" +msgid "Logs and crash reports" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1268 +msgctxt "AdvancedSection" +msgid "Crash reports: {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1268 +msgctxt "AdvancedSection" +msgid "No crash report folder." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1278 +msgctxt "AdvancedSection" +msgid "Open" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1285 +msgctxt "AdvancedSection" +msgid "All settings" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1287 +msgctxt "AdvancedSection" +msgid "" +"Every setting by its key, as JSON. For what the pages do not show; Enter " +"applies, the arrow resets." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings-pages.slint:1291 +#: crates/voelin-ui/ui/screens/settings-pages.slint:1291 +msgctxt "AdvancedSection" +msgid "Filter settings" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:20 +msgctxt "SettingsNav" +msgid "Settings" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:26 +msgctxt "SettingsNav" +msgid "Customize your {} experience" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:38 +msgctxt "SettingsNav" +msgid "My Account" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:39 +msgctxt "SettingsNav" +msgid "Identity in use, unique ids" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:45 +msgctxt "SettingsNav" +msgid "Profiles" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:46 +msgctxt "SettingsNav" +msgid "Who servers see you as, import, export" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:52 +msgctxt "SettingsNav" +msgid "Appearance" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:53 +msgctxt "SettingsNav" +msgid "Themes, layout, text size" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:59 +msgctxt "SettingsNav" +msgid "Voice & Video" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:60 +msgctxt "SettingsNav" +msgid "Audio, camera, streaming" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:66 +msgctxt "SettingsNav" +msgid "Streaming" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:67 +msgctxt "SettingsNav" +msgid "Go live, stream settings" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:73 +msgctxt "SettingsNav" +msgid "Devices" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:74 +msgctxt "SettingsNav" +msgid "Manage your devices" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:80 +msgctxt "SettingsNav" +msgid "Notifications" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:81 +msgctxt "SettingsNav" +msgid "Messages, mentions, alerts" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:87 +msgctxt "SettingsNav" +msgid "Privacy & Safety" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:88 +msgctxt "SettingsNav" +msgid "Blocked people, who can reach you" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:94 +msgctxt "SettingsNav" +msgid "Keybinds" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:95 +msgctxt "SettingsNav" +msgid "Shortcuts, push-to-talk" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:101 +msgctxt "SettingsNav" +msgid "Integrations" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:102 +msgctxt "SettingsNav" +msgid "Gateways, encoders, decoders" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:109 +msgctxt "SettingsNav" +msgid "Advanced" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:110 +msgctxt "SettingsNav" +msgid "Experimental features" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:116 +msgctxt "SettingsNav" +msgid "About" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:117 +msgctxt "SettingsNav" +msgid "Version and notices" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:126 +#: crates/voelin-ui/ui/screens/settings.slint:126 +msgctxt "MicrophoneCard" +msgid "Microphone" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:142 +msgctxt "MicrophoneCard" +msgid "Stop Test" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:142 +msgctxt "MicrophoneCard" +msgid "Test Mic" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:145 +msgctxt "MicrophoneCard" +msgid "Stop the microphone test" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:145 +msgctxt "MicrophoneCard" +msgid "Test the microphone" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:150 +msgctxt "MicrophoneCard" +msgid "Input Volume" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:151 +msgctxt "MicrophoneCard" +msgid "{} dB" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:157 +msgctxt "MicrophoneCard" +msgid "Input volume" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:167 +msgctxt "MicrophoneCard" +msgid "Input Level" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:187 +msgctxt "MicrophoneCard" +msgid "Noise Suppression" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:188 +msgctxt "MicrophoneCard" +msgid "Reduces background noise" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:196 +msgctxt "MicrophoneCard" +msgid "Low" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:196 +msgctxt "MicrophoneCard" +msgid "Moderate" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:196 +msgctxt "MicrophoneCard" +msgid "High" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:196 +msgctxt "MicrophoneCard" +msgid "Very high" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:198 +msgctxt "MicrophoneCard" +msgid "Noise suppression level" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:206 +msgctxt "MicrophoneCard" +msgid "Echo Cancellation" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:207 +msgctxt "MicrophoneCard" +msgid "Prevents audio feedback" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:216 +msgctxt "MicrophoneCard" +msgid "Automatic Gain Control" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:217 +msgctxt "MicrophoneCard" +msgid "Keeps your volume consistent" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:228 +msgctxt "OutputCard" +msgid "Output" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:236 +msgctxt "OutputCard" +msgid "Speakers" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:244 +msgctxt "OutputCard" +msgid "Test Sound" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:249 +msgctxt "OutputCard" +msgid "Output Volume" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:250 +msgctxt "OutputCard" +msgid "{}%" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:256 +msgctxt "OutputCard" +msgid "Output volume" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:267 +msgctxt "PermissionsCard" +msgid "Streaming Permissions" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:269 +msgctxt "PermissionsCard" +msgid "Choose who can watch your streams without asking." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:271 +msgctxt "PermissionsCard" +msgid "Everyone" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:271 +msgctxt "PermissionsCard" +msgid "Anyone who asks can watch your streams" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:272 +msgctxt "PermissionsCard" +msgid "Friends Only" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:272 +msgctxt "PermissionsCard" +msgid "Only your friends can watch; others are asked" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:273 +msgctxt "PermissionsCard" +msgid "Voice Channel Only" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:273 +msgctxt "PermissionsCard" +msgid "Only people in your voice channel can watch" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:274 +msgctxt "PermissionsCard" +msgid "No One" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:274 +msgctxt "PermissionsCard" +msgid "Nobody can watch your streams" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:289 +#: crates/voelin-ui/ui/screens/settings.slint:289 +msgctxt "CameraCard" +msgid "Camera" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:305 +msgctxt "CameraCard" +msgid "Camera devices" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:335 +msgctxt "CameraCard" +msgid "The preview is off." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:355 +msgctxt "CameraCard" +msgid "Camera Preview" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:365 +msgctxt "CameraCard" +msgid "Stop the preview" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:365 +msgctxt "CameraCard" +msgid "Start the preview" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:376 +msgctxt "CameraCard" +msgid "Background Effects" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:381 +msgctxt "CameraCard" +msgid "None" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:381 +msgctxt "CameraCard" +msgid "Blur" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:384 +msgctxt "CameraCard" +msgid "Background effect" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:395 +msgctxt "VideoCard" +msgid "Video Settings" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:400 +msgctxt "VideoCard" +msgid "Resolution" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:402 +msgctxt "VideoCard" +msgid "Auto" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:404 +msgctxt "VideoCard" +msgid "Camera resolution" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:412 +msgctxt "VideoCard" +msgid "Frame Rate" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:416 +msgctxt "VideoCard" +msgid "Frame rate" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:424 +msgctxt "VideoCard" +msgid "Video Codec" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:426 +msgctxt "VideoCard" +msgid "Auto (best)" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:428 +msgctxt "VideoCard" +msgid "Video codec" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:437 +msgctxt "VideoCard" +msgid "Enable Hardware Acceleration" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:445 +msgctxt "VideoCard" +msgid "Mirror My Video" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:506 +msgctxt "QualityCard" +msgid "Stream Quality" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:512 +msgctxt "QualityCard" +msgid "Auto" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:513 +msgctxt "QualityCard" +msgid "The source's size" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:522 +msgctxt "QualityCard" +msgid "Lower bandwidth" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:531 +msgctxt "QualityCard" +msgid "Full HD" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:540 +msgctxt "QualityCard" +msgid "Higher quality" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:567 +msgctxt "QualityCard" +msgid "" +"Your own simulcast layers are set (Streaming page); a preset replaces them." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:575 +msgctxt "QualityCard" +msgid "Stream Bitrate" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:587 +msgctxt "QualityCard" +msgid "Stream bitrate" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:597 +msgctxt "QualityCard" +msgid "auto" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:599 +msgctxt "QualityCard" +msgid "Stream bitrate in kbit/s" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:623 +msgctxt "QualityCard" +msgid "" +"Automatic: from the size and frame rate, up to 60 Mbit/s (~27 GB per hour)" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:624 +msgctxt "QualityCard" +msgid "Estimated Upload Usage: ~{} GB per hour" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:669 +msgctxt "KeybindsSection" +msgid "Voice transmission" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:672 +#: crates/voelin-ui/ui/screens/settings.slint:672 +msgctxt "KeybindsSection" +msgid "Push-to-talk" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:672 +msgctxt "KeybindsSection" +msgid "Voice activation" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:672 +msgctxt "KeybindsSection" +msgid "Continuously" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:674 +msgctxt "KeybindsSection" +msgid "Transmit" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:681 +#: crates/voelin-ui/ui/screens/settings.slint:681 +msgctxt "KeybindsSection" +msgid "Voice activation level" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:682 +msgctxt "KeybindsSection" +msgid "{} dB" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:699 +msgctxt "KeybindsSection" +msgid "Input level" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:720 +msgctxt "KeybindsSection" +msgid "Global push-to-talk key" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:721 +msgctxt "KeybindsSection" +msgid "Works while other windows have focus" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:732 +msgctxt "KeybindsSection" +msgid "Push-to-talk key" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:736 +msgctxt "KeybindsSection" +msgid "Apply" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:748 +msgctxt "KeybindsSection" +msgid "" +"Keys are written like Ctrl+Shift+T, Alt+F1, CapsLock or MouseBack. On " +"Wayland the desktop asks to confirm the key and may let you pick another " +"one. The \"Hold to talk\" button in the window always works." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:752 +msgctxt "KeybindsSection" +msgid "Shortcuts in the window" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:755 +msgctxt "KeybindsSection" +msgid "Search servers, channels, people and settings" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:756 +msgctxt "KeybindsSection" +msgid "Choose and open a search result" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:757 +msgctxt "KeybindsSection" +msgid "Close the search, a dialog or a picture" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:758 +msgctxt "KeybindsSection" +msgid "Send a message" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:781 +msgctxt "PrivacySection" +msgid "Who can reach you" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:784 +msgctxt "PrivacySection" +msgid "Private messages" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:785 +msgctxt "PrivacySection" +msgid "Messages of everyone else are dropped." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:786 +#: crates/voelin-ui/ui/screens/settings.slint:786 +msgctxt "PrivacySection" +msgid "Everyone" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:786 +#: crates/voelin-ui/ui/screens/settings.slint:786 +msgctxt "PrivacySection" +msgid "Friends" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:786 +#: crates/voelin-ui/ui/screens/settings.slint:786 +msgctxt "PrivacySection" +msgid "Nobody" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:794 +msgctxt "PrivacySection" +msgid "Pokes" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:795 +msgctxt "PrivacySection" +msgid "Pokes of everyone else are dropped." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:805 +msgctxt "PrivacySection" +msgid "Blocked people" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:807 +msgctxt "PrivacySection" +msgid "" +"Their messages in channels show as \"blocked\"; their voice is muted for you." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:809 +msgctxt "PrivacySection" +msgid "Their private messages and pokes" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:810 +msgctxt "PrivacySection" +msgid "Hide them" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:810 +msgctxt "PrivacySection" +msgid "Show flagged" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:818 +msgctxt "PrivacySection" +msgid "" +"You have blocked no one. Block people from their card on a server or on the " +"Friends page." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:846 +msgctxt "PrivacySection" +msgid "Unblock" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:854 +msgctxt "PrivacySection" +msgid "Crash reports" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:857 +msgctxt "PrivacySection" +msgid "Save crash reports on this device" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:858 +msgctxt "PrivacySection" +msgid "Never uploaded" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:863 +msgctxt "PrivacySection" +msgid "" +"A report is a text file with the error and where it happened. It may contain " +"a server address from the error message. You can attach it to a bug report " +"yourself; the app never sends it anywhere." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:872 +msgctxt "NotificationsSection" +msgid "Notify me about" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:874 +msgctxt "NotificationsSection" +msgid "In the app: the bell. On the desktop: also a system notification." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:876 +msgctxt "NotificationsSection" +msgid "Mentions" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:877 +msgctxt "NotificationsSection" +msgid "Your name in a channel or server chat" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:878 +#: crates/voelin-ui/ui/screens/settings.slint:878 +#: crates/voelin-ui/ui/screens/settings.slint:878 +#: crates/voelin-ui/ui/screens/settings.slint:878 +#: crates/voelin-ui/ui/screens/settings.slint:878 +msgctxt "NotificationsSection" +msgid "Off" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:878 +#: crates/voelin-ui/ui/screens/settings.slint:878 +#: crates/voelin-ui/ui/screens/settings.slint:878 +#: crates/voelin-ui/ui/screens/settings.slint:878 +#: crates/voelin-ui/ui/screens/settings.slint:878 +msgctxt "NotificationsSection" +msgid "In the app" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:878 +#: crates/voelin-ui/ui/screens/settings.slint:878 +#: crates/voelin-ui/ui/screens/settings.slint:878 +#: crates/voelin-ui/ui/screens/settings.slint:878 +#: crates/voelin-ui/ui/screens/settings.slint:878 +msgctxt "NotificationsSection" +msgid "Desktop" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:886 +msgctxt "NotificationsSection" +msgid "Private messages" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:895 +msgctxt "NotificationsSection" +msgid "Pokes" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:904 +msgctxt "NotificationsSection" +msgid "Event reminders" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:905 +msgctxt "NotificationsSection" +msgid "Before events you can join start" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:914 +msgctxt "NotificationsSection" +msgid "Friends coming online" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:926 +msgctxt "NotificationsSection" +msgid "Send a test notification" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:937 +msgctxt "DevicesSection" +msgid "Audio" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:940 +#: crates/voelin-ui/ui/screens/settings.slint:940 +msgctxt "DevicesSection" +msgid "Microphone" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:953 +#: crates/voelin-ui/ui/screens/settings.slint:953 +msgctxt "DevicesSection" +msgid "Speakers" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:966 +#: crates/voelin-ui/ui/screens/settings.slint:966 +msgctxt "DevicesSection" +msgid "Playback buffer" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:967 +msgctxt "DevicesSection" +msgid "{} ms" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:982 +msgctxt "DevicesSection" +msgid "" +"A device that is unplugged stays chosen and is used again when it comes back." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:986 +msgctxt "DevicesSection" +msgid "Cameras" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1004 +msgctxt "DevicesSection" +msgid "" +"Cameras are used as sources in the Stream Studio; the camera chosen under " +"Voice & Video is the default." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1008 +msgctxt "DevicesSection" +msgid "Screen capture" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1011 +msgctxt "DevicesSection" +msgid "Capture with" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1013 +msgctxt "DevicesSection" +msgid "Automatic" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1013 +msgctxt "DevicesSection" +msgid "Desktop portal (Wayland)" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1013 +msgctxt "DevicesSection" +msgid "wlroots" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1015 +msgctxt "DevicesSection" +msgid "Capture backend" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1044 +#: crates/voelin-ui/ui/screens/settings.slint:1044 +msgctxt "AppearanceSection" +msgid "Theme" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1047 +msgctxt "AppearanceSection" +msgid "Dark" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1047 +msgctxt "AppearanceSection" +msgid "Light" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1047 +msgctxt "AppearanceSection" +msgid "System" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1056 +#: crates/voelin-ui/ui/screens/settings.slint:1056 +msgctxt "AppearanceSection" +msgid "Text size" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1057 +msgctxt "AppearanceSection" +msgid "{}%" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1073 +msgctxt "AppearanceSection" +msgid "Layout" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1076 +msgctxt "AppearanceSection" +msgid "Phone layout below this window width (pixels)" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1077 +msgctxt "AppearanceSection" +msgid "Narrower windows show one page at a time with a bottom navigation." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1082 +msgctxt "AppearanceSection" +msgid "Phone layout below this width" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1092 +msgctxt "AppearanceSection" +msgid "Image cache (MB)" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1093 +msgctxt "AppearanceSection" +msgid "Decoded avatars, icons, emoji and pictures kept in memory. In use: {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1098 +msgctxt "AppearanceSection" +msgid "Image cache in megabytes" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1125 +#: crates/voelin-ui/ui/screens/settings.slint:1125 +msgctxt "SettingsPage" +msgid "Voice & Video" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1126 +#: crates/voelin-ui/ui/screens/settings.slint:1126 +msgctxt "SettingsPage" +msgid "Keybinds" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1127 +#: crates/voelin-ui/ui/screens/settings.slint:1127 +msgctxt "SettingsPage" +msgid "Streaming" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1128 +#: crates/voelin-ui/ui/screens/settings.slint:1128 +msgctxt "SettingsPage" +msgid "Privacy & Safety" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1129 +#: crates/voelin-ui/ui/screens/settings.slint:1129 +msgctxt "SettingsPage" +msgid "My Account" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1130 +#: crates/voelin-ui/ui/screens/settings.slint:1130 +msgctxt "SettingsPage" +msgid "Profiles" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1131 +#: crates/voelin-ui/ui/screens/settings.slint:1131 +msgctxt "SettingsPage" +msgid "Devices" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1132 +#: crates/voelin-ui/ui/screens/settings.slint:1132 +msgctxt "SettingsPage" +msgid "Notifications" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1133 +#: crates/voelin-ui/ui/screens/settings.slint:1133 +msgctxt "SettingsPage" +msgid "Integrations" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1134 +#: crates/voelin-ui/ui/screens/settings.slint:1134 +msgctxt "SettingsPage" +msgid "Advanced" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1134 +#: crates/voelin-ui/ui/screens/settings.slint:1134 +msgctxt "SettingsPage" +msgid "Appearance" +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1135 +msgctxt "SettingsPage" +msgid "Set up your audio, video, and streaming preferences for {}." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1136 +msgctxt "SettingsPage" +msgid "How your voice goes out, and the keys for it." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1137 +msgctxt "SettingsPage" +msgid "Defaults of your streams, their layers and their sound." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1138 +msgctxt "SettingsPage" +msgid "Who can reach you, blocked people, what the app keeps." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1139 +msgctxt "SettingsPage" +msgid "Your main account and server identity." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1140 +msgctxt "SettingsPage" +msgid "Your identities: each is a unique id on every server." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1141 +msgctxt "SettingsPage" +msgid "Microphones, speakers, cameras and screens." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1142 +msgctxt "SettingsPage" +msgid "What the bell and the desktop tell you." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1143 +msgctxt "SettingsPage" +msgid "Gateways of your servers, the video encoders and decoders here." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1144 +msgctxt "SettingsPage" +msgid "Encoding, encryption, history, cache, every setting." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1145 +msgctxt "SettingsPage" +msgid "Theme, text size and layout. Changes apply at once." +msgstr "" + +#: crates/voelin-ui/ui/screens/settings.slint:1159 +msgctxt "SettingsPage" +msgid "Settings section" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:47 +#: crates/voelin-ui/ui/screens/streams.slint:47 +msgctxt "StreamCard" +msgid "{} is streaming" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:47 +#: crates/voelin-ui/ui/screens/streams.slint:47 +msgctxt "StreamCard" +msgid "Untitled stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:53 +msgctxt "StreamCard" +msgid "Started before you joined; looking it up…" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:53 +msgctxt "StreamCard" +msgid "In {}; looking it up…" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:54 +msgctxt "StreamCard" +msgid "your stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:55 +msgctxt "StreamCard" +msgid "by {} · in {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:56 +msgctxt "StreamCard" +msgid "by {} · with sound" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:56 +msgctxt "StreamCard" +msgid "by {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:70 +msgctxt "StreamCard" +msgid "Watch" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:71 +msgctxt "StreamCard" +msgid "Watch {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:78 +msgctxt "StreamCard" +msgid "Show" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:86 +msgctxt "StreamCard" +msgid "Leave" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:103 +msgctxt "StreamsPanel" +msgid "In voice — {} ({})" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:103 +msgctxt "StreamsPanel" +msgid "Members" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:114 +msgctxt "StreamsPanel" +msgid "Open the voice channel" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:121 +msgctxt "StreamsPanel" +msgid "Join a channel with voice to see who is there." +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:146 +msgctxt "StreamsPanel" +msgid "Streams" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:153 +msgctxt "StreamsPanel" +msgid "YOU ARE LIVE" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:157 +msgctxt "StreamsPanel" +msgid "No streams on this server." +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:166 +msgctxt "StreamsPanel" +msgid "Viewers ({})" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:166 +msgctxt "StreamsPanel" +msgid "Manage" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:173 +msgctxt "StreamsPanel" +msgid "{} wants to watch" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:182 +msgctxt "StreamsPanel" +msgid "Accept" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:187 +msgctxt "StreamsPanel" +msgid "Deny" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:215 +msgctxt "StreamPlayer" +msgid "Stream picture" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:283 +msgctxt "StreamPlayer" +msgid "{} watching" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:303 +msgctxt "StreamPlayer" +msgid "Quality" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:310 +msgctxt "StreamPlayer" +msgid "{}p" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:329 +msgctxt "StreamPlayer" +msgid "Mute" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:329 +msgctxt "StreamPlayer" +msgid "Unmute" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:343 +msgctxt "StreamPlayer" +msgid "Stream volume" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:358 +msgctxt "StreamPlayer" +msgid "LIVE" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:383 +msgctxt "StreamPlayer" +msgid "Back to the chat (keeps watching)" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:390 +msgctxt "StreamPlayer" +msgid "Back to the window" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:390 +msgctxt "StreamPlayer" +msgid "Pop out" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:398 +msgctxt "StreamPlayer" +msgid "Exit full screen" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:398 +msgctxt "StreamPlayer" +msgid "Full screen" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:405 +msgctxt "StreamPlayer" +msgid "Close" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:405 +msgctxt "StreamPlayer" +msgid "Leave" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:419 +msgctxt "StreamInfo" +msgid "Title" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:420 +msgctxt "StreamInfo" +msgid "Streamer" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:421 +msgctxt "StreamInfo" +msgid "Picture" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:422 +msgctxt "StreamInfo" +msgid "Watching for" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:423 +msgctxt "StreamInfo" +msgid "Viewers" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:423 +msgctxt "StreamInfo" +msgid "{}" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:451 +msgctxt "StreamViewer" +msgid "Stream viewer" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:462 +msgctxt "StreamViewer" +msgid "{} in voice" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:469 +msgctxt "StreamViewer" +msgid "Close" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:469 +msgctxt "StreamViewer" +msgid "Leave" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:503 +msgctxt "StreamViewer" +msgid "Streamed in your voice channel, {}. The streamer decides who may watch." +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:503 +msgctxt "StreamViewer" +msgid "Streamed in the {} voice channel. The streamer decides who may watch." +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:518 +msgctxt "StreamViewer" +msgid "{} Chat" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:518 +msgctxt "StreamViewer" +msgid "Chat" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:523 +msgctxt "StreamViewer" +msgid "Stream Info" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:538 +msgctxt "StreamViewer" +msgid "Message {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/streams.slint:538 +msgctxt "StreamViewer" +msgid "Message" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:146 +msgctxt "SceneRow" +msgid "Scene menu" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:158 +msgctxt "SceneRow" +msgid "Go live with this scene" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:159 +msgctxt "SceneRow" +msgid "Rename" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:160 +msgctxt "SceneRow" +msgid "Remove" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:181 +#: crates/voelin-ui/ui/screens/studio-parts.slint:181 +msgctxt "ScenesCard" +msgid "Scenes" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:185 +msgctxt "ScenesCard" +msgid "Add scene" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:212 +#: crates/voelin-ui/ui/screens/studio-parts.slint:212 +msgctxt "ScenesCard" +msgid "Add Scene" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:295 +msgctxt "SourceRow" +msgid "Hide {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:295 +msgctxt "SourceRow" +msgid "Show {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:304 +msgctxt "SourceRow" +msgid "Source menu" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:314 +msgctxt "SourceRow" +msgid "Transform…" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:315 +msgctxt "SourceRow" +msgid "Crop…" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:316 +msgctxt "SourceRow" +msgid "Opacity…" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:317 +msgctxt "SourceRow" +msgid "Unlock" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:317 +msgctxt "SourceRow" +msgid "Lock" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:318 +msgctxt "SourceRow" +msgid "Blur background" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:318 +msgctxt "SourceRow" +msgid "Background effect off" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:319 +msgctxt "SourceRow" +msgid "Background effect…" +msgstr "" + +#. A phone's front and back camera, or the next webcam. +#: crates/voelin-ui/ui/screens/studio-parts.slint:321 +msgctxt "SourceRow" +msgid "Switch camera" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:322 +msgctxt "SourceRow" +msgid "Bring forward" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:323 +msgctxt "SourceRow" +msgid "Send backward" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:324 +msgctxt "SourceRow" +msgid "Rename…" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:325 +msgctxt "SourceRow" +msgid "Remove" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:354 +msgctxt "AddSourceButton" +msgid "Add source" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:361 +msgctxt "AddSourceButton" +msgid "Screen" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:362 +msgctxt "AddSourceButton" +msgid "Window" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:363 +msgctxt "AddSourceButton" +msgid "Camera" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:364 +msgctxt "AddSourceButton" +msgid "Image" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:365 +msgctxt "AddSourceButton" +msgid "Text" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:366 +msgctxt "AddSourceButton" +msgid "Colour" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:393 +#: crates/voelin-ui/ui/screens/studio-parts.slint:393 +msgctxt "SourcesCard" +msgid "Sources" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:400 +msgctxt "SourcesCard" +msgid "Add a scene first." +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:400 +msgctxt "SourcesCard" +msgid "" +"Nothing in this scene yet: add a screen, a window, a camera, an image, text " +"or a colour." +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:465 +msgctxt "StudioPreview" +msgid "Stream preview" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:494 +msgctxt "StudioPreview" +msgid "Waiting for the first picture…" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:494 +msgctxt "StudioPreview" +msgid "Starting the studio…" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:531 +msgctxt "StudioPreview" +msgid "STARTING" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:542 +msgctxt "StudioPreview" +msgid "REC {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:546 +msgctxt "StudioPreview" +msgid "PREVIEW" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:561 +msgctxt "StudioPreview" +msgid "{} watching" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:567 +msgctxt "StudioPreview" +msgid "{} joined the stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:598 +msgctxt "StudioPreview" +msgid "{} FPS" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:669 +msgctxt "StudioHeader" +msgid "Stream Studio" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:676 +msgctxt "StudioHeader" +msgid "Streaming to {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:676 +msgctxt "StudioHeader" +msgid "Goes live to {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:726 +msgctxt "StudioHeader" +msgid "Back into the main window" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:726 +msgctxt "StudioHeader" +msgid "Open in its own window" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:797 +msgctxt "MixerRow" +msgid "muted" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:797 +msgctxt "MixerRow" +msgid "{} dB" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:815 +msgctxt "MixerRow" +msgid "{} level" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:825 +msgctxt "MixerRow" +msgid "{} gain" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:833 +msgctxt "MixerRow" +msgid "Unmute {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:833 +msgctxt "MixerRow" +msgid "Mute {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:843 +msgctxt "MixerRow" +msgid "{} menu" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:853 +msgctxt "MixerRow" +msgid "Unmute" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:853 +msgctxt "MixerRow" +msgid "Mute" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:854 +msgctxt "MixerRow" +msgid "Reset to 0 dB" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:855 +msgctxt "MixerRow" +msgid "Remove" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:877 +msgctxt "MixerCard" +msgid "Audio Mixer" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:881 +msgctxt "MixerCard" +msgid "Add an audio source" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:888 +msgctxt "MixerCard" +msgid "Stream audio settings" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:896 +msgctxt "MixerCard" +msgid "No audio: add your microphone, the desktop or an application." +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:903 +msgctxt "MixerCard" +msgid "Audio sources" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1008 +msgctxt "StudioChat" +msgid "Stream Chat" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1012 +msgctxt "StudioChat" +msgid "Open the channel chat" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1027 +msgctxt "StudioChat" +msgid "Stream chat" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1034 +msgctxt "StudioChat" +msgid "Join a voice channel on a TeamSpeak 6 server: its chat shows here." +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1058 +msgctxt "StudioChat" +msgid "Message goes to {}…" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1058 +msgctxt "StudioChat" +msgid "No chat yet" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1059 +msgctxt "StudioChat" +msgid "Message to the stream chat" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1069 +msgctxt "StudioChat" +msgid "Send" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1099 +msgctxt "DestinationSelect" +msgid "Destination" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1121 +msgctxt "DestinationSelect" +msgid "No TeamSpeak 6 voice connection" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1266 +msgctxt "LayerRow" +msgid "Layer size, or a scale like 0.5×" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1273 +msgctxt "LayerRow" +msgid "Layer frame rate" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1274 +msgctxt "LayerRow" +msgid "fps" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1282 +msgctxt "LayerRow" +msgid "Layer bitrate in kbit/s" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1305 +msgctxt "StreamSettings" +msgid "Stream Settings" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1311 +msgctxt "StreamSettings" +msgid "Destination" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1318 +msgctxt "StreamSettings" +msgid "Quality" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1322 +msgctxt "StreamSettings" +msgid "Output quality" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1342 +msgctxt "StreamSettings" +msgid "Stream Title" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1345 +msgctxt "StreamSettings" +msgid "What are you streaming?" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1346 +msgctxt "StreamSettings" +msgid "Stream title" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1352 +msgctxt "StreamSettings" +msgid "Game" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1355 +#: crates/voelin-ui/ui/screens/studio-parts.slint:1355 +msgctxt "StreamSettings" +msgid "Game or category" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1362 +msgctxt "StreamSettings" +msgid "Go Live Message (optional)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1365 +msgctxt "StreamSettings" +msgid "Sent to the channel chat when you go live" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1372 +msgctxt "StreamSettings" +msgid "Show Viewer Count" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1377 +msgctxt "StreamSettings" +msgid "Show Chat Overlay" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1382 +msgctxt "StreamSettings" +msgid "Show Now Playing" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1387 +msgctxt "StreamSettings" +msgid "Enable Stream Audio" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1398 +#: crates/voelin-ui/ui/screens/studio-parts.slint:1398 +msgctxt "StreamSettings" +msgid "Advanced Settings" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1431 +msgctxt "StreamSettings" +msgid "Output (width × height, FPS)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1437 +msgctxt "StreamSettings" +msgid "Output width" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1448 +msgctxt "StreamSettings" +msgid "Output height" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1454 +msgctxt "StreamSettings" +msgid "Output frame rate" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1489 +msgctxt "StreamSettings" +msgid "Bitrate (kbit/s)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1489 +msgctxt "StreamSettings" +msgid "Simulcast layers (size or scale, FPS, kbit/s)" +msgstr "" + +#. Empty: automatic, from the output's size and frame rate. +#: crates/voelin-ui/ui/screens/studio-parts.slint:1494 +msgctxt "StreamSettings" +msgid "Auto (up to 60 Mbit/s)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1495 +msgctxt "StreamSettings" +msgid "Bitrate in kbit/s" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1505 +msgctxt "StreamSettings" +msgid "Add simulcast layers" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1505 +msgctxt "StreamSettings" +msgid "Add a layer" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1521 +#: crates/voelin-ui/ui/screens/studio-parts.slint:1521 +msgctxt "RecordButton" +msgid "Record Clip" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1522 +msgctxt "RecordButton" +msgid "Saves the last {} seconds" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1522 +msgctxt "RecordButton" +msgid "The replay buffer is off" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1550 +msgctxt "RecordButton" +msgid "Recording {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1568 +msgctxt "RecordButton" +msgid "Recording options" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1584 +msgctxt "RecordButton" +msgid "Save the last {} seconds" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1584 +msgctxt "RecordButton" +msgid "Save clip (replay buffer off)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1585 +msgctxt "RecordButton" +msgid "Stop recording" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1585 +msgctxt "RecordButton" +msgid "Start recording" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1586 +msgctxt "RecordButton" +msgid "Replay length…" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1587 +msgctxt "RecordButton" +msgid "Open the recordings folder" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1612 +msgctxt "StudioActions" +msgid "Share Window" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1619 +msgctxt "StudioActions" +msgid "Share Screen" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1645 +msgctxt "StudioActions" +msgid "Live" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1645 +msgctxt "StudioActions" +msgid "Starting…" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1645 +msgctxt "StudioActions" +msgid "Go Live" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1657 +msgctxt "StudioActions" +msgid "End Stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1670 +msgctxt "ViewerRequests" +msgid "{} wants to watch" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1679 +msgctxt "ViewerRequests" +msgid "Accept" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1684 +msgctxt "ViewerRequests" +msgid "Deny" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1715 +msgctxt "SourceDialog" +msgid "Add text" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1715 +msgctxt "SourceDialog" +msgid "Add a colour" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1715 +msgctxt "SourceDialog" +msgid "Add an image" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1716 +msgctxt "SourceDialog" +msgid "Added to the live scene." +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1716 +msgctxt "SourceDialog" +msgid "Position, size and crop are in output pixels." +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1728 +#: crates/voelin-ui/ui/screens/studio-parts.slint:1728 +msgctxt "SourceDialog" +msgid "Name" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1735 +msgctxt "SourceDialog" +msgid "Text (a new line with \\n)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1738 +msgctxt "SourceDialog" +msgid "Text" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1744 +msgctxt "SourceDialog" +msgid "Size (px)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1748 +msgctxt "SourceDialog" +msgid "Colour (#rrggbb or #rrggbbaa)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1753 +msgctxt "SourceDialog" +msgid "Image file (PNG or JPEG)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1757 +msgctxt "SourceDialog" +msgid "Image file" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1762 +msgctxt "SourceDialog" +msgid "Mirror" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1763 +msgctxt "SourceDialog" +msgid "As in a mirror (front cameras)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1767 +msgctxt "SourceDialog" +msgid "Transform" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1782 +msgctxt "SourceDialog" +msgid "Width" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1784 +#: crates/voelin-ui/ui/screens/studio-parts.slint:1784 +msgctxt "SourceDialog" +msgid "own" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1787 +msgctxt "SourceDialog" +msgid "Height" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1792 +msgctxt "SourceDialog" +msgid "Scale" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1797 +msgctxt "SourceDialog" +msgid "Fit inside" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1797 +msgctxt "SourceDialog" +msgid "Fill (crop)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1797 +msgctxt "SourceDialog" +msgid "Stretch" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1799 +msgctxt "SourceDialog" +msgid "How it fills its box" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1803 +msgctxt "SourceDialog" +msgid "Crop (source pixels)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1810 +msgctxt "SourceDialog" +msgid "Left" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1814 +msgctxt "SourceDialog" +msgid "Top" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1818 +msgctxt "SourceDialog" +msgid "Right" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1822 +msgctxt "SourceDialog" +msgid "Bottom" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1829 +#: crates/voelin-ui/ui/screens/studio-parts.slint:1829 +msgctxt "SourceDialog" +msgid "Opacity" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1842 +msgctxt "SourceDialog" +msgid "{}%" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1851 +msgctxt "SourceDialog" +msgid "Visible" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1855 +msgctxt "SourceDialog" +msgid "Locked" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1862 +#: crates/voelin-ui/ui/screens/studio-parts.slint:1862 +msgctxt "SourceDialog" +msgid "Background effect" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1867 +msgctxt "SourceDialog" +msgid "Off" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1867 +msgctxt "SourceDialog" +msgid "Blur" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1867 +msgctxt "SourceDialog" +msgid "Image" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1867 +msgctxt "SourceDialog" +msgid "Colour" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1873 +msgctxt "SourceDialog" +msgid "Blur strength (% of the picture's height)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1877 +msgctxt "SourceDialog" +msgid "Background image file" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1881 +msgctxt "SourceDialog" +msgid "Background colour (#rrggbb)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1885 +msgctxt "SourceDialog" +msgid "" +"The subject is found by a simple oval for now: what is outside it is " +"replaced." +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1897 +msgctxt "SourceDialog" +msgid "Cancel" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1902 +msgctxt "SourceDialog" +msgid "Add" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1902 +msgctxt "SourceDialog" +msgid "Apply" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1920 +msgctxt "PickDialog" +msgid "Share a screen" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1920 +msgctxt "PickDialog" +msgid "Share a window" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1920 +msgctxt "PickDialog" +msgid "Add a camera" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1920 +msgctxt "PickDialog" +msgid "Audio sources" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1921 +msgctxt "PickDialog" +msgid "Mixed into the stream's audio. Pick as many as you like." +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1921 +msgctxt "PickDialog" +msgid "Added to the live scene." +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:1928 +msgctxt "PickDialog" +msgid "Nothing found." +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2015 +msgctxt "PickDialog" +msgid "Done" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2024 +msgctxt "SceneDialog" +msgid "Rename scene" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2031 +msgctxt "SceneDialog" +msgid "Scene name" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2041 +msgctxt "SceneDialog" +msgid "Cancel" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2046 +msgctxt "SceneDialog" +msgid "Rename" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2059 +msgctxt "StudioSettingsDialog" +msgid "Studio Settings" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2060 +msgctxt "StudioSettingsDialog" +msgid "" +"Clips, recordings and the preview. Stream quality is in the stream settings." +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2072 +msgctxt "StudioSettingsDialog" +msgid "Replay buffer (seconds, 0: off)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2073 +msgctxt "StudioSettingsDialog" +msgid "Record Clip saves this much of what was streamed or composed." +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2078 +msgctxt "StudioSettingsDialog" +msgid "Replay buffer in seconds" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2082 +msgctxt "StudioSettingsDialog" +msgid "Replay memory (MB)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2083 +msgctxt "StudioSettingsDialog" +msgid "Beyond this the oldest part goes to a temporary file." +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2088 +msgctxt "StudioSettingsDialog" +msgid "Replay memory in megabytes" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2092 +msgctxt "StudioSettingsDialog" +msgid "Recordings and clips folder" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2093 +msgctxt "StudioSettingsDialog" +msgid "Empty: a Voelin folder in your videos folder." +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2097 +msgctxt "StudioSettingsDialog" +msgid "Recordings folder" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2103 +msgctxt "StudioSettingsDialog" +msgid "Preview width (pixels)" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2107 +msgctxt "StudioSettingsDialog" +msgid "Preview width" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2111 +msgctxt "StudioSettingsDialog" +msgid "Preview FPS" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2115 +msgctxt "StudioSettingsDialog" +msgid "Preview frame rate" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2125 +msgctxt "StudioSettingsDialog" +msgid "Cancel" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio-parts.slint:2130 +msgctxt "StudioSettingsDialog" +msgid "Save" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:42 +msgctxt "StudioUser" +msgid "Live" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:42 +msgctxt "StudioUser" +msgid "Online" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:42 +msgctxt "StudioUser" +msgid "Offline" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:128 +#: crates/voelin-ui/ui/screens/studio.slint:128 +msgctxt "StudioPage" +msgid "Studio Settings" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:298 +msgctxt "PhoneAudioRow" +msgid "muted" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:298 +msgctxt "PhoneAudioRow" +msgid "{} dB" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:322 +msgctxt "PhoneAudioRow" +msgid "Gain" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:330 +msgctxt "PhoneAudioRow" +msgid "Mute" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:356 +msgctxt "MobileStudio" +msgid "Back" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:369 +msgctxt "MobileStudio" +msgid "Stream Studio" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:376 +msgctxt "MobileStudio" +msgid "Live · {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:376 +msgctxt "MobileStudio" +msgid "Go live to {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:403 +msgctxt "MobileStudio" +msgid "LIVE PREVIEW" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:468 +msgctxt "MobileStudio" +msgid "Source" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:469 +msgctxt "MobileStudio" +msgid "What do you want to share?" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:475 +msgctxt "MobileStudio" +msgid "Screen / Game" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:476 +msgctxt "MobileStudio" +msgid "Apps or games" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:482 +msgctxt "MobileStudio" +msgid "Camera" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:483 +msgctxt "MobileStudio" +msgid "Front or back" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:489 +msgctxt "MobileStudio" +msgid "App Window" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:490 +msgctxt "MobileStudio" +msgid "A single app" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:497 +msgctxt "MobileStudio" +msgid "Audio" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:499 +msgctxt "MobileStudio" +msgid "Add a source" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:507 +msgctxt "MobileStudio" +msgid "Stream Details" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:512 +msgctxt "MobileStudio" +msgid "What are you streaming?" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:513 +msgctxt "MobileStudio" +msgid "Stream title" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:521 +msgctxt "MobileStudio" +msgid "Game" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:527 +msgctxt "MobileStudio" +msgid "Category" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:528 +msgctxt "MobileStudio" +msgid "Game or category" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:535 +msgctxt "MobileStudio" +msgid "Quality" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:542 +msgctxt "MobileStudio" +msgid "Output quality" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:567 +msgctxt "MobileStudio" +msgid "Go Live To" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:587 +#: crates/voelin-ui/ui/screens/studio.slint:587 +msgctxt "MobileStudio" +msgid "End Stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:587 +#: crates/voelin-ui/ui/screens/studio.slint:587 +msgctxt "MobileStudio" +msgid "Go Live" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:610 +msgctxt "MobileStudio" +msgid "Starting…" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:616 +msgctxt "MobileStudio" +msgid "Start streaming to {}" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:631 +msgctxt "MobileStudio" +msgid "Save a clip" +msgstr "" + +#: crates/voelin-ui/ui/screens/studio.slint:647 +msgctxt "MobileStudio" +msgid "Clip" +msgstr "" + +#: crates/voelin-ui/ui/screens/voice.slint:89 +msgctxt "Participant" +msgid "Speaking" +msgstr "" + +#: crates/voelin-ui/ui/screens/voice.slint:89 +msgctxt "Participant" +msgid "Streaming" +msgstr "" + +#: crates/voelin-ui/ui/screens/voice.slint:89 +msgctxt "Participant" +msgid "Away" +msgstr "" + +#: crates/voelin-ui/ui/screens/voice.slint:144 +msgctxt "StreamCard" +msgid "{} watching" +msgstr "" + +#: crates/voelin-ui/ui/screens/voice.slint:183 +msgctxt "StreamCard" +msgid "Sound" +msgstr "" + +#: crates/voelin-ui/ui/screens/voice.slint:189 +msgctxt "StreamCard" +msgid "Your stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/voice.slint:199 +msgctxt "StreamCard" +msgid "Show Stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/voice.slint:199 +msgctxt "StreamCard" +msgid "Watch Stream" +msgstr "" + +#: crates/voelin-ui/ui/screens/voice.slint:245 +msgctxt "VoiceView" +msgid "Chat only" +msgstr "" + +#: crates/voelin-ui/ui/screens/voice.slint:251 +msgctxt "VoiceView" +msgid "Voice Settings" +msgstr "" + +#: crates/voelin-ui/ui/screens/voice.slint:258 +msgctxt "VoiceView" +msgid "Leave" +msgstr "" + +#: crates/voelin-ui/ui/screens/voice.slint:283 +msgctxt "VoiceView" +msgid "{} in voice / {} total" +msgstr "" + +#: crates/voelin-ui/ui/screens/voice.slint:284 +msgctxt "VoiceView" +msgid "{} in voice" +msgstr "" + +#: crates/voelin-ui/ui/screens/voice.slint:301 +msgctxt "VoiceView" +msgid "In voice" +msgstr "" + +#: crates/voelin-ui/ui/screens/voice.slint:322 +msgctxt "VoiceView" +msgid "Message {}" +msgstr "" + +#. The studio's stream takes the place of a simple share. +#: crates/voelin-ui/ui/share-menu.slint:31 +msgctxt "ShareMenu" +msgid "Share screen" +msgstr "" + +#: crates/voelin-ui/ui/share-menu.slint:32 +msgctxt "ShareMenu" +msgid "Stream Studio" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:29 +#: crates/voelin-ui/ui/shells/common.slint:29 +msgctxt "HoldToTalk" +msgid "Hold to talk" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:44 +msgctxt "HoldToTalk" +msgid "Talking…" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:71 +msgctxt "VoiceCard" +msgid "Voice" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:92 +msgctxt "VoiceCard" +msgid "Voice Connected" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:92 +msgctxt "VoiceCard" +msgid "Connecting…" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:106 +msgctxt "VoiceCard" +msgid "Open the voice channel" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:114 +msgctxt "VoiceCard" +msgid "Disconnect" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:132 +msgctxt "VoiceButtons" +msgid "Microphone off" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:132 +msgctxt "VoiceButtons" +msgid "Microphone on" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:141 +msgctxt "VoiceButtons" +msgid "Sound off" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:141 +msgctxt "VoiceButtons" +msgid "Sound on" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:152 +msgctxt "VoiceButtons" +msgid "Sharing" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:152 +msgctxt "VoiceButtons" +msgid "Live in the Stream Studio" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:152 +msgctxt "VoiceButtons" +msgid "Share or go live" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:161 +msgctxt "VoiceButtons" +msgid "Settings" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:173 +msgctxt "UserCard" +msgid "You" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:206 +msgctxt "UserCard" +msgid "Online" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:206 +msgctxt "UserCard" +msgid "Observing" +msgstr "" + +#: crates/voelin-ui/ui/shells/common.slint:206 +msgctxt "UserCard" +msgid "Offline" +msgstr "" + +#: crates/voelin-ui/ui/shells/desktop.slint:80 +msgctxt "ServerRail" +msgid "Servers" +msgstr "" + +#: crates/voelin-ui/ui/shells/desktop.slint:101 +msgctxt "ServerRail" +msgid "Home" +msgstr "" + +#: crates/voelin-ui/ui/shells/desktop.slint:141 +msgctxt "ServerRail" +msgid "Add server" +msgstr "" + +#: crates/voelin-ui/ui/shells/desktop.slint:155 +msgctxt "ServerRail" +msgid "Settings" +msgstr "" + +#: crates/voelin-ui/ui/shells/desktop.slint:208 +msgctxt "TopBar" +msgid "Search servers, channels, people or settings…" +msgstr "" + +#: crates/voelin-ui/ui/shells/desktop.slint:209 +msgctxt "TopBar" +msgid "Search" +msgstr "" + +#: crates/voelin-ui/ui/shells/desktop.slint:219 +msgctxt "TopBar" +msgid "{} new notifications" +msgstr "" + +#: crates/voelin-ui/ui/shells/desktop.slint:219 +msgctxt "TopBar" +msgid "Notifications" +msgstr "" + +#: crates/voelin-ui/ui/shells/desktop.slint:227 +msgctxt "TopBar" +msgid "Members" +msgstr "" + +#: crates/voelin-ui/ui/shells/desktop.slint:243 +msgctxt "TopBar" +msgid "About {}" +msgstr "" + +#: crates/voelin-ui/ui/shells/mobile.slint:82 +msgctxt "PeoplePill" +msgid "{} in voice" +msgstr "" + +#: crates/voelin-ui/ui/shells/mobile.slint:132 +msgctxt "MobileShell" +msgid "Back" +msgstr "" + +#: crates/voelin-ui/ui/shells/mobile.slint:163 +msgctxt "MobileShell" +msgid "Search" +msgstr "" + +#: crates/voelin-ui/ui/shells/mobile.slint:172 +msgctxt "MobileShell" +msgid "Voice channel" +msgstr "" + +#: crates/voelin-ui/ui/shells/mobile.slint:185 +msgctxt "MobileShell" +msgid "Notifications" +msgstr "" + +#: crates/voelin-ui/ui/shells/mobile.slint:203 +#: crates/voelin-ui/ui/shells/mobile.slint:203 +msgctxt "MobileShell" +msgid "Chats" +msgstr "" + +#: crates/voelin-ui/ui/shells/mobile.slint:220 +msgctxt "MobileShell" +msgid "More" +msgstr "" + +#: crates/voelin-ui/ui/shells/mobile.slint:229 +msgctxt "MobileShell" +msgid "Stream Studio" +msgstr "" + +#: crates/voelin-ui/ui/shells/mobile.slint:230 +msgctxt "MobileShell" +msgid "Voice Settings" +msgstr "" + +#: crates/voelin-ui/ui/shells/mobile.slint:231 +#: crates/voelin-ui/ui/shells/mobile.slint:231 +msgctxt "MobileShell" +msgid "Activity" +msgstr "" + +#: crates/voelin-ui/ui/shells/mobile.slint:232 +msgctxt "MobileShell" +msgid "Leave Voice" +msgstr "" + +#: crates/voelin-ui/ui/shells/mobile.slint:260 +msgctxt "MobileShell" +msgid "Navigation" +msgstr "" + +#: crates/voelin-ui/ui/shells/mobile.slint:266 +msgctxt "MobileShell" +msgid "Home" +msgstr "" + +#: crates/voelin-ui/ui/shells/mobile.slint:272 +msgctxt "MobileShell" +msgid "Servers" +msgstr "" + +#: crates/voelin-ui/ui/shells/mobile.slint:293 +msgctxt "MobileShell" +msgid "You" +msgstr "" + +#: crates/voelin-ui/ui/studio-bridge.slint:299 +msgctxt "StudioNav" +msgid "Text" +msgstr "" + +#: crates/voelin-ui/ui/studio-bridge.slint:299 +msgctxt "StudioNav" +msgid "Colour" +msgstr "" + +#: crates/voelin-ui/ui/studio-bridge.slint:299 +msgctxt "StudioNav" +msgid "Image" +msgstr "" + +#: crates/voelin-ui/ui/studio-bridge.slint:300 +msgctxt "StudioNav" +msgid "Your text" +msgstr "" + +#: crates/voelin-ui/ui/studio-window.slint:14 +#: crates/voelin-ui/ui/studio-window.slint:14 +msgctxt "StudioWindow" +msgid "Stream Studio" +msgstr "" + +#: crates/voelin-ui/ui/studio-window.slint:63 +msgctxt "StudioWindow" +msgid "Back into the main window" +msgstr "" + +#: crates/voelin-ui/ui/studio-window.slint:93 +msgctxt "StudioWindow" +msgid "Stream Preview" +msgstr "" + +#: crates/voelin-ui/ui/studio-window.slint:133 +msgctxt "StudioWindow" +msgid "Studio Settings" +msgstr "" diff --git a/crates/voelin-ui/src/app.rs b/crates/voelin-ui/src/app.rs index 27d95b1..67c9776 100644 --- a/crates/voelin-ui/src/app.rs +++ b/crates/voelin-ui/src/app.rs @@ -97,6 +97,9 @@ fn default_secrets() -> Box { #[cfg(not(target_os = "android"))] impl Secrets for FallbackSecrets { fn get(&self, key: &str) -> voelin_store::Result> { + if key.starts_with("myts/") { + return self.keyring.get(key); + } match self.memory.get(key)? { Some(v) => Ok(Some(v)), None => Ok(self.keyring.get(key).unwrap_or(None)), @@ -104,6 +107,9 @@ impl Secrets for FallbackSecrets { } fn set(&self, key: &str, value: &str) -> voelin_store::Result<()> { + if key.starts_with("myts/") { + return self.keyring.set(key, value); + } if let Err(error) = self.keyring.set(key, value) { warn!(%error, "keyring unavailable, keeping the secret for this session only"); return self.memory.set(key, value); @@ -112,6 +118,9 @@ impl Secrets for FallbackSecrets { } fn delete(&self, key: &str) -> voelin_store::Result<()> { + if key.starts_with("myts/") { + return self.keyring.delete(key); + } let _ = self.keyring.delete(key); self.memory.delete(key) } @@ -377,6 +386,10 @@ impl Models { } pub(crate) struct App { + #[cfg(not(target_os = "android"))] + pub runtime: tokio::runtime::Handle, + #[cfg(not(target_os = "android"))] + pub myts: crate::myts::Account, pub ui: slint::Weak, pub store: Store, pub secrets: Box, @@ -616,6 +629,10 @@ pub fn run(options: RunOptions) -> Result<()> { let mut video = Video::new(&dir, settings.openh264); video.set_decoder_preference(decoder_preference(&prefs)); let app = App { + #[cfg(not(target_os = "android"))] + runtime: runtime.clone(), + #[cfg(not(target_os = "android"))] + myts: Default::default(), ui: ui.as_weak(), store, secrets: options.secrets.unwrap_or_else(default_secrets), @@ -671,6 +688,8 @@ pub fn run(options: RunOptions) -> Result<()> { app.refresh_home(); app.refresh_notices(); app.refresh_pages(); + #[cfg(not(target_os = "android"))] + app.start_myts(); if app.demo { app.start_demo(); } @@ -730,16 +749,22 @@ pub fn run(options: RunOptions) -> Result<()> { /// Open a file or folder with the desktop's default application. pub(crate) fn open_path(path: &Path) -> std::io::Result<()> { + let mut child = desktop_opener(path.as_os_str()).spawn()?; + // Reap it without blocking the UI. + std::thread::spawn(move || child.wait()); + Ok(()) +} + +/// Build an argument-based desktop opener; never pass a target through a shell. +pub(crate) fn desktop_opener(target: &std::ffi::OsStr) -> std::process::Command { #[cfg(windows)] let mut command = std::process::Command::new("explorer"); #[cfg(target_os = "macos")] let mut command = std::process::Command::new("open"); #[cfg(not(any(windows, target_os = "macos")))] let mut command = std::process::Command::new("xdg-open"); - let mut child = command.arg(path).spawn()?; - // Reap it without blocking the UI. - std::thread::spawn(move || child.wait()); - Ok(()) + command.arg(target); + command } pub(crate) fn model(items: Vec) -> ModelRc { diff --git a/crates/voelin-ui/src/bind/settings.rs b/crates/voelin-ui/src/bind/settings.rs index d6717a7..078775d 100644 --- a/crates/voelin-ui/src/bind/settings.rs +++ b/crates/voelin-ui/src/bind/settings.rs @@ -6,6 +6,26 @@ use crate::app::{Bridge, MainWindow, with_app}; pub(super) fn wire(ui: &MainWindow) { let bridge = ui.global::(); + #[cfg(not(target_os = "android"))] + { + bridge.on_myts_login(|email, password, otp| { + with_app(|app| { + app.myts_login(email.to_string(), password.to_string(), otp.to_string()) + }); + }); + bridge.on_myts_logout(|| { + with_app(|app| app.myts_logout()); + }); + bridge.on_myts_dismiss(|| { + with_app(|app| app.myts_dismiss()); + }); + bridge.on_myts_retry(|| { + with_app(|app| app.myts_retry()); + }); + bridge.on_myts_portal(|action| { + with_app(|app| app.myts_portal(action)); + }); + } bridge.on_open_settings(|| { with_app(|app| app.open_settings()); }); diff --git a/crates/voelin-ui/src/dev.rs b/crates/voelin-ui/src/dev.rs index c238a23..b2b8ae7 100644 --- a/crates/voelin-ui/src/dev.rs +++ b/crates/voelin-ui/src/dev.rs @@ -168,6 +168,31 @@ pub(crate) fn start(ui: &MainWindow, switches: &Switches) -> Running { for open in &switches.open { let (what, arg) = open.split_once(':').unwrap_or((open.as_str(), "")); match what { + "login" if switches.demo_ui => { + let bridge = ui.global::(); + let mut account = bridge.get_myts(); + account.available = true; + account.prompt = arg != "account"; + if arg == "account" { + account.signed_in = true; + account.username = "Alex Example".into(); + account.email = "alex@example.test".into(); + account.uuid = "00000000-0000-0000-0000-000000000001".into(); + account.myts_id = "AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEB".into(); + account.identity_status = 1; + nav.invoke_open_settings(SettingsSection::Account); + } + account.otp_required = arg == "otp"; + account.can_forget = arg == "saved" || arg == "account"; + account.status = if arg == "otp" { + 3 + } else if arg == "saved" { + 2 + } else { + 0 + }; + bridge.set_myts(account); + } "home" => nav.invoke_show(Page::Home), "server" => nav.invoke_show(Page::Server), "settings" => nav.invoke_open_settings(section(arg)), diff --git a/crates/voelin-ui/src/lib.rs b/crates/voelin-ui/src/lib.rs index 8ea898c..0e8f5b8 100644 --- a/crates/voelin-ui/src/lib.rs +++ b/crates/voelin-ui/src/lib.rs @@ -15,6 +15,8 @@ mod images; mod inbox; mod members; mod messages; +#[cfg(not(target_os = "android"))] +mod myts; mod previews; mod servers; mod settings; diff --git a/crates/voelin-ui/src/myts.rs b/crates/voelin-ui/src/myts.rs new file mode 100644 index 0000000..879a5e3 --- /dev/null +++ b/crates/voelin-ui/src/myts.rs @@ -0,0 +1,710 @@ +//! Desktop account state. Only the UI thread mutates state or persists credentials. +use serde::{Deserialize, Serialize}; +use slint::ComponentHandle; +use std::sync::Arc; +use voelin_myts::{Client, Login, ServerIdentity, SessionToken}; +use voelin_store::Secrets; + +use crate::app::{App, Bridge, MytsForm, later}; + +// One keyring item makes session replacement atomic: a failed write cannot +// combine a new session with another account's renewal material. +const KEY: &str = "myts/session"; + +#[derive(Default, Serialize, Deserialize)] +struct Saved { + session: String, + email: String, + username: String, + #[serde(default)] + uuid: String, + renewal_token: String, + device_id: String, + #[serde(default)] + otp_token: String, + // Private account identity belongs in the same secret-store transaction. + #[serde(default)] + identity: Option, +} + +#[derive(Default)] +pub(crate) struct Account { + saved: Option, + signed_in: bool, + busy: bool, + otp_required: bool, + status: i32, + persistence_status: i32, + generation: u64, + started: bool, + prompt: bool, + // Also set after a failed read/delete so the user can retry clearing. + can_forget: bool, + identity_failed: bool, +} + +impl Account { + fn load(&mut self, secrets: &dyn Secrets) { + match read_saved(secrets) { + Ok(saved) => { + self.saved = saved; + self.can_forget = false; + self.status = 0; + self.persistence_status = 0; + self.identity_failed = false; + } + Err(()) => { + self.can_forget = true; + self.persistence_status = 1; + } + } + } + + fn restored(&mut self) { + self.signed_in = true; + self.prompt = false; + self.otp_required = false; + } + + fn device_for(&self, email: &str) -> (String, String) { + self.saved + .as_ref() + .filter(|s| s.email.eq_ignore_ascii_case(email.trim())) + .map(|s| (s.device_id.clone(), s.otp_token.clone())) + .unwrap_or_default() + } + + fn accept(&mut self, secrets: &dyn Secrets, login: Login, email: String) { + self.identity_failed = login.identity.is_err(); + let (renewal_token, device_id, otp_token) = login + .renewal + .map(|renewal| (renewal.token, renewal.device_id, renewal.otp_token)) + .unwrap_or_default(); + let saved = Saved { + session: login.token.into_inner(), + email, + username: login.username, + uuid: login.uuid, + renewal_token, + device_id, + otp_token, + identity: login.identity.ok(), + }; + self.persistence_status = if save(secrets, &saved) { + 0 + } else { + // Remove an older credential after a replacement failed. Do not + // silently sign back into the previous account on next startup. + let cleared = secrets.delete(KEY).is_ok(); + if cleared { 5 } else { 6 } + }; + self.status = 0; + self.saved = Some(saved); + self.restored(); + } + + fn revocation_failed(&mut self, generation: u64) { + if self.generation == generation && !self.signed_in && !self.busy && !self.can_forget { + self.status = 9; + } + } + fn form(&self) -> MytsForm { + let identity = self.identity(); + MytsForm { + available: true, + prompt: self.prompt, + signed_in: self.signed_in, + email: self.saved.as_ref().map(|s| s.email.as_str()).unwrap_or_default().into(), + username: self.saved.as_ref().map(|s| s.username.as_str()).unwrap_or_default().into(), + uuid: self.saved.as_ref().map(|s| s.uuid.as_str()).unwrap_or_default().into(), + myts_id: identity.map(ServerIdentity::id).unwrap_or_default().into(), + identity_status: if !self.signed_in { + 0 + } else if identity.is_some() { + 1 + } else if self.identity_failed { + 3 + } else { + 2 + }, + status: self.status, + persistence_status: self.persistence_status, + busy: self.busy, + otp_required: self.otp_required, + can_forget: self.can_forget || self.saved.is_some(), + } + } + fn identity(&self) -> Option<&ServerIdentity> { + self.saved.as_ref().filter(|_| self.signed_in).and_then(|s| s.identity.as_ref()) + } + fn begin(&mut self) -> Option { + if self.busy { + return None; + } + self.generation += 1; + self.busy = true; + self.status = 0; + Some(self.generation) + } + + fn finish(&mut self, generation: u64) -> bool { + if self.generation != generation { + return false; + } + self.busy = false; + true + } + + fn forget(&mut self, secrets: &dyn Secrets) -> bool { + self.generation += 1; + self.busy = false; + self.signed_in = false; + self.prompt = true; + self.saved = None; + self.identity_failed = false; + self.otp_required = false; + let cleared = secrets.delete(KEY).is_ok(); + self.persistence_status = if cleared { 0 } else { 8 }; + self.can_forget = !cleared; + cleared + } +} + +fn login_error_status(error: &voelin_myts::Error) -> i32 { + match error.status_code() { + Some(208) => 3, + Some(209) => 14, + Some(203) => 13, + Some(202) => 16, + Some(103 | 206 | 207) => 15, + _ if matches!(error, voelin_myts::Error::Http(429)) => 17, + _ => 4, + } +} + +// Fixed official routes only. Neither the session nor an email goes in a URL. +fn portal_url(action: i32) -> Option<&'static str> { + match action { + 0 => Some("https://www.myteamspeak.com/register"), + 1 => Some("https://www.myteamspeak.com/forgot-password"), + 2 => Some("https://www.myteamspeak.com/my-account"), + 3 => Some("https://www.myteamspeak.com/resend-activation"), + 4 => Some("https://www.myteamspeak.com/my-account/change-username"), + 5 => Some("https://www.myteamspeak.com/my-account/change-email"), + 6 => Some("https://www.myteamspeak.com/my-account/change-password"), + 7 => Some("https://www.myteamspeak.com/my-account/change-2fa"), + 8 => Some("https://www.myteamspeak.com/my-account/manage-account"), + 9 => Some("https://www.myteamspeak.com/my-account/manage-data"), + _ => None, + } +} + +fn read_saved(secrets: &dyn Secrets) -> Result, ()> { + secrets + .get(KEY) + .map_err(|_| ())? + .map(|value| { + let saved: Saved = serde_json::from_str(&value).map_err(|_| ())?; + SessionToken::new(saved.session.clone()).map_err(|_| ())?; + Ok(saved) + }) + .transpose() +} + +fn save(secrets: &dyn Secrets, saved: &Saved) -> bool { + serde_json::to_string(saved).ok().is_some_and(|value| secrets.set(KEY, &value).is_ok()) +} + +impl App { + fn publish_myts_identity(&self) { + self.engine.send(voelin_core::Command::SetMytsIdentity( + self.myts.identity().cloned().map(Arc::new), + )); + } + + pub(crate) fn refresh_myts(&self) { + let Some(ui) = self.ui.upgrade() else { + return; + }; + ui.global::().set_myts(self.myts.form()); + } + + pub(crate) fn start_myts(&mut self) { + if self.myts.started { + return; + } + self.myts.started = true; + if self.demo_ui { + self.refresh_myts(); + return; + } + self.myts.prompt = true; + self.myts_retry(); + } + + pub(crate) fn myts_dismiss(&mut self) { + self.myts.prompt = false; + self.refresh_myts(); + } + + pub(crate) fn myts_portal(&mut self, action: i32) { + let Some(url) = portal_url(action).filter(|_| !self.myts.busy) else { + return; + }; + let generation = self.myts.generation; + self.runtime.spawn(async move { + let opened = tokio::task::spawn_blocking(move || { + crate::app::desktop_opener(std::ffi::OsStr::new(url)) + .status() + .is_ok_and(|status| status.success()) + }) + .await + .unwrap_or(false); + later(move |app| { + if app.myts.generation == generation && !app.myts.busy { + app.myts.status = if opened { 11 } else { 10 }; + app.refresh_myts(); + } + }); + }); + } + + pub(crate) fn myts_retry(&mut self) { + if self.demo_ui || self.myts.busy { + return; + } + if self.myts.saved.is_none() { + self.myts.load(self.secrets.as_ref()); + } + let Some(saved) = self.myts.saved.as_ref() else { + self.refresh_myts(); + return; + }; + let token = SessionToken::new(saved.session.clone()).expect("validated stored token"); + let generation = self.myts.begin().expect("startup is idle"); + self.refresh_myts(); + self.runtime.spawn(async move { + // Password login does not provide the separate auth token required + // by loginWithRenewalToken. Expiry requires a fresh password login. + let result = async { Client::new()?.validate_session(&token).await }.await; + later(move |app| { + if !app.myts.finish(generation) { + return; + } + let was_signed_in = app.myts.signed_in; + match result { + Ok(()) => app.myts.restored(), + Err(error) => { + app.myts.otp_required = + error.is_otp_required() || error.status_code() == Some(209); + app.myts.status = 2; + if error.is_invalid_session() { + app.myts.signed_in = false; + app.myts.status = 15; + } + } + } + if was_signed_in != app.myts.signed_in { + app.publish_myts_identity(); + } + app.refresh_myts(); + }); + }); + } + + pub(crate) fn myts_login(&mut self, email: String, password: String, otp: String) { + if email.trim().is_empty() || password.is_empty() || self.myts.signed_in { + return; + } + let (device, otp_renewal) = self.myts.device_for(&email); + let Some(generation) = self.myts.begin() else { + return; + }; + self.refresh_myts(); + self.runtime.spawn(async move { + let result = async { + Client::new()? + .login_with_otp_renewal( + email.trim(), + &password, + (!otp.is_empty()).then_some(otp.as_str()), + &device, + &otp_renewal, + ) + .await + } + .await; + later(move |app| { + if !app.myts.finish(generation) { + app.discard_myts_login(result.ok()); + return; + } + match result { + Ok(login) => { + app.myts.accept(app.secrets.as_ref(), login, email.trim().to_owned()); + app.publish_myts_identity(); + } + Err(error) => { + app.myts.otp_required = + error.is_otp_required() || error.status_code() == Some(209); + app.myts.status = login_error_status(&error); + } + } + app.refresh_myts(); + }); + }); + } + + // A canceled login can still have created a remote session. Revoke it, + // never publish or save it after a sign-out/replacement. + fn discard_myts_login(&self, login: Option) { + if let Some(login) = login { + let generation = + (!self.myts.busy && !self.myts.signed_in).then_some(self.myts.generation); + self.runtime.spawn(async move { + let result = async { Client::new()?.logout(&login.token).await }.await; + if result.is_err() { + // Static diagnostic: no credential, account, response body or URL. + tracing::warn!("canceled account sign-in session could not be revoked"); + later(move |app| { + if let Some(generation) = generation { + app.myts.revocation_failed(generation); + } + app.refresh_myts(); + }); + } + }); + } + } + + pub(crate) fn myts_logout(&mut self) { + let token = + self.myts.saved.as_ref().and_then(|s| SessionToken::new(s.session.clone()).ok()); + let cleared = self.myts.forget(self.secrets.as_ref()); + self.publish_myts_identity(); + self.myts.status = if cleared { 7 } else { 0 }; + if let Some(token) = token { + let generation = self.myts.generation; + self.myts.busy = true; + self.runtime.spawn(async move { + let result = async { Client::new()?.logout(&token).await }.await; + later(move |app| { + if !app.myts.finish(generation) { + return; + } + if result.is_err() && cleared { + app.myts.status = 9; + } + app.refresh_myts(); + }); + }); + } + self.refresh_myts(); + } +} + +#[cfg(test)] +mod tests { + use super::*; + use voelin_store::MemorySecrets; + + fn login(name: &str) -> Login { + Login { + token: SessionToken::new(format!("{name}-session")).unwrap(), + uuid: format!("{name}-uuid"), + username: name.into(), + identity: Ok(server_identity()), + renewal: Some(voelin_myts::Renewal { + token: format!("{name}-renewal"), + otp_token: format!("{name}-otp"), + device_id: format!("{name}-device"), + }), + } + } + + fn server_identity() -> ServerIdentity { + let mut private = [0; 32]; + private[0] = 1; + let mut public = [0x66; 32]; + public[0] = 0x58; // Compressed Ed25519 basepoint for scalar one. + ServerIdentity::new(vec![1; 33], 1, public, private, vec![2; 65]).unwrap() + } + + #[test] + fn primary_account_persists_restores_after_validation_and_signout_returns_to_login() { + let secrets = MemorySecrets::default(); + let mut account = Account { prompt: true, ..Default::default() }; + account.load(&secrets); + assert!(account.form().prompt); + assert!(!account.form().signed_in); + account.accept(&secrets, login("Alice"), "alice@example.test".into()); + assert!(!account.form().prompt); + assert!(account.form().signed_in); + assert_eq!(account.form().identity_status, 1); + assert!(account.identity().is_some()); + assert_eq!(account.form().uuid, "Alice-uuid"); + let mut restarted = Account { prompt: true, ..Default::default() }; + restarted.load(&secrets); + assert!(restarted.identity().is_none(), "unvalidated cache cannot authenticate servers"); + assert!(!restarted.form().signed_in, "cached profile is not validated yet"); + let generation = restarted.begin().unwrap(); + assert!(restarted.finish(generation)); + restarted.restored(); + assert!(restarted.identity().is_some()); + assert!(!restarted.form().prompt); + assert_eq!(restarted.form().username, "Alice"); + assert!(restarted.forget(&secrets)); + assert!(restarted.form().prompt); + assert_eq!(restarted.form().username, ""); + assert_eq!(restarted.form().uuid, ""); + assert!(!restarted.form().signed_in); + assert!(restarted.identity().is_none()); + assert_eq!(restarted.form().myts_id, ""); + } + + #[test] + fn switching_primary_account_never_reuses_another_accounts_device_material() { + let secrets = MemorySecrets::default(); + let mut account = Account::default(); + account.accept(&secrets, login("Alice"), "alice@example.test".into()); + assert_eq!( + account.device_for(" ALICE@example.test "), + ("Alice-device".into(), "Alice-otp".into()) + ); + assert_eq!(account.device_for("bob@example.test"), Default::default()); + account.forget(&secrets); + assert_eq!(account.device_for("alice@example.test"), Default::default()); + let mut bob = login("Bob"); + bob.renewal = None; + account.accept(&secrets, bob, "bob@example.test".into()); + let saved = read_saved(&secrets).unwrap().unwrap(); + assert_eq!(saved.uuid, "Bob-uuid"); + assert_eq!(saved.email, "bob@example.test"); + assert!(saved.renewal_token.is_empty()); + assert!(saved.otp_token.is_empty()); + assert!(saved.device_id.is_empty()); + } + + #[test] + fn missing_server_key_keeps_login_but_never_reuses_previous_identity() { + let secrets = MemorySecrets::default(); + let mut account = Account::default(); + account.accept(&secrets, login("Alice"), "alice@example.test".into()); + assert!(account.identity().is_some()); + account.forget(&secrets); + let mut bob = login("Bob"); + bob.identity = Err(voelin_myts::IdentityError::Missing); + account.accept(&secrets, bob, "bob@example.test".into()); + assert!(account.signed_in); + assert!(account.identity().is_none()); + assert_eq!(account.form().identity_status, 3); + assert!(account.form().myts_id.is_empty()); + assert!(read_saved(&secrets).unwrap().unwrap().identity.is_none()); + } + + #[test] + fn corrupted_persisted_private_identity_cannot_be_restored() { + let secrets = MemorySecrets::default(); + let mut account = Account::default(); + account.accept(&secrets, login("Alice"), "alice@example.test".into()); + let mut value: serde_json::Value = + serde_json::from_str(&secrets.get(KEY).unwrap().unwrap()).unwrap(); + value["identity"]["private_key"] = serde_json::json!(vec![0u8; 32]); + secrets.set(KEY, &value.to_string()).unwrap(); + assert!(read_saved(&secrets).is_err()); + let mut restored = Account::default(); + restored.load(&secrets); + assert!(restored.identity().is_none()); + assert_eq!(restored.form().persistence_status, 1); + } + + #[test] + fn keyring_retry_and_legacy_bundle_do_not_claim_a_validated_account() { + let secrets = MemorySecrets::default(); + secrets.set(KEY, r#"{"session":"legacy","email":"a@example.test","username":"A","renewal_token":"r","device_id":"d"}"#).unwrap(); + let mut account = Account { prompt: true, ..Default::default() }; + account.load(&Unavailable); + assert_eq!(account.form().persistence_status, 1); + account.load(&secrets); + assert_eq!(account.status, 0); + assert_eq!(account.form().persistence_status, 0); + assert!(!account.can_forget); + assert!(!account.signed_in); + assert!(account.prompt); + assert_eq!(account.form().uuid, ""); + account.restored(); + assert_eq!(account.form().identity_status, 2); + assert!(account.identity().is_none()); + assert_eq!(account.saved.unwrap().otp_token, ""); + } + + #[test] + fn login_survives_keyring_failure_with_visible_session_only_status() { + let mut account = Account { prompt: true, ..Default::default() }; + account.accept(&Unavailable, login("Alice"), "alice@example.test".into()); + assert!(account.signed_in); + assert!(!account.prompt); + assert_eq!(account.form().persistence_status, 6); + assert!(account.form().can_forget); + assert_eq!(account.form().username, "Alice"); + let generation = account.begin().unwrap(); + assert!(account.finish(generation)); + account.restored(); + assert_eq!( + account.form().persistence_status, + 6, + "validation must not hide failed persistence" + ); + account.status = 11; + assert_eq!( + account.form().persistence_status, + 6, + "opening management must retain the warning" + ); + account.forget(&Unavailable); + account.status = 11; + assert_eq!( + account.form().persistence_status, + 8, + "failed deletion must remain visible after browser launch" + ); + account.forget(&MemorySecrets::default()); + assert_eq!(account.form().persistence_status, 0); + } + + #[test] + fn portal_actions_are_fixed_official_https_destinations() { + for action in 0..10 { + let url = portal_url(action).unwrap(); + assert!(url.starts_with("https://www.myteamspeak.com/")); + assert!(!url.contains(['?', '#', '@'])); + } + assert!(portal_url(-1).is_none()); + assert!(portal_url(10).is_none()); + assert_eq!(portal_url(1), Some("https://www.myteamspeak.com/forgot-password")); + assert_eq!(login_error_status(&voelin_myts::Error::Http(429)), 17); + assert_eq!(login_error_status(&voelin_myts::Error::Timeout), 4); + } + + #[test] + fn failed_late_session_revocation_reports_signed_out_without_overwriting_new_login() { + let mut account = Account::default(); + let old = account.begin().unwrap(); + account.forget(&MemorySecrets::default()); + assert!(!account.finish(old)); + let signed_out = account.generation; + account.revocation_failed(signed_out); + assert_eq!(account.status, 9); + let new = account.begin().unwrap(); + account.revocation_failed(signed_out); + account.revocation_failed(new); + assert_eq!(account.status, 0); + assert!(account.busy); + account.finish(new); + account.signed_in = true; + account.revocation_failed(new); + assert_eq!(account.status, 0); + } + + #[test] + fn form_exposes_signed_out_busy_otp_and_signed_in_states_without_tokens() { + let mut account = Account::default(); + assert!(account.form().available); + assert!(!account.form().signed_in); + assert!(!account.form().can_forget); + let generation = account.begin().unwrap(); + assert!(account.form().busy); + account.finish(generation); + account.otp_required = true; + account.status = 3; + assert!(account.form().otp_required); + assert_eq!(account.form().status, 3); + account.saved = Some(Saved { + session: "secret session".into(), + email: "a@example.test".into(), + username: "Name".into(), + ..Default::default() + }); + account.signed_in = true; + account.otp_required = false; + let form = account.form(); + assert!(form.signed_in); + assert!(form.can_forget); + assert_eq!(form.username, "Name"); + assert_eq!(form.email, "a@example.test"); + assert!(!form.otp_required); + } + + #[test] + fn persistence_roundtrip_and_logout_delete_all_material() { + let secrets = MemorySecrets::default(); + let saved = Saved { + session: "session".into(), + email: "email".into(), + renewal_token: "renewal".into(), + device_id: "device".into(), + username: "name".into(), + otp_token: "otp renewal".into(), + uuid: "account-uuid".into(), + identity: Some(server_identity()), + }; + assert!(save(&secrets, &saved)); + let loaded = read_saved(&secrets).unwrap().unwrap(); + assert_eq!(loaded.session, "session"); + assert_eq!(loaded.renewal_token, "renewal"); + assert_eq!(loaded.email, "email"); + assert_eq!(loaded.identity.unwrap().id(), server_identity().id()); + let loaded = read_saved(&secrets).unwrap().unwrap(); + let mut account = Account { saved: Some(loaded), signed_in: true, ..Default::default() }; + assert!(account.forget(&secrets)); + assert!(read_saved(&secrets).unwrap().is_none()); + assert!(!account.signed_in); + } + + #[test] + fn single_operation_and_logout_prevent_stale_resurrection() { + let mut account = Account::default(); + let generation = account.begin().unwrap(); + assert!(account.begin().is_none()); + account.forget(&MemorySecrets::default()); + assert!(!account.finish(generation)); + let replacement = account.begin().unwrap(); + assert!(!account.finish(generation)); + assert!(account.busy); + assert!(account.finish(replacement)); + } + + struct Unavailable; + impl Secrets for Unavailable { + fn get(&self, _: &str) -> voelin_store::Result> { + Err(voelin_store::Error::Secrets("locked".into())) + } + fn set(&self, _: &str, _: &str) -> voelin_store::Result<()> { + Err(voelin_store::Error::Secrets("locked".into())) + } + fn delete(&self, _: &str) -> voelin_store::Result<()> { + Err(voelin_store::Error::Secrets("locked".into())) + } + } + + #[test] + fn keyring_failure_is_visible_and_logout_still_clears_memory() { + assert!(read_saved(&Unavailable).is_err()); + assert!(!save(&Unavailable, &Saved::default())); + let mut account = + Account { saved: Some(Saved::default()), signed_in: true, ..Default::default() }; + assert!(!account.forget(&Unavailable)); + assert!(account.saved.is_none()); + assert!(!account.signed_in); + assert!(account.can_forget); + } + + #[test] + fn malformed_or_empty_session_is_not_used() { + let secrets = MemorySecrets::default(); + secrets.set(KEY, "broken").unwrap(); + assert!(read_saved(&secrets).is_err()); + assert!(save(&secrets, &Saved::default())); + assert!(read_saved(&secrets).is_err()); + } +} diff --git a/crates/voelin-ui/src/servers.rs b/crates/voelin-ui/src/servers.rs index f362e5f..996ced1 100644 --- a/crates/voelin-ui/src/servers.rs +++ b/crates/voelin-ui/src/servers.rs @@ -99,6 +99,15 @@ impl App { return; } let mut options = VoiceOptions::new(&b.address, &b.nickname); + if let Some(spec) = &b.client_version { + match voelin_core::versions::resolve(spec) { + Ok(version) => options.client_version = version, + Err(error) => { + self.set_status(format!("Invalid client compatibility version: {error}")); + return; + } + } + } options.identity = Some(self.identity_for(Some(b.id))); options.server_password = self.secrets.get(&b.server_password_key()).ok().flatten(); options.channel = channel; diff --git a/crates/voelin-ui/ui/app.slint b/crates/voelin-ui/ui/app.slint index 26a3b0e..49cb367 100644 --- a/crates/voelin-ui/ui/app.slint +++ b/crates/voelin-ui/ui/app.slint @@ -9,6 +9,7 @@ import "assets/fonts/Inter-Bold.ttf"; import "assets/fonts/Inter-Italic.ttf"; import { Palette } from "std-widgets.slint"; +import { LoginPage } from "screens/account.slint"; import { Theme } from "theme.slint"; import { Icons } from "icons.slint"; import { Bridge } from "bridge.slint"; @@ -112,7 +113,7 @@ export component MainWindow inherits Window { keys := FocusScope { // Ctrl+K: search. capture-key-pressed(event) => { - if event.modifiers.control && (event.text == "k" || event.text == "K") && root.chrome { + if event.modifiers.control && (event.text == "k" || event.text == "K") && root.chrome && !Bridge.myts.prompt { Nav.open-search(""); return accept; } @@ -125,9 +126,11 @@ export component MainWindow inherits Window { padding-right: root.safe-area-insets.right; padding-bottom: max(root.safe-area-insets.bottom, root.keyboard-inset); - if !root.chrome: StreamViewer { } + if Bridge.myts.prompt: LoginPage { } - if !Nav.narrow && root.chrome: DesktopShell { + if !Bridge.myts.prompt && !root.chrome: StreamViewer { } + + if !Bridge.myts.prompt && !Nav.narrow && root.chrome: DesktopShell { context: Nav.page == Page.settings ? @tr("Settings") : Nav.page == Page.studio ? @tr("Stream Studio") : ""; if Nav.page == Page.home: Sidebar { HomeNav { } @@ -213,7 +216,7 @@ export component MainWindow inherits Window { } } - if Nav.narrow && root.chrome: MobileShell { + if !Bridge.myts.prompt && Nav.narrow && root.chrome: MobileShell { title: Nav.page == Page.settings ? @tr("Settings") : Nav.page == Page.friends ? @tr("Friends") : Nav.page == Page.messages ? @tr("Messages") @@ -283,11 +286,12 @@ export component MainWindow inherits Window { x: (parent.width - self.width) / 2; y: parent.height - self.height - (Nav.narrow ? 140px : 96px); text: Bridge.status-text; + visible: self.shown && !Bridge.myts.prompt; widest: min(560px, parent.width - 32px); } // The member card of the members panel, over everything. - if Bridge.member-card.open: Rectangle { + if !Bridge.myts.prompt && (Bridge.member-card.open): Rectangle { TouchArea { clicked => { Bridge.open-member(-1); } } @@ -297,7 +301,7 @@ export component MainWindow inherits Window { } } - if Nav.emoji-open: Rectangle { + if !Bridge.myts.prompt && (Nav.emoji-open): Rectangle { // Clicks outside the picker close it. TouchArea { clicked => { Nav.emoji-open = false; } @@ -323,7 +327,7 @@ export component MainWindow inherits Window { } // The bell's panel, under the bell (the phone: the whole width). - if Nav.notifications-open: Rectangle { + if !Bridge.myts.prompt && (Nav.notifications-open): Rectangle { TouchArea { clicked => { Nav.notifications-open = false; } } @@ -335,39 +339,39 @@ export component MainWindow inherits Window { } } - if Nav.search-open: SearchPalette { } + if !Bridge.myts.prompt && (Nav.search-open): SearchPalette { } - if Nav.lightbox-open: Lightbox { } + if !Bridge.myts.prompt && (Nav.lightbox-open): Lightbox { } - if Nav.event-form-open: EventDialog { + if !Bridge.myts.prompt && (Nav.event-form-open): EventDialog { form <=> Nav.event-form; done => { Nav.event-form-open = false; } } - if Nav.offline-form-open: OfflineDialog { + if !Bridge.myts.prompt && (Nav.offline-form-open): OfflineDialog { done => { Nav.offline-form-open = false; } } - if Nav.topic-form-open: TopicDialog { + if !Bridge.myts.prompt && (Nav.topic-form-open): TopicDialog { done => { Nav.topic-form-open = false; } } - if Nav.bookmark-open: BookmarkDialog { + if !Bridge.myts.prompt && (Nav.bookmark-open): BookmarkDialog { form <=> Nav.bookmark-form; join: Nav.join-open; done => { Nav.bookmark-open = false; } } - if Nav.share-open: ShareDialog { + if !Bridge.myts.prompt && (Nav.share-open): ShareDialog { form <=> Nav.share-form; done => { Nav.share-open = false; } } - if Nav.client-open: ClientAudioDialog { + if !Bridge.myts.prompt && (Nav.client-open): ClientAudioDialog { done => { Nav.client-open = false; } } - if Nav.about-open: AboutDialog { + if !Bridge.myts.prompt && (Nav.about-open): AboutDialog { done => { Nav.about-open = false; } } } diff --git a/crates/voelin-ui/ui/bridge.slint b/crates/voelin-ui/ui/bridge.slint index 50fc209..46a8784 100644 --- a/crates/voelin-ui/ui/bridge.slint +++ b/crates/voelin-ui/ui/bridge.slint @@ -748,6 +748,22 @@ export struct AdvancedForm { } // Who we are (My Account page). +export struct MytsForm { + prompt: bool, + uuid: string, + myts-id: string, + identity-status: int, + available: bool, + signed_in: bool, + email: string, + username: string, + status: int, + persistence-status: int, + busy: bool, + otp_required: bool, + can_forget: bool, +} + export struct AccountForm { nickname: string, identity: string, @@ -1063,6 +1079,13 @@ export global Bridge { // Settings pages: a section was shown (its data is loaded then). callback settings-section(int); in property account; + in property myts; + in property primary-name: myts.signed-in ? (myts.username != "" ? myts.username : myts.email) : nickname != "" ? nickname : app-name; + callback myts-dismiss(); + callback myts-retry(); + callback myts-portal(int); + callback myts-login(string, string, string); + callback myts-logout(); in property <[IdentityItem]> identities; in property <[string]> identity-names; in property <[BookmarkIdentity]> bookmark-identities; diff --git a/crates/voelin-ui/ui/screens/account.slint b/crates/voelin-ui/ui/screens/account.slint new file mode 100644 index 0000000..0e3b3a1 --- /dev/null +++ b/crates/voelin-ui/ui/screens/account.slint @@ -0,0 +1,204 @@ +// Shared account form for first launch and Settings → My Account. +import { Theme } from "../theme.slint"; +import { Icons } from "../icons.slint"; +import { Bridge } from "../bridge.slint"; +import { Button, TextField, Field, Card, ScrollView } from "../components/index.slint"; + +component Note inherits Text { + // Keep wrapped account copy in the card’s layout bounds. + min-height: self.preferred-height; + color: Theme.text-secondary; + font-size: Theme.font-sm; + wrap: word-wrap; +} + +component LoginForm inherits VerticalLayout { + spacing: Theme.space-3; + property otp-text; + function submit() { + if !Bridge.myts.busy && email.text != "" && password.text != "" && (!Bridge.myts.otp-required || otp-text != "") { + Bridge.myts-login(email.text, password.text, otp-text); + password.clear(); + otp-text = ""; + } + } + Field { + label: @tr("Email"); + email := TextField { + text: Bridge.myts.email; + placeholder: @tr("Email"); + enabled: !Bridge.myts.busy; + accepted(_) => { root.submit(); } + } + } + Field { + label: @tr("Password"); + password := TextField { + placeholder: @tr("Password"); + input-type: InputType.password; + enabled: !Bridge.myts.busy; + accepted(_) => { root.submit(); } + } + } + if Bridge.myts.otp-required: Field { + label: @tr("One-time code"); + TextField { + text <=> root.otp-text; + placeholder: @tr("One-time code"); + input-type: InputType.password; + enabled: !Bridge.myts.busy; + accepted(_) => { root.submit(); } + } + } + Button { + text: @tr("Sign in"); + enabled: !Bridge.myts.busy && email.text != "" && password.text != "" && (!Bridge.myts.otp-required || root.otp-text != ""); + clicked => { root.submit(); } + } + Button { + text: @tr("Create account in browser"); + enabled: !Bridge.myts.busy; + clicked => { Bridge.myts-portal(0); } + } + Button { + text: @tr("Forgot password?"); + enabled: !Bridge.myts.busy; + clicked => { Bridge.myts-portal(1); } + } + Note { text: @tr("Registration and password recovery open the official myTeamSpeak website. Return here to sign in when finished."); } +} + +export component AccountCard inherits Card { + title: @tr("myTeamSpeak"); + icon: Icons.user; + property account-status: Bridge.myts.status == 2 ? @tr("Saved session could not be validated. Your saved credentials were retained; sign in again or clear them.") : + Bridge.myts.status == 3 ? @tr("Enter your password again and the one-time code.") : + Bridge.myts.status == 4 ? @tr("Sign-in failed. Check your credentials and connection; the experimental service may be unavailable.") : + Bridge.myts.status == 7 ? @tr("Signed out.") : + Bridge.myts.status == 9 ? @tr("Signed out and saved credentials cleared. Remote session revocation failed.") : + Bridge.myts.status == 10 ? @tr("Could not open your browser. Visit myteamspeak.com to manage your account.") : + Bridge.myts.status == 11 ? @tr("Account website opened in your browser. When finished, return here and sign in again to apply changes.") : + Bridge.myts.status == 13 ? @tr("Your email address has not been verified. Activate your account using the link in your email, or request a new activation email.") : + Bridge.myts.status == 14 ? @tr("The one-time code was not accepted. Enter your password and a new code.") : + Bridge.myts.status == 15 ? @tr("Your saved session has expired. Sign in again.") : + Bridge.myts.status == 16 ? @tr("Email or password was not accepted. Check your details and try again.") : + Bridge.myts.status == 17 ? @tr("Too many requests. Wait a while before trying again.") : ""; + if !Bridge.myts.available: Note { text: @tr("Account sign-in is available on desktop."); } + if Bridge.myts.available && !Bridge.myts.signed-in: LoginForm { } + if Bridge.myts.signed-in: VerticalLayout { + spacing: Theme.space-3; + Note { text: @tr("Primary account"); } + Text { + text: Bridge.primary-name; + color: Theme.text; + font-size: Theme.font-lg; + font-weight: Theme.weight-semibold; + wrap: word-wrap; + } + Note { text: Bridge.myts.email; } + if Bridge.myts.uuid != "": Field { + label: @tr("Account ID"); + TextField { + text: Bridge.myts.uuid; + read-only: true; + label: @tr("Account ID"); + } + } + if Bridge.myts.myts-id != "": Field { + label: @tr("myTS ID"); + TextField { + text: Bridge.myts.myts-id; + read-only: true; + label: @tr("myTS ID"); + } + } + if Bridge.myts.identity-status == 1: Note { + text: @tr("Your account identity is available for authentication on voice servers."); + } + if Bridge.myts.identity-status == 2: Note { + text: @tr("Sign out and sign in with your password to enable your myTS ID on voice servers."); + } + if Bridge.myts.identity-status == 3: Note { + text: @tr("Signed in, but the account identity could not be unlocked. Voice servers will not receive your myTS ID. Try signing in again; older account encryption may be unsupported."); + } + Note { text: @tr("This is your main app profile. Server identities and server nicknames are managed separately."); } + Note { text: @tr("Account management opens the official website. Check which account is signed in there. Sign in again here after making changes."); } + Button { + text: @tr("Manage account in browser"); + enabled: !Bridge.myts.busy; + clicked => { Bridge.myts-portal(2); } + } + for action in [ + { text: @tr("Change username"), portal: 4 }, + { text: @tr("Change email"), portal: 5 }, + { text: @tr("Change password"), portal: 6 }, + { text: @tr("Two-factor authentication"), portal: 7 }, + { text: @tr("Manage account deletion"), portal: 8 }, + { text: @tr("Export account data"), portal: 9 }, + ]: Button { + text: action.text; + small: true; + enabled: !Bridge.myts.busy; + clicked => { Bridge.myts-portal(action.portal); } + } + } + if Bridge.myts.busy: Note { text: @tr("Contacting account service…"); } + if root.account-status != "": Note { text: root.account-status; } + if Bridge.myts.persistence-status == 1: Note { + text: @tr("Saved account credentials could not be read. Unlock the keyring or clear the saved session."); + } + if Bridge.myts.persistence-status == 5: Note { + text: @tr("Account credentials could not be saved. This session will not be restored after restarting."); + } + if Bridge.myts.persistence-status == 6: Note { + text: @tr("Account credentials could not be saved, and older credentials could not be removed. Unlock your keyring and clear the saved session."); + } + if Bridge.myts.persistence-status == 8: Note { + text: @tr("Signed out locally, but saved credentials could not be removed. Unlock your keyring and clear the saved session again."); + } + if Bridge.myts.status == 13: Button { + text: @tr("Resend activation email in browser"); + enabled: !Bridge.myts.busy; + clicked => { Bridge.myts-portal(3); } + } + if Bridge.myts.can-forget && !Bridge.myts.busy: Button { + text: Bridge.myts.signed-in ? @tr("Check session") : @tr("Retry saved session"); + clicked => { Bridge.myts-retry(); } + } + if Bridge.myts.can-forget || Bridge.myts.busy: Button { + text: Bridge.myts.busy ? @tr("Cancel and clear session") : Bridge.myts.signed-in ? @tr("Sign out") : @tr("Clear saved session"); + clicked => { Bridge.myts-logout(); } + } +} + +export component LoginPage inherits ScrollView { + VerticalLayout { + width: root.visible-width; + padding: Theme.space-4; + spacing: Theme.space-5; + alignment: start; + HorizontalLayout { + Rectangle { horizontal-stretch: 1; } + VerticalLayout { + max-width: 480px; + horizontal-stretch: 1; + spacing: Theme.space-4; + Text { + text: @tr("Welcome to {}", Bridge.app-name); + color: Theme.text; + font-size: Theme.font-xl; + font-weight: Theme.weight-semibold; + wrap: word-wrap; + } + Note { text: @tr("Sign in to make your myTeamSpeak account your main profile."); } + AccountCard { } + Button { + text: @tr("Continue without an account"); + clicked => { Bridge.myts-dismiss(); } + } + Note { text: @tr("You can connect to servers without an account and sign in later in Settings → My Account."); } + } + Rectangle { horizontal-stretch: 1; } + } + } +} diff --git a/crates/voelin-ui/ui/screens/mobile.slint b/crates/voelin-ui/ui/screens/mobile.slint index 50f9c23..4341649 100644 --- a/crates/voelin-ui/ui/screens/mobile.slint +++ b/crates/voelin-ui/ui/screens/mobile.slint @@ -141,7 +141,8 @@ export component YouPage inherits ScrollView { alignment: center; horizontal-stretch: 1; Text { - text: Bridge.nickname != "" ? Bridge.nickname : Bridge.app-name; + text: Bridge.primary-name; + overflow: elide; color: Theme.text; font-size: Theme.font-lg; font-weight: Theme.weight-semibold; diff --git a/crates/voelin-ui/ui/screens/settings-pages.slint b/crates/voelin-ui/ui/screens/settings-pages.slint index 40ed831..1ea5053 100644 --- a/crates/voelin-ui/ui/screens/settings-pages.slint +++ b/crates/voelin-ui/ui/screens/settings-pages.slint @@ -3,6 +3,7 @@ // (encoding, SRTP, history, cache, logs, every setting); and the rows the // sections share. +import { AccountCard } from "account.slint"; import { Theme } from "../theme.slint"; import { Icons } from "../icons.slint"; import { Bridge, IdentityItem, LayerItem, AudioSourceItem, ConfigItem, PermItem, SettingItem, EncoderItem } from "../bridge.slint"; @@ -168,6 +169,7 @@ component CopyField inherits Field { export component AccountSection inherits VerticalLayout { alignment: start; spacing: Theme.space-5; + AccountCard { } Card { title: @tr("Identity in use"); icon: Icons.id-card; @@ -219,21 +221,6 @@ export component AccountSection inherits VerticalLayout { text: @tr("Servers know you by this id: your groups and permissions belong to it. Your nickname is set per server, in the server's bookmark."); } } - Card { - title: @tr("myTeamSpeak"); - icon: Icons.info; - Hint { - text: @tr("{} does not sign in to myTeamSpeak, TeamSpeak's account service: it has no public API, and its terms do not allow using the private one. To use identities synchronised there, sign in once with the official client, then import them under Profiles: they are read from its settings, never written.", Bridge.app-name); - } - HorizontalLayout { - alignment: start; - Button { - icon: Icons.download; - text: @tr("Import identities"); - clicked => { Nav.open-settings(SettingsSection.profiles); } - } - } - } } // Use as default, export, delete. diff --git a/crates/voelin-ui/ui/screens/settings.slint b/crates/voelin-ui/ui/screens/settings.slint index 9fb9128..68357b0 100644 --- a/crates/voelin-ui/ui/screens/settings.slint +++ b/crates/voelin-ui/ui/screens/settings.slint @@ -1136,7 +1136,7 @@ export component SettingsPage inherits Rectangle { : s == SettingsSection.keybinds ? @tr("How your voice goes out, and the keys for it.") : s == SettingsSection.streaming ? @tr("Defaults of your streams, their layers and their sound.") : s == SettingsSection.privacy ? @tr("Who can reach you, blocked people, what the app keeps.") - : s == SettingsSection.account ? @tr("Who servers see when you connect.") + : s == SettingsSection.account ? @tr("Your main account and server identity.") : s == SettingsSection.profiles ? @tr("Your identities: each is a unique id on every server.") : s == SettingsSection.devices ? @tr("Microphones, speakers, cameras and screens.") : s == SettingsSection.notifications ? @tr("What the bell and the desktop tell you.") diff --git a/crates/voelin-ui/ui/shells/common.slint b/crates/voelin-ui/ui/shells/common.slint index 4020dfc..a521657 100644 --- a/crates/voelin-ui/ui/shells/common.slint +++ b/crates/voelin-ui/ui/shells/common.slint @@ -164,7 +164,7 @@ export component VoiceButtons inherits HorizontalLayout { } } -// Who we are on the current server, and the voice buttons. +// The primary app profile, with current server voice status and controls. export component UserCard inherits Rectangle { min-height: 60px; border-radius: Theme.radius-lg; @@ -179,9 +179,9 @@ export component UserCard inherits Rectangle { alignment: center; Avatar { size: 38px; - initials: Bridge.nickname != "" ? "" : "?"; + initials: Bridge.myts.signed-in || Bridge.nickname != "" ? "" : "?"; tint: Theme.accent; - label: Bridge.nickname; + label: Bridge.primary-name; // Green ring while our voice goes out. speaking: Bridge.transmitting; status: Bridge.voice-connected ? Status.online : Bridge.observing ? Status.info : Status.offline; @@ -189,7 +189,7 @@ export component UserCard inherits Rectangle { source: Icons.user; size: 20px; tint: #ffffff; - visible: Bridge.nickname != ""; + visible: Bridge.myts.signed-in || Bridge.nickname != ""; } } } @@ -197,7 +197,7 @@ export component UserCard inherits Rectangle { alignment: center; horizontal-stretch: 1; Text { - text: Bridge.nickname != "" ? Bridge.nickname : Bridge.app-name; + text: Bridge.primary-name; color: Theme.text; font-weight: Theme.weight-semibold; overflow: elide; diff --git a/docs/i18n.md b/docs/i18n.md index 5eb0161..63965ce 100644 --- a/docs/i18n.md +++ b/docs/i18n.md @@ -1,9 +1,11 @@ # Translations -The UI is translated with Slint's gettext-based translations: strings in +The UI uses Slint's gettext-based translation markers: strings in `.slint` files are marked with `@tr(...)`, extracted into a `.pot` template, -translated in `.po` files, and **compiled into the binary** (Slint's bundled -translations). Nothing is loaded at runtime, so there is no dependency on +translated in `.po` files, and can be **compiled into the binary** (Slint's bundled +translations). The repository currently has a `.pot` template but no `.po` +translations; bundled translations are not enabled yet. Nothing needs to be +loaded at runtime, so there is no dependency on GNU gettext (LGPL) and it works the same on Linux, Windows and Android. ## Marking strings @@ -68,7 +70,9 @@ MSYS2 or Git for Windows' bundled tools). ```sh # 1. Extract the template after changing strings -slint-tr-extractor --package-name voelin-ui crates/voelin-ui/ui/*.slint -o crates/voelin-ui/lang/voelin-ui.pot +mkdir -p crates/voelin-ui/lang +rg --files crates/voelin-ui/ui -g '*.slint' | sort | \ + xargs slint-tr-extractor --package-name voelin-ui -o crates/voelin-ui/lang/voelin-ui.pot # 2. Update every translation (new strings empty, changed ones fuzzy) for po in crates/voelin-ui/lang/*/LC_MESSAGES/voelin-ui.po; do @@ -91,7 +95,8 @@ translatable yet. ## Bundling and language selection -`crates/voelin-ui/build.rs` compiles the translations into the binary: +Once the first `.po` translation exists, configure `crates/voelin-ui/build.rs` +to compile translations into the binary: ```rust slint_build::compile_with_config( diff --git a/docs/identity.md b/docs/identity.md index a4f0ec9..59324b0 100644 --- a/docs/identity.md +++ b/docs/identity.md @@ -10,6 +10,12 @@ private key.** Voelin can import identities from the official clients so that switching does not mean starting over, and export them back so they are never trapped here. +The myTeamSpeak account has a separate signing identity. After password sign-in, +Voelin can authenticate its `myTS ID` on voice servers without replacing the +P-256 identity that owns server permissions. The primary account applies to all +voice connections and is cleared on sign-out. See +[the account protocol notes](research/myteamspeak.md#authenticated-account-identity-on-voice-servers). + ## The unique ids Both generations derive the unique id from `omega`, the base64 of the DER @@ -232,10 +238,14 @@ the repository. Every fixture in the tests is generated by and import that. - **The other `ProtobufItems` item types.** Bookmarks, connection profiles and server lists are not imported. Only identities are. -- **myTeamSpeak sign-in.** There is no public API and the terms forbid the - non-public ones, so identities synchronised only to a myTeamSpeak account and - not present locally cannot be fetched. Sign in with the official client once - so it writes them to `settings.db`, then import from there. +- **myTeamSpeak identity synchronisation.** Desktop My Account supports an + experimental account session, but does not fetch cloud identities or decrypt + account backups. Sign in with the official client once so it writes the + identities to `settings.db`, then import from there. See + [research/myteamspeak.md](research/myteamspeak.md) for the account client's + verification scope, session renewal, and cloud-sync limitations. The signed-in + account is the main app profile; server identities and bookmark nicknames are + independent. - **Writing back to the official clients.** Voelin only reads them. Use the `.ini` export and the client's own import. - **Bringing the nickname's history along.** Only the key pair and the diff --git a/docs/research/myteamspeak.md b/docs/research/myteamspeak.md index 8987e74..7cbb3dc 100644 --- a/docs/research/myteamspeak.md +++ b/docs/research/myteamspeak.md @@ -1,21 +1,234 @@ # myTeamSpeak -## Conclusion: out of scope +## Desktop account sessions myTeamSpeak is TeamSpeak's account service: it holds the user's identities, bookmarks and settings server-side so the official clients can synchronise -them. Voelin does **not** sign in to it. +them. Voelin opens a login page at desktop startup and makes the signed-in +myTeamSpeak account the main app profile. The same form lives in Settings → +My Account. Native login, OTP, saved-session validation and sign-out use +`voelin-myts`; registration, password recovery and account management open the +official website in the default browser. -There is no public API for it. The endpoints the official client uses are not -documented for third parties, and TeamSpeak's terms of service do not permit -using non-public ones. So there is nothing to implement here that could be -maintained, and nothing that would be allowed. This file exists so the question -is not re-researched. +This reverses the previous decision to leave account sign-in out of scope, at +the repository owner's request. The API remains non-public. This integration +does not establish permission to use or redistribute TeamSpeak's private API +or schemas. -What the user gets instead: sign in with the official client once, so that it -writes the synchronised identities into its local `settings.db`, then -`voelinctl identity import` reads them from there. See -[../identity.md](../identity.md). +Registration, activation-email resend, password recovery, username/email/password +changes, two-factor authentication, deletion and data export are available through +named browser actions. The website may be signed in to a different account; +Voelin does not transfer credentials to it. After completing a change, sign out +and back in to Voelin to refresh the profile. + +Native cloud synchronization and recovery-key restoration are not implemented. +The app does not synchronize identities, bookmarks or settings, or create +account encryption and backup keys. Password login can decrypt an existing +version-2 account key to authenticate the account on voice servers (below). +To import cloud identities, sign in with the official client +so they are written to its local `settings.db`, then use the existing identity +import. See [../identity.md](../identity.md). + +### Transport and verification boundary + +The implementation consumes the message types, session status checks and wire +codec from the local `schema-api` snapshot in `third_party/schema-api`. Its +generated tonic gRPC clients are not used: the official clients use custom +protobuf-over-HTTP with `Content-Type: application/ts3cloud` at +`https://clientapi.myteamspeak.com`. + +Requests contain a one-byte method-name length, the method name, and then the +protobuf payload. For login this is `05 6c 6f 67 69 6e` followed by `LoginData`. +Responses contain the protobuf alone. The live service labels these binary +responses `application/json`; decoding still uses protobuf and requires the +operation's explicit success status. Login uses `/authentication`; session +validation and deletion use `/session`. + +`Client::login` accepts the user's password and derives the wire credential: +standard Base64 of PBKDF2-HMAC-SHA512 with 10,000 iterations, 48 output bytes, +and salt `ASCII_lowercase(email) + "ts3Login" + password`. The derivation runs +on Tokio's blocking pool. It reuses `base64` and `pbkdf2` already present in +the workspace dependency graph; no new cryptographic implementation is added. + +These details replace the initial guessed header and raw-password handling. +On 2026-10-04, an owner-authorized live login, session validation, and logout +passed. Ordinary tests remain offline and use synthetic credentials. Live OTP +and expired-session renewal have not been verified. + +Static evidence from the installed clients (ELF virtual addresses): + +- TS3 request framing: `0x14a19dd`–`0x14a1a49`; password salt and iterations: + `0x1152b60`–`0x1152c24`; 48-byte derivation: `0x1154920`; SHA-512 selection: + `0x11e35af` and descriptor table `0x1b4a930`. Executable SHA-256: + `87c9b6927949d28c64e9da21fdf62bdf7a9e5b204597e9f75497ff6ee45be8ac`. +- TS6 request framing: `0x1dfd4e1`–`0x1dfd54c`; response decoding: + `0x1dfddcb`–`0x1dfde0b`. Executable SHA-256: + `9a32215a578a14525ec43f5e6f60aae087c0229c1b60487da235e3b3782cd40a`. + +The renewal request has separate `renewal_token` and `auth_token` fields. +The official TS3 client requires both cached values before renewing +(`0x1143d81`–`0x1143dba`). Password login supplies no auth token, so an expired +password-login session requires fresh sign-in. The client API rejects missing +renewal credentials before making a request. It does not silently create the +separate shareable authentication token used by the official client's +sharing/import flow. + +A saved OTP renewal token is used only with the same account's device ID in a +password login; an explicit one-time code takes precedence. Both are replaced +with the next successful response and cleared on sign-out. The installed TS6 +serializer at `0x1cbed20`–`0x1cbefc1` independently confirms the email/password/OTP/ +device/OTP-renewal fields. Live OTP and token rotation remain unverified. + +Passwords and one-time codes are not persisted. Session and renewal material +are stored together as a single `myts/session` item through the app's secret +store, never in plaintext settings. Replacing one item prevents a partial write +from mixing credentials from different accounts. The bundle also stores the +account UUID, username and email, with backward-compatible defaults for older +bundles. Startup validates a saved session before showing its profile as signed +in. A valid session closes the login page; errors leave retry and manual sign-in +available. Transport failures retain saved credentials. A locked keyring can be +retried without restarting. Continue without an account dismisses the prompt +for the current run and leaves server features available. + +Sign-out returns to login, clears local account material and attempts remote +session deletion; storage or remote errors are reported. A late completion +cannot sign a canceled operation back in. Server identities and bookmark +nicknames remain independent of the primary app profile. + +### Authenticated account identity on voice servers + +The account UUID is a profile identifier, not the authenticated `myTS ID`. +Password login unwraps the account's encrypted root key, then the account's +private signing scalar. The key pair is checked before it becomes usable. +The validated identity is stored with the session in the secret store; it is +not published to voice sessions until saved-session validation succeeds. +Older saved sessions need a fresh password sign-in to obtain this identity. +Missing, unsupported or invalid identity data leaves account login usable and +shows an explicit warning that voice servers will not receive a myTS ID. + +The established version-2 format uses: + +- PBKDF2-HMAC-SHA512, 10,000 iterations, 32 bytes, with salt + `ASCII_lowercase(email) + "ts3Encryption" + password`. +- Root wrapping: `02 || tag16 || nonce12 || ciphertext32`, AES-256-GCM + with empty associated data. +- Private-key wrapping: `iv16 || ciphertext32 || SHA512(plaintext32)`, + AES-256-CTR with a little-endian 128-bit counter. The digest and matching + public key must verify. Version-1 root wrapping is explicitly unsupported. + +The existing transport's connection challenge is +`SHA256(30 08 00 00 00 00 || shared_iv64) || "MyTeamSpeakID"`. +Signing uses the raw account scalar, not Ed25519 seed expansion. The public +proof sends `myTeamspeakId`, `acTime`, `userPubKey`, `authSign`, `pubSign` and +`pubSignCert` on `clientinit`; the last two split `public_signature` at byte 64. +The HTTP response's numeric creation timestamp is byte-swapped once for the +voice protocol's decimal `acTime`. The provider public signature covers +`public_key32 || wire_acTime.to_le_bytes() || myTS_ID33`. +Neither the account UUID nor `mytsid_user_cert.cert` substitutes for these fields. +Private key material never belongs in a packet. + +The main account is shared by all voice connections. Each new connection signs +its own challenge. Account changes cancel an unfinished handshake; connected +clients send `updatemytsid`, and logout sends an empty myTS ID. Rejected or +unanswered account updates disconnect rather than retaining a previous account +association. Cloud avatar retrieval is outside this branch. + +Static TS3 evidence in the binary identified above: proof helper `0x1018580`, +`clientinit` invocation `0x1020c3b`, live update `0x1049659`, scalar signing +`0x1196800`, password KDF `0x1152cf0`, version-2 unwrap `0x11542d0`, GCM +layout `0x1155610`, and private-key integrity check `0x1153280`. +The login-to-storage timestamp swap is at `0x110b57c`; the server's public +signature payload is built at `0x1222da`–`0x12260d` in the pinned TS3 server. +Independent synthetic crypto vectors and malformed/tampered key tests cover +the local implementation. The ignored `voelin-core/tests/myts_live.rs` test +requires explicit account opt-in and caller-owned loopback servers; it checks +server-side identity association, clearing, reattachment, and fresh handshakes. + +On 2026-10-04, owner-authorized live password login, authenticated key unwrap, +session validation and remote session deletion passed. Isolated official TS3 +3.13.8 and TS6 6.0.0-beta13.1 servers each accepted two fresh signed handshakes, +reported the expected `client_myteamspeak_id`, and passed live clear/reattach +checks. Both reported the native Linux compatibility tuple and Voelin metadata. +The test servers needed a container-local DNS override to a working address +for `ts3services.teamspeak.com` before their official revocation-list downloads +succeeded; TLS and signature/revocation checks remained enabled. No server +override is part of the application. + +Official-client visual inspection remains unverified: isolated TS3 3.6.2 +crashed before showing its UI; isolated TS6 started but required account +confirmation before reaching the server view. No existing client profile was +changed. GUI checks of Voelin's account fields passed at desktop and narrow +sizes using synthetic account data. + +### Client reporting + +The voice engine chooses an unchanged signed compatibility tuple for the +actual operating system. A bookmark's explicit compatibility-version override +is honored and validated. `client_meta_data` identifies `Voelin`, its package +version and native OS. The CLI uses the same catalogue and native default. +TeamSpeak signs compatibility versions: replacing the signed version with an +arbitrary `Voelin` string is not supported. Metadata does not establish that +stock clients display Voelin in their standard version label. + +An account change during an automatic transport reconnect cancels that voice +session to prevent stale credentials from being sent. Reconnect manually in +that case; ordinary connected account changes use the live update command. + +The vendored crate has no declared license. Its provenance is recorded in +`third_party/schema-api/VOELIN-PATCH.md`; no license grant is inferred from its +presence. Runtime dependency notices are generated normally. + +### Official account-management routes + +Read-only inspection on 2026-10-04 verified these routes in the deployed +[main bundle](https://www.myteamspeak.com/main.a0429db5055b28c1.js) and +[account-management bundle](https://www.myteamspeak.com/933.0799f055321e36e9.js): + +| Action | Official route | +| --- | --- | +| Registration | `https://www.myteamspeak.com/register` | +| Password recovery | `https://www.myteamspeak.com/forgot-password` | +| Activation email | `https://www.myteamspeak.com/resend-activation` | +| Account overview | `https://www.myteamspeak.com/my-account` | +| Username / email / password | `/my-account/change-username`, `/my-account/change-email`, `/my-account/change-password` | +| Two-factor authentication | `/my-account/change-2fa` | +| Deletion / data export | `/my-account/manage-account`, `/my-account/manage-data` | + +The site's authentication guard preserves the requested destination. Its +[registration](https://www.myteamspeak.com/5.dcb40731983490af.js) and +[password recovery](https://www.myteamspeak.com/252.5c94d1e115160e7d.js) flows +use reCAPTCHA. Password changes rewrap encryption-key material, and deletion +requires a separate confirmation. Browser handoff retains those provider-owned +steps. Only fixed HTTPS URLs are passed as desktop-opener arguments; no shell, +email, password or token is included. Opening a page does not submit a change. +These are website-source findings, not a published native API guarantee. + +### Local verification + +```sh +cargo test -p voelin-myts +cargo test -p voelin-ui --lib myts::tests +cargo build -p voelin-myts -p voelin-ui +cargo clippy $(scripts/own-crates.sh) --all-targets --no-deps -- -D warnings +cargo fmt $(scripts/own-crates.sh) --check +scripts/notices.sh --check +``` + +The HTTP tests use loopback mock servers and synthetic credentials. UI tests +cover the secret-store bundle, failed reads/writes/deletes, form states, +concurrent operations, primary-account replacement, legacy-bundle migration, +remembered-device ownership and late completions after sign-out. Screenshot +fixtures use `VOELIN_DEMO_UI=1` and `VOELIN_OPEN=login`, `login:otp`, +`login:saved` or `login:account`; they never read the keyring. The formatting +command excludes vendored sources; `cargo fmt --all` also traverses local path +dependencies and reports upstream formatting differences. Clippy's `--no-deps` +also keeps diagnostics out of the existing vendored protocol crates. + +The ignored `owner_live_login_validate_logout` test requires the owner to set +`VOELIN_MYTS_LIVE=1`, `VOELIN_MYTS_EMAIL`, `VOELIN_MYTS_PASSWORD`, +`VOELIN_MYTS_DEVICE_ID`, and optionally `VOELIN_MYTS_OTP`, then explicitly run +`cargo test -p voelin-myts owner_live_login_validate_logout -- --ignored`. +This test is not part of the offline verification commands above. ## The local record, structurally diff --git a/docs/ui.md b/docs/ui.md index 6d739a6..12d8f42 100644 --- a/docs/ui.md +++ b/docs/ui.md @@ -177,7 +177,7 @@ Settings sections (`settings:
`): | Section | Holds | |---|---| -| `account` | The identity in use (nickname, TeamSpeak 3 and 6 unique ids, security level) and why there is no myTeamSpeak sign-in | +| `account` | The identity in use (nickname, TeamSpeak 3 and 6 unique ids, security level); on desktop, the primary myTeamSpeak profile, login/OTP, session status, sign-out and official browser account-management actions | | `profiles` (also `identities`) | Identities with where they came from: rename, use as default (the store's default, `Store::set_default_identity`), export as a TeamSpeak 3 .ini, delete, raise the security level on every core; the import of the official clients' identities on start (`identity.import_from_teamspeak`) and by hand from their settings and .ini files (key material is never shown); the identity per server | | `appearance` | Theme, text size, the phone layout's width, the image cache | | `voice` | Microphone (device, test, level, noise suppression, echo cancellation, automatic gain), output (device, test sound, volume), streaming permissions, camera (device, preview with the background effect), video settings (resolution, frame rate 15 to 320 fps, codec, hardware acceleration, mirror), stream quality presets (Auto, 720p to 8K) with free bitrate entry (slider up to 60 Mbit/s, empty: automatic) and the upload it takes | @@ -189,8 +189,20 @@ Settings sections (`settings:
`): | `integrations` | The gateways of our servers with their features, and their administration for admins (configuration keys, permission rules); FFmpeg, the video encoders and decoders, what works and why not | | `advanced` | Encoder and decoder, hardware acceleration and decoding, SRTP profiles, chat history, cache, transfers, logs and crash reports, and every setting by its key as JSON | -Every control reads and writes `voelin_core::settings` and applies at -once; numbers are typed freely next to the presets. +Settings controls read and write `voelin_core::settings` and apply at once; +numbers are typed freely next to the presets. + +Desktop startup shows the shared myTeamSpeak login page until a saved session +is validated, a login succeeds, or the user chooses Continue without an account. +The signed-in username/email becomes the primary app profile in the desktop +user card and mobile You page; it does not replace server identities or bookmark +nicknames. Settings → My Account reuses the form, supports retry/OTP/sign-out, +and opens official browser flows for registration, activation, recovery and +account management. Account and renewal material live only in the keyring; +passwords and one-time codes are cleared after submission. Expired sessions +require fresh sign-in because password login supplies no renewal auth token. +See [research/myteamspeak.md](research/myteamspeak.md) for protocol evidence +and remaining cloud-sync limitations. ## The Stream Studio diff --git a/scripts/notices.sh b/scripts/notices.sh index 6152643..7aa2f2a 100755 --- a/scripts/notices.sh +++ b/scripts/notices.sh @@ -47,6 +47,10 @@ if grep -E "WARN|ERROR" "$tmp/log" >&2; then exit 1 fi cat about-assets.md >>"$tmp/$OUT" +# Some upstream license texts contain trailing spaces. Keep the generated +# Markdown clean without changing the words of those notices. +sed 's/[[:blank:]]*$//' "$tmp/$OUT" >"$tmp/normalized" +mv "$tmp/normalized" "$tmp/$OUT" if $check; then if ! diff -u "$OUT" "$tmp/$OUT" >"$tmp/diff"; then diff --git a/tools/voelinctl/src/session.rs b/tools/voelinctl/src/session.rs index 99cb9fa..6b627f4 100644 --- a/tools/voelinctl/src/session.rs +++ b/tools/voelinctl/src/session.rs @@ -19,12 +19,13 @@ use tsproto_packets::packets::{Direction, Flags, OutCommand, PacketType}; use crate::{Action, ChatTarget, ConnectArgs, identity, tree, versions}; pub async fn run(args: ConnectArgs) -> Result<()> { + let version = + versions::resolve(&args.client_version)?.map_or_else(versions::native_version, Ok)?; let mut options = Connection::build(args.address.clone()) .name(args.nick.clone()) + .version(version) + .metadata(versions::client_metadata()) .log_commands(args.log_commands); - if let Some(version) = versions::resolve(&args.client_version)? { - options = options.version(version); - } if let Some(path) = &args.identity { options = options.identity(identity::load(path)?); } diff --git a/tools/voelinctl/src/versions.rs b/tools/voelinctl/src/versions.rs index 698f628..8353b24 100644 --- a/tools/voelinctl/src/versions.rs +++ b/tools/voelinctl/src/versions.rs @@ -1,101 +1,3 @@ -//! Known signed client versions. -//! -//! `clientinit` must carry a `client_version_sign` produced by TeamSpeak's -//! private key, so a client can only claim versions from this list of captured -//! signatures (the `Versions.csv` declaration file). +//! Shared signed client versions and CLI argument resolution. -use anyhow::{Context, Result, bail}; -use base64::prelude::*; -use tsclientlib::Version; - -const VERSIONS_CSV: &str = - include_str!("../../../crates/proto/tsproto-structs/declarations/Versions.csv"); - -#[derive(Clone, Debug, PartialEq, Eq)] -pub struct KnownVersion { - pub version: String, - pub platform: String, - pub signature: String, -} - -impl KnownVersion { - pub fn to_version(&self) -> Result { - let signature = BASE64_STANDARD - .decode(&self.signature) - .with_context(|| format!("invalid signature for {}@{}", self.platform, self.version))?; - Ok(Version::Custom { - platform: self.platform.clone(), - version: self.version.clone(), - signature, - }) - } -} - -pub fn known_versions() -> Vec { - VERSIONS_CSV - .lines() - .skip(1) - .filter(|l| !l.trim().is_empty()) - .filter_map(|l| { - // The version string contains no commas, the signature is base64. - let mut parts = l.splitn(3, ','); - Some(KnownVersion { - version: parts.next()?.to_string(), - platform: parts.next()?.to_string(), - signature: parts.next()?.trim().to_string(), - }) - }) - .collect() -} - -/// Resolve a `--client-version` argument. -/// -/// Accepts `default` (the library default), an index into [`known_versions`], -/// or `@` with the exact strings from `voelinctl versions`. -pub fn resolve(spec: &str) -> Result> { - if spec == "default" { - return Ok(None); - } - let versions = known_versions(); - if let Ok(i) = spec.parse::() { - let Some(v) = versions.get(i) else { - bail!("version index {i} out of range (0..{})", versions.len()); - }; - return v.to_version().map(Some); - } - let Some((platform, version)) = spec.split_once('@') else { - bail!("expected `default`, an index or `@`, got {spec:?}"); - }; - match versions.iter().find(|v| v.platform == platform && v.version == version) { - Some(v) => v.to_version().map(Some), - None => bail!("unknown client version {spec:?}, see `voelinctl versions`"), - } -} - -#[cfg(test)] -mod tests { - use super::*; - - #[test] - fn parses_all_rows() { - let versions = known_versions(); - assert!(versions.len() > 50); - for v in &versions { - let signature = BASE64_STANDARD.decode(&v.signature).unwrap(); - assert_eq!(signature.len(), 64, "{v:?}"); - } - } - - #[test] - fn resolves_specs() { - assert!(resolve("default").unwrap().is_none()); - let by_index = resolve("0").unwrap().unwrap(); - let first = &known_versions()[0]; - let by_name = resolve(&format!("{}@{}", first.platform, first.version)).unwrap().unwrap(); - assert_eq!(by_index, by_name); - assert_eq!(by_name.get_platform(), first.platform); - assert!(resolve("Nope@1.0").is_err()); - assert!(resolve("100000").is_err()); - assert!(resolve("garbage").is_err()); - } -} +pub use voelin_core::versions::{client_metadata, known_versions, native_version, resolve};