Compare commits

..
Author SHA1 Message Date
MoepchiandClaude Opus 5.5 882265beae Send file transfers in 192 KiB pieces instead of one message
A whole file used to cross the gateway as a single base64 line, which
readline, JSON.parse and JSON.stringify each copied: over 100 MB of heap
for one 25 MB download. Two parallel downloads ran the gateway out of
memory on 2026-10-11.

Downloads now arrive as fileDownloadChunk events that the web client
joins back together. Uploads go out as uploadFileChunk pieces when the
gateway announces "chunkedUpload"; older gateways still get the single
uploadFile message, and the gateway keeps accepting it from cached
clients.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-10-11 14:59:07 +00:00
MoepchiandClaude Opus 5.5 0aefd4198b ci: add a link preview card to Bluesky release posts
The Bluesky app builds the card itself when a link is pasted, the API
doesn't. Uses GitHub's social preview image for the release page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-10-07 18:46:00 +00:00
MoepchiandClaude Opus 5.5 3a91a8db07 ci: announce releases on Bluesky
Posts the first paragraph of the release notes plus the link. Notes with
<!-- no-social --> are skipped; a manual run defaults to a dry run that only
logs in and prints the post.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-10-07 18:05:55 +00:00
rex2630andClaude Opus 5.5 51d7e107e5 i18n: add Czech translation (#14)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-10-07 19:25:04 +02:00
MoepchiandClaude Opus 5.5 1e71e43bd7 fix(web): only reset the reconnect backoff after a stable connection
On a flaky network every successful reconnect reset the backoff to 1 s,
so a connection that kept dropping after a few seconds made each tab
reconnect every few seconds. The backoff now starts over only once a
connection held for 30 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-10-07 17:04:06 +00:00
12 changed files with 1081 additions and 51 deletions

No files matched your search

+126
View File
@@ -0,0 +1,126 @@
"""Post a short release announcement to Bluesky.
Reads the release (tag, url, body) as JSON from stdin, e.g. from
`gh release view <tag> --json tagName,url,body`. The post is the first
paragraph of the release notes plus the link and a preview card. Notes containing
<!-- no-social --> are skipped. DRY_RUN=true logs in (if credentials are set)
and prints the post without publishing it.
"""
import json
import os
import re
import sys
import time
import urllib.error
import urllib.request
from datetime import datetime, timezone
BLUESKY_LIMIT = 300
def build_post(release: dict) -> str | None:
body = release.get("body") or ""
if "<!-- no-social -->" in body:
return None
summary = body.strip().split("\n\n")[0].strip()
if summary.startswith("#"):
summary = ""
summary = re.sub(r"\[([^\]]+)\]\([^)]+\)", r"\1", summary)
summary = " ".join(re.sub(r"[`*_]", "", summary).split())
head = f"WebSpeak3 {release['tagName']}"
tail = f"\n\n{release['url']}"
room = BLUESKY_LIMIT - len(head) - len(tail) - 2
if len(summary) > room:
# Prefer dropping whole sentences over cutting one off mid-word.
cut = summary[:room].rfind(". ")
summary = summary[: cut + 1] if cut > 0 else summary[: room - 1].rstrip() + "…"
return f"{head}: {summary}{tail}" if summary else head + tail
def xrpc(method: str, payload: dict | bytes, token: str | None = None, content_type: str = "application/json") -> dict:
req = urllib.request.Request(
f"https://bsky.social/xrpc/{method}",
data=payload if isinstance(payload, bytes) else json.dumps(payload).encode(),
headers={"Content-Type": content_type, **({"Authorization": f"Bearer {token}"} if token else {})},
)
with urllib.request.urlopen(req, timeout=30) as res:
return json.load(res)
def fetch(url: str, retries: int = 2) -> tuple[bytes, str]:
req = urllib.request.Request(url, headers={"User-Agent": "webspeak3-release-announcer"})
try:
with urllib.request.urlopen(req, timeout=30) as res:
return res.read(), res.headers.get_content_type()
except urllib.error.HTTPError as err:
if err.code != 429 or not retries: # GitHub's image service throttles bursts now and then
raise
time.sleep(10)
return fetch(url, retries - 1)
def link_card(release: dict, text: str) -> dict:
"""The preview card the Bluesky app would show for a pasted link. The API doesn't build one itself.
The image is GitHub's own social preview for the release page. Its URL takes any cache-busting
segment, so we don't have to scrape the release page (GitHub rate-limits that)."""
url = release["url"]
card = {"uri": url, "title": f"WebSpeak3 {release['tagName']}",
"description": text.split("\n\n")[0].split(": ", 1)[-1]}
path = url.removeprefix("https://github.com/")
image, mime = fetch(f"https://opengraph.githubassets.com/{release['tagName']}/{path}")
if len(image) <= 1_000_000: # Bluesky's blob limit for thumbnails
card["image"] = (image, mime)
return card
def main() -> None:
release = json.load(sys.stdin)
text = build_post(release)
if text is None:
print("Release notes contain <!-- no-social -->, skipping.")
return
print(text)
url = release["url"]
try:
card = link_card(release, text)
print(f"Link card: {card['title']} (image: {len(card['image'][0]) if 'image' in card else 'none'} bytes)")
except Exception as err: # a missing preview shouldn't cost us the post
print(f"No link card: {err}")
card = None
dry_run = os.environ.get("DRY_RUN") == "true"
handle, password = os.environ.get("BLUESKY_HANDLE"), os.environ.get("BLUESKY_APP_PASSWORD")
if not password:
sys.exit(0 if dry_run else "BLUESKY_APP_PASSWORD is not set.")
session = xrpc("com.atproto.server.createSession", {"identifier": handle, "password": password})
print(f"Logged in as {session['handle']}.")
if dry_run:
print("Dry run, not posting.")
return
# Bluesky doesn't auto-link URLs in API posts; the link needs a facet with UTF-8 byte offsets.
start = len(text[: text.rindex(url)].encode())
record = {
"$type": "app.bsky.feed.post",
"text": text,
"langs": ["en"],
"createdAt": datetime.now(timezone.utc).isoformat().replace("+00:00", "Z"),
"facets": [{
"index": {"byteStart": start, "byteEnd": start + len(url.encode())},
"features": [{"$type": "app.bsky.richtext.facet#link", "uri": url}],
}],
}
if card:
external = {"uri": card["uri"], "title": card["title"], "description": card["description"]}
if "image" in card:
image, mime = card["image"]
external["thumb"] = xrpc("com.atproto.repo.uploadBlob", image, session["accessJwt"], mime)["blob"]
record["embed"] = {"$type": "app.bsky.embed.external", "external": external}
post = xrpc("com.atproto.repo.createRecord",
{"repo": session["did"], "collection": "app.bsky.feed.post", "record": record},
session["accessJwt"])
print(f"Posted: {post['uri']}")
if __name__ == "__main__":
main()
+39
View File
@@ -0,0 +1,39 @@
name: Announce release
on:
release:
types: [published]
workflow_dispatch:
inputs:
tag:
description: Release tag to announce
required: true
dry_run:
description: Only log in and print the post, don't publish it
type: boolean
default: true
permissions:
contents: read
jobs:
bluesky:
name: Post to Bluesky
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Check out repository
uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5
- name: Post release
# Tag passed via env, never spliced into the script (user-controlled text).
env:
GH_TOKEN: ${{ github.token }}
TAG: ${{ github.event.release.tag_name || inputs.tag }}
DRY_RUN: ${{ inputs.dry_run && 'true' || 'false' }}
BLUESKY_HANDLE: moepchi.bsky.social
BLUESKY_APP_PASSWORD: ${{ secrets.BLUESKY_APP_PASSWORD }}
run: |
gh release view "$TAG" -R "$GITHUB_REPOSITORY" --json tagName,url,body \
| python3 .github/scripts/announce-release.py
+147 -18
View File
@@ -37,6 +37,16 @@ use tsproto_packets::packets::{AudioData, CodecType, Direction, Flags, OutAudio,
const FRAME_SAMPLES: usize = 960;
/// Upper bound for a file download relayed to the browser (see its use).
const MAX_DOWNLOAD_BYTES: u64 = 25 << 20;
/// Uploads are capped the same way, independent of what the browser checks.
const MAX_UPLOAD_BYTES: u64 = 24 << 20;
/// File transfers cross the gateway in pieces of this size (raw bytes, a
/// multiple of 3 so the base64 pieces can simply be concatenated). One huge
/// line per file made the Node gateway hold several copies of it at once and
/// run out of heap (2026-10-11).
const TRANSFER_CHUNK_BYTES: usize = 192 << 10;
/// Half-received chunked uploads per connection - each can hold up to
/// MAX_UPLOAD_BYTES until it completes.
const MAX_PARTIAL_UPLOADS: usize = 4;
const MAX_ICON_BYTES: u64 = 512 << 10;
/// Avatars are fetched for everyone in the user's channel without asking;
/// TS3 servers default to a 300 KiB avatar size limit.
@@ -385,12 +395,11 @@ enum Event {
/// Reply to a "ftlist" request - one channel/path's directory listing.
#[serde(rename = "fileList")]
FileList { cid: u64, path: String, entries: Vec<FileListEntry> },
/// A requested file download finished; `data` is the full file content,
/// base64-encoded. Whole files are buffered in memory and sent as one
/// event rather than streamed incrementally - fine for the file sizes a
/// TS3 channel filebase realistically holds, not meant for huge transfers.
#[serde(rename = "fileDownloadData")]
FileDownloadData { cid: u64, path: String, data: String },
/// One piece of a requested file download, base64-encoded. `offset` is
/// the raw byte offset of this piece (0 starts a new download), `done`
/// marks the last one. Pieces arrive in order.
#[serde(rename = "fileDownloadChunk")]
FileDownloadChunk { cid: u64, path: String, offset: u64, data: String, done: bool },
/// A requested file upload finished successfully.
#[serde(rename = "fileUploadDone")]
FileUploadDone { cid: u64, path: String },
@@ -489,6 +498,54 @@ struct FileListEntry {
timestamp: String,
}
/// Handles one `ftuploadchunk <cid>\t<offset>\t<total>\t<path>\t<base64>`
/// line. Pieces come in order; offset 0 starts an upload. Returns the complete
/// file once the piece that reaches <total> has arrived.
fn take_upload_chunk(
partials: &mut HashMap<(u64, String), (u64, Vec<u8>)>,
rest: &str,
) -> Result<Option<(u64, String, Vec<u8>)>, String> {
let mut parts: Vec<&str> = rest.splitn(5, '\t').collect();
// The stdin loop trims each line, which eats the trailing tab of an empty piece.
if parts.len() == 4 {
parts.push("");
}
let [cid, offset, total, path, data] = parts.as_slice() else {
return Err("Invalid ftuploadchunk args".into());
};
let (Ok(cid), Ok(offset), Ok(total), Ok(bytes)) = (
cid.trim().parse::<u64>(),
offset.trim().parse::<u64>(),
total.trim().parse::<u64>(),
base64::engine::general_purpose::STANDARD.decode(data.trim()),
) else {
return Err("Invalid ftuploadchunk args".into());
};
let key = (cid, path.to_string());
if offset == 0 {
if total > MAX_UPLOAD_BYTES {
return Err(format!("Upload refused: {path} is larger than {} KiB", MAX_UPLOAD_BYTES >> 10));
}
if !partials.contains_key(&key) && partials.len() >= MAX_PARTIAL_UPLOADS {
return Err("Too many uploads at once".into());
}
partials.insert(key.clone(), (total, Vec::with_capacity(total as usize)));
}
let Some((expected, buf)) = partials.get_mut(&key) else {
return Err(format!("Upload failed: {path} has no upload in progress"));
};
if buf.len() as u64 != offset || *expected != total || offset + bytes.len() as u64 > total {
partials.remove(&key);
return Err(format!("Upload failed: {path} arrived out of order"));
}
buf.extend_from_slice(&bytes);
if (buf.len() as u64) < total {
return Ok(None);
}
let (_, bytes) = partials.remove(&key).expect("present, checked above");
Ok(Some((cid, key.1, bytes)))
}
fn emit(event: &Event) {
println!("{}", serde_json::to_string(event).unwrap());
}
@@ -1056,6 +1113,8 @@ async fn run(args: Args) -> Result<()> {
// request that stream belongs to.
let mut pending_downloads: HashMap<u16, (u64, String)> = HashMap::new();
let mut pending_uploads: HashMap<u16, (u64, String, Vec<u8>)> = HashMap::new();
// Chunked uploads still arriving from the browser: (cid, path) -> (total size, bytes so far).
let mut partial_uploads: HashMap<(u64, String), (u64, Vec<u8>)> = HashMap::new();
// Set by "permissionlist" while waiting to emit the full permission
// catalog (name-resolution reuses the same permission_names cache/fetch
// as "permoverview" above).
@@ -2178,6 +2237,19 @@ async fn run(args: Args) -> Result<()> {
}
_ => emit(&Event::Error { message: "Invalid ftupload args".into() }),
}
} else if let Some(rest) = l.strip_prefix("ftuploadchunk ") {
match take_upload_chunk(&mut partial_uploads, rest) {
Ok(Some((cid, path, bytes))) => {
match con.upload_file(ChannelId(cid), &path, None, bytes.len() as u64, true, false) {
Ok(handle) => {
pending_uploads.insert(handle.0, (cid, path, bytes));
}
Err(e) => emit(&Event::Error { message: format!("Upload failed: {e}") }),
}
}
Ok(None) => {}
Err(message) => emit(&Event::Error { message }),
}
} else if l == "permissionlist" {
if pending_permission_list {
// A catalog fetch is already in flight (triggered by an
@@ -2973,9 +3045,9 @@ async fn run(args: Args) -> Result<()> {
// file does not stall channel switches, chat, etc. while in flight;
// emit() is just a println! under the hood, so it is safe to call
// from a spawned task even while the main loop is emitting too.
// Everything is buffered and then sent as one base64 JSON line,
// so cap it - a server could otherwise announce (or just send)
// gigabytes and take the whole gateway host's memory with it.
// It goes out in TRANSFER_CHUNK_BYTES pieces but the browser
// still assembles the whole file, so cap it - a server could
// otherwise announce (or just send) gigabytes.
let stream = result.stream;
let announced_size = result.size;
// Group/server icons are fetched automatically, without the user
@@ -2992,16 +3064,42 @@ async fn run(args: Args) -> Result<()> {
});
return;
}
let mut buf = Vec::new();
match stream.take(limit + 1).read_to_end(&mut buf).await {
Ok(_) if buf.len() as u64 > limit => emit(&Event::Error {
message: format!("Download aborted: {path} is larger than {} KiB", limit >> 10),
}),
Ok(_) => {
let data = base64::engine::general_purpose::STANDARD.encode(&buf);
emit(&Event::FileDownloadData { cid, path, data });
let mut stream = stream.take(limit + 1);
let mut buf = vec![0u8; TRANSFER_CHUNK_BYTES];
let mut offset = 0u64;
loop {
// Fill the whole chunk (or hit EOF) so every piece but the
// last is exactly TRANSFER_CHUNK_BYTES - see its comment.
let mut filled = 0;
let read = loop {
match stream.read(&mut buf[filled..]).await {
Ok(0) => break Ok(()),
Ok(n) => {
filled += n;
if filled == buf.len() {
break Ok(());
}
}
Err(e) => break Err(e),
}
};
if let Err(e) = read {
emit(&Event::Error { message: format!("Download failed: {e}") });
return;
}
Err(e) => emit(&Event::Error { message: format!("Download failed: {e}") }),
if offset + filled as u64 > limit {
emit(&Event::Error {
message: format!("Download aborted: {path} is larger than {} KiB", limit >> 10),
});
return;
}
let done = filled < buf.len();
let data = base64::engine::general_purpose::STANDARD.encode(&buf[..filled]);
emit(&Event::FileDownloadChunk { cid, path: path.clone(), offset, data, done });
if done {
return;
}
offset += filled as u64;
}
});
}
@@ -3083,3 +3181,34 @@ async fn run(args: Args) -> Result<()> {
Ok(())
}
#[cfg(test)]
mod tests {
use super::*;
fn chunk(offset: u64, total: u64, data: &[u8]) -> String {
format!("7\t{offset}\t{total}\t/a b.txt\t{}", base64::engine::general_purpose::STANDARD.encode(data))
}
#[test]
fn upload_chunks_assemble_in_order_and_reject_gaps() {
let mut partials = HashMap::new();
assert_eq!(take_upload_chunk(&mut partials, &chunk(0, 5, b"abc")), Ok(None));
assert_eq!(
take_upload_chunk(&mut partials, &chunk(3, 5, b"de")),
Ok(Some((7, "/a b.txt".to_string(), b"abcde".to_vec())))
);
assert!(partials.is_empty());
take_upload_chunk(&mut partials, &chunk(0, 5, b"abc")).unwrap();
assert!(take_upload_chunk(&mut partials, &chunk(4, 5, b"e")).is_err());
assert!(partials.is_empty(), "a gap drops the upload");
assert!(take_upload_chunk(&mut partials, &chunk(0, MAX_UPLOAD_BYTES + 1, b"a")).is_err());
// An empty file's only piece reaches us with its trailing tab trimmed off.
assert_eq!(
take_upload_chunk(&mut partials, chunk(0, 0, b"").trim_end()),
Ok(Some((7, "/a b.txt".to_string(), Vec::new())))
);
}
}
+10 -4
View File
@@ -100,9 +100,11 @@ const connectionsPerIp = new Map<string, number>();
const CONNECT_RATE_LIMIT = Number(process.env.CONNECT_RATE_LIMIT ?? 30);
const isConnectRateLimited = createRateLimiter(CONNECT_RATE_LIMIT, 60_000);
// Largest single WS message: file uploads travel base64-encoded inside one,
// so this is ~4/3 of the biggest uploadable file (see MAX_UPLOAD_BYTES in
// web/src/App.tsx). ws's own default is 100 MiB.
// Largest single WS message. Uploads now arrive in small "uploadFileChunk"
// pieces; this size only stays for browsers still running a client from
// before that, which send the whole file base64-encoded in one "uploadFile"
// message (~4/3 of MAX_UPLOAD_BYTES in web/src/App.tsx). ws's own default is
// 100 MiB.
const WS_MAX_PAYLOAD = 34 * 1024 * 1024;
const PORT = Number(process.env.PORT ?? 8080);
@@ -118,7 +120,7 @@ const WEB_DIST = process.env.WEB_DIST ?? path.resolve(__dirname, "../../web/dist
const SERVE_STATIC = process.env.WEB_STATIC !== "0";
// Sent to every browser in the "hello" message on socket open; see there.
const GATEWAY_FEATURES = ["clientVolume", "keepalive"];
const GATEWAY_FEATURES = ["clientVolume", "keepalive", "chunkedUpload"];
// Optional TURN relay for screen streams, also handed out in "hello". With
// TURN_SECRET (coturn's use-auth-secret) every socket gets its own credential,
@@ -994,6 +996,10 @@ wss.on("connection", (socket: WebSocket, req: IncomingMessage) => {
await connection?.uploadFile(msg.channelId, msg.path, msg.dataBase64);
break;
}
case "uploadFileChunk": {
await connection?.uploadFileChunk(msg.channelId, msg.path, msg.offset, msg.total, msg.data);
break;
}
case "getPermissionCatalog": {
await connection?.getPermissionCatalog();
break;
+13 -2
View File
@@ -205,7 +205,7 @@ export type Ts3ConnectionEvent =
| { type: "serverGroupList"; entries: GroupEntry[] }
| { type: "permissionOverview"; entries: PermissionOverviewEntry[] }
| { type: "fileList"; cid: number; path: string; entries: FileListEntry[] }
| { type: "fileDownloadData"; cid: number; path: string; data: string }
| { type: "fileDownloadChunk"; cid: number; path: string; offset: number; data: string; done: boolean }
| { type: "fileUploadDone"; cid: number; path: string }
| { type: "permList"; scope: PermScope; id1: number; id2: number | null; entries: PermissionOverviewEntry[] }
| { type: "permissionCatalog"; entries: PermissionCatalogEntry[] }
@@ -451,7 +451,7 @@ export class Ts3Connection {
entries: { name: string; description: string; value: number; negated: boolean; skip: boolean }[];
}
| { type: "fileList"; cid: number; path: string; entries: FileListEntry[] }
| { type: "fileDownloadData"; cid: number; path: string; data: string }
| { type: "fileDownloadChunk"; cid: number; path: string; offset: number; data: string; done: boolean }
| { type: "fileUploadDone"; cid: number; path: string }
| { type: "permList"; scope: PermScope; id1: number; id2: number | null; entries: PermissionOverviewEntry[] }
| { type: "permissionCatalog"; entries: PermissionCatalogEntry[] }
@@ -824,6 +824,17 @@ export class Ts3Connection {
this.writeLine(`ftupload ${channelId}\t${sanitizedPath}\t${dataBase64}`);
}
/** One piece of a chunked upload (see "chunkedUpload" in GATEWAY_FEATURES).
* Pieces must arrive in order; offset 0 starts the upload and the piece
* that reaches `total` sends it. Keeps every message small, unlike
* uploadFile above, which only stays for clients from before the split. */
async uploadFileChunk(channelId: number, path: string, offset: number, total: number, dataBase64: string): Promise<void> {
if (![channelId, offset, total].every(Number.isSafeInteger)) return;
if (typeof dataBase64 !== "string" || !/^[A-Za-z0-9+/]*={0,2}$/.test(dataBase64)) return;
const sanitizedPath = path.replace(/[\r\n\t]+/g, " ").trim();
this.writeLine(`ftuploadchunk ${channelId}\t${offset}\t${total}\t${sanitizedPath}\t${dataBase64}`);
}
async sendChatMessage(message: string): Promise<void> {
const sanitized = message.replace(/[\r\n]+/g, " ").trim();
if (sanitized) this.writeLine(`chat ${sanitized}`);
+62 -25
View File
@@ -3806,6 +3806,18 @@ const CUSTOM_ICON_ID_THRESHOLD = 1000;
// Keep in sync with WS_MAX_PAYLOAD in gateway/src/index.ts (base64 adds ~4/3).
const MAX_UPLOAD_BYTES = 24 * 1024 * 1024;
function readBase64(blob: Blob): Promise<string> {
return new Promise((resolve, reject) => {
const reader = new FileReader();
reader.onload = () => {
const result = reader.result as string; // data:*/*;base64,AAAA...
resolve(result.slice(result.indexOf(",") + 1));
};
reader.onerror = () => reject(reader.error);
reader.readAsDataURL(blob);
});
}
/** Deterministic color for a group's letter badge - same icon id always
* produces the same hue, so a group looks consistent across the tree
* without needing the real (unavailable) TeamSpeak icon graphics. */
@@ -5465,6 +5477,7 @@ function AnwendungPanel({
<option value="en">{t("app.language.en")}</option>
<option value="zh-CN">{t("app.language.zh-CN")}</option>
<option value="fa">{t("app.language.fa")}</option>
<option value="cs-CZ">{t("app.language.cs-CZ")}</option>
</select>
</label>
<p className="ts-options-hint">
@@ -7482,8 +7495,23 @@ function AppInner() {
);
};
// Downloads arrive in pieces (see the connector's TRANSFER_CHUNK_BYTES),
// keyed by channel + path; every piece but the last is a whole number of
// base64 groups, so the strings just concatenate.
const downloadChunks = new Map<string, string[]>();
const onmessage = (event: MessageEvent) => {
const data = JSON.parse(event.data);
let data = JSON.parse(event.data);
if (data.type === "fileDownloadChunk") {
const key = `${data.cid}\n${data.path}`;
if (data.offset === 0) downloadChunks.set(key, []);
const pieces = downloadChunks.get(key);
if (!pieces) return;
pieces.push(data.data);
if (!data.done) return;
downloadChunks.delete(key);
data = { type: "fileDownloadData", cid: data.cid, path: data.path, data: pieces.join("") };
}
// Broadcast, not tied to any one session - show it regardless of which
// tab is active, and regardless of which tab's socket it arrived on
@@ -7530,7 +7558,7 @@ function AppInner() {
connecting: rec.parked.connecting,
});
if (data.type === "connected") {
reconnectAttemptsRef.current.delete(sessionId);
connectedAtRef.current.set(sessionId, Date.now());
void playSound("connect");
}
else if (data.type === "poke") void playSound("poke");
@@ -7540,7 +7568,7 @@ function AppInner() {
switch (data.type) {
case "connected":
logClient("info", "Connection", `Connected to ${data.serverName}`);
reconnectAttemptsRef.current.delete(sessionId);
connectedAtRef.current.set(sessionId, Date.now());
autoConnectPendingRef.current = false;
hasConnectedRef.current = true;
everConnectedRef.current.add(sessionId);
@@ -8116,6 +8144,11 @@ function AppInner() {
// instantly, which without a delay would tight-loop). Reset to 0 once a
// session actually reaches "connected" again (see the two spots below).
const reconnectAttemptsRef = useRef<Map<string, number>>(new Map());
// The backoff only starts over once a connection held for a while: on a
// flaky network a reconnect that drops again after a few seconds used to
// reset it to 1 s every time, so each tab reconnected every few seconds.
const connectedAtRef = useRef<Map<string, number>>(new Map());
const STABLE_CONNECTION_MS = 30_000;
// The gateway sends this every 20 s (heartbeat in gateway/src/index.ts). A
// network that dies silently never closes the socket on this side, so a
// socket that stays quiet this long counts as dropped.
@@ -8124,6 +8157,11 @@ function AppInner() {
const reconnectTimersRef = useRef<Map<string, ReturnType<typeof setTimeout>>>(new Map());
const scheduleReconnect = (sessionId: string) => {
if (reconnectTimersRef.current.has(sessionId)) return; // already scheduled
const connectedAt = connectedAtRef.current.get(sessionId);
connectedAtRef.current.delete(sessionId);
if (connectedAt !== undefined && Date.now() - connectedAt >= STABLE_CONNECTION_MS) {
reconnectAttemptsRef.current.delete(sessionId);
}
const attempt = reconnectAttemptsRef.current.get(sessionId) ?? 0;
const delay = Math.min(1000 * 2 ** attempt, 30_000);
reconnectAttemptsRef.current.set(sessionId, attempt + 1);
@@ -9682,8 +9720,8 @@ function AppInner() {
);
};
// Uploads travel base64-encoded in a single WebSocket message; anything
// above the gateway's maxPayload would make it drop the whole connection.
// The connector refuses anything bigger. Gateways without "chunkedUpload"
// also take the whole file as one WebSocket message, capped by maxPayload.
const rejectOversizedUpload = (file: File): boolean => {
if (file.size <= MAX_UPLOAD_BYTES) return false;
appendLog({ text: t("fileBrowser.tooLarge", { mb: String(MAX_UPLOAD_BYTES >> 20) }), kind: "error" });
@@ -9693,17 +9731,24 @@ function AppInner() {
const handleFileBrowserUpload = (file: File) => {
if (!fileBrowserTarget) return;
if (rejectOversizedUpload(file)) return;
const channelId = fileBrowserTarget.channelId;
const targetPath = ftJoinPath(fileBrowserPath, file.name);
const reader = new FileReader();
reader.onload = () => {
const result = reader.result as string; // data:*/*;base64,AAAA...
const base64 = result.slice(result.indexOf(",") + 1);
socketRef.current?.send(
JSON.stringify({ type: "uploadFile", channelId, path: targetPath, dataBase64: base64 })
);
};
reader.readAsDataURL(file);
void sendUpload(fileBrowserTarget.channelId, ftJoinPath(fileBrowserPath, file.name), file);
};
// Small pieces keep the gateway from holding a whole file (several times
// over) in memory. 192 KiB is a multiple of 3, so each piece base64-encodes
// on its own without padding.
const sendUpload = async (channelId: number, path: string, file: File) => {
const socket = socketRef.current;
if (!gatewayFeatures.has("chunkedUpload")) {
socket?.send(JSON.stringify({ type: "uploadFile", channelId, path, dataBase64: await readBase64(file) }));
return;
}
const chunkBytes = 192 * 1024;
// offset === 0 still sends one (empty) piece for an empty file.
for (let offset = 0; offset === 0 || offset < file.size; offset += chunkBytes) {
const data = await readBase64(file.slice(offset, offset + chunkBytes));
socket?.send(JSON.stringify({ type: "uploadFileChunk", channelId, path, offset, total: file.size, data }));
}
};
const handleShowServerIcons = () => {
@@ -9722,15 +9767,7 @@ function AppInner() {
const handleServerIconUpload = (iconId: number, file: File) => {
if (rejectOversizedUpload(file)) return;
const reader = new FileReader();
reader.onload = () => {
const result = reader.result as string;
const base64 = result.slice(result.indexOf(",") + 1);
socketRef.current?.send(
JSON.stringify({ type: "uploadFile", channelId: 0, path: `/icon_${iconId}`, dataBase64: base64 })
);
};
reader.readAsDataURL(file);
void sendUpload(0, `/icon_${iconId}`, file);
};
const handleServerIconDelete = (entry: FileListEntry) => {
+5 -2
View File
@@ -4,8 +4,9 @@ import de from "./locales/de.json";
import en from "./locales/en.json";
import zhCN from "./locales/zh-CN.json";
import fa from "./locales/fa.json";
import csCZ from "./locales/cs-CZ.json";
export type Lang = "de" | "en" | "zh-CN" | "fa";
export type Lang = "de" | "en" | "zh-CN" | "fa" | "cs-CZ";
const RTL_LANGS = new Set<Lang>(["fa"]);
export type LangPref = "auto" | Lang;
@@ -22,6 +23,7 @@ const translations: Record<Lang, Record<string, string>> = {
en,
"zh-CN": zhCN,
fa,
"cs-CZ": csCZ,
};
function detectSystemLang(): Lang {
@@ -29,6 +31,7 @@ function detectSystemLang(): Lang {
const normalized = nav?.toLowerCase() ?? "en";
if (normalized.startsWith("zh")) return "zh-CN";
if (normalized.startsWith("fa")) return "fa";
if (normalized.startsWith("cs")) return "cs-CZ";
return normalized.startsWith("de") ? "de" : "en";
}
@@ -38,7 +41,7 @@ export function resolveLang(pref: LangPref): Lang {
export function loadLangPref(): LangPref {
const raw = localStorage.getItem(LANGUAGE_KEY);
return raw === "de" || raw === "en" || raw === "zh-CN" || raw === "fa" || raw === "auto" ? raw : "auto";
return raw === "de" || raw === "en" || raw === "zh-CN" || raw === "fa" || raw === "cs-CZ" || raw === "auto" ? raw : "auto";
}
export function saveLangPref(pref: LangPref) {
+675
View File
@@ -0,0 +1,675 @@
{
"menu.connections": "Připojení",
"menu.connections.connect": "Připojit",
"menu.connections.disconnectCurrent": "Odpojit od aktuálního serveru",
"menu.connections.disconnectAll": "Odpojit od všech serverů",
"menu.favorites": "Záložky",
"menu.favorites.add": "Přidat záložku",
"menu.favorites.manage": "Spravovat záložky",
"menu.self": "Já",
"menu.rights": "Oprávnění",
"menu.rights.serverGroups": "Upravit skupiny serveru...",
"menu.rights.channelGroups": "Upravit skupiny kanálů...",
"menu.rights.serverPermissions": "Upravit oprávnění serveru...",
"menu.rights.channelPermissions": "Upravit oprávnění kanálu...",
"menu.rights.overview": "Přehled oprávnění...",
"menu.rights.myRights": "Zobrazit moje oprávnění",
"menu.extras": "Nástroje",
"menu.help": "Nápověda",
"menu.help.about": "O WebSpeak3",
"menu.help.github": "GitHub",
"menu.help.changelog": "Seznam změn",
"menu.help.translate": "Pomozte s překladem (Weblate)",
"menu.extras.identities": "Identity",
"menu.extras.contacts": "Kontakty",
"menu.extras.collectedUrls": "Shromážděné URL",
"menu.extras.inviteFriend": "Pozvat přítele",
"menu.extras.whisperLists": "Seznamy šeptání",
"menu.extras.whisperHistory": "Historie šeptání",
"menu.extras.clientLog": "Protokol klienta",
"menu.extras.banList": "Seznam zákazů",
"menu.extras.complaintList": "Seznam stížností",
"menu.extras.offlineMessages": "Offline zprávy",
"menu.extras.serverQueryLogin": "Přihlášení ServerQuery",
"menu.extras.serverLog": "Protokol serveru",
"menu.extras.startRecording": "Spustit nahrávání",
"menu.extras.startMultitrackRecording": "Spustit vícestopé nahrávání",
"menu.extras.stopRecording": "Zastavit nahrávání",
"menu.extras.options": "Možnosti",
"menu.extras.feedback": "Odeslat zpětnou vazbu",
"feedback.fab.nudge": "Co si myslíte o WebSpeak3? Vaše zpětná vazba je vítána!",
"donate.label": "Přispět",
"donate.title": "Podpořit WebSpeak3 na Ko-fi",
"pwa.updateAvailable": "Je k dispozici nová verze",
"pwa.reload": "Načíst znovu",
"feedback.dialog.title": "Zpětná vazba",
"feedback.dialog.intro": "Report bug or share idea to help improve WebSpeak3.",
"feedback.dialog.category": "Kategorie",
"feedback.dialog.category.bug": "Chyba",
"feedback.dialog.category.idea": "Nápad",
"feedback.dialog.category.report": "Nahlášení (porušení pravidel/zneužití)",
"feedback.dialog.category.other": "Jiné",
"feedback.dialog.reportHint": "Nahlášení zůstávají soukromá a nikdy nejsou zveřejněna jako problém na GitHubu. Klidně uveďte dotčený server.",
"feedback.dialog.message": "Zpráva",
"feedback.dialog.messagePlaceholder": "Co se stalo nebo co navrhujete?",
"feedback.dialog.email": "E-mail (volitelné, pro další kontakt – zůstává soukromý a nikdy není zveřejněn)",
"feedback.dialog.publishAsIssue": "Publikovat jako veřejný problém na GitHubu",
"feedback.dialog.publishAsIssueHint": "Ponechte nezaškrtnuté, pokud chcete, aby vaše zpětná vazba zůstala soukromá a viditelná pouze správci.",
"feedback.dialog.publishAsIssueHintBug": "Hlášení chyb jsou vždy zveřejněna jako veřejný problém na GitHubu.",
"feedback.dialog.send": "Odeslat",
"restartNotice.title": "Krátké přerušení",
"restartNotice.body": "Server se za chvíli krátce restartuje. Vaše připojení bude na okamžik přerušeno.",
"restartNotice.ack": "Rozumím",
"menu.extras.tos": "Podmínky používání",
"tos.title": "Podmínky používání pro client.webspeak3.de",
"tos.rule1": "This client is for private, non-commercial use of TeamSpeak/TeaSpeak/GreenTeaSpeak servers via browser.",
"tos.rule2": "Prohibited in particular: any criminal activity, harassment and hate speech, spam and flooding, disrupting service, and circumventing bans.",
"tos.rule3": "Violations may result in access being blocked without warning; serious cases may be reported to relevant authorities.",
"tos.rule4Pre": "For operational security and abuse detection, connections are logged (server address, server name, timestamp) and automatically deleted after 90 days – see",
"tos.rule4Post": ".",
"tos.privacyLinkText": "zásady ochrany soukromí",
"tos.rule5Pre": "For abuse or complaints: see",
"tos.rule5Post": ".",
"tos.legalLinkText": "právní informace (Impressum)",
"tos.rule6": "By clicking \"Accept\" you agree to these terms. Your acceptance is stored only locally in your browser; you'll be asked again if rules change.",
"tos.accept": "Přijmout",
"tos.close": "Zavřít",
"feedback.dialog.cancel": "Zrušit",
"feedback.dialog.sending": "Odesílání…",
"feedback.dialog.success": "Děkujeme za zpětnou vazbu!",
"feedback.dialog.successWithIssue": "Děkujeme! Byl vytvořen problém:",
"feedback.dialog.error": "Odeslání se nezdařilo. Zkuste to prosím později.",
"toolbar.setAway": "Nastavit stav nepřítomen",
"toolbar.backOnline": "Zpět online",
"toolbar.awayOptions": "Možnosti nepřítomnosti",
"toolbar.whisper": "Cíle šeptání",
"whisper.channels": "Kanály",
"whisper.clients": "Klienti",
"whisper.clearAll": "Vymazat všechny cíle šeptání",
"toolbar.micEnable": "Zapnout mikrofon",
"toolbar.micMute": "Ztlumit mikrofon",
"toolbar.micUnmute": "Zrušit ztlumení mikrofonu",
"toolbar.vadSensitivity": "Citlivost aktivace hlasem",
"tabAudio.start": "Sdílet zvuk karty nebo okna do hlasového kanálu (sluchátka zabrání ozvěně)",
"tabAudio.stop": "Zastavit sdílení zvuku",
"tabAudio.noAudio": "Nebyl sdílen žádný zvuk. Ve výběru zvolte kartu nebo okno a zapněte jeho zvuk.",
"tabAudio.silent": "Ze sdíleného zvuku už 5 sekund nic nepřišlo. Systémový zvuk nefunguje na každém počítači s Windows; místo toho sdílejte kartu prohlížeče (např. Spotify na webu nebo YouTube) se zapnutou volbou „Sdílet zvuk karty“.",
"toolbar.muteSound": "Ztlumit zvuk (ohluchit)",
"toolbar.unmuteSound": "Zrušit ztlumení zvuku (odhluchit)",
"toolbar.chooseOutputDevice": "Vybrat výstupní zařízení",
"toolbar.toggleTheme": "Přepnout motiv",
"away.setGlobal": "Nastavit globální stav nepřítomen",
"away.setGlobalStatus": "Nastavit globální stav nepřítomnosti",
"connect.title": "Připojit",
"connect.novaSubtitle": "WebSpeak3 běží celý v prohlížeči — není potřeba nic stahovat",
"connect.serverAddress": "Přezdívka nebo adresa serveru:",
"connect.serverPassword": "Heslo serveru:",
"connect.nickname": "Přezdívka:",
"connect.phoneticNickname": "Fonetická přezdívka:",
"connect.identity": "Identita:",
"connect.defaultChannel": "Výchozí kanál:",
"connect.recordingProfile": "Profil snímání:",
"connect.channelPassword": "Heslo kanálu:",
"connect.playbackProfile": "Profil přehrávání:",
"connect.onetimeGrant": "Jednorázový klíč oprávnění:",
"connect.serverType": "Typ serveru:",
"connect.serverType.auto": "Automaticky",
"connect.serverType.teamspeak": "TeamSpeak",
"connect.serverType.teaspeak": "TeaSpeak",
"connect.hotkeyProfile": "Profil klávesových zkratek:",
"connect.soundPack": "Balíček zvuků:",
"connect.more": "Více",
"connect.less": "Méně",
"connect.connect": "Připojit",
"connect.connecting": "Připojování…",
"connect.newTab": "V nové kartě",
"connect.cancel": "Zrušit",
"channelPasswordDialog.title": "Je vyžadováno heslo kanálu",
"channelPasswordDialog.prompt": "Tento kanál je chráněný heslem. Zadejte prosím heslo:",
"channelPasswordDialog.wrongPassword": "Nesprávné heslo, zkuste to prosím znovu:",
"channelPasswordDialog.submit": "Připojit se",
"channelPasswordDialog.cancel": "Zrušit",
"collectedUrls.title": "Shromážděné URL",
"collectedUrls.search": "Hledat:",
"collectedUrls.url": "URL",
"collectedUrls.count": "Počet",
"collectedUrls.lastSeen": "Naposledy zmíněno",
"collectedUrls.mentionedBy": "Zmínil",
"collectedUrls.clearList": "Vymazat seznam",
"inviteFriend.title": "Pozvat přítele",
"inviteFriend.type": "Typ pozvánky",
"inviteFriend.includeChannel": "Vložit aktuální kanál",
"inviteFriend.link": "Odkaz",
"inviteFriend.addPermissionKey": "Přidat klíč oprávnění",
"inviteFriend.copyToClipboard": "Kopírovat do schránky",
"inviteFriend.copied": "Zkopírováno!",
"clientLog.title": "Protokol klienta",
"clientLog.level.critical": "Kritické",
"clientLog.level.error": "Chyby",
"clientLog.level.warning": "Varování",
"clientLog.level.info": "Informace",
"clientLog.level.debug": "Ladění",
"clientLog.search": "Hledat:",
"clientLog.filter": "Filtr:",
"clientLog.caseSensitive": "Rozlišovat velká a malá písmena",
"clientLog.mark": "Označit",
"whisperHistory.title": "Historie šeptání – {server}",
"whisperHistory.empty": "Zatím žádná historie šeptání.",
"whisperHistory.started": "Šeptání pro: {targets}",
"whisperHistory.stopped": "Šeptání zastaveno",
"whisperHistory.clear": "Vymazat",
"whisperHistory.options": "Možnosti",
"whisperLists.title": "Seznamy šeptání",
"whisperLists.namePlaceholder": "Název seznamu",
"whisperLists.saveCurrent": "Uložit aktuální výběr",
"whisperLists.itemDetail": "{channels} kanálů, {clients} klientů",
"whisperLists.activate": "Aktivovat",
"whisperLists.delete": "Smazat",
"whisperLists.empty": "Zatím nejsou uloženy žádné seznamy šeptání. Vyberte cíle šeptání a uložte je zde jako seznam.",
"identities.title": "Identity",
"identities.activate": "Aktivovat",
"identities.add": "Nová identita",
"identities.delete": "Smazat",
"identities.newName": "Nová identita",
"identities.generated": "Vygenerována",
"identities.pending": "Vygeneruje se při příštím připojení",
"identities.listLabel": "Lokální identity",
"identities.name": "Název identity:",
"identities.phoneticNickname": "Fonetická přezdívka:",
"identities.uniqueId": "Jedinečné ID:",
"identities.unknown": "Neznámé",
"identities.setDefault": "Nastavit jako výchozí",
"identities.isDefault": "Aktuálně používána jako výchozí",
"identities.export": "Exportovat",
"identities.import": "Importovat",
"connectionInfo.clientTitle": "Informace o připojení – {name}",
"connectionInfo.serverTitle": "Informace o připojení k serveru",
"connectionInfo.loading": "Načítání…",
"connectionInfo.unavailable": "Server neodpovídá (chybí oprávnění?).",
"connectionInfo.ping": "Ping:",
"connectionInfo.connectedSince": "Připojeno od:",
"connectionInfo.uptime": "Doba běhu:",
"connectionInfo.name": "Název:",
"connectionInfo.avgPing": "Průměrný ping:",
"connectionInfo.avgPacketLoss": "Průměrná ztráta paketů:",
"connectionInfo.incoming": "Příchozí",
"connectionInfo.outgoing": "Odchozí",
"connectionInfo.packetsTransferred": "Přenesené pakety",
"connectionInfo.bytesTransferred": "Přenesené bajty",
"connectionInfo.bandwidthLastSecond": "Přenosová rychlost za poslední sekundu",
"connectionInfo.bandwidthLastMinute": "Přenosová rychlost za poslední minutu",
"connectionInfo.ftBandwidth": "Přenosová rychlost souborů",
"connectionInfo.ftBytes": "Bajty přenosu souborů",
"connectionInfo.ip": "IP adresa:",
"connectionInfo.packetLoss": "Ztráta paketů:",
"connectionInfo.packetsSent": "Odeslané pakety:",
"connectionInfo.packetsReceived": "Přijaté pakety:",
"connectionInfo.bytesSent": "Odeslaná data:",
"connectionInfo.bytesReceived": "Přijatá data:",
"connectionInfo.bandwidthSent": "Rychlost odesílání:",
"connectionInfo.bandwidthReceived": "Rychlost přijímání:",
"menu.self.recordingProfile": "Profil nahrávání",
"menu.self.playbackProfile": "Profil přehrávání",
"menu.self.hotkeyProfile": "Profil klávesových zkratek",
"menu.self.soundPack": "Balíček zvuků",
"menu.self.setAway": "Nastavit nepřítomnost",
"menu.self.enableMic": "Zapnout mikrofon",
"menu.self.disableMic": "Vypnout mikrofon",
"menu.self.muteOutput": "Ztlumit reproduktory/sluchátka",
"menu.self.unmuteOutput": "Zrušit ztlumení reproduktorů/sluchátek",
"menu.self.changeNickname": "Změnit přezdívku",
"menu.self.requestTalkPower": "Požádat o možnost mluvit",
"menu.self.setAvatar": "Nastavit avatar",
"menu.self.setPhoneticNickname": "Nastavit fonetickou přezdívku",
"menu.self.connectionInfo": "Připojení Informace",
"contacts.title": "Kontakty",
"contacts.addOnlineClient": "Vybrat online klienta...",
"contacts.add": "Přidat",
"contacts.remove": "Odebrat",
"contacts.empty": "Zatím žádné kontakty.",
"contacts.customName": "Vlastní název:",
"contacts.category.acquaintance": "Známý",
"contacts.category.blocked": "Blokovaný",
"contacts.category.friend": "Přítel",
"contacts.phoneticName": "Fonetické jméno:",
"contacts.show": "Zobrazit",
"contacts.ignore": "Ignorovat",
"contacts.unignore": "Přestat ignorovat",
"contacts.whisper": "Šeptat",
"contacts.preferences": "Předvolby",
"favorites.title": "🔖 Záložky myTeamSpeak",
"favorites.synced": "Synchronizované záložky",
"favorites.notLoggedIn": "Nepřihlášen",
"favorites.local": "Lokální záložky",
"favorites.unnamed": "(bez názvu)",
"favorites.bookmarkName": "Název záložky:",
"favorites.newFavoriteName": "Nová záložka",
"favorites.showServerQueryClients": "Zobrazit klienty ServerQuery",
"favorites.connectOnStartup": "Připojit při spuštění",
"favorites.new": "Nová záložka",
"favorites.newFolder": "Nová složka",
"favorites.remove": "Odebrat",
"favorites.ok": "OK",
"favorites.cancel": "Zrušit",
"favorites.apply": "Použít",
"away.dialog.title": "Nastavit zprávu při nepřítomnosti",
"away.dialog.message": "Zpráva:",
"away.dialog.template": "Šablona:",
"away.dialog.none": "<Žádná>",
"away.dialog.ok": "OK",
"away.dialog.save": "Uložit",
"away.dialog.cancel": "Zrušit",
"options.title": "Možnosti",
"options.ok": "OK",
"options.cancel": "Zrušit",
"options.notImplemented": "Toto nastavení zatím není implementováno.",
"options.section.anwendung": "Aplikace",
"options.section.wiedergabe": "Přehrávání",
"options.section.aufnahme": "Snímání",
"options.section.design": "Vzhled",
"design.subtitle": "Zvolte vzhled aplikace.",
"design.theme.standard": "Standardní",
"design.theme.standard.desc": "Původní vzhled WebSpeak3.",
"design.theme.nova": "Nova",
"design.theme.nova.desc": "Modernější tmavý vzhled se zaoblenými prvky.",
"design.theme.greenteaspeak": "GreenTeaSpeak",
"design.theme.greenteaspeak.desc": "Klasické rozvržení klienta GreenTeaSpeak s tmavými panely a zlatou lištou nabídky.",
"design.theme.pulse": "Pulse",
"design.theme.pulse.desc": "Rozvržení založené na kartách s navigační lištou a barevným zvýrazněním.",
"design.status.connected": "Připojeno",
"design.custom.new": "+ Nový vzhled",
"design.custom.import": "Importovat vzhled",
"design.custom.edit": "Upravit",
"design.custom.duplicate": "Duplikovat",
"design.custom.export": "Exportovat",
"design.custom.delete": "Smazat",
"design.custom.deleteConfirm": "Opravdu chcete tento vzhled smazat?",
"design.custom.newTitle": "Vytvořit nový vzhled",
"design.custom.editTitle": "Upravit vzhled",
"design.custom.name": "Název",
"design.custom.base": "Základní rozvržení",
"design.custom.css": "CSS",
"design.custom.hint": "This CSS loads while design is active. Use .ts-app { ... } and existing CSS variables (--accent, --bg, --text, --border, ...) to adjust colors, radii and spacing - with .ts-app .some-class { display: none } or order you can even change layout.",
"design.custom.save": "Uložit",
"design.custom.copyOf": "Kopie {name}",
"design.custom.importError": "This file couldn't be read as WebSpeak3 design.",
"design.store.open": "Obchod",
"design.store.title": "Obchod s vzhledy",
"design.store.back": "Zpět",
"design.store.loading": "Načítání…",
"design.store.unavailable": "Obchod s vzhledy není na tomto serveru dostupný.",
"design.store.empty": "V obchodě zatím nejsou žádné vzhledy.",
"design.store.install": "Nainstalovat",
"design.store.installed": "Nainstalováno",
"design.store.by": "od {author}",
"design.store.screenshotAlt": "Snímek obrazovky {name}",
"design.store.rating.rate": "Ohodnotit {stars} hvězdičkami",
"design.store.rating.summary": "{average} ({count})",
"design.store.rating.none": "Zatím bez hodnocení",
"design.store.publishTitle": "Publikovat vzhled",
"design.store.publish.select": "Vyberte jeden ze svých vzhledů",
"design.store.publish.none": "Zatím nemáte žádný vlastní vzhled k publikování.",
"design.store.publish.author": "Vaše jméno (volitelné)",
"design.store.publish.authorPlaceholder": "Anonymně",
"design.store.publish.description": "Popis (volitelné)",
"design.store.publish.descriptionPlaceholder": "Čím je tento vzhled výjimečný?",
"design.store.publish.screenshot": "Snímek obrazovky (volitelné)",
"design.store.publish.screenshotTooLarge": "Tento obrázek je příliš velký. Použijte prosím menší snímek obrazovky.",
"design.store.publish.adminToken": "Token správce (potřeba pouze pro vyhrazené názvy)",
"design.store.publish.adminTokenPlaceholder": "Nechte prázdné, pokud nevíte, k čemu slouží",
"design.store.publish.submit": "Publikovat do obchodu",
"design.store.publish.success": "Vzhled byl publikován!",
"design.store.publish.pending": "Děkujeme! Váš vzhled byl odeslán a po kontrole se objeví v obchodě.",
"design.store.publish.error": "Publikování se nezdařilo.",
"options.section.erweiterungen": "Doplňky",
"options.section.hotkeys": "Klávesové zkratky",
"options.section.whispern": "Šeptat",
"options.section.downloads": "Stažené soubory",
"options.section.chat": "Chat",
"options.section.sicherheit": "Zabezpečení",
"options.section.nachrichten": "Zprávy",
"options.section.meldungen": "Oznámení",
"options.section.sounds": "Zvuky",
"app.title": "Aplikace",
"app.subtitle": "Obecná nastavení aplikace",
"app.language": "Jazyk",
"app.language.auto": "Výchozí systému",
"app.language.de": "Němčina",
"app.language.en": "Angličtina",
"app.language.zh-CN": "简体中文",
"app.language.fa": "فارسی (بتا)",
"app.language.cs-CZ": "Čeština",
"app.language.helpTranslate": "Missing your language or spotted wrong translation? Help out on Weblate →",
"app.serverBanner": "Zobrazovat bannery serveru",
"app.serverBanner.hint": "Banner se načítá přímo z adresy nastavené administrátorem serveru a tento hostitel vidí vaši IP adresu.",
"app.chatImages": "Načítat obrázky v chatu",
"app.chatImages.hint": "Obrázky z tagů [img] a Markdownu se načítají přímo z adresy, kterou zvolil odesílatel, a tento hostitel vidí vaši IP adresu. Po vypnutí se zobrazí jako odkazy.",
"playback.title": "Přehrávání",
"playback.subtitle": "Změnit nastavení přehrávání",
"playback.profile": "Profil",
"playback.default": "Výchozí",
"playback.device": "Výstupní zařízení:",
"playback.systemDefault": "Výchozí systému",
"playback.quiet": "Tiché",
"playback.loud": "Hlasité",
"playback.voiceVolume": "Hlasitost hlasu",
"playback.playTestTone": "▶ Přehrát testovací zvuk",
"playback.options": "Možnosti",
"playback.autoVolume": "Automatická úprava hlasitosti",
"playback.ownMicClicks": "Přehrávat zvuky mikrofonu vlastního klienta",
"playback.otherMicClicks": "Přehrávat zvuky mikrofonu ostatních klientů",
"recording.title": "Snímání",
"recording.subtitle": "Změnit nastavení snímání",
"recording.device": "Vstupní zařízení:",
"recording.activation": "Aktivace",
"recording.pushToTalk": "Stiskni a mluv",
"recording.continuous": "Nepřetržitý přenos",
"recording.voiceActivation": "Detekce aktivace hlasem",
"recording.testStart": "Spustit test",
"recording.testStop": "Zastavit test",
"recording.hangoverDelay": "Zpoždění před deaktivací:",
"recording.secondsUnit": "s",
"recording.dsp": "Digitální zpracování signálu",
"recording.typingAttenuation": "Útlum při psaní",
"recording.echoCancellation": "Potlačení ozvěny",
"recording.noiseSuppression": "Odstranit hluk na pozadí",
"recording.autoGainControl": "Automatické řízení zesílení",
"recording.aec3": "Pokročilé potlačení ozvěny (beta, vyšší zatížení CPU)",
"info.address": "Adresa:",
"info.version": "Verze:",
"info.license": "Licence:",
"info.currentClients": "Aktuální klienti:",
"info.currentChannels": "Aktuální kanály:",
"info.topic": "Téma:",
"info.audioCodec": "Zvukový kodek:",
"info.spacer": "Oddělovač:",
"info.rawName": "Surový název:",
"info.passwordProtected": "Chráněno heslem:",
"info.clients": "Klienti:",
"info.country": "Země:",
"info.muted": "Mikrofon ztlumen:",
"info.outputMuted": "Reproduktory ztlumeny:",
"info.serverGroups": "Skupiny serveru:",
"info.yes": "Ano",
"info.no": "Ne",
"tree.noMatches": "Žádné výsledky",
"tree.search": "Hledat kanály a uživatele",
"tree.label": "Kanály",
"tree.notConnected": "Nepřipojeno",
"tree.clickToSelect": "Kliknutím vyberete, dvojklikem se připojíte",
"tree.clickToJoin": "Dvojklikem se připojíte",
"tree.joinNotConnected": "Nepřipojeno — nelze přepnout kanál",
"tree.passwordProtected": "Chráněno heslem",
"tree.privateChatWith": "Soukromý chat s",
"tree.poke": "Šťouchnout",
"tree.channelCommander": "Velitel kanálu",
"tree.away": "Nepřítomen",
"tree.micMuted": "Mikrofon ztlumen",
"tree.talking": "Mluví",
"tree.noTalkPower": "V tomto kanálu nemáte právo mluvit",
"tree.soundMuted": "Zvuk ztlumen (ohluchnutí)",
"tree.streaming": "Vysílá stream",
"publish.alpha": "Alfa",
"publish.alphaTitle": "Alfa – nestabilní, může se kdykoli změnit nebo přestat fungovat",
"publish.demoUnavailable": "Streamování není v demu dostupné – vyžaduje skutečný server TeamSpeak 6.",
"publish.alphaNote": "Streamování je ve fázi alfa. Používá nezdokumentovaný protokol Stream/Call služby TeamSpeak 6, takže připojení, kvalita obrazu i práce s diváky mohou selhat nebo se bez upozornění změnit. Není určeno pro produkční použití.",
"publish.start": "Sdílet obrazovku",
"publish.stop": "Zastavit sdílení",
"publish.title": "Vaše vysílání",
"publish.screen": "Obrazovka",
"publish.starting": "Spouštění…",
"publish.viewers": "Sleduje {count} diváků",
"publish.request.allow": "Povolit",
"publish.request.deny": "Odmítnout",
"publish.request.block": "Blokovat",
"publish.request.blockHint": "Odmítnout a už se neptat",
"publish.dialog.title": "Nastavení streamu",
"publish.dialog.basic": "Základní nastavení",
"publish.dialog.advanced": "Pokročilé nastavení",
"publish.dialog.golive": "Spustit vysílání",
"publish.dialog.cancel": "Zpět",
"publish.preset": "Předvolba",
"publish.preset.presentation": "Prezentace",
"publish.audio": "Snímat zvuk",
"publish.privacy": "Soukromí",
"publish.privacy.public": "Veřejné",
"publish.privacy.contacts": "Kontakty",
"publish.privacy.private": "Soukromé",
"publish.resolution": "Rozlišení",
"publish.res.source": "Zdroj",
"publish.fps": "FPS",
"publish.bitrate": "Datový tok",
"publish.audioBitrate": "Datový tok zvuku [Kbps]",
"publish.viewerLimit": "Limit diváků",
"publish.mode": "Režim připojení",
"publish.mode.p2p": "P2P",
"publish.mode.server": "Server",
"publish.mode.serverUnavailable": "Režim serveru používá SFU služby TS6 a zatím není implementován.",
"stream.untitled": "Stream",
"stream.stop": "Zavřít stream",
"stream.live": "Živě",
"stream.state.new": "Čekání na nabídku…",
"stream.state.connecting": "Připojování…",
"stream.state.connected": "Živě",
"stream.state.disconnected": "Připojení přerušeno",
"stream.state.failed": "Připojení selhalo",
"stream.state.closed": "Ukončeno",
"chat.server": "Server",
"chat.channel": "Kanál",
"chat.notConnected": "Nepřipojeno",
"chat.messageChannel": "Napsat zprávu do kanálu...",
"chat.messageServer": "Napsat zprávu serveru...",
"chat.messagePartner": "Napsat zprávu uživateli {name}...",
"chat.send": "Odeslat",
"chat.you": "Vy",
"serverLog.clientJoin": "{client} vstoupil do kanálu „{channel}“",
"serverLog.clientLeave": "{client} se odpojil (odešel)",
"serverLog.clientChannelSwitch": "{client} se přesunul z kanálu „{fromChannel}“ do „{toChannel}“",
"serverLog.clientChannelGroupAssigned": "Skupina kanálu „{group}“ byla přiřazena uživateli {client}",
"serverLog.channelCreated": "Kanál „{channel}“ byl vytvořen",
"serverLog.channelDeleted": "Kanál „{channel}“ byl smazán",
"serverLog.channelEdited": "Kanál „{channel}“ byl upraven",
"serverLog.serverEdited": "Nastavení serveru byla změněna",
"serverLog.permissionError": "Chybí oprávnění: {action}",
"poke.title": "Šťouchnout",
"poke.optionalMessage": "Volitelná zpráva...",
"poke.send": "Šťouchnout",
"poke.cancel": "Zrušit",
"poke.pokedYou": "vás šťouchnul",
"poke.dismiss": "Zavřít",
"kick.title": "Vykopnout:",
"kick.reasonPlaceholder": "Důvod (volitelné)...",
"kick.confirm": "Vykopnout",
"kick.cancel": "Zrušit",
"ban.title": "Zabanovat:",
"ban.reasonPlaceholder": "Důvod (volitelné)...",
"ban.duration": "Doba trvání:",
"ban.durationPermanent": "Trvale",
"ban.duration1h": "1 hodina",
"ban.duration1d": "1 den",
"ban.duration1w": "1 týden",
"ban.confirm": "Zabanovat",
"ban.cancel": "Zrušit",
"serverEdit.title": "Upravit virtuální server",
"serverEdit.tab.host": "Hostitel",
"serverEdit.tab.misc": "Ostatní",
"serverEdit.tab.transmission": "Přenos",
"serverEdit.tab.antiflood": "Ochrana proti zahlcení",
"serverEdit.tab.security": "Zabezpečení",
"serverEdit.tab.log": "Protokol",
"serverEdit.name": "Název serveru:",
"serverEdit.welcomeMessage": "Uvítací zpráva:",
"serverEdit.clearPassword": "Odstranit heslo serveru",
"serverEdit.newPassword": "Nové heslo serveru:",
"serverEdit.hostmessage": "Zpráva hostitele:",
"serverEdit.hostmessageMode": "Režim zobrazení:",
"serverEdit.hostmessageMode.none": "Nezobrazovat",
"serverEdit.hostmessageMode.log": "Zobrazit v protokolu",
"serverEdit.hostmessageMode.modal": "Zobrazit jako dialog",
"serverEdit.hostmessageMode.modalquit": "Zobrazit jako dialog a odpojit",
"serverEdit.hostbannerUrl": "URL banneru hostitele:",
"serverEdit.hostbannerGfxUrl": "URL obrázku banneru hostitele:",
"serverEdit.hostbannerGfxInterval": "Obnovení banneru (sekundy):",
"serverEdit.hostbannerMode": "Přizpůsobení banneru:",
"serverEdit.hostbannerMode.noadjust": "Neupravovat",
"serverEdit.hostbannerMode.adjustignoreaspect": "Přizpůsobit (ignorovat poměr stran)",
"serverEdit.hostbannerMode.adjustkeepaspect": "Přizpůsobit (zachovat poměr stran)",
"serverEdit.hostbuttonTooltip": "Nápověda tlačítka hostitele:",
"serverEdit.hostbuttonUrl": "URL tlačítka hostitele:",
"serverEdit.hostbuttonGfxUrl": "URL obrázku tlačítka hostitele:",
"serverEdit.maxClients": "Max. počet klientů:",
"serverEdit.nickname": "Přezdívka serveru:",
"serverEdit.phoneticName": "Fonetický název:",
"serverEdit.codecEncryptionMode": "Šifrování hlasu:",
"serverEdit.codecEncryptionMode.perchannel": "Nastavitelné pro každý kanál",
"serverEdit.codecEncryptionMode.forcedoff": "Globálně vypnuto",
"serverEdit.codecEncryptionMode.forcedon": "Globálně zapnuto",
"serverEdit.unchanged": "Ponechat beze změny",
"serverEdit.save": "Uložit",
"serverEdit.cancel": "Zrušit",
"serverProtocolLog.title": "Protokol serveru",
"serverProtocolLog.empty": "Žádné položky protokolu.",
"banList.title": "Seznam zákazů",
"banList.empty": "Nebyly nalezeny žádné zákazy.",
"banList.name": "Název",
"banList.ip": "IP",
"banList.created": "Vytvořeno",
"banList.duration": "Doba trvání",
"banList.invoker": "Od",
"banList.reason": "Důvod",
"banList.permanent": "Trvale",
"banList.delete": "Smazat",
"banList.deleteAll": "Smazat vše",
"complainList.title": "Seznam stížností",
"complainList.empty": "Nebyly nalezeny žádné stížnosti.",
"complainList.target": "Cíl",
"complainList.from": "Od",
"complainList.message": "Zpráva",
"complainList.timestamp": "Časové razítko",
"offlineMessages.title": "Offline zprávy",
"offlineMessages.empty": "Nebyly nalezeny žádné zprávy.",
"offlineMessages.subject": "Předmět",
"offlineMessages.from": "Od",
"offlineMessages.timestamp": "Časové razítko",
"offlineMessages.targetUid": "Cílové UID",
"offlineMessages.message": "Zpráva",
"offlineMessages.send": "Odeslat",
"offlineMessages.new": "Nová zpráva",
"offlineMessages.markRead": "Označit jako přečtené",
"offlineMessages.backToList": "Zpět na seznam",
"dialog.cancel": "Zrušit",
"groupAssign.channelTitle": "Přiřadit skupinu kanálu",
"groupAssign.serverTitle": "Přiřadit skupinu serveru",
"groupAssign.empty": "Nebyly nalezeny žádné skupiny.",
"groupAssign.clickToRemove": "Kliknutím odeberete",
"serverQueryLogin.username": "Uživatelské jméno",
"serverQueryLogin.password": "Heslo",
"serverQueryLogin.login": "Přihlásit",
"permissionOverview.title": "Moje oprávnění",
"permissionOverview.empty": "Nebyla nalezena žádná oprávnění.",
"permissionOverview.name": "Oprávnění",
"permissionOverview.value": "Hodnota",
"permissionOverview.negated": "Negováno",
"permissionOverview.skip": "Přeskočit",
"permsEditor.title": "Oprávnění",
"permsEditor.tab.server": "Skupiny serveru",
"permsEditor.tab.client": "Oprávnění klienta",
"permsEditor.tab.channel": "Oprávnění kanálu",
"permsEditor.tab.channelgroup": "Skupiny kanálu",
"permsEditor.tab.channelclient": "Oprávnění klientů kanálu",
"permsEditor.clientDbId": "Jedinečné DB ID klienta:",
"permsEditor.load": "Načíst",
"permsEditor.pickOnlineClient": "Nebo vyberte online klienta...",
"permsEditor.pickTarget": "Vyberte skupinu/kanál vlevo nebo zadejte ID klienta.",
"permsEditor.addPermission": "Přidat",
"permsEditor.searchPermission": "Hledat oprávnění...",
"dialog.ok": "OK",
"channelContext.join": "Přepnout na kanál",
"channelContext.files": "Soubory...",
"fileBrowser.title": "Přenosy souborů",
"fileBrowser.up": "Nahoru",
"fileBrowser.tooLarge": "Soubor je příliš velký – nahrávání je omezeno na {mb} MiB.",
"fileBrowser.refresh": "Obnovit",
"fileBrowser.newFolder": "Nová složka",
"fileBrowser.upload": "Nahrát",
"fileBrowser.folderName": "Název složky",
"fileBrowser.empty": "Tato složka je prázdná.",
"fileBrowser.name": "Název",
"fileBrowser.size": "Velikost",
"fileBrowser.modified": "Změněno",
"fileBrowser.download": "Stáhnout",
"fileBrowser.rename": "Přejmenovat",
"fileBrowser.delete": "Smazat",
"fileBrowser.deleteConfirm": "Opravdu smazat?",
"fileBrowser.uploading": "Nahrávání...",
"fileBrowser.downloading": "Stahování...",
"serverContext.icons": "Ikony serveru...",
"serverIcons.title": "Správa ikon serveru",
"serverIcons.upload": "Nahrát ikonu",
"serverIcons.iconId": "ID ikony",
"serverIcons.empty": "Nebyly nalezeny žádné ikony.",
"clientContext.privateChat": "Soukromý chat",
"clientContext.poke": "Šťouchnout",
"clientContext.watchStream": "Sledovat stream",
"clientContext.moveTo": "Přesunout do…",
"clientContext.volume": "Hlasitost",
"clientContext.volumeHint": "Pouze pro vás. Dvojklikem obnovíte 100 %.",
"clientContext.copyName": "Kopírovat název",
"clientContext.connectionInfo": "Zobrazit informace o připojení",
"clientContext.addWhisperTarget": "Přidat jako cíl šeptání",
"clientContext.removeWhisperTarget": "Odebrat jako cíl šeptání",
"clientContext.assignChannelGroup": "Přiřadit skupinu kanálu",
"clientContext.assignServerGroup": "Přiřadit skupinu serveru",
"clientContext.kickChannel": "Vykopnout z kanálu",
"clientContext.kick": "Vykopnout ze serveru",
"clientContext.ban": "Zabanovat",
"clientContext.notSupported": "Ve webovém klientovi zatím není podporováno",
"moveClient.title": "Přesunout",
"moveClient.empty": "Nejsou dostupné žádné kanály.",
"moveClient.current": "Aktuální kanál",
"moveClient.spacer": "Oddělovač",
"serverContext.connectionInfo": "Informace o připojení k serveru",
"serverContext.copyAddress": "Kopírovat adresu serveru",
"serverContext.addFavorite": "Přidat do oblíbených",
"serverContext.disconnect": "Odpojit",
"connectError.dismiss": "Zavřít",
"dialog.close": "Zavřít",
"sounds.title": "Zvuky",
"sounds.subtitle": "Nastavit zvuková upozornění na události",
"sounds.enable": "Povolit zvuky",
"sounds.volume": "Hlasitost",
"sounds.eventEnable": "Povolit tento zvuk",
"sounds.event.connect": "Připojeno",
"sounds.event.disconnect": "Odpojeno",
"sounds.event.clientJoin": "Klient se připojí",
"sounds.event.clientLeave": "Klient odejde",
"sounds.event.message": "Přijata zpráva",
"sounds.event.poke": "Přijato šťouchnutí",
"sounds.default": "Výchozí",
"sounds.custom": "Vlastní soubor: {name}",
"sounds.test": "▶ Test",
"sounds.upload": "Nahrát",
"sounds.reset": "Obnovit",
"sounds.importSoundpack": "Importovat balíček zvuků (.ts3soundpack)",
"sounds.importResult": "Importováno zvuků: {matched}, nespárovaných souborů: {unmatched}",
"nachrichten.title": "Zprávy",
"nachrichten.subtitle": "Přizpůsobit zprávy",
"nachrichten.disconnectMessage": "Odpojení:",
"nachrichten.disconnectMessagePlaceholder": "odcházím",
"nachrichten.presetsTitle": "Přednastavené zprávy",
"nachrichten.type": "Typ",
"nachrichten.type.away": "Nepřítomen",
"nachrichten.templateName": "Název šablony",
"nachrichten.message": "Zpráva",
"nachrichten.add": "Přidat",
"nachrichten.delete": "Smazat",
"tabs.disconnect": "Odpojit",
"identity.importInvalid": "„{file}“ není platný soubor identity.",
"log.fileTransferFailed": "Přenos souboru selhal:",
"log.serverReconnecting": "Spojení se serverem bylo ztraceno, obnovování připojení…",
"log.serverReconnected": "Připojení k serveru bylo obnoveno",
"log.fileTransferInvalidAddress": "Přenos souboru selhal (neplatná adresa)",
"sounds.importFailed": "Balíček zvuků se nepodařilo načíst – je to platný soubor .ts3soundpack/ZIP?",
"tabs.connections": "Připojení k serverům",
"shortcut.ctrl": "Ctrl"
}
+1
View File
@@ -338,6 +338,7 @@
"app.language.en": "English",
"app.language.zh-CN": "简体中文",
"app.language.fa": "فارسی (بتا)",
"app.language.cs-CZ": "Čeština",
"app.language.helpTranslate": "Fehlt deine Sprache oder eine Übersetzung ist ungenau? Hilf mit auf Weblate →",
"app.serverBanner": "Server-Banner anzeigen",
"app.serverBanner.hint": "Das Banner lädt direkt von der Adresse, die der Serverbetreiber eingetragen hat. Dieser Host sieht dabei deine IP-Adresse.",
+1
View File
@@ -338,6 +338,7 @@
"app.language.en": "English",
"app.language.zh-CN": "简体中文",
"app.language.fa": "فارسی (بتا)",
"app.language.cs-CZ": "Čeština",
"app.language.helpTranslate": "Missing your language or spotted a wrong translation? Help out on Weblate →",
"app.serverBanner": "Show server banners",
"app.serverBanner.hint": "The banner loads straight from the address the server admin set, and that host sees your IP address.",
+1
View File
@@ -338,6 +338,7 @@
"app.language.en": "English",
"app.language.zh-CN": "简体中文",
"app.language.fa": "فارسی (بتا)",
"app.language.cs-CZ": "Čeština",
"app.language.helpTranslate": "زبان شما موجود نیست یا ترجمه‌ای اشتباه دیدید؟ در Weblate کمک کنید →",
"app.serverBanner": "نمایش بنر سرور",
"app.serverBanner.hint": "بنر مستقیماً از نشانی‌ای بارگیری می‌شود که مدیر سرور تعیین کرده است و آن میزبان نشانی IP شما را می‌بیند.",
+1
View File
@@ -241,6 +241,7 @@
"app.language.en": "English",
"app.language.zh-CN": "简体中文",
"app.language.fa": "فارسی (بتا)",
"app.language.cs-CZ": "Čeština",
"app.language.helpTranslate": "没有你的语言,或发现翻译有误?欢迎到 Weblate 参与改进 →",
"app.serverBanner": "显示服务器横幅",
"app.serverBanner.hint": "横幅直接从服务器管理员设置的地址加载,该主机会看到你的 IP 地址。",