windows: the app in Russian

Every page, the tray's menu and tooltip, and the notifications, as Windows'
display language is (GetUserDefaultUILanguage) or as chosen in Settings >
This app. English stays the key in the code: tr()/trf() (i18n.rs) look it
up in the page's own RU table. What the service says and proxy-ctl stay
English.

Changing the language rebuilds the window on the same page. That needed the
window's handle untyped: gpui-kit's Root holds the view, so the typed handle
was always None, and the tray's Open made a second window rather than
raising the first (fixed too). An AmneziaWG outbound no longer shows its
kind twice. tools/screenshots.sh takes SHOT_LANGUAGE.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Opus 5.5 committed 2026-10-27 23:28:52 +03:00
1 parent 803e18db9d
commit e9de863c4b
22 files changed
+882 -305

No files matched your search

+5 -3
View File
@@ -4,7 +4,7 @@
# whitelist-bypass, the Telegram proxy), the app on a virtual display (tools/gui-shot.sh).
# In the dev shell, after tools/package.sh:
#
# tools/screenshots.sh [OUT_DIR] (OUT_DIR: docs/screenshots)
# [SHOT_LANGUAGE=ru] tools/screenshots.sh [OUT_DIR] (OUT_DIR: docs/screenshots)
set -euo pipefail
cd "$(dirname "$0")/.."
OUT=$(realpath -m "${1:-docs/screenshots}")
@@ -52,8 +52,10 @@ release=$(ls -d dist/ProxySuite-*-windows-x64/components 2>/dev/null | tail -1 |
cargo build -q -p ps-service -p ps-gui
# The app's own preferences for the shots: the light theme (one dark shot below).
mkdir -p "$WORK/prefs/light/proxy-suite" "$WORK/prefs/dark/proxy-suite"
echo '{"theme":"light","checkUpdates":false}' >"$WORK/prefs/light/proxy-suite/app.json"
echo '{"theme":"dark","checkUpdates":false}' >"$WORK/prefs/dark/proxy-suite/app.json"
# SHOT_LANGUAGE: the app's language (en, ru).
lang=${SHOT_LANGUAGE:-en}
echo "{\"language\":\"$lang\",\"theme\":\"light\",\"checkUpdates\":false}" >"$WORK/prefs/light/proxy-suite/app.json"
echo "{\"language\":\"$lang\",\"theme\":\"dark\",\"checkUpdates\":false}" >"$WORK/prefs/dark/proxy-suite/app.json"
export XDG_CONFIG_HOME="$WORK/prefs/light"
target/debug/proxy-suite-service --console --state-dir "$STATE" --socket "$SOCK" >"$WORK/service.log" 2>&1 &
SERVICE=$!