From b950882846e1ae195e15eb47503c141ae53b1768 Mon Sep 17 00:00:00 2001 From: TrueZhuanjia Date: Mon, 15 Sep 2025 10:54:53 +0800 Subject: [PATCH] tweak stats overlay --- VoidLink/Localization/Localizable.xcstrings | 54 ++++++++++----------- VoidLink/Stream/StreamManager.m | 2 +- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/VoidLink/Localization/Localizable.xcstrings b/VoidLink/Localization/Localizable.xcstrings index 683b67ea..c3a30862 100644 --- a/VoidLink/Localization/Localizable.xcstrings +++ b/VoidLink/Localization/Localizable.xcstrings @@ -421,6 +421,29 @@ } } }, + "%3u ms (var: %3u ms)" : { + "extractionState" : "manual", + "localizations" : { + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "%3u ms (抖动: %3u ms)" + } + }, + "zh-Hant" : { + "stringUnit" : { + "state" : "translated", + "value" : "%3u ms (變異數:%3u ms)" + } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "%3u ms (變異數:%3u ms)" + } + } + } + }, "%d finger tap" : { "extractionState" : "manual", "localizations" : { @@ -467,29 +490,6 @@ } } }, - "%u ms (var: %u ms)" : { - "extractionState" : "manual", - "localizations" : { - "zh-Hans" : { - "stringUnit" : { - "state" : "translated", - "value" : "%u ms (抖动: %u ms)" - } - }, - "zh-Hant" : { - "stringUnit" : { - "state" : "translated", - "value" : "%u ms (變異數:%u ms)" - } - }, - "zh-HK" : { - "stringUnit" : { - "state" : "translated", - "value" : "%u ms (變異數:%u ms)" - } - } - } - }, "About" : { "extractionState" : "manual", "localizations" : { @@ -4863,25 +4863,25 @@ "en" : { "stringUnit" : { "state" : "translated", - "value" : "FPS: %6.2f Dropped frames: %.1f%% Bitrate: %5.1f Mbps Latency: %@" + "value" : "FPS: %6.2f Dropped frames: %4.1f%% Bitrate: %5.1f Mbps Latency: %@" } }, "zh-Hans" : { "stringUnit" : { "state" : "translated", - "value" : "帧率: %6.2f 丢帧: %.1f%% 码率: %5.1f Mbps 延迟: %@" + "value" : "帧率: %6.2f 丢帧: %4.1f%% 码率: %5.1f Mbps 延迟: %@" } }, "zh-Hant" : { "stringUnit" : { "state" : "translated", - "value" : "FPS: %6.2f 掉幀: %.1f%% 位元速率: %5.1f Mbps 延遲: %@" + "value" : "FPS: %6.2f 掉幀: %4.1f%% 位元速率: %5.1f Mbps 延遲: %@" } }, "zh-HK" : { "stringUnit" : { "state" : "translated", - "value" : "FPS: %6.2f 掉幀: %.1f%% 位元速率: %5.1f Mbps 延遲: %@" + "value" : "FPS: %6.2f 掉幀: %4.1f%% 位元速率: %5.1f Mbps 延遲: %@" } } } diff --git a/VoidLink/Stream/StreamManager.m b/VoidLink/Stream/StreamManager.m index 1a0f5884..1383d8f8 100644 --- a/VoidLink/Stream/StreamManager.m +++ b/VoidLink/Stream/StreamManager.m @@ -169,7 +169,7 @@ uint32_t rtt, variance; NSString* latencyString; if (LiGetEstimatedRttInfo(&rtt, &variance)) { - latencyString = [LocalizationHelper localizedStringForKey:@"%u ms (var: %u ms)", rtt, variance]; + latencyString = [LocalizationHelper localizedStringForKey:@"%3u ms (var: %3u ms)", rtt, variance]; } else { latencyString = @"N/A";