Skip to content

FinceptTerminal is a modern finance application offering advanced market analytics, investment research, and economic data tools, designed for interactive exploration and data-driven decision-making in a user-friendly environment.

internationalization added

tilakpatel221c3787f00b28
diff --git a/README.md b/README.md
index bef42c8b8..7aa4ed5dd 100644
--- a/README.md
+++ b/README.md
@@ -238,31 +238,6 @@ We're building the future of financial analysis — together.
---
-## Support the Project
-
-We've built a community token on pump.fun as a way for early believers to stand alongside Fincept Terminal's journey — from where it is today to where we're taking it.
-
-**Fincept Terminal is being built for the long haul.** We're committed to making it the go-to financial intelligence platform, and this token is a way for the community to be part of that story from the ground up.
-
-- **pump.fun:** [View Token](https://pump.fun/coin/9LUqJ5aQTjQiUCL93gi33LZcscUoSBJNhVCYpPzEpump)
-- **Solana Mint Address:** `7eV4zd65DdFJpZhwukrAJYVes5FYVL3B3TQ87acaoowY`
-- **CA:** `9LUqJ5aQTjQiUCL93gi33LZcscUoSBJNhVCYpPzEpump`
-
-**What this token is:**
-- A signal of belief in Fincept Terminal's long-term vision
-- A way to be part of the community at the earliest stage
-- Planned for integration into the Fincept Terminal ecosystem as the product grows
-
-**What this token is not (today):**
-- It currently carries no in-product utility, governance rights, or revenue share
-- It is not an investment contract, and no returns are promised or implied
-
-We're thinking long-term — and we hope you are too. That said, please only participate with funds you can genuinely afford to lose. Crypto markets are volatile, and Fincept Corporation assumes no responsibility for any gains or losses from buying, selling, or holding this token.
-
-**If you believe in what we're building, holding is how you show it.**
-
----
-
## For Universities & Educators
**Bring professional-grade financial analytics to your classroom.**
diff --git a/fincept-qt/CMakeLists.txt b/fincept-qt/CMakeLists.txt
index 4bba39d75..66d9069ca 100644
--- a/fincept-qt/CMakeLists.txt
+++ b/fincept-qt/CMakeLists.txt
@@ -331,7 +331,7 @@ else()
endif()
find_package(Qt6 ${_FINCEPT_QT_VER_ARGS} REQUIRED COMPONENTS
- Widgets Charts PrintSupport Network Sql Concurrent Multimedia)
+ Widgets Charts PrintSupport Network Sql Concurrent Multimedia LinguistTools)
# Optional: WebSockets (not always installed)
find_package(Qt6 ${_FINCEPT_QT_VER_ARGS} QUIET COMPONENTS WebSockets)
@@ -639,6 +639,7 @@ set(CORE_SOURCES
src/core/debug/StressLoad.cpp
src/core/session/SessionManager.cpp
src/core/session/ScreenStateManager.cpp
+ src/core/i18n/LanguageManager.cpp
src/core/keys/KeyConfigManager.cpp
src/core/keys/WindowCycler.cpp
src/core/net/NetSpeedMeter.cpp
@@ -1082,7 +1083,7 @@ set(SERVICE_SOURCES
# for Qt6::TextToSpeech when the Qt Speech module isn't installed).
src/services/tts/TtsService.cpp
- # Clap-to-start trigger — lightweight pyaudio loop that fires a signal
+ # Clap-to-start trigger — lightweight sounddevice loop that fires a signal
# when it hears a (double-)clap. Wakes up the AiChatBubble mic.
src/services/voice_trigger/ClapDetectorService.cpp
@@ -1124,6 +1125,7 @@ set(UI_SOURCES
src/ui/widgets/LoadingOverlay.cpp
src/ui/widgets/ConfettiOverlay.cpp
src/ui/widgets/SpeedSparkline.cpp
+ src/ui/widgets/LanguageSwitcher.cpp
src/ui/tables/DataTable.cpp
src/ui/charts/ChartFactory.cpp
src/ui/navigation/NavigationBar.cpp
@@ -2311,6 +2313,36 @@ target_include_directories(FinceptTerminal PRIVATE
src
)
+# ── Translations (.ts → .qm → resources) ──────────────────────────────────────
+# Hand-authored .ts files under translations/ are compiled to .qm at build time
+# (lrelease) and embedded in the Qt resource system at :/i18n/fincept_<locale>.qm.
+# LanguageManager loads them by that path at runtime. We deliberately use
+# qt6_add_lrelease (not qt6_add_translations) so lupdate never runs against the
+# source tree — the .ts files are the source of truth and must not be auto-
+# rewritten by scanning the C++. English is the source language; no .qm exists
+# for it and LanguageManager falls back to the in-source tr() literals.
+set(FINCEPT_TS_FILES
+ translations/fincept_zh_CN.ts
+ translations/fincept_zh_HK.ts
+ translations/fincept_id_ID.ts
+ translations/fincept_vi_VN.ts
+ translations/fincept_tr_TR.ts
+ translations/fincept_de_DE.ts
+ translations/fincept_pt_BR.ts
+ translations/fincept_es_ES.ts
+ translations/fincept_fr_FR.ts
+ translations/fincept_it_IT.ts
+)
+qt6_add_lrelease(FinceptTerminal
+ TS_FILES ${FINCEPT_TS_FILES}
+ QM_FILES_OUTPUT_VARIABLE FINCEPT_QM_FILES
+)
+qt6_add_resources(FinceptTerminal "fincept_i18n"
+ PREFIX "/i18n"
+ BASE "${CMAKE_CURRENT_BINARY_DIR}"
+ FILES ${FINCEPT_QM_FILES}
+)
+
# ── macOS bundle properties ───────────────────────────────────────────────────
if(APPLE)
set_target_properties(FinceptTerminal PROPERTIES
diff --git a/fincept-qt/resources/requirements-numpy2.txt b/fincept-qt/resources/requirements-numpy2.txt
index dd6e4bd45..8db4217a2 100644
--- a/fincept-qt/resources/requirements-numpy2.txt
+++ b/fincept-qt/resources/requirements-numpy2.txt
@@ -160,9 +160,14 @@ mlflow>=2.0.0
faiss-cpu>=1.7.0
mplfinance>=0.12.0
-# Voice recognition (speech-to-text via Google API)
+# Voice recognition (speech-to-text via Google API).
+# sounddevice ships PortAudio inside its wheel for every platform we support
+# (Windows x64, macOS x86_64 + arm64, Linux x86_64 + aarch64), removing the
+# old PyAudio install failure on Apple Silicon machines without Homebrew
+# portaudio. scripts/voice/* implements a thin SpeechRecognition AudioSource
+# shim on top of sd.RawInputStream so the SR API stays unchanged.
SpeechRecognition>=3.10.0
-PyAudio>=0.2.14
+sounddevice>=0.4.6
# Deepgram live STT (alternative provider) — pinned to v3 SDK; v4+ removed
# DeepgramClientOptions and rearranged the live websocket API.
diff --git a/fincept-qt/scripts/alphavantage_data.py b/fincept-qt/scripts/alphavantage_data.py
index ecc393582..e5ff4776f 100644
--- a/fincept-qt/scripts/alphavantage_data.py
+++ b/fincept-qt/scripts/alphavantage_data.py
@@ -11,7 +11,7 @@ import requests
from typing import Dict, Any
# API Configuration
-API_KEY = os.environ.get('', '')
+API_KEY = os.environ.get('ALPHA_VANTAGE_API_KEY', '')
BASE_URL = "https://www.alphavantage.co/query"
@@ -59,11 +59,11 @@ def get_quote(symbol: str) -> Dict[str, Any]:
def main(args=None):
-
+ """Main CLI entry point"""
if args is None:
args = sys.argv[1:]
- """Main CLI entry point"""
- if len(args) + 1 < 3:
+
+ if len(args) < 2:
print(json.dumps({
"error": "Usage: python alphavantage_data.py quote <symbol>"
}))
diff --git a/fincept-qt/scripts/voice/clap_detector.py b/fincept-qt/scripts/voice/clap_detector.py
index 3b4a16f6b..fe195af50 100644
--- a/fincept-qt/scripts/voice/clap_detector.py
+++ b/fincept-qt/scripts/voice/clap_detector.py
@@ -51,19 +51,20 @@ SAMPLE_WIDTH = 2
CHUNK_SAMPLES = 1600 # 100 ms at 16 kHz — short enough to localise transients
-def list_input_devices(pa) -> List[dict]:
+def list_input_devices(sd) -> List[dict]:
out = []
try:
- host = pa.get_default_host_api_info()
- default_input_index = host.get("defaultInputDevice", -1)
+ default_input_index = sd.default.device[0]
+ if default_input_index is None or default_input_index < 0:
+ default_input_index = -1
except Exception:
default_input_index = -1
- for i in range(pa.get_device_count()):
- try:
- info = pa.get_device_info_by_index(i)
- except Exception:
- continue
- if int(info.get("maxInputChannels", 0)) <= 0:
+ try:
+ devices = sd.query_devices()
+ except Exception:
+ return out
+ for i, info in enumerate(devices):
+ if int(info.get("max_input_channels", 0)) <= 0:
continue
out.append({
"index": i,
@@ -73,8 +74,8 @@ def list_input_devices(pa) -> List[dict]:
return out
-def pick_device(pa, pref: str) -> Optional[int]:
- inputs = list_input_devices(pa)
+def pick_device(sd, pref: str) -> Optional[int]:
+ inputs = list_input_devices(sd)
if not inputs:
return None
if pref:
@@ -133,11 +134,11 @@ def main() -> None:
f"max_gap_ms={max_gap_ms} debounce_ms={debounce_ms} device='{device_pref}'")
try:
- import pyaudio
+ import sounddevice as sd
except ImportError as e:
- diag(f"pyaudio import failed: {e}")
+ diag(f"sounddevice import failed: {e}")
emit({"fatal": (
- "PyAudio not available in venv-numpy2. "
+ "sounddevice not available in venv-numpy2. "
"Open Settings -> Python Env -> Reinstall packages."
)})
sys.exit(1)
@@ -152,25 +153,22 @@ def main() -> None:
except (ValueError, OSError):
pass
- pa = pyaudio.PyAudio()
- device_index = pick_device(pa, device_pref)
+ device_index = pick_device(sd, device_pref)
if device_index is None:
emit({"fatal": "No input audio device available"})
- pa.terminate()
sys.exit(1)
try:
- stream = pa.open(
- format=pyaudio.paInt16,
+ stream = sd.RawInputStream(
+ samplerate=SAMPLE_RATE,
channels=CHANNELS,
- rate=SAMPLE_RATE,
- input=True,
- input_device_index=device_index,
- frames_per_buffer=CHUNK_SAMPLES,
+ dtype="int16",
+ blocksize=CHUNK_SAMPLES,
+ device=device_index,
)
+ stream.start()
except Exception as ex:
- diag(f"pa.open failed: {ex}")
- pa.terminate()
+ diag(f"sd.RawInputStream open failed: {ex}")
emit({"fatal": f"Could not open microphone stream: {ex}"})
sys.exit(1)
@@ -186,7 +184,10 @@ def main() -> None:
try:
while not stop_flag.is_set():
try:
- buf = stream.read(CHUNK_SAMPLES, exception_on_overflow=False)
+ # sounddevice returns (cffi_buffer, overflowed); we ignore the
+ # overflow flag — matches PyAudio's exception_on_overflow=False.
+ data, _overflowed = stream.read(CHUNK_SAMPLES)
+ buf = bytes(data)
except Exception as ex:
diag(f"stream.read failed: {ex}")
emit({"error": f"Audio read failed: {ex}"})
@@ -232,14 +233,10 @@ def main() -> None:
finally:
diag(f"shutting down — chunks={chunks_seen} candidates={candidates_seen}")
try:
- stream.stop_stream()
+ stream.stop()
stream.close()
except Exception:
pass
- try:
- pa.terminate()
- except Exception:
- pass
if __name__ == "__main__":
diff --git a/fincept-qt/scripts/voice/deepgram_stt.py b/fincept-qt/scripts/voice/deepgram_stt.py
index 126e11088..73911c54a 100644
--- a/fincept-qt/scripts/voice/deepgram_stt.py
+++ b/fincept-qt/scripts/voice/deepgram_stt.py
@@ -1,9 +1,9 @@
#!/usr/bin/env python3
"""
-deepgram_stt.py — Mic (raw pyaudio) -> Deepgram live WebSocket -> JSON stdout.
+deepgram_stt.py — Mic (raw sounddevice) -> Deepgram live WebSocket -> JSON stdout.
This rewrite replaces deepgram-sdk's opaque `Microphone` helper with a manual
-pyaudio capture loop so we can:
+sounddevice capture loop so we can:
* pick a specific input device by name substring,
* apply a software gain multiplier (laptop mics are often very quiet),
* log periodic RMS levels so we can tell whether the mic is actually
@@ -56,35 +56,36 @@ CHUNK_SAMPLES = 1600 # 100 ms at 16 kHz — Deepgram recommended cadence
LEVEL_LOG_EVERY_S = 2.0 # how often to log RMS / peak to stderr
-def list_input_devices(pa) -> List[dict]:
+def list_input_devices(sd) -> List[dict]:
"""Returns a list of {index, name, channels, default_rate} for inputs."""
out = []
try:
- host = pa.get_default_host_api_info()
- default_input_index = host.get("defaultInputDevice", -1)
+ default_input_index = sd.default.device[0]
+ if default_input_index is None or default_input_index < 0:
+ default_input_index = -1
except Exception:
default_input_index = -1
- for i in range(pa.get_device_count()):
- try:
- info = pa.get_device_info_by_index(i)
- except Exception:
- continue
- if int(info.get("maxInputChannels", 0)) <= 0:
+ try:
+ devices = sd.query_devices()
+ except Exception:
+ return out
+ for i, info in enumerate(devices):
+ if int(info.get("max_input_channels", 0)) <= 0:
continue
out.append({
"index": i,
"name": str(info.get("name", "")),
- "channels": int(info.get("maxInputChannels", 0)),
- "default_rate": int(info.get("defaultSampleRate", 0)),
+ "channels": int(info.get("max_input_channels", 0)),
+ "default_rate": int(info.get("default_samplerate", 0) or 0),
"is_default": (i == default_input_index),
})
return out
-def pick_device(pa, pref: str) -> Optional[int]:
+def pick_device(sd, pref: str) -> Optional[int]:
"""Return device index matching `pref` substring, else default device.
Logs choices to stderr so the user can see what was selected."""
- inputs = list_input_devices(pa)
+ inputs = list_input_devices(sd)
diag(f"available input devices ({len(inputs)}):")
for d in inputs:
marker = " [default]" if d["is_default"] else ""
@@ -196,12 +197,12 @@ def main() -> None:
sys.exit(1)
try:
- import pyaudio
- diag(f"pyaudio imported, version={getattr(pyaudio, '__version__', '?')}")
+ import sounddevice as sd
+ diag(f"sounddevice imported, version={getattr(sd, '__version__', '?')}")
except ImportError as e:
- diag(f"pyaudio import failed: {e}")
+ diag(f"sounddevice import failed: {e}")
emit({"fatal": (
- "PyAudio not available in venv-numpy2. "
+ "sounddevice not available in venv-numpy2. "
"Open Settings -> Python Env -> Reinstall packages."
)})
sys.exit(1)
@@ -320,30 +321,31 @@ def main() -> None:
sys.exit(1)
diag("dg_conn.start() returned True — websocket open")
- # ── Mic capture (raw pyaudio) ────────────────────────────────────────────
- pa = pyaudio.PyAudio()
- device_index = pick_device(pa, device_pref)
+ # ── Mic capture (raw sounddevice) ────────────────────────────────────────
+ device_index = pick_device(sd, device_pref)
if device_index is None:
emit({"fatal": "No input audio device available"})
try:
dg_conn.finish()
- finally:
- pa.terminate()
+ except Exception:
+ pass
sys.exit(1)
try:
- stream = pa.open(
- format=pyaudio.paInt16,
+ stream = sd.RawInputStream(
+ samplerate=SAMPLE_RATE,
channels=CHANNELS,
- rate=SAMPLE_RATE,
- input=True,
- input_device_index=device_index,
- frames_per_buffer=CHUNK_SAMPLES,
+ dtype="int16",
+ blocksize=CHUNK_SAMPLES,
+ device=device_index,
)
+ stream.start()
except Exception as ex:
- diag(f"pa.open failed: {ex}")
- dg_conn.finish()
- pa.terminate()
+ diag(f"sd.RawInputStream open failed: {ex}")
+ try:
+ dg_conn.finish()
+ except Exception:
+ pass
emit({"fatal": f"Could not open microphone stream: {ex}"})
sys.exit(1)
diag(f"audio stream opened — device={device_index} rate={SAMPLE_RATE} "
@@ -356,7 +358,10 @@ def main() -> None:
try:
while not stop_flag.is_set():
try:
- buf = stream.read(CHUNK_SAMPLES, exception_on_overflow=False)
+ # sounddevice returns (cffi_buffer, overflowed); ignore overflow
+ # — matches PyAudio's exception_on_overflow=False behaviour.
+ data, _overflowed = stream.read(CHUNK_SAMPLES)
+ buf = bytes(data)
except Exception as ex:
diag(f"stream.read failed: {ex}")
emit({"error": f"Audio read failed: {ex}"})
@@ -394,14 +399,10 @@ def main() -> None:
finally:
diag(f"shutting down — chunks_sent={chunk_count} bytes_sent={sent_bytes}")
try:
- stream.stop_stream()
+ stream.stop()
stream.close()
except Exception:
pass
- try:
- pa.terminate()
- except Exception:
- pass
flush_buffered_text("shutdown")
try:
dg_conn.finish()
diff --git a/fincept-qt/scripts/voice/deepgram_tts.py b/fincept-qt/scripts/voice/deepgram_tts.py
index 6514de0b7..ba99fd7ab 100644
--- a/fincept-qt/scripts/voice/deepgram_tts.py
+++ b/fincept-qt/scripts/voice/deepgram_tts.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
"""
-deepgram_tts.py — Stdin text -> Deepgram Aura TTS -> pyaudio playback.
+deepgram_tts.py — Stdin text -> Deepgram Aura TTS -> sounddevice playback.
JSON-lines stdout protocol matches tts.py so TtsService can swap providers
transparently:
@@ -11,7 +11,7 @@ transparently:
Strategy: POST text to Deepgram's /v1/speak endpoint with linear16 / 24000Hz
mono / container=none. Response body is raw PCM streamed as it's synthesised;
-we pipe it directly into a pyaudio output stream so playback starts before
+we pipe it directly into a sounddevice output stream so playback starts before
the full clip arrives (low latency, no temp files, no ffmpeg).
Environment variables (set by DeepgramTtsProvider in C++):
@@ -42,19 +42,17 @@ CHANNELS = 1
PLAYBACK_CHUNK = 4096 # bytes; ~85 ms at 24 kHz int16 mono
-def play_stream(audio_iter, pyaudio_mod) -> None:
- """Write raw PCM bytes from `audio_iter` to a pyaudio output stream."""
- pa = pyaudio_mod.PyAudio()
+def play_stream(audio_iter, sd_mod) -> None:
+ """Write raw PCM bytes from `audio_iter` to a sounddevice output stream."""
try:
- stream = pa.open(
- format=pyaudio_mod.paInt16,
+ stream = sd_mod.RawOutputStream(
+ samplerate=SAMPLE_RATE,
channels=CHANNELS,
- rate=SAMPLE_RATE,
- output=True,
+ dtype="int16",
)
+ stream.start()
except Exception as ex:
- pa.terminate()
- raise RuntimeError(f"pyaudio open output failed: {ex}") from ex
+ raise RuntimeError(f"sounddevice open output failed: {ex}") from ex
try:
emit({"status": "speaking"})
@@ -64,11 +62,10 @@ def play_stream(audio_iter, pyaudio_mod) -> None:
stream.write(chunk)
finally:
try:
- stream.stop_stream()
+ stream.stop()
stream.close()
except Exception:
pass
- pa.terminate()
def main() -> int:
@@ -102,12 +99,12 @@ def main() -> int:
diag("requests not available — falling back to urllib")
try:
- import pyaudio
- diag(f"pyaudio imported, version={getattr(pyaudio, '__version__', '?')}")
+ import sounddevice as sd
+ diag(f"sounddevice imported, version={getattr(sd, '__version__', '?')}")
except ImportError as e:
- diag(f"pyaudio import failed: {e}")
+ diag(f"sounddevice import failed: {e}")
emit({"fatal": (
- "PyAudio not available in venv-numpy2. "
+ "sounddevice not available in venv-numpy2. "
"Open Settings -> Python Env -> Reinstall packages."
)})
return 1
@@ -147,7 +144,7 @@ def main() -> int:
emit({"fatal": f"Deepgram TTS HTTP {resp.status_code}: {body}"})
return 1
resp.raw.decode_content = True
- play_stream(resp.iter_content(chunk_size=PLAYBACK_CHUNK), pyaudio)
+ play_stream(resp.iter_content(chunk_size=PLAYBACK_CHUNK), sd)
else:
import urllib.request
req = urllib.request.Request(url, data=payload, headers=headers, method="POST")
@@ -163,7 +160,7 @@ def main() -> int:
if not chunk:
return
yield chunk
- play_stream(_iter(), pyaudio)
+ play_stream(_iter(), sd)
except Exception as ex:
diag(f"runtime exception: {ex}")
emit({"error": f"Deepgram TTS error: {ex}"})
diff --git a/fincept-qt/scripts/voice/speech_to_text.py b/fincept-qt/scripts/voice/speech_to_text.py
index 43169eb14..c629429c7 100644
--- a/fincept-qt/scripts/voice/speech_to_text.py
+++ b/fincept-qt/scripts/voice/speech_to_text.py
@@ -31,13 +31,63 @@ def main() -> None:
emit({"fatal": "speech_recognition not installed — run: pip install SpeechRecognition"})
sys.exit(1)
- # Fail fast if PyAudio is not available (needed for microphone access)
+ # sounddevice replaces PyAudio. We bridge it to SpeechRecognition by
+ # subclassing sr.AudioSource — recognizer.listen() only touches
+ # source.stream.read(CHUNK), so a minimal wrapper is enough.
try:
- import pyaudio # noqa: F401
+ import sounddevice as sd
except ImportError:
- emit({"fatal": "PyAudio not installed — run: pip install PyAudio"})
+ emit({"fatal": "sounddevice not installed — run: pip install sounddevice"})
sys.exit(1)
+ SAMPLE_RATE = 16000
+ CHANNELS = 1
+ SAMPLE_WIDTH = 2 # int16 = 2 bytes per sample
+ CHUNK_FRAMES = 1024 # matches SpeechRecognition's default chunk size
+
+ class _SoundDeviceStream:
+ """Implements the .read(size) and .close() API that
+ sr.Recognizer.listen() expects on AudioSource.stream."""
+
+ def __init__(self):
+ self._stream = sd.RawInputStream(
+ samplerate=SAMPLE_RATE,
+ channels=CHANNELS,
+ dtype="int16",
+ blocksize=CHUNK_FRAMES,
+ )
+ self._stream.start()
+
+ def read(self, size: int) -> bytes:
+ # SpeechRecognition asks for `size` BYTES; sounddevice reads frames.
+ frames = max(1, size // (SAMPLE_WIDTH * CHANNELS))
+ data, _overflowed = self._stream.read(frames)
+ return bytes(data)
+
+ def close(self):
+ try:
+ self._stream.stop()
+ self._stream.close()
+ except Exception:
+ pass
+
+ class SoundDeviceAudioSource(sr.AudioSource):
+ def __init__(self):
+ self.SAMPLE_RATE = SAMPLE_RATE
+ self.SAMPLE_WIDTH = SAMPLE_WIDTH
+ self.CHUNK = CHUNK_FRAMES * SAMPLE_WIDTH * CHANNELS
+ self.stream = None
+
+ def __enter__(self):
+ self.stream = _SoundDeviceStream()
+ return self
+
+ def __exit__(self, exc_type, exc, tb):
+ if self.stream is not None:
+ self.stream.close()
+ self.stream = None
+ return False
+
# Graceful shutdown on SIGTERM (Windows doesn't have SIGTERM via signal,
# but QProcess::kill sends taskkill which terminates the process anyway).
running = True
@@ -55,7 +105,7 @@ def main() -> None:
recognizer.pause_threshold = 0.8
try:
- mic = sr.Microphone()
+ mic = SoundDeviceAudioSource()
except (OSError, AttributeError) as e:
emit({"fatal": f"No microphone available: {e}"})
sys.exit(1)
diff --git a/fincept-qt/src/app/DockScreenRouter.cpp b/fincept-qt/src/app/DockScreenRouter.cpp
index 9646becf7..7993d126b 100644
--- a/fincept-qt/src/app/DockScreenRouter.cpp
+++ b/fincept-qt/src/app/DockScreenRouter.cpp
@@ -28,6 +28,7 @@
#include <QApplication>
#include <QClipboard>
#include <QContextMenuEvent>
+#include <QCoreApplication>
#include <QEvent>
#include <QHBoxLayout>
#include <QInputDialog>
@@ -45,58 +46,65 @@
namespace fincept {
QString DockScreenRouter::title_for_id(const QString& id) {
- static const QHash<QString, QString> titles = {
- {"dashboard", "Dashboard"},
- {"markets", "Markets"},
- {"crypto_trading", "Crypto Trading"},
- {"equity_trading", "Equity Trading"},
- {"algo_trading", "Algo Trading"},
- {"backtesting", "Backtesting"},
- {"portfolio", "Portfolio"},
- {"watchlist", "Watchlist"},
- {"news", "News"},
- {"ai_chat", "AI Chat"},
- {"equity_research", "Equity Research"},
- {"economics", "Economics"},
- {"dbnomics", "DBnomics"},
- {"akshare", "AkShare Data"},
- {"asia_markets", "Asia Markets"},
- {"geopolitics", "Geopolitics"},
- {"gov_data", "Gov Data"},
- {"maritime", "Maritime"},
- {"polymarket", "Prediction Markets"},
- {"relationship_map", "Relationship Map"},
- {"derivatives", "Derivatives"},
- {"alt_investments", "Alt Investments"},
- {"ma_analytics", "M&A Analytics"},
- {"surface_analytics", "Surface Analytics"},
- {"quantlib", "QuantLib"},
- {"ai_quant_lab", "AI Quant Lab"},
- {"alpha_arena", "Alpha Arena"},
- {"agent_config", "Agent Config"},
- {"mcp_servers", "MCP Servers"},
- {"node_editor", "Node Editor"},
- {"code_editor", "Code Editor"},
- {"excel", "Excel"},
- {"report_builder", "Report Builder"},
- {"trade_viz", "Trade Viz"},
- {"data_sources", "Data Sources"},
- {"data_mapping", "Data Mapping"},
- {"file_manager", "File Manager"},
- {"notes", "Notes"},
- {"forum", "Forum"},
- {"docs", "Docs"},
- {"support", "Support"},
- {"about", "About"},
- {"profile", "Profile"},
- {"settings", "Settings"},
- {"contact", "Contact"},
- {"terms", "Terms"},
- {"privacy", "Privacy"},
- {"trademarks", "Trademarks"},
- {"help", "Help"},
+ // Map stays in English source so it remains the canonical lookup key.
+ // The returned value is wrapped in tr() at call time so the live
+ // QTranslator picks up the user's language without us having to
+ // rebuild the static map on every language switch.
+ static const QHash<QString, const char*> titles = {
+ {"dashboard", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Dashboard")},
+ {"markets", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Markets")},
+ {"crypto_trading", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Crypto Trading")},
+ {"equity_trading", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Equity Trading")},
+ {"algo_trading", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Algo Trading")},
+ {"backtesting", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Backtesting")},
+ {"portfolio", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Portfolio")},
+ {"watchlist", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Watchlist")},
+ {"news", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "News")},
+ {"ai_chat", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "AI Chat")},
+ {"equity_research", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Equity Research")},
+ {"economics", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Economics")},
+ {"dbnomics", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "DBnomics")},
+ {"akshare", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "AkShare Data")},
+ {"asia_markets", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Asia Markets")},
+ {"geopolitics", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Geopolitics")},
+ {"gov_data", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Gov Data")},
+ {"maritime", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Maritime")},
+ {"polymarket", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Prediction Markets")},
+ {"relationship_map", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Relationship Map")},
+ {"derivatives", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Derivatives")},
+ {"alt_investments", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Alt Investments")},
+ {"ma_analytics", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "M&A Analytics")},
+ {"surface_analytics", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Surface Analytics")},
+ {"quantlib", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "QuantLib")},
+ {"ai_quant_lab", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "AI Quant Lab")},
+ {"alpha_arena", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Alpha Arena")},
+ {"agent_config", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Agent Config")},
+ {"mcp_servers", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "MCP Servers")},
+ {"node_editor", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Node Editor")},
+ {"code_editor", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Code Editor")},
+ {"excel", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Excel")},
+ {"report_builder", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Report Builder")},
+ {"trade_viz", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Trade Viz")},
+ {"data_sources", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Data Sources")},
+ {"data_mapping", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Data Mapping")},
+ {"file_manager", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "File Manager")},
+ {"notes", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Notes")},
+ {"forum", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Forum")},
+ {"docs", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Docs")},
+ {"support", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Support")},
+ {"about", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "About")},
+ {"profile", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Profile")},
+ {"settings", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Settings")},
+ {"contact", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Contact")},
+ {"terms", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Terms")},
+ {"privacy", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Privacy")},
+ {"trademarks", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Trademarks")},
+ {"help", QT_TRANSLATE_NOOP("fincept::DockScreenRouter", "Help")},
};
- return titles.value(id, id);
+ auto it = titles.find(id);
+ if (it == titles.end())
+ return id;
+ return QCoreApplication::translate("fincept::DockScreenRouter", it.value());
}
DockScreenRouter::DockScreenRouter(ads::CDockManager* manager, QObject* parent) : QObject(parent), manager_(manager) {
diff --git a/fincept-qt/src/app/WindowFrame.cpp b/fincept-qt/src/app/WindowFrame.cpp
index 1a4a8de17..09e534e06 100644
--- a/fincept-qt/src/app/WindowFrame.cpp
+++ b/fincept-qt/src/app/WindowFrame.cpp
@@ -167,9 +167,12 @@ WindowFrame::WindowFrame(int window_id, QWidget* parent, const WindowId& adopted
}
}, Qt::QueuedConnection);
- // Show active profile in title bar when using a non-default profile
+ // Show active profile in title bar when using a non-default profile.
+ // "Fincept Terminal" is the product brand and is intentionally not
+ // translated — the bracketed profile name is the only variable part.
const QString profile = ProfileManager::instance().active();
- setWindowTitle(profile == "default" ? "Fincept Terminal" : QString("Fincept Terminal [%1]").arg(profile));
+ setWindowTitle(profile == "default" ? QStringLiteral("Fincept Terminal")
+ : QStringLiteral("Fincept Terminal [%1]").arg(profile));
// Load icon from the embedded Windows resource (IDI_ICON1 in app.rc).
// Falls back to the .ico beside the executable on other platforms.
QIcon app_icon;
@@ -537,7 +540,7 @@ WindowFrame::WindowFrame(int window_id, QWidget* parent, const WindowId& adopted
if (dock_manager_) {
bool ok = false;
const QString name =
- QInputDialog::getText(this, "Save Layout", "Layout name:", QLineEdit::Normal, QString(), &ok);
+ QInputDialog::getText(this, tr("Save Layout"), tr("Layout name:"), QLineEdit::Normal, QString(), &ok);
if (ok && !name.trimmed().isEmpty()) {
dock_manager_->addPerspective(name.trimmed());
LOG_INFO("WindowFrame", QString("Saved perspective: %1").arg(name.trimmed()));
@@ -656,28 +659,28 @@ WindowFrame::WindowFrame(int window_id, QWidget* parent, const WindowId& adopted
.arg(QString::fromStdString(r.error())));
} else if (action == "import_data") {
QString path = QFileDialog::getOpenFileName(
- this, "Import Layout", QDir::homePath(),
- "Fincept Layout (*.flayout *.fwsp);;All Files (*)");
+ this, tr("Import Layout"), QDir::homePath(),
+ tr("Fincept Layout (*.flayout *.fwsp);;All Files (*)"));
if (!path.isEmpty()) {
auto r = LayoutCatalog::instance().import_from(path);
if (r.is_err())
- QMessageBox::warning(this, "Import Failed",
+ QMessageBox::warning(this, tr("Import Failed"),
QString::fromStdString(r.error()));
}
} else if (action == "export_data") {
const LayoutId cur_id = layout::WorkspaceShell::current_id();
if (cur_id.is_null()) {
QMessageBox::information(
- this, "Export Layout",
- "Open or save a layout first, then export it.");
+ this, tr("Export Layout"),
+ tr("Open or save a layout first, then export it."));
} else {
QString path = QFileDialog::getSaveFileName(
- this, "Export Layout", QDir::homePath(),
- "Fincept Layout (*.flayout)");
+ this, tr("Export Layout"), QDir::homePath(),
+ tr("Fincept Layout (*.flayout)"));
if (!path.isEmpty()) {
auto r = LayoutCatalog::instance().export_to(cur_id, path);
if (r.is_err())
- QMessageBox::warning(this, "Export Failed",
+ QMessageBox::warning(this, tr("Export Failed"),
QString::fromStdString(r.error()));
}
}
@@ -687,9 +690,9 @@ WindowFrame::WindowFrame(int window_id, QWidget* parent, const WindowId& adopted
scr = QApplication::primaryScreen();
QPixmap px = scr->grabWindow(winId());
QString path = QFileDialog::getSaveFileName(
- this, "Save Screenshot",
+ this, tr("Save Screenshot"),
QDir::homePath() + "/fincept_" + QDateTime::currentDateTime().toString("yyyyMMdd_HHmmss") + ".png",
- "PNG Images (*.png)");
+ tr("PNG Images (*.png)"));
if (!path.isEmpty()) {
px.save(path, "PNG");
LOG_INFO("WindowFrame", QString("Screenshot saved: %1").arg(path));
@@ -869,17 +872,19 @@ void WindowFrame::set_shell_visible(bool visible) {
if (!visible) {
// Reset title to plain app name — no screen suffix while on auth screens
const QString profile = ProfileManager::instance().active();
- setWindowTitle(profile == "default" ? "Fincept Terminal"
- : QString("Fincept Terminal [%1]").arg(profile));
+ setWindowTitle(profile == "default" ? QStringLiteral("Fincept Terminal")
+ : QStringLiteral("Fincept Terminal [%1]").arg(profile));
}
}
void WindowFrame::update_window_title() {
- QString title = "Fincept Terminal";
+ // Brand stays in English; only the workspace/screen suffix (translated
+ // via DockScreenRouter::title_for_id) responds to language changes.
+ QString title = QStringLiteral("Fincept Terminal");
const QString profile = ProfileManager::instance().active();
if (profile != "default")
- title += QString(" [%1]").arg(profile);
+ title += QStringLiteral(" [%1]").arg(profile);
// Workspace / screen name must never appear in the title while the user
// is on the auth or lock stack — that would leak the last-visited screen
@@ -975,18 +980,21 @@ void WindowFrame::adopt_frame_uuid(const WindowId& id) {
// ── Phase 6 final: capture / apply layout ───────────────────────────────────
bool WindowFrame::is_active_for_work() const {
- // Best-effort per decision 9.1. Two cheap checks cover the obvious cases:
- // - isMinimized(): user clicked the minimise button or pressed Win+M.
- // - isVisible(): the widget tree is hidden (rare for top-level frames
- // in this app, but cheap to check).
+ // Only isMinimized() drives the active/inactive flag. The previous
+ // isVisible() check fired false-positives during window construction:
+ // Qt sends a WindowStateChange BEFORE show() returns, at which point
+ // isVisible() is still false. changeEvent() then flips
+ // fincept.active_for_work to false, and any DataHub topic with
+ // pause_when_inactive=true (market:quote:*, market:sparkline:*)
+ // silently drops slot fan-out for newly-subscribed dashboard widgets.
+ // The watchdog then renders "No data yet" even though publishes are
+ // arriving. Navigating away and back works around it because by then
+ // the window is visible and the property is true again.
+ //
// Everything else (virtual-desktop occupancy, occlusion by other apps,
// alt-tab status) is intentionally NOT detected — platform-specific and
// unreliable.
- if (isMinimized())
- return false;
- if (!isVisible())
- return false;
- return true;
+ return !isMinimized();
}
namespace {
@@ -1059,6 +1067,12 @@ void WindowFrame::resizeEvent(QResizeEvent* event) {
void WindowFrame::changeEvent(QEvent* event) {
QMainWindow::changeEvent(event);
+ // Refresh the title bar when the active translator changes, so the
+ // workspace/screen suffix picks up the new locale immediately.
+ if (event->type() == QEvent::LanguageChange) {
+ update_window_title();
+ return;
+ }
if (event->type() != QEvent::WindowStateChange)
return;
diff --git a/fincept-qt/src/app/main.cpp b/fincept-qt/src/app/main.cpp
index e9eac3d79..47e840e9f 100644
--- a/fincept-qt/src/app/main.cpp
+++ b/fincept-qt/src/app/main.cpp
@@ -12,6 +12,7 @@
#include "core/config/ProfileManager.h"
#include "core/components/ComponentCatalog.h"
#include "core/crash/CrashHandler.h"
+#include "core/i18n/LanguageManager.h"
#include "core/keys/KeyConfigManager.h"
#include "core/logging/Logger.h"
#include "core/session/ScreenStateManager.h"
@@ -663,6 +664,11 @@ int main(int argc, char* argv[]) {
tm.apply_theme("Obsidian");
LOG_INFO("App", "Theme: Obsidian, font: " + family + " " + size_s);
}
+
+ // Load persisted language and install the matching QTranslator before
+ // any windows are shown — eliminates an English-flash on first paint
+ // when the user has previously chosen another language.
+ fincept::i18n::LanguageManager::instance().initialize();
}
// Open cache database (non-fatal if fails)
diff --git a/fincept-qt/src/auth/AuthTypes.h b/fincept-qt/src/auth/AuthTypes.h
index 093e8b1d6..c536d1818 100644
--- a/fincept-qt/src/auth/AuthTypes.h
+++ b/fincept-qt/src/auth/AuthTypes.h
@@ -90,12 +90,31 @@ struct ApiResponse {
int status_code = 0;
};
+struct RateLimitInfo {
+ int limit = 0;
+ int remaining = 0;
+ qint64 reset_at = 0; // unix timestamp (seconds)
+ int window_seconds = 0;
+ int concurrent_limit = 0;
+
+ static RateLimitInfo from_json(const QJsonObject& obj) {
+ RateLimitInfo r;
+ r.limit = obj["limit"].toInt();
+ r.remaining = obj["remaining"].toInt();
+ r.reset_at = static_cast<qint64>(obj["reset_at"].toDouble());
+ r.window_seconds = obj["window_seconds"].toInt();
+ r.concurrent_limit = obj["concurrent_limit"].toInt();
+ return r;
+ }
+};
+
struct UserProfile {
int id = 0;
QString username;
QString email;
QString account_type = "free";
double credit_balance = 0;
+ QString credits_expire_at;
bool is_verified = false;
bool is_admin = false;
bool mfa_enabled = false;
@@ -104,6 +123,7 @@ struct UserProfile {
QString country_code;
QString created_at;
QString last_login_at;
+ RateLimitInfo rate_limit;
static UserProfile from_json(const QJsonObject& obj) {
UserProfile p;
@@ -112,6 +132,7 @@ struct UserProfile {
p.email = obj["email"].toString();
p.account_type = obj["account_type"].toString("free");
p.credit_balance = obj["credit_balance"].toDouble();
+ p.credits_expire_at = obj["credits_expire_at"].toString();
p.is_verified = obj["is_verified"].toBool();
p.is_admin = obj["is_admin"].toBool();
p.mfa_enabled = obj["mfa_enabled"].toBool();
@@ -120,6 +141,8 @@ struct UserProfile {
p.country_code = obj["country_code"].toString();
p.created_at = obj["created_at"].toString();
p.last_login_at = obj["last_login_at"].toString();
+ if (obj.contains("rate_limit") && obj["rate_limit"].isObject())
+ p.rate_limit = RateLimitInfo::from_json(obj["rate_limit"].toObject());
return p;
}
};
diff --git a/fincept-qt/src/core/i18n/LanguageManager.cpp b/fincept-qt/src/core/i18n/LanguageManager.cpp
new file mode 100644
index 000000000..aa48d9b24
--- /dev/null
+++ b/fincept-qt/src/core/i18n/LanguageManager.cpp
@@ -0,0 +1,100 @@
+#include "core/i18n/LanguageManager.h"
+
+#include "core/logging/Logger.h"
+#include "storage/repositories/SettingsRepository.h"
+
+#include <QCoreApplication>
+#include <QLocale>
+#include <QTranslator>
+
+namespace fincept::i18n {
+
+namespace {
+constexpr const char* kSettingsKey = "general.language";
+constexpr const char* kDefaultCode = "en";
+} // namespace
+
+LanguageManager& LanguageManager::instance() {
+ static LanguageManager mgr;
+ return mgr;
+}
+
+QStringList LanguageManager::supported_languages() {
+ return {QStringLiteral("en"),
+ QStringLiteral("zh_CN"),
+ QStringLiteral("zh_HK"),
+ QStringLiteral("id_ID"),
+ QStringLiteral("vi_VN"),
+ QStringLiteral("tr_TR"),
+ QStringLiteral("de_DE"),
+ QStringLiteral("pt_BR"),
+ QStringLiteral("es_ES"),
+ QStringLiteral("fr_FR"),
+ QStringLiteral("it_IT")};
+}
+
+QString LanguageManager::native_name(const QString& code) {
+ if (code == QLatin1String("en")) return QStringLiteral("English");
+ if (code == QLatin1String("zh_CN")) return QString::fromUtf8("\xe7\xae\x80\xe4\xbd\x93\xe4\xb8\xad\xe6\x96\x87"); // 简体中文
+ if (code == QLatin1String("zh_HK")) return QString::fromUtf8("\xe7\xb9\x81\xe9\xab\x94\xe4\xb8\xad\xe6\x96\x87 (\xe9\xa6\x99\xe6\xb8\xaf)"); // 繁體中文 (香港)
+ if (code == QLatin1String("id_ID")) return QStringLiteral("Bahasa Indonesia");
+ if (code == QLatin1String("vi_VN")) return QString::fromUtf8("Ti\xe1\xba\xbfng Vi\xe1\xbb\x87t"); // Tiếng Việt
+ if (code == QLatin1String("tr_TR")) return QString::fromUtf8("T\xc3\xbcrk\xc3\xa7""e"); // Türkçe
+ if (code == QLatin1String("de_DE")) return QStringLiteral("Deutsch");
+ if (code == QLatin1String("pt_BR")) return QString::fromUtf8("Portugu\xc3\xaas (Brasil)"); // Português (Brasil)
+ if (code == QLatin1String("es_ES")) return QString::fromUtf8("Espa\xc3\xb1ol"); // Español
+ if (code == QLatin1String("fr_FR")) return QString::fromUtf8("Fran\xc3\xa7""ais"); // Français
+ if (code == QLatin1String("it_IT")) return QStringLiteral("Italiano");
+ return code;
+}
+
+void LanguageManager::initialize() {
+ const auto r = SettingsRepository::instance().get(
+ QString::fromLatin1(kSettingsKey), QString::fromLatin1(kDefaultCode));
+ const QString code = r.is_ok() && !r.value().isEmpty()
+ ? r.value()
+ : QString::fromLatin1(kDefaultCode);
+ set_language(code);
+}
+
+void LanguageManager::set_language(const QString& code) {
+ // No-op if already active. We still flow through the rest of the function
+ // on a "different translator load" path (e.g. retry after a missing .qm).
+ if (code == current_code_ && translator_) {
+ return;
+ }
+
+ if (translator_) {
+ QCoreApplication::removeTranslator(translator_);
+ delete translator_;
+ translator_ = nullptr;
+ }
+
+ // English is the source language — no .qm shipped. Removing the previous
+ // translator is enough to fall back to the in-source strings.
+ if (code != QLatin1String("en")) {
+ auto* t = new QTranslator(qApp);
+ const QString resource_path = QStringLiteral(":/i18n/fincept_%1.qm").arg(code);
+ if (t->load(resource_path)) {
+ QCoreApplication::installTranslator(t);
+ translator_ = t;
+ LOG_INFO("i18n", QStringLiteral("Installed translator: %1").arg(code));
+ } else {
+ LOG_WARN("i18n", QStringLiteral("Failed to load translator %1 from %2 — falling back to English")
+ .arg(code, resource_path));
+ delete t;
+ }
+ }
+
+ current_code_ = code;
+ QLocale::setDefault(QLocale(code));
+
+ // Persist the choice. The repository call is cheap; we accept the small
+ // overhead on startup so the value is always in sync with what's running.
+ SettingsRepository::instance().set(
+ QString::fromLatin1(kSettingsKey), code, QStringLiteral("general"));
+
+ emit language_changed(code);
+}
+
+} // namespace fincept::i18n
diff --git a/fincept-qt/src/core/i18n/LanguageManager.h b/fincept-qt/src/core/i18n/LanguageManager.h
new file mode 100644
index 000000000..fa3b1a0b9
--- /dev/null
+++ b/fincept-qt/src/core/i18n/LanguageManager.h
@@ -0,0 +1,54 @@
+#pragma once
+// LanguageManager — owns the active QTranslator and the user's language choice.
+//
+// Translations are compiled from .ts files under fincept-qt/translations/ at
+// build time (qt6_add_lrelease) and embedded in the Qt resource system at
+// :/i18n/fincept_<locale>.qm. English is the source language — no .qm exists
+// for it, so set_language("en") just removes any installed translator.
+//
+// Changing the language at runtime triggers QEvent::LanguageChange on every
+// top-level widget, which screens handle by overriding changeEvent() and
+// calling their own retranslateUi() helper. Non-widget code can react via
+// the language_changed signal.
+
+#include <QObject>
+#include <QString>
+#include <QStringList>
+
+class QTranslator;
+
+namespace fincept::i18n {
+
+class LanguageManager : public QObject {
+ Q_OBJECT
+ public:
+ static LanguageManager& instance();
+
+ /// Locale codes shipped with the build. "en" is always present (base).
+ static QStringList supported_languages();
+
+ /// Display name in the language's own script — used in the settings combo.
+ static QString native_name(const QString& code);
+
+ /// Read the persisted choice from SettingsRepository and install the
+ /// corresponding translator. Safe to call once on startup before any
+ /// windows are shown.
+ void initialize();
+
+ /// Switch language. Persists the choice, swaps the QTranslator, and emits
+ /// language_changed. Qt itself posts QEvent::LanguageChange to every
+ /// top-level widget as a side effect of install/removeTranslator.
+ void set_language(const QString& code);
+
+ QString current_language() const { return current_code_; }
+
+ signals:
+ void language_changed(const QString& code);
+
+ private:
+ LanguageManager() = default;
+ QString current_code_;
+ QTranslator* translator_ = nullptr;
+};
+
+} // namespace fincept::i18n
diff --git a/fincept-qt/src/python/PythonRunner.cpp b/fincept-qt/src/python/PythonRunner.cpp
index 79c0ae96c..3359c6e83 100644
--- a/fincept-qt/src/python/PythonRunner.cpp
+++ b/fincept-qt/src/python/PythonRunner.cpp
@@ -11,9 +11,11 @@
#include <QFileInfo>
#include <QHash>
#include <QLatin1String>
+#include <QMetaObject>
#include <QProcessEnvironment>
#include <QStandardPaths>
#include <QStringList>
+#include <QThread>
#include <QUuid>
namespace fincept::python {
@@ -300,6 +302,28 @@ QString PythonRunner::find_scripts_dir() const {
// ── Run Script ───────────────────────────────────────────────────────────────
void PythonRunner::run(const QString& script, const QStringList& args, Callback cb, StreamCallback on_line) {
+ // Thread-affinity guard. PythonRunner is a QObject singleton living on
+ // whatever thread first called instance() — in practice the main thread,
+ // because main.cpp warms it at startup. But run() is invoked from
+ // anywhere: UI code, services, and (critically) MCP tool handlers that
+ // execute on worker threads. If a worker calls into start_next() it ends
+ // up doing `new QProcess(this)` from a thread that's NOT this->thread(),
+ // which Qt warns about and which leaves the QProcess with bad thread
+ // affinity. Destruction of that QProcess later corrupts the heap and the
+ // app crashes silently (no WER, no Qt fatal). Marshal back to our own
+ // thread so the queue + QProcess creation always happens here.
+ if (QThread::currentThread() != this->thread()) {
+ Callback cb_copy = std::move(cb);
+ StreamCallback on_line_copy = std::move(on_line);
+ QMetaObject::invokeMethod(
+ this,
+ [this, script, args, cb_copy = std::move(cb_copy), on_line_copy = std::move(on_line_copy)]() mutable {
+ run(script, args, std::move(cb_copy), std::move(on_line_copy));
+ },
+ Qt::QueuedConnection);
+ return;
+ }
+
if (python_init_done_ && python_path_.isEmpty()) {
cb({false, {}, "Python not available — run first-time setup from the app", -1});
return;
@@ -319,6 +343,18 @@ void PythonRunner::run(const QString& script, const QStringList& args, Callback
/// Run arbitrary Python code (for notebook/colab cells).
/// Creates a temp file, executes it, returns output.
void PythonRunner::run_code(const QString& code, Callback cb) {
+ // Same thread-affinity guard as run(). See the comment there.
+ if (QThread::currentThread() != this->thread()) {
+ Callback cb_copy = std::move(cb);
+ QMetaObject::invokeMethod(
+ this,
+ [this, code, cb_copy = std::move(cb_copy)]() mutable {
+ run_code(code, std::move(cb_copy));
+ },
+ Qt::QueuedConnection);
+ return;
+ }
+
if (python_init_done_ && python_path_.isEmpty()) {
cb({false, {}, "Python not available — run first-time setup from the app", -1});
return;
diff --git a/fincept-qt/src/python/PythonSetupManager.cpp b/fincept-qt/src/python/PythonSetupManager.cpp
index 9eaf1dd9c..21ad4e4f1 100644
--- a/fincept-qt/src/python/PythonSetupManager.cpp
+++ b/fincept-qt/src/python/PythonSetupManager.cpp
@@ -778,7 +778,7 @@ bool PythonSetupManager::install_packages(const QString& venv_name, const QStrin
// marker ensures check_status() returns needs_setup=true on the next
// launch so the failed packages are retried automatically.
emit_progress(step_key, 100,
- QString("Done — %1 package(s) failed (will retry on next launch)").arg(failed.size()),
+ QString("Failed: %1").arg(failed.join(", ").left(200)),
/*is_error=*/true);
// Returning false here prevents run_setup() from writing the .setup_complete
// sentinel. Without this, the sentinel would be written even though one or
diff --git a/fincept-qt/src/screens/auth/ForgotPasswordScreen.cpp b/fincept-qt/src/screens/auth/ForgotPasswordScreen.cpp
index 48c6acd4d..4d18af727 100644
--- a/fincept-qt/src/screens/auth/ForgotPasswordScreen.cpp
+++ b/fincept-qt/src/screens/auth/ForgotPasswordScreen.cpp
@@ -3,7 +3,9 @@
#include "auth/AuthManager.h"
#include "auth/AuthTypes.h"
#include "ui/theme/Theme.h"
+#include "ui/widgets/LanguageSwitcher.h"
+#include <QEvent>
#include <QFrame>
#include <QHBoxLayout>
#include <QHideEvent>
@@ -81,6 +83,13 @@ ForgotPasswordScreen::ForgotPasswordScreen(QWidget* parent) : QWidget(parent) {
auto* root = new QVBoxLayout(this);
root->setContentsMargins(0, 0, 0, 0);
+ // Top-right language picker — visible without account.
+ auto* top_row = new QHBoxLayout;
+ top_row->setContentsMargins(20, 20, 20, 0);
+ top_row->addStretch();
+ top_row->addWidget(new ui::LanguageSwitcher(this));
+ root->addLayout(top_row);
+
auto* overlay = new QVBoxLayout;
overlay->setAlignment(Qt::AlignCenter);
root->addLayout(overlay, 1);
@@ -97,6 +106,8 @@ ForgotPasswordScreen::ForgotPasswordScreen(QWidget* parent) : QWidget(parent) {
overlay->addWidget(pages_, 0, Qt::AlignCenter);
+ retranslateUi();
+
auto& auth = auth::AuthManager::instance();
connect(&auth, &auth::AuthManager::forgot_password_sent, this, [this]() { pages_->setCurrentIndex(1); });
connect(&auth, &auth::AuthManager::forgot_password_failed, this, [this](const QString& err) {
@@ -125,6 +136,13 @@ void ForgotPasswordScreen::hideEvent(QHideEvent* event) {
QWidget::hideEvent(event);
}
+void ForgotPasswordScreen::changeEvent(QEvent* event) {
+ if (event->type() == QEvent::LanguageChange) {
+ retranslateUi();
+ }
+ QWidget::changeEvent(event);
+}
+
void ForgotPasswordScreen::paintEvent(QPaintEvent* /*event*/) {
QPainter p(this);
p.fillRect(rect(), QColor(ui::colors::BG_BASE()));
@@ -154,7 +172,7 @@ void ForgotPasswordScreen::build_email_page() {
auto* hl = new QHBoxLayout(header);
hl->setContentsMargins(14, 0, 14, 0);
- auto* back = new QPushButton("<");
+ auto* back = new QPushButton(QStringLiteral("<"));
back->setFixedSize(24, 24);
back->setStyleSheet(QString("QPushButton { color: %1; background: transparent; border: none;"
" font-size: 16px; font-family: 'Consolas','Courier New',monospace; }"
@@ -163,28 +181,27 @@ void ForgotPasswordScreen::build_email_page() {
connect(back, &QPushButton::clicked, this, &ForgotPasswordScreen::navigate_login);
hl->addWidget(back);
- auto* title = new QLabel("RESET PASSWORD");
- title->setStyleSheet(QString("color: %1; font-size: 14px; font-weight: 700;"
- "background: transparent; letter-spacing: 1px;"
- "font-family: 'Consolas','Courier New',monospace;")
- .arg(ui::colors::AMBER()));
- hl->addWidget(title);
+ email_title_ = new QLabel;
+ email_title_->setStyleSheet(QString("color: %1; font-size: 14px; font-weight: 700;"
+ "background: transparent; letter-spacing: 1px;"
+ "font-family: 'Consolas','Courier New',monospace;")
+ .arg(ui::colors::AMBER()));
+ hl->addWidget(email_title_);
hl->addStretch();
vl->addWidget(header);
- auto* sub = new QLabel("Enter your email and we'll send a verification code.");
- sub->setWordWrap(true);
- sub->setStyleSheet(muted_style());
- vl->addWidget(sub);
+ email_sub_ = new QLabel;
+ email_sub_->setWordWrap(true);
+ email_sub_->setStyleSheet(muted_style());
+ vl->addWidget(email_sub_);
vl->addWidget(make_separator());
- auto* lbl = new QLabel("EMAIL");
- lbl->setStyleSheet(label_style());
- vl->addWidget(lbl);
+ email_lbl_ = new QLabel;
+ email_lbl_->setStyleSheet(label_style());
+ vl->addWidget(email_lbl_);
email_input_ = new QLineEdit;
- email_input_->setPlaceholderText("[email protected]");
email_input_->setFixedHeight(34);
email_input_->setStyleSheet(input_style());
vl->addWidget(email_input_);
@@ -199,19 +216,19 @@ void ForgotPasswordScreen::build_email_page() {
error_label_->hide();
vl->addWidget(error_label_);
- auto* send_btn = new QPushButton(" SEND CODE ");
- send_btn->setFixedHeight(32);
- send_btn->setStyleSheet(btn_primary());
- connect(send_btn, &QPushButton::clicked, this, &ForgotPasswordScreen::on_send_code);
+ send_btn_ = new QPushButton;
+ send_btn_->setFixedHeight(32);
+ send_btn_->setStyleSheet(btn_primary());
+ connect(send_btn_, &QPushButton::clicked, this, &ForgotPasswordScreen::on_send_code);
connect(email_input_, &QLineEdit::returnPressed, this, &ForgotPasswordScreen::on_send_code);
- vl->addWidget(send_btn);
+ vl->addWidget(send_btn_);
vl->addWidget(make_separator());
- auto* back_login = new QPushButton("REMEMBER YOUR PASSWORD? SIGN IN");
- back_login->setStyleSheet(link_style());
- connect(back_login, &QPushButton::clicked, this, &ForgotPasswordScreen::navigate_login);
- vl->addWidget(back_login, 0, Qt::AlignCenter);
+ back_login_btn_ = new QPushButton;
+ back_login_btn_->setStyleSheet(link_style());
+ connect(back_login_btn_, &QPushButton::clicked, this, &ForgotPasswordScreen::navigate_login);
+ vl->addWidget(back_login_btn_, 0, Qt::AlignCenter);
vl->addStretch();
pages_->addWidget(page);
@@ -233,32 +250,32 @@ void ForgotPasswordScreen::build_otp_sent_page() {
auto* hl = new QHBoxLayout(header);
hl->setContentsMargins(14, 0, 14, 0);
- auto* title = new QLabel("CHECK YOUR EMAIL");
- title->setStyleSheet(QString("color: %1; font-size: 14px; font-weight: 700;"
- "background: transparent; letter-spacing: 1px;"
- "font-family: 'Consolas','Courier New',monospace;")
- .arg(ui::colors::AMBER()));
- hl->addWidget(title);
+ sent_title_ = new QLabel;
+ sent_title_->setStyleSheet(QString("color: %1; font-size: 14px; font-weight: 700;"
+ "background: transparent; letter-spacing: 1px;"
+ "font-family: 'Consolas','Courier New',monospace;")
+ .arg(ui::colors::AMBER()));
+ hl->addWidget(sent_title_);
hl->addStretch();
vl->addWidget(header);
- auto* sub = new QLabel("We've sent a verification code. Enter it on the next screen to reset your password.");
- sub->setWordWrap(true);
- sub->setStyleSheet(muted_style());
- vl->addWidget(sub);
+ sent_sub_ = new QLabel;
+ sent_sub_->setWordWrap(true);
+ sent_sub_->setStyleSheet(muted_style());
+ vl->addWidget(sent_sub_);
vl->addWidget(make_separator());
- auto* cont_btn = new QPushButton(" I HAVE THE CODE ");
- cont_btn->setFixedHeight(32);
- cont_btn->setStyleSheet(btn_primary());
- connect(cont_btn, &QPushButton::clicked, this, [this]() { pages_->setCurrentIndex(2); });
- vl->addWidget(cont_btn);
+ sent_continue_btn_ = new QPushButton;
+ sent_continue_btn_->setFixedHeight(32);
+ sent_continue_btn_->setStyleSheet(btn_primary());
+ connect(sent_continue_btn_, &QPushButton::clicked, this, [this]() { pages_->setCurrentIndex(2); });
+ vl->addWidget(sent_continue_btn_);
- auto* resend = new QPushButton("DIDN'T RECEIVE? RESEND");
- resend->setStyleSheet(link_style());
- connect(resend, &QPushButton::clicked, this, &ForgotPasswordScreen::on_resend);
- vl->addWidget(resend, 0, Qt::AlignCenter);
+ sent_resend_btn_ = new QPushButton;
+ sent_resend_btn_->setStyleSheet(link_style());
+ connect(sent_resend_btn_, &QPushButton::clicked, this, &ForgotPasswordScreen::on_resend);
+ vl->addWidget(sent_resend_btn_, 0, Qt::AlignCenter);
vl->addStretch();
pages_->addWidget(page);
@@ -280,23 +297,22 @@ void ForgotPasswordScreen::build_reset_page() {
auto* hl = new QHBoxLayout(header);
hl->setContentsMargins(14, 0, 14, 0);
- auto* title = new QLabel("RESET PASSWORD");
- title->setStyleSheet(QString("color: %1; font-size: 14px; font-weight: 700;"
- "background: transparent; letter-spacing: 1px;"
- "font-family: 'Consolas','Courier New',monospace;")
- .arg(ui::colors::AMBER()));
- hl->addWidget(title);
+ reset_title_ = new QLabel;
+ reset_title_->setStyleSheet(QString("color: %1; font-size: 14px; font-weight: 700;"
+ "background: transparent; letter-spacing: 1px;"
+ "font-family: 'Consolas','Courier New',monospace;")
+ .arg(ui::colors::AMBER()));
+ hl->addWidget(reset_title_);
hl->addStretch();
vl->addWidget(header);
vl->addWidget(make_separator());
- auto add_field = [&](const char* label, const char* placeholder, bool is_password = false) -> QLineEdit* {
- auto* lbl = new QLabel(label);
- lbl->setStyleSheet(label_style());
- vl->addWidget(lbl);
+ auto add_field = [&](QLabel*& label_out, bool is_password = false) -> QLineEdit* {
+ label_out = new QLabel;
+ label_out->setStyleSheet(label_style());
+ vl->addWidget(label_out);
auto* input = new QLineEdit;
- input->setPlaceholderText(placeholder);
input->setFixedHeight(34);
input->setStyleSheet(input_style());
if (is_password)
@@ -305,9 +321,9 @@ void ForgotPasswordScreen::build_reset_page() {
return input;
};
- otp_input_ = add_field("VERIFICATION CODE", "enter code from email");
- new_password_ = add_field("NEW PASSWORD", "min 8 characters", true);
- confirm_password_ = add_field("CONFIRM PASSWORD", "re-enter password", true);
+ otp_input_ = add_field(reset_code_lbl_);
+ new_password_ = add_field(reset_new_lbl_, true);
+ confirm_password_ = add_field(reset_confirm_lbl_, true);
auto* err = new QLabel;
err->setWordWrap(true);
@@ -323,11 +339,11 @@ void ForgotPasswordScreen::build_reset_page() {
err->show();
});
- auto* reset_btn = new QPushButton(" RESET PASSWORD ");
- reset_btn->setFixedHeight(32);
- reset_btn->setStyleSheet(btn_primary());
- connect(reset_btn, &QPushButton::clicked, this, &ForgotPasswordScreen::on_reset_password);
- vl->addWidget(reset_btn);
+ reset_btn_ = new QPushButton;
+ reset_btn_->setFixedHeight(32);
+ reset_btn_->setStyleSheet(btn_primary());
+ connect(reset_btn_, &QPushButton::clicked, this, &ForgotPasswordScreen::on_reset_password);
+ vl->addWidget(reset_btn_);
vl->addStretch();
pages_->addWidget(page);
@@ -350,39 +366,69 @@ void ForgotPasswordScreen::build_success_page() {
auto* hl = new QHBoxLayout(header);
hl->setContentsMargins(14, 0, 14, 0);
- auto* title = new QLabel("PASSWORD RESET");
- title->setStyleSheet(QString("color: %1; font-size: 14px; font-weight: 700;"
- "background: transparent; letter-spacing: 1px;"
- "font-family: 'Consolas','Courier New',monospace;")
- .arg(ui::colors::POSITIVE()));
- hl->addWidget(title);
+ success_title_ = new QLabel;
+ success_title_->setStyleSheet(QString("color: %1; font-size: 14px; font-weight: 700;"
+ "background: transparent; letter-spacing: 1px;"
+ "font-family: 'Consolas','Courier New',monospace;")
+ .arg(ui::colors::POSITIVE()));
+ hl->addWidget(success_title_);
hl->addStretch();
- auto* status = new QLabel("SUCCESS");
- status->setStyleSheet(QString("color: %1; font-size: 12px; font-weight: 700;"
- "background: transparent; letter-spacing: 0.5px;"
- "font-family: 'Consolas','Courier New',monospace;")
- .arg(ui::colors::POSITIVE()));
- hl->addWidget(status);
+ success_status_ = new QLabel;
+ success_status_->setStyleSheet(QString("color: %1; font-size: 12px; font-weight: 700;"
+ "background: transparent; letter-spacing: 0.5px;"
+ "font-family: 'Consolas','Courier New',monospace;")
+ .arg(ui::colors::POSITIVE()));
+ hl->addWidget(success_status_);
vl->addWidget(header);
- auto* sub = new QLabel("Your password has been reset. You can now sign in with your new password.");
- sub->setWordWrap(true);
- sub->setAlignment(Qt::AlignCenter);
- sub->setStyleSheet(muted_style());
- vl->addWidget(sub);
+ success_sub_ = new QLabel;
+ success_sub_->setWordWrap(true);
+ success_sub_->setAlignment(Qt::AlignCenter);
+ success_sub_->setStyleSheet(muted_style());
+ vl->addWidget(success_sub_);
vl->addWidget(make_separator());
- auto* login_btn = new QPushButton(" CONTINUE TO LOGIN ");
- login_btn->setFixedHeight(32);
- login_btn->setStyleSheet(btn_primary());
- connect(login_btn, &QPushButton::clicked, this, &ForgotPasswordScreen::navigate_login);
- vl->addWidget(login_btn);
+ success_continue_btn_ = new QPushButton;
+ success_continue_btn_->setFixedHeight(32);
+ success_continue_btn_->setStyleSheet(btn_primary());
+ connect(success_continue_btn_, &QPushButton::clicked, this, &ForgotPasswordScreen::navigate_login);
+ vl->addWidget(success_continue_btn_);
pages_->addWidget(page);
}
+// ── Re-translation ───────────────────────────────────────────────────────────
+
+void ForgotPasswordScreen::retranslateUi() {
+ if (email_title_) email_title_->setText(tr("RESET PASSWORD"));
+ if (email_sub_) email_sub_->setText(tr("Enter your email and we'll send a verification code."));
+ if (email_lbl_) email_lbl_->setText(tr("EMAIL"));
+ if (email_input_) email_input_->setPlaceholderText(tr("[email protected]"));
+ if (send_btn_) send_btn_->setText(tr(" SEND CODE "));
+ if (back_login_btn_) back_login_btn_->setText(tr("REMEMBER YOUR PASSWORD? SIGN IN"));
+
+ if (sent_title_) sent_title_->setText(tr("CHECK YOUR EMAIL"));
+ if (sent_sub_) sent_sub_->setText(tr("We've sent a verification code. Enter it on the next screen to reset your password."));
+ if (sent_continue_btn_) sent_continue_btn_->setText(tr(" I HAVE THE CODE "));
+ if (sent_resend_btn_) sent_resend_btn_->setText(tr("DIDN'T RECEIVE? RESEND"));
+
+ if (reset_title_) reset_title_->setText(tr("RESET PASSWORD"));
+ if (reset_code_lbl_) reset_code_lbl_->setText(tr("VERIFICATION CODE"));
+ if (reset_new_lbl_) reset_new_lbl_->setText(tr("NEW PASSWORD"));
+ if (reset_confirm_lbl_) reset_confirm_lbl_->setText(tr("CONFIRM PASSWORD"));
+ if (otp_input_) otp_input_->setPlaceholderText(tr("enter code from email"));
+ if (new_password_) new_password_->setPlaceholderText(tr("min 8 characters"));
+ if (confirm_password_) confirm_password_->setPlaceholderText(tr("re-enter password"));
+ if (reset_btn_) reset_btn_->setText(tr(" RESET PASSWORD "));
+
+ if (success_title_) success_title_->setText(tr("PASSWORD RESET"));
+ if (success_status_) success_status_->setText(tr("SUCCESS"));
+ if (success_sub_) success_sub_->setText(tr("Your password has been reset. You can now sign in with your new password."));
+ if (success_continue_btn_) success_continue_btn_->setText(tr(" CONTINUE TO LOGIN "));
+}
+
// ── Actions ──────────────────────────────────────────────────────────────────
void ForgotPasswordScreen::on_send_code() {
diff --git a/fincept-qt/src/screens/auth/ForgotPasswordScreen.h b/fincept-qt/src/screens/auth/ForgotPasswordScreen.h
index 00cb96f85..208709008 100644
--- a/fincept-qt/src/screens/auth/ForgotPasswordScreen.h
+++ b/fincept-qt/src/screens/auth/ForgotPasswordScreen.h
@@ -8,6 +8,8 @@
namespace fincept::screens {
/// 4-step password reset — Obsidian design.
+/// Internationalised via tr() + retranslateUi(); reacts to runtime language
+/// switches through changeEvent(QEvent::LanguageChange).
class ForgotPasswordScreen : public QWidget {
Q_OBJECT
public:
@@ -18,22 +20,49 @@ class ForgotPasswordScreen : public QWidget {
protected:
void paintEvent(QPaintEvent* event) override;
+ void changeEvent(QEvent* event) override;
/// Wipe email/OTP/new-password fields whenever the screen leaves the stack.
void hideEvent(QHideEvent* event) override;
private:
QStackedWidget* pages_ = nullptr;
+ // Email page
+ QLabel* email_title_ = nullptr;
+ QLabel* email_sub_ = nullptr;
+ QLabel* email_lbl_ = nullptr;
QLineEdit* email_input_ = nullptr;
+ QLabel* error_label_ = nullptr;
+ QPushButton* send_btn_ = nullptr;
+ QPushButton* back_login_btn_ = nullptr;
+
+ // OTP-sent page
+ QLabel* sent_title_ = nullptr;
+ QLabel* sent_sub_ = nullptr;
+ QPushButton* sent_continue_btn_ = nullptr;
+ QPushButton* sent_resend_btn_ = nullptr;
+
+ // Reset page
+ QLabel* reset_title_ = nullptr;
+ QLabel* reset_code_lbl_ = nullptr;
+ QLabel* reset_new_lbl_ = nullptr;
+ QLabel* reset_confirm_lbl_ = nullptr;
QLineEdit* otp_input_ = nullptr;
QLineEdit* new_password_ = nullptr;
QLineEdit* confirm_password_ = nullptr;
- QLabel* error_label_ = nullptr;
+ QPushButton* reset_btn_ = nullptr;
+
+ // Success page
+ QLabel* success_title_ = nullptr;
+ QLabel* success_status_ = nullptr;
+ QLabel* success_sub_ = nullptr;
+ QPushButton* success_continue_btn_ = nullptr;
void build_email_page();
void build_otp_sent_page();
void build_reset_page();
void build_success_page();
+ void retranslateUi();
private slots:
void on_send_code();
diff --git a/fincept-qt/src/screens/auth/LockScreen.cpp b/fincept-qt/src/screens/auth/LockScreen.cpp
index 6422733e6..8466b0a92 100644
--- a/fincept-qt/src/screens/auth/LockScreen.cpp
+++ b/fincept-qt/src/screens/auth/LockScreen.cpp
@@ -3,7 +3,9 @@
#include "auth/PinManager.h"
#include "core/logging/Logger.h"
#include "ui/theme/Theme.h"
+#include "ui/widgets/LanguageSwitcher.h"
+#include <QEvent>
#include <QFrame>
#include <QHBoxLayout>
#include <QIntValidator>
@@ -87,28 +89,19 @@ static QString error_style() {
static void harden_pin_input(QLineEdit* edit) {
if (!edit) return;
- // Tell IMEs / on-screen keyboards this is a 6-digit secret — no prediction,
- // no suggestions, no clipboard history surfacing.
edit->setInputMethodHints(Qt::ImhDigitsOnly | Qt::ImhSensitiveData |
Qt::ImhNoPredictiveText | Qt::ImhNoAutoUppercase |
Qt::ImhHiddenText);
- // Validator rejects non-digits at the keypress level so only 0-9 can be
- // typed even if the paste block below is ever circumvented.
auto* validator = new QIntValidator(0, 999999, edit);
edit->setValidator(validator);
- // Disable drag/drop into the field (dropped text would bypass validators).
edit->setDragEnabled(false);
edit->setAcceptDrops(false);
- // No right-click → Paste, and no clipboard pull via the built-in menu.
edit->setContextMenuPolicy(Qt::NoContextMenu);
- // Disable Qt's built-in paste shortcut so Ctrl+V / Shift+Insert cannot
- // inject a scripted PIN attempt. We still allow manual digit entry only.
QObject::connect(edit, &QLineEdit::textChanged, edit, [edit](const QString& txt) {
- // Belt-and-braces: if anything non-digit somehow lands here, strip it.
QString cleaned;
cleaned.reserve(txt.size());
for (const QChar& c : txt) if (c.isDigit()) cleaned.append(c);
@@ -132,6 +125,14 @@ LockScreen::LockScreen(QWidget* parent) : QWidget(parent) {
auto* root = new QVBoxLayout(this);
root->setContentsMargins(0, 0, 0, 0);
+ // Top-right language picker — available on the lock screen too so a user
+ // returning to a non-English locale can switch before unlocking.
+ auto* top_row = new QHBoxLayout;
+ top_row->setContentsMargins(20, 20, 20, 0);
+ top_row->addStretch();
+ top_row->addWidget(new ui::LanguageSwitcher(this));
+ root->addLayout(top_row);
+
auto* overlay = new QVBoxLayout;
overlay->setAlignment(Qt::AlignCenter);
root->addLayout(overlay, 1);
@@ -147,12 +148,13 @@ LockScreen::LockScreen(QWidget* parent) : QWidget(parent) {
overlay->addWidget(pages_, 0, Qt::AlignCenter);
+ retranslateUi();
+
// Lockout countdown timer — P3 compliant: only runs when visible
lockout_timer_ = new QTimer(this);
lockout_timer_->setInterval(1000);
connect(lockout_timer_, &QTimer::timeout, this, &LockScreen::update_lockout_display);
- // Listen for PinManager lockout signals
auto& pm = auth::PinManager::instance();
connect(&pm, &auth::PinManager::lockout_changed, this, [this](bool locked, int /*secs*/) {
if (locked)
@@ -161,7 +163,7 @@ LockScreen::LockScreen(QWidget* parent) : QWidget(parent) {
connect(&pm, &auth::PinManager::max_attempts_exceeded, this, [this]() { show_lockout(); });
}
-// ── Background Paint (matches LoginScreen grid pattern) ─────────────────────
+// ── Background Paint ────────────────────────────────────────────────────────
void LockScreen::paintEvent(QPaintEvent* /*event*/) {
QPainter p(this);
@@ -174,7 +176,6 @@ void LockScreen::paintEvent(QPaintEvent* /*event*/) {
for (int y = 0; y < height(); y += step)
p.drawLine(0, y, width(), y);
- // Subtle crosshair at centre
int cx = width() / 2;
int cy = height() / 2;
p.setPen(QPen(QColor(ui::colors::BORDER_DIM()), 1));
@@ -192,12 +193,22 @@ void LockScreen::hideEvent(QHideEvent* e) {
QWidget::hideEvent(e);
if (lockout_timer_)
lockout_timer_->stop();
- // Wipe PIN inputs so a resumed unlock attempt never starts pre-filled.
if (setup_pin_input_) setup_pin_input_->clear();
if (setup_confirm_input_) setup_confirm_input_->clear();
if (unlock_pin_input_) unlock_pin_input_->clear();
}
+void LockScreen::changeEvent(QEvent* event) {
+ if (event->type() == QEvent::LanguageChange) {
+ retranslateUi();
+ // Re-render the dynamic countdown + attempts text in the new language.
+ if (unlock_lockout_label_ && unlock_lockout_label_->isVisible())
+ update_lockout_display();
+ refresh_attempts_label();
+ }
+ QWidget::changeEvent(event);
+}
+
// ── PIN Setup Page ──────────────────────────────────────────────────────────
void LockScreen::build_setup_page() {
@@ -208,51 +219,48 @@ void LockScreen::build_setup_page() {
vl->setContentsMargins(28, 22, 28, 22);
vl->setSpacing(10);
- // Header bar
auto* header = new QWidget(this);
header->setFixedHeight(38);
header->setStyleSheet(QString("background: %1; border: none;").arg(ui::colors::BG_RAISED()));
auto* hl = new QHBoxLayout(header);
hl->setContentsMargins(14, 0, 14, 0);
- auto* title = new QLabel("SECURITY SETUP");
- title->setStyleSheet(QString("color: %1; font-size: 14px; font-weight: 700;"
- "background: transparent; letter-spacing: 1px;"
- "font-family: 'Consolas','Courier New',monospace;")
- .arg(ui::colors::AMBER()));
- hl->addWidget(title);
+ setup_title_ = new QLabel;
+ setup_title_->setStyleSheet(QString("color: %1; font-size: 14px; font-weight: 700;"
+ "background: transparent; letter-spacing: 1px;"
+ "font-family: 'Consolas','Courier New',monospace;")
+ .arg(ui::colors::AMBER()));
+ hl->addWidget(setup_title_);
hl->addStretch();
- auto* badge = new QLabel("REQUIRED");
- badge->setStyleSheet(QString("color: %1; font-size: 12px; font-weight: 700;"
- "background: transparent; letter-spacing: 0.5px;"
- "font-family: 'Consolas','Courier New',monospace;")
- .arg(ui::colors::NEGATIVE()));
- hl->addWidget(badge);
+ setup_badge_ = new QLabel;
+ setup_badge_->setStyleSheet(QString("color: %1; font-size: 12px; font-weight: 700;"
+ "background: transparent; letter-spacing: 0.5px;"
+ "font-family: 'Consolas','Courier New',monospace;")
+ .arg(ui::colors::NEGATIVE()));
+ hl->addWidget(setup_badge_);
vl->addWidget(header);
- auto* subtitle = new QLabel("Create a 6-digit PIN to secure your terminal");
- subtitle->setWordWrap(true);
- subtitle->setStyleSheet(muted_style());
- vl->addWidget(subtitle);
+ setup_subtitle_ = new QLabel;
+ setup_subtitle_->setWordWrap(true);
+ setup_subtitle_->setStyleSheet(muted_style());
+ vl->addWidget(setup_subtitle_);
- auto* info = new QLabel("This PIN will be required each time you open\n"
- "the terminal or after a period of inactivity.");
- info->setWordWrap(true);
- info->setStyleSheet(QString("color: %1; font-size: 12px; background: transparent;"
- "font-family: 'Consolas','Courier New',monospace;")
- .arg(ui::colors::TEXT_DIM()));
- vl->addWidget(info);
+ setup_info_ = new QLabel;
+ setup_info_->setWordWrap(true);
+ setup_info_->setStyleSheet(QString("color: %1; font-size: 12px; background: transparent;"
+ "font-family: 'Consolas','Courier New',monospace;")
+ .arg(ui::colors::TEXT_DIM()));
+ vl->addWidget(setup_info_);
vl->addWidget(make_separator());
- // PIN input
- auto* pin_lbl = new QLabel("ENTER PIN");
- pin_lbl->setStyleSheet(label_style());
- vl->addWidget(pin_lbl);
+ setup_pin_lbl_ = new QLabel;
+ setup_pin_lbl_->setStyleSheet(label_style());
+ vl->addWidget(setup_pin_lbl_);
setup_pin_input_ = new QLineEdit;
- setup_pin_input_->setPlaceholderText("------");
+ setup_pin_input_->setPlaceholderText(QStringLiteral("------"));
setup_pin_input_->setMaxLength(6);
setup_pin_input_->setAlignment(Qt::AlignCenter);
setup_pin_input_->setEchoMode(QLineEdit::Password);
@@ -261,13 +269,12 @@ void LockScreen::build_setup_page() {
harden_pin_input(setup_pin_input_);
vl->addWidget(setup_pin_input_);
- // Confirm PIN input
- auto* confirm_lbl = new QLabel("CONFIRM PIN");
- confirm_lbl->setStyleSheet(label_style());
- vl->addWidget(confirm_lbl);
+ setup_confirm_lbl_ = new QLabel;
+ setup_confirm_lbl_->setStyleSheet(label_style());
+ vl->addWidget(setup_confirm_lbl_);
setup_confirm_input_ = new QLineEdit;
- setup_confirm_input_->setPlaceholderText("------");
+ setup_confirm_input_->setPlaceholderText(QStringLiteral("------"));
setup_confirm_input_->setMaxLength(6);
setup_confirm_input_->setAlignment(Qt::AlignCenter);
setup_confirm_input_->setEchoMode(QLineEdit::Password);
@@ -276,7 +283,6 @@ void LockScreen::build_setup_page() {
harden_pin_input(setup_confirm_input_);
vl->addWidget(setup_confirm_input_);
- // Error label
setup_error_ = new QLabel;
setup_error_->setWordWrap(true);
setup_error_->setStyleSheet(error_style());
@@ -285,22 +291,19 @@ void LockScreen::build_setup_page() {
vl->addWidget(make_separator());
- // Submit button
- setup_btn_ = new QPushButton(" SET PIN ");
+ setup_btn_ = new QPushButton;
setup_btn_->setFixedHeight(34);
setup_btn_->setStyleSheet(btn_primary());
connect(setup_btn_, &QPushButton::clicked, this, &LockScreen::on_setup_submit);
vl->addWidget(setup_btn_);
- // Security note
- auto* note = new QLabel("PIN is encrypted and stored locally on this device.\n"
- "It cannot be recovered if forgotten.");
- note->setWordWrap(true);
- note->setStyleSheet(QString("color: %1; font-size: 11px; background: transparent;"
- "font-family: 'Consolas','Courier New',monospace;")
- .arg(ui::colors::TEXT_DIM()));
- note->setAlignment(Qt::AlignCenter);
- vl->addWidget(note);
+ setup_note_ = new QLabel;
+ setup_note_->setWordWrap(true);
+ setup_note_->setStyleSheet(QString("color: %1; font-size: 11px; background: transparent;"
+ "font-family: 'Consolas','Courier New',monospace;")
+ .arg(ui::colors::TEXT_DIM()));
+ setup_note_->setAlignment(Qt::AlignCenter);
+ vl->addWidget(setup_note_);
vl->addStretch();
@@ -320,42 +323,40 @@ void LockScreen::build_unlock_page() {
vl->setContentsMargins(28, 22, 28, 22);
vl->setSpacing(10);
- // Header bar
auto* header = new QWidget(this);
header->setFixedHeight(38);
header->setStyleSheet(QString("background: %1; border: none;").arg(ui::colors::BG_RAISED()));
auto* hl = new QHBoxLayout(header);
hl->setContentsMargins(14, 0, 14, 0);
- auto* title = new QLabel("TERMINAL LOCKED");
- title->setStyleSheet(QString("color: %1; font-size: 14px; font-weight: 700;"
- "background: transparent; letter-spacing: 1px;"
- "font-family: 'Consolas','Courier New',monospace;")
- .arg(ui::colors::AMBER()));
- hl->addWidget(title);
+ unlock_title_ = new QLabel;
+ unlock_title_->setStyleSheet(QString("color: %1; font-size: 14px; font-weight: 700;"
+ "background: transparent; letter-spacing: 1px;"
+ "font-family: 'Consolas','Courier New',monospace;")
+ .arg(ui::colors::AMBER()));
+ hl->addWidget(unlock_title_);
hl->addStretch();
- auto* secure_badge = new QLabel("SECURE");
- secure_badge->setStyleSheet(QString("color: %1; font-size: 12px; font-weight: 700;"
- "background: transparent; letter-spacing: 0.5px;"
- "font-family: 'Consolas','Courier New',monospace;")
- .arg(ui::colors::POSITIVE()));
- hl->addWidget(secure_badge);
+ unlock_badge_ = new QLabel;
+ unlock_badge_->setStyleSheet(QString("color: %1; font-size: 12px; font-weight: 700;"
+ "background: transparent; letter-spacing: 0.5px;"
+ "font-family: 'Consolas','Courier New',monospace;")
+ .arg(ui::colors::POSITIVE()));
+ hl->addWidget(unlock_badge_);
vl->addWidget(header);
- auto* subtitle = new QLabel("Enter your 6-digit PIN to unlock");
- subtitle->setStyleSheet(muted_style());
- vl->addWidget(subtitle);
+ unlock_subtitle_ = new QLabel;
+ unlock_subtitle_->setStyleSheet(muted_style());
+ vl->addWidget(unlock_subtitle_);
vl->addWidget(make_separator());
- // PIN input
- auto* pin_lbl = new QLabel("PIN");
- pin_lbl->setStyleSheet(label_style());
- vl->addWidget(pin_lbl);
+ unlock_pin_lbl_ = new QLabel;
+ unlock_pin_lbl_->setStyleSheet(label_style());
+ vl->addWidget(unlock_pin_lbl_);
unlock_pin_input_ = new QLineEdit;
- unlock_pin_input_->setPlaceholderText("------");
+ unlock_pin_input_->setPlaceholderText(QStringLiteral("------"));
unlock_pin_input_->setMaxLength(6);
unlock_pin_input_->setAlignment(Qt::AlignCenter);
unlock_pin_input_->setEchoMode(QLineEdit::Password);
@@ -364,7 +365,6 @@ void LockScreen::build_unlock_page() {
harden_pin_input(unlock_pin_input_);
vl->addWidget(unlock_pin_input_);
- // Lockout / attempt display
unlock_lockout_label_ = new QLabel;
unlock_lockout_label_->setWordWrap(true);
unlock_lockout_label_->setStyleSheet(QString("color: %1; font-size: 12px;"
@@ -375,14 +375,12 @@ void LockScreen::build_unlock_page() {
unlock_lockout_label_->hide();
vl->addWidget(unlock_lockout_label_);
- // Error label
unlock_error_ = new QLabel;
unlock_error_->setWordWrap(true);
unlock_error_->setStyleSheet(error_style());
unlock_error_->hide();
vl->addWidget(unlock_error_);
- // Attempts remaining
unlock_attempts_ = new QLabel;
unlock_attempts_->setStyleSheet(QString("color: %1; font-size: 12px; background: transparent;"
"font-family: 'Consolas','Courier New',monospace;")
@@ -393,8 +391,7 @@ void LockScreen::build_unlock_page() {
vl->addWidget(make_separator());
- // Unlock button
- unlock_btn_ = new QPushButton(" UNLOCK ");
+ unlock_btn_ = new QPushButton;
unlock_btn_->setFixedHeight(34);
unlock_btn_->setStyleSheet(btn_primary());
connect(unlock_btn_, &QPushButton::clicked, this, &LockScreen::on_unlock_submit);
@@ -417,33 +414,29 @@ void LockScreen::build_lockout_page() {
vl->setContentsMargins(28, 22, 28, 22);
vl->setSpacing(10);
- // Header bar
auto* header = new QWidget(this);
header->setFixedHeight(38);
header->setStyleSheet(QString("background: %1; border: none;").arg(ui::colors::BG_RAISED()));
auto* hl = new QHBoxLayout(header);
hl->setContentsMargins(14, 0, 14, 0);
- auto* title = new QLabel("ACCOUNT LOCKED");
- title->setStyleSheet(QString("color: %1; font-size: 14px; font-weight: 700;"
- "background: transparent; letter-spacing: 1px;"
- "font-family: 'Consolas','Courier New',monospace;")
- .arg(ui::colors::NEGATIVE()));
- hl->addWidget(title);
+ lockout_title_ = new QLabel;
+ lockout_title_->setStyleSheet(QString("color: %1; font-size: 14px; font-weight: 700;"
+ "background: transparent; letter-spacing: 1px;"
+ "font-family: 'Consolas','Courier New',monospace;")
+ .arg(ui::colors::NEGATIVE()));
+ hl->addWidget(lockout_title_);
hl->addStretch();
- auto* warn = new QLabel("SECURITY");
- warn->setStyleSheet(QString("color: %1; font-size: 12px; font-weight: 700;"
- "background: transparent; letter-spacing: 0.5px;"
- "font-family: 'Consolas','Courier New',monospace;")
- .arg(ui::colors::NEGATIVE()));
- hl->addWidget(warn);
+ lockout_badge_ = new QLabel;
+ lockout_badge_->setStyleSheet(QString("color: %1; font-size: 12px; font-weight: 700;"
+ "background: transparent; letter-spacing: 0.5px;"
+ "font-family: 'Consolas','Courier New',monospace;")
+ .arg(ui::colors::NEGATIVE()));
+ hl->addWidget(lockout_badge_);
vl->addWidget(header);
- lockout_msg_ = new QLabel("Too many failed PIN attempts.\n\n"
- "For your security, the terminal has been locked.\n"
- "You must sign in again with your email and password\n"
- "to reset your PIN and regain access.");
+ lockout_msg_ = new QLabel;
lockout_msg_->setWordWrap(true);
lockout_msg_->setStyleSheet(QString("color: %1; font-size: 14px; background: transparent;"
"font-family: 'Consolas','Courier New',monospace;")
@@ -452,17 +445,55 @@ void LockScreen::build_lockout_page() {
vl->addWidget(make_separator());
- auto* reauth_btn = new QPushButton(" SIGN IN AGAIN ");
- reauth_btn->setFixedHeight(34);
- reauth_btn->setStyleSheet(btn_danger());
- connect(reauth_btn, &QPushButton::clicked, this, [this]() { emit reauth_requested(); });
- vl->addWidget(reauth_btn);
+ lockout_reauth_btn_ = new QPushButton;
+ lockout_reauth_btn_->setFixedHeight(34);
+ lockout_reauth_btn_->setStyleSheet(btn_danger());
+ connect(lockout_reauth_btn_, &QPushButton::clicked, this, [this]() { emit reauth_requested(); });
+ vl->addWidget(lockout_reauth_btn_);
vl->addStretch();
pages_->addWidget(page); // index 2
}
+// ── Re-translation ───────────────────────────────────────────────────────────
+
+void LockScreen::retranslateUi() {
+ if (setup_title_) setup_title_->setText(tr("SECURITY SETUP"));
+ if (setup_badge_) setup_badge_->setText(tr("REQUIRED"));
+ if (setup_subtitle_) setup_subtitle_->setText(tr("Create a 6-digit PIN to secure your terminal"));
+ if (setup_info_) setup_info_->setText(tr("This PIN will be required each time you open\nthe terminal or after a period of inactivity."));
+ if (setup_pin_lbl_) setup_pin_lbl_->setText(tr("ENTER PIN"));
+ if (setup_confirm_lbl_) setup_confirm_lbl_->setText(tr("CONFIRM PIN"));
+ if (setup_btn_) setup_btn_->setText(tr(" SET PIN "));
+ if (setup_note_) setup_note_->setText(tr("PIN is encrypted and stored locally on this device.\nIt cannot be recovered if forgotten."));
+
+ if (unlock_title_) unlock_title_->setText(tr("TERMINAL LOCKED"));
+ if (unlock_badge_) unlock_badge_->setText(tr("SECURE"));
+ if (unlock_subtitle_) unlock_subtitle_->setText(tr("Enter your 6-digit PIN to unlock"));
+ if (unlock_pin_lbl_) unlock_pin_lbl_->setText(tr("PIN"));
+ if (unlock_btn_) unlock_btn_->setText(tr(" UNLOCK "));
+
+ if (lockout_title_) lockout_title_->setText(tr("ACCOUNT LOCKED"));
+ if (lockout_badge_) lockout_badge_->setText(tr("SECURITY"));
+ if (lockout_msg_)
+ lockout_msg_->setText(tr("Too many failed PIN attempts.\n\n"
+ "For your security, the terminal has been locked.\n"
+ "You must sign in again with your email and password\n"
+ "to reset your PIN and regain access."));
+ if (lockout_reauth_btn_) lockout_reauth_btn_->setText(tr(" SIGN IN AGAIN "));
+}
+
+void LockScreen::refresh_attempts_label() {
+ if (!unlock_attempts_) return;
+ auto& pm = auth::PinManager::instance();
+ if (pm.failed_attempts() > 0 && pm.failed_attempts() < auth::PinManager::kMaxAttempts) {
+ const int remaining = auth::PinManager::kMaxAttempts - pm.failed_attempts();
+ // Qt plural form — translators define numerusform variants in the .ts.
+ unlock_attempts_->setText(tr("%n ATTEMPT(S) REMAINING", "", remaining));
+ }
+}
+
// ── Page activation ─────────────────────────────────────────────────────────
void LockScreen::activate() {
@@ -492,8 +523,7 @@ void LockScreen::show_unlock() {
auto& pm = auth::PinManager::instance();
if (pm.failed_attempts() > 0 && pm.failed_attempts() < auth::PinManager::kMaxAttempts) {
- int remaining = auth::PinManager::kMaxAttempts - pm.failed_attempts();
- unlock_attempts_->setText(QString("%1 ATTEMPT%2 REMAINING").arg(remaining).arg(remaining == 1 ? "" : "S"));
+ refresh_attempts_label();
unlock_attempts_->show();
} else {
unlock_attempts_->hide();
@@ -513,12 +543,9 @@ void LockScreen::on_setup_submit() {
const QString pin = setup_pin_input_->text();
const QString confirm = setup_confirm_input_->text();
- // Match check is UI-only — PinManager has no concept of a confirm field.
- // Clear BOTH fields on mismatch — leaving the original PIN sitting in
- // the masked first field is mild process-memory exposure (text() still
- // returns plaintext) and forces the user to re-type both anyway.
+ // Clear BOTH fields on mismatch — see header note about masked-text leak.
if (pin != confirm) {
- setup_error_->setText("PINs do not match");
+ setup_error_->setText(tr("PINs do not match"));
setup_error_->show();
setup_pin_input_->clear();
setup_confirm_input_->clear();
@@ -526,9 +553,6 @@ void LockScreen::on_setup_submit() {
return;
}
- // All length / digit-only / weak-pattern rejection now lives in
- // PinManager::set_pin() so future setup flows (QR companion, tests) hit
- // the same guardrails. Render whatever message PinManager returns.
auto result = auth::PinManager::instance().set_pin(pin);
if (result.is_err()) {
setup_error_->setText(QString::fromStdString(result.error()));
@@ -551,7 +575,7 @@ void LockScreen::on_unlock_submit() {
QString pin = unlock_pin_input_->text();
if (pin.isEmpty()) {
- unlock_error_->setText("Enter your PIN");
+ unlock_error_->setText(tr("Enter your PIN"));
unlock_error_->show();
return;
}
@@ -573,8 +597,7 @@ void LockScreen::on_unlock_submit() {
return;
}
- int remaining = auth::PinManager::kMaxAttempts - pm.failed_attempts();
- unlock_attempts_->setText(QString("%1 ATTEMPT%2 REMAINING").arg(remaining).arg(remaining == 1 ? "" : "S"));
+ refresh_attempts_label();
unlock_attempts_->show();
if (pm.is_locked_out()) {
@@ -582,7 +605,7 @@ void LockScreen::on_unlock_submit() {
update_lockout_display();
lockout_timer_->start();
} else {
- unlock_error_->setText("Incorrect PIN");
+ unlock_error_->setText(tr("Incorrect PIN"));
unlock_error_->show();
unlock_lockout_label_->hide();
}
@@ -609,7 +632,7 @@ void LockScreen::update_lockout_display() {
else
time_str = QString("%1s").arg(secs);
- unlock_lockout_label_->setText(QString("Locked for %1 — too many failed attempts").arg(time_str));
+ unlock_lockout_label_->setText(tr("Locked for %1 — too many failed attempts").arg(time_str));
unlock_lockout_label_->show();
unlock_btn_->setEnabled(false);
unlock_pin_input_->setEnabled(false);
diff --git a/fincept-qt/src/screens/auth/LockScreen.h b/fincept-qt/src/screens/auth/LockScreen.h
index da1409bc0..2c3220caa 100644
--- a/fincept-qt/src/screens/auth/LockScreen.h
+++ b/fincept-qt/src/screens/auth/LockScreen.h
@@ -15,6 +15,9 @@ namespace fincept::screens {
/// 0 — PIN setup (create new 6-digit PIN, confirm)
/// 1 — PIN unlock (enter PIN to unlock terminal)
/// 2 — Lockout (too many failed attempts, must re-authenticate)
+///
+/// Internationalised via tr() + retranslateUi(); reacts to runtime language
+/// switches through changeEvent(QEvent::LanguageChange).
class LockScreen : public QWidget {
Q_OBJECT
public:
@@ -42,13 +45,24 @@ class LockScreen : public QWidget {
private:
QStackedWidget* pages_ = nullptr;
- // PIN Setup page (index 0)
+ // PIN Setup page (index 0) — text-bearing widgets
+ QLabel* setup_title_ = nullptr;
+ QLabel* setup_badge_ = nullptr;
+ QLabel* setup_subtitle_ = nullptr;
+ QLabel* setup_info_ = nullptr;
+ QLabel* setup_pin_lbl_ = nullptr;
+ QLabel* setup_confirm_lbl_ = nullptr;
+ QLabel* setup_note_ = nullptr;
QLineEdit* setup_pin_input_ = nullptr;
QLineEdit* setup_confirm_input_ = nullptr;
QPushButton* setup_btn_ = nullptr;
QLabel* setup_error_ = nullptr;
// PIN Unlock page (index 1)
+ QLabel* unlock_title_ = nullptr;
+ QLabel* unlock_badge_ = nullptr;
+ QLabel* unlock_subtitle_ = nullptr;
+ QLabel* unlock_pin_lbl_ = nullptr;
QLineEdit* unlock_pin_input_ = nullptr;
QPushButton* unlock_btn_ = nullptr;
QLabel* unlock_error_ = nullptr;
@@ -56,7 +70,10 @@ class LockScreen : public QWidget {
QLabel* unlock_lockout_label_ = nullptr;
// Lockout page (index 2)
+ QLabel* lockout_title_ = nullptr;
+ QLabel* lockout_badge_ = nullptr;
QLabel* lockout_msg_ = nullptr;
+ QPushButton* lockout_reauth_btn_ = nullptr;
// Lockout countdown timer
QTimer* lockout_timer_ = nullptr;
@@ -65,14 +82,21 @@ class LockScreen : public QWidget {
void build_unlock_page();
void build_lockout_page();
+ void retranslateUi();
+
void on_setup_submit();
void on_unlock_submit();
void update_lockout_display();
+ /// Recompute the attempts-remaining label using the live PinManager state.
+ /// Called from show_unlock(), unlock failure paths, and retranslateUi() so
+ /// the text stays in sync across both state and language changes.
+ void refresh_attempts_label();
protected:
void paintEvent(QPaintEvent* event) override;
void showEvent(QShowEvent* event) override;
void hideEvent(QHideEvent* event) override;
+ void changeEvent(QEvent* event) override;
};
} // namespace fincept::screens
diff --git a/fincept-qt/src/screens/auth/LoginScreen.cpp b/fincept-qt/src/screens/auth/LoginScreen.cpp
index 75a56bd35..ee13ea958 100644
--- a/fincept-qt/src/screens/auth/LoginScreen.cpp
+++ b/fincept-qt/src/screens/auth/LoginScreen.cpp
@@ -3,7 +3,9 @@
#include "auth/AuthManager.h"
#include "auth/AuthTypes.h"
#include "ui/theme/Theme.h"
+#include "ui/widgets/LanguageSwitcher.h"
+#include <QEvent>
#include <QFrame>
#include <QHBoxLayout>
#include <QHideEvent>
@@ -107,6 +109,15 @@ LoginScreen::LoginScreen(QWidget* parent) : QWidget(parent) {
auto* root = new QVBoxLayout(this);
root->setContentsMargins(0, 0, 0, 0);
+ // Top-right language picker — available before login so users can change
+ // the UI language without authenticating. Posts QEvent::LanguageChange
+ // app-wide, which retranslates this screen via changeEvent below.
+ auto* top_row = new QHBoxLayout;
+ top_row->setContentsMargins(20, 20, 20, 0);
+ top_row->addStretch();
+ top_row->addWidget(new ui::LanguageSwitcher(this));
+ root->addLayout(top_row);
+
auto* overlay = new QVBoxLayout;
overlay->setAlignment(Qt::AlignCenter);
root->addLayout(overlay, 1);
@@ -122,6 +133,8 @@ LoginScreen::LoginScreen(QWidget* parent) : QWidget(parent) {
overlay->addWidget(pages_, 0, Qt::AlignCenter);
+ retranslateUi();
+
auto& auth = auth::AuthManager::instance();
connect(&auth, &auth::AuthManager::login_succeeded, this, &LoginScreen::on_login_succeeded);
connect(&auth, &auth::AuthManager::login_failed, this, &LoginScreen::on_login_failed);
@@ -148,6 +161,13 @@ void LoginScreen::hideEvent(QHideEvent* event) {
QWidget::hideEvent(event);
}
+void LoginScreen::changeEvent(QEvent* event) {
+ if (event->type() == QEvent::LanguageChange) {
+ retranslateUi();
+ }
+ QWidget::changeEvent(event);
+}
+
void LoginScreen::paintEvent(QPaintEvent* /*event*/) {
QPainter p(this);
p.fillRect(rect(), QColor(ui::colors::BG_BASE()));
@@ -183,15 +203,16 @@ void LoginScreen::build_login_page() {
auto* hl = new QHBoxLayout(header);
hl->setContentsMargins(14, 0, 14, 0);
- auto* title = new QLabel("SIGN IN");
- title->setStyleSheet(QString("color: %1; font-size: 14px; font-weight: 700;"
- "background: transparent; letter-spacing: 1px;"
- "font-family: 'Consolas','Courier New',monospace;")
- .arg(ui::colors::AMBER()));
- hl->addWidget(title);
+ login_title_ = new QLabel;
+ login_title_->setStyleSheet(QString("color: %1; font-size: 14px; font-weight: 700;"
+ "background: transparent; letter-spacing: 1px;"
+ "font-family: 'Consolas','Courier New',monospace;")
+ .arg(ui::colors::AMBER()));
+ hl->addWidget(login_title_);
hl->addStretch();
- auto* brand = new QLabel("FINCEPT");
+ // Brand mark — not translated.
+ auto* brand = new QLabel(QStringLiteral("FINCEPT"));
brand->setStyleSheet(QString("color: %1; font-size: 12px; font-weight: 700;"
"background: transparent; letter-spacing: 0.5px;"
"font-family: 'Consolas','Courier New',monospace;")
@@ -199,27 +220,26 @@ void LoginScreen::build_login_page() {
hl->addWidget(brand);
vl->addWidget(header);
- auto* subtitle = new QLabel("Access your terminal account");
- subtitle->setStyleSheet(muted_style());
- vl->addWidget(subtitle);
+ login_subtitle_ = new QLabel;
+ login_subtitle_->setStyleSheet(muted_style());
+ vl->addWidget(login_subtitle_);
vl->addWidget(make_separator());
// Email
- auto* email_lbl = new QLabel("EMAIL");
- email_lbl->setStyleSheet(label_style());
- vl->addWidget(email_lbl);
+ email_lbl_ = new QLabel;
+ email_lbl_->setStyleSheet(label_style());
+ vl->addWidget(email_lbl_);
email_input_ = new QLineEdit;
- email_input_->setPlaceholderText("[email protected]");
email_input_->setFixedHeight(34);
email_input_->setStyleSheet(input_style());
vl->addWidget(email_input_);
// Password
- auto* pw_lbl = new QLabel("PASSWORD");
- pw_lbl->setStyleSheet(label_style());
- vl->addWidget(pw_lbl);
+ pw_lbl_ = new QLabel;
+ pw_lbl_->setStyleSheet(label_style());
+ vl->addWidget(pw_lbl_);
auto* pw_row = new QWidget(this);
pw_row->setStyleSheet("background: transparent;");
@@ -228,19 +248,18 @@ void LoginScreen::build_login_page() {
prl->setSpacing(4);
password_input_ = new QLineEdit;
- password_input_->setPlaceholderText("enter password");
password_input_->setEchoMode(QLineEdit::Password);
password_input_->setFixedHeight(34);
password_input_->setStyleSheet(input_style());
prl->addWidget(password_input_);
- show_pw_btn_ = new QPushButton("SHOW");
+ show_pw_btn_ = new QPushButton;
show_pw_btn_->setFixedSize(58, 34);
show_pw_btn_->setStyleSheet(btn_standard());
connect(show_pw_btn_, &QPushButton::clicked, this, [this]() {
bool hidden = password_input_->echoMode() == QLineEdit::Password;
password_input_->setEchoMode(hidden ? QLineEdit::Normal : QLineEdit::Password);
- show_pw_btn_->setText(hidden ? "HIDE" : "SHOW");
+ show_pw_btn_->setText(hidden ? tr("HIDE") : tr("SHOW"));
});
prl->addWidget(show_pw_btn_);
vl->addWidget(pw_row);
@@ -262,13 +281,13 @@ void LoginScreen::build_login_page() {
auto* brl = new QHBoxLayout(btn_row);
brl->setContentsMargins(0, 0, 0, 0);
- auto* forgot_btn = new QPushButton("FORGOT PASSWORD?");
- forgot_btn->setStyleSheet(link_style());
- connect(forgot_btn, &QPushButton::clicked, this, &LoginScreen::navigate_forgot_password);
- brl->addWidget(forgot_btn);
+ forgot_btn_ = new QPushButton;
+ forgot_btn_->setStyleSheet(link_style());
+ connect(forgot_btn_, &QPushButton::clicked, this, &LoginScreen::navigate_forgot_password);
+ brl->addWidget(forgot_btn_);
brl->addStretch();
- login_btn_ = new QPushButton(" SIGN IN ");
+ login_btn_ = new QPushButton;
login_btn_->setFixedHeight(32);
login_btn_->setStyleSheet(btn_primary());
connect(login_btn_, &QPushButton::clicked, this, &LoginScreen::on_login);
@@ -284,18 +303,18 @@ void LoginScreen::build_login_page() {
rrl->setContentsMargins(0, 0, 0, 0);
rrl->setAlignment(Qt::AlignCenter);
- auto* no_acct = new QLabel("No account?");
- no_acct->setStyleSheet(muted_style());
- rrl->addWidget(no_acct);
-
- auto* signup_btn = new QPushButton("SIGN UP");
- signup_btn->setStyleSheet(QString("QPushButton { color: %1; background: transparent; border: none;"
- " font-size: 13px; font-weight: 700;"
- " font-family: 'Consolas','Courier New',monospace; }"
- "QPushButton:hover { color: %2; }")
- .arg(ui::colors::AMBER(), ui::colors::TEXT_PRIMARY()));
- connect(signup_btn, &QPushButton::clicked, this, &LoginScreen::navigate_register);
- rrl->addWidget(signup_btn);
+ no_account_lbl_ = new QLabel;
+ no_account_lbl_->setStyleSheet(muted_style());
+ rrl->addWidget(no_account_lbl_);
+
+ signup_btn_ = new QPushButton;
+ signup_btn_->setStyleSheet(QString("QPushButton { color: %1; background: transparent; border: none;"
+ " font-size: 13px; font-weight: 700;"
+ " font-family: 'Consolas','Courier New',monospace; }"
+ "QPushButton:hover { color: %2; }")
+ .arg(ui::colors::AMBER(), ui::colors::TEXT_PRIMARY()));
+ connect(signup_btn_, &QPushButton::clicked, this, &LoginScreen::navigate_register);
+ rrl->addWidget(signup_btn_);
vl->addWidget(reg_row);
connect(password_input_, &QLineEdit::returnPressed, this, &LoginScreen::on_login);
@@ -320,35 +339,35 @@ void LoginScreen::build_mfa_page() {
auto* hl = new QHBoxLayout(header);
hl->setContentsMargins(14, 0, 14, 0);
- auto* title = new QLabel("TWO-FACTOR AUTH");
- title->setStyleSheet(QString("color: %1; font-size: 14px; font-weight: 700;"
- "background: transparent; letter-spacing: 1px;"
- "font-family: 'Consolas','Courier New',monospace;")
- .arg(ui::colors::AMBER()));
- hl->addWidget(title);
+ mfa_title_ = new QLabel;
+ mfa_title_->setStyleSheet(QString("color: %1; font-size: 14px; font-weight: 700;"
+ "background: transparent; letter-spacing: 1px;"
+ "font-family: 'Consolas','Courier New',monospace;")
+ .arg(ui::colors::AMBER()));
+ hl->addWidget(mfa_title_);
hl->addStretch();
- auto* indicator = new QLabel("SECURE");
- indicator->setStyleSheet(QString("color: %1; font-size: 12px; font-weight: 700;"
- "background: transparent; letter-spacing: 0.5px;"
- "font-family: 'Consolas','Courier New',monospace;")
- .arg(ui::colors::POSITIVE()));
- hl->addWidget(indicator);
+ mfa_indicator_ = new QLabel;
+ mfa_indicator_->setStyleSheet(QString("color: %1; font-size: 12px; font-weight: 700;"
+ "background: transparent; letter-spacing: 0.5px;"
+ "font-family: 'Consolas','Courier New',monospace;")
+ .arg(ui::colors::POSITIVE()));
+ hl->addWidget(mfa_indicator_);
vl->addWidget(header);
- auto* sub = new QLabel("Enter the 6-digit code from your authenticator");
- sub->setWordWrap(true);
- sub->setStyleSheet(muted_style());
- vl->addWidget(sub);
+ mfa_sub_ = new QLabel;
+ mfa_sub_->setWordWrap(true);
+ mfa_sub_->setStyleSheet(muted_style());
+ vl->addWidget(mfa_sub_);
vl->addWidget(make_separator());
- auto* lbl = new QLabel("VERIFICATION CODE");
- lbl->setStyleSheet(label_style());
- vl->addWidget(lbl);
+ mfa_code_lbl_ = new QLabel;
+ mfa_code_lbl_->setStyleSheet(label_style());
+ vl->addWidget(mfa_code_lbl_);
mfa_input_ = new QLineEdit;
- mfa_input_->setPlaceholderText("000000");
+ mfa_input_->setPlaceholderText(QStringLiteral("000000"));
mfa_input_->setMaxLength(6);
mfa_input_->setAlignment(Qt::AlignCenter);
mfa_input_->setFixedHeight(40);
@@ -374,16 +393,16 @@ void LoginScreen::build_mfa_page() {
mfa_error_->hide();
vl->addWidget(mfa_error_);
- mfa_verify_btn_ = new QPushButton(" VERIFY ");
+ mfa_verify_btn_ = new QPushButton;
mfa_verify_btn_->setFixedHeight(32);
mfa_verify_btn_->setStyleSheet(btn_primary());
connect(mfa_verify_btn_, &QPushButton::clicked, this, &LoginScreen::on_mfa_verify);
vl->addWidget(mfa_verify_btn_);
- auto* back = new QPushButton("BACK TO LOGIN");
- back->setStyleSheet(link_style());
- connect(back, &QPushButton::clicked, this, [this]() { pages_->setCurrentIndex(0); });
- vl->addWidget(back, 0, Qt::AlignCenter);
+ mfa_back_btn_ = new QPushButton;
+ mfa_back_btn_->setStyleSheet(link_style());
+ connect(mfa_back_btn_, &QPushButton::clicked, this, [this]() { pages_->setCurrentIndex(0); });
+ vl->addWidget(mfa_back_btn_, 0, Qt::AlignCenter);
vl->addStretch();
connect(mfa_input_, &QLineEdit::returnPressed, this, &LoginScreen::on_mfa_verify);
@@ -406,20 +425,20 @@ void LoginScreen::build_conflict_page() {
auto* hl = new QHBoxLayout(header);
hl->setContentsMargins(14, 0, 14, 0);
- auto* title = new QLabel("SESSION CONFLICT");
- title->setStyleSheet(QString("color: %1; font-size: 14px; font-weight: 700;"
- "background: transparent; letter-spacing: 1px;"
- "font-family: 'Consolas','Courier New',monospace;")
- .arg(ui::colors::WARNING()));
- hl->addWidget(title);
+ conflict_title_ = new QLabel;
+ conflict_title_->setStyleSheet(QString("color: %1; font-size: 14px; font-weight: 700;"
+ "background: transparent; letter-spacing: 1px;"
+ "font-family: 'Consolas','Courier New',monospace;")
+ .arg(ui::colors::WARNING()));
+ hl->addWidget(conflict_title_);
hl->addStretch();
- auto* warn = new QLabel("WARNING");
- warn->setStyleSheet(QString("color: %1; font-size: 12px; font-weight: 700;"
- "background: transparent; letter-spacing: 0.5px;"
- "font-family: 'Consolas','Courier New',monospace;")
- .arg(ui::colors::WARNING()));
- hl->addWidget(warn);
+ conflict_warning_lbl_ = new QLabel;
+ conflict_warning_lbl_->setStyleSheet(QString("color: %1; font-size: 12px; font-weight: 700;"
+ "background: transparent; letter-spacing: 0.5px;"
+ "font-family: 'Consolas','Courier New',monospace;")
+ .arg(ui::colors::WARNING()));
+ hl->addWidget(conflict_warning_lbl_);
vl->addWidget(header);
conflict_msg_ = new QLabel;
@@ -431,22 +450,54 @@ void LoginScreen::build_conflict_page() {
vl->addWidget(make_separator());
- auto* force_btn = new QPushButton(" LOG OUT OTHER SESSION & CONTINUE ");
- force_btn->setFixedHeight(32);
- force_btn->setStyleSheet(btn_danger());
- connect(force_btn, &QPushButton::clicked, this, &LoginScreen::on_force_login);
- vl->addWidget(force_btn);
+ force_login_btn_ = new QPushButton;
+ force_login_btn_->setFixedHeight(32);
+ force_login_btn_->setStyleSheet(btn_danger());
+ connect(force_login_btn_, &QPushButton::clicked, this, &LoginScreen::on_force_login);
+ vl->addWidget(force_login_btn_);
- auto* cancel_btn = new QPushButton(" CANCEL ");
- cancel_btn->setFixedHeight(32);
- cancel_btn->setStyleSheet(btn_standard());
- connect(cancel_btn, &QPushButton::clicked, this, [this]() { pages_->setCurrentIndex(0); });
- vl->addWidget(cancel_btn);
+ cancel_btn_ = new QPushButton;
+ cancel_btn_->setFixedHeight(32);
+ cancel_btn_->setStyleSheet(btn_standard());
+ connect(cancel_btn_, &QPushButton::clicked, this, [this]() { pages_->setCurrentIndex(0); });
+ vl->addWidget(cancel_btn_);
vl->addStretch();
pages_->addWidget(conflict_page_);
}
+// ── Re-translation ───────────────────────────────────────────────────────────
+
+void LoginScreen::retranslateUi() {
+ if (login_title_) login_title_->setText(tr("SIGN IN"));
+ if (login_subtitle_) login_subtitle_->setText(tr("Access your terminal account"));
+ if (email_lbl_) email_lbl_->setText(tr("EMAIL"));
+ if (pw_lbl_) pw_lbl_->setText(tr("PASSWORD"));
+ if (email_input_) email_input_->setPlaceholderText(tr("[email protected]"));
+ if (password_input_) password_input_->setPlaceholderText(tr("enter password"));
+ if (show_pw_btn_) {
+ // Preserve current visibility state when re-translating.
+ const bool showing = password_input_ && password_input_->echoMode() != QLineEdit::Password;
+ show_pw_btn_->setText(showing ? tr("HIDE") : tr("SHOW"));
+ }
+ if (forgot_btn_) forgot_btn_->setText(tr("FORGOT PASSWORD?"));
+ if (login_btn_) login_btn_->setText(tr(" SIGN IN "));
+ if (no_account_lbl_) no_account_lbl_->setText(tr("No account?"));
+ if (signup_btn_) signup_btn_->setText(tr("SIGN UP"));
+
+ if (mfa_title_) mfa_title_->setText(tr("TWO-FACTOR AUTH"));
+ if (mfa_indicator_) mfa_indicator_->setText(tr("SECURE"));
+ if (mfa_sub_) mfa_sub_->setText(tr("Enter the 6-digit code from your authenticator"));
+ if (mfa_code_lbl_) mfa_code_lbl_->setText(tr("VERIFICATION CODE"));
+ if (mfa_verify_btn_) mfa_verify_btn_->setText(tr(" VERIFY "));
+ if (mfa_back_btn_) mfa_back_btn_->setText(tr("BACK TO LOGIN"));
+
+ if (conflict_title_) conflict_title_->setText(tr("SESSION CONFLICT"));
+ if (conflict_warning_lbl_) conflict_warning_lbl_->setText(tr("WARNING"));
+ if (force_login_btn_) force_login_btn_->setText(tr(" LOG OUT OTHER SESSION & CONTINUE "));
+ if (cancel_btn_) cancel_btn_->setText(tr(" CANCEL "));
+}
+
// ── Actions ──────────────────────────────────────────────────────────────────
void LoginScreen::on_login() {
@@ -459,7 +510,7 @@ void LoginScreen::on_login() {
return;
}
if (password.isEmpty()) {
- show_error("Please enter your password");
+ show_error(tr("Please enter your password"));
return;
}
@@ -471,7 +522,7 @@ void LoginScreen::on_login() {
void LoginScreen::on_mfa_verify() {
QString code = mfa_input_->text().trimmed();
if (code.isEmpty()) {
- mfa_error_->setText("Please enter the code");
+ mfa_error_->setText(tr("Please enter the code"));
mfa_error_->show();
return;
}
@@ -546,7 +597,7 @@ void LoginScreen::set_loading(bool loading) {
login_btn_->setEnabled(!loading);
email_input_->setEnabled(!loading);
password_input_->setEnabled(!loading);
- login_btn_->setText(loading ? " SIGNING IN... " : " SIGN IN ");
+ login_btn_->setText(loading ? tr(" SIGNING IN... ") : tr(" SIGN IN "));
}
} // namespace fincept::screens
diff --git a/fincept-qt/src/screens/auth/LoginScreen.h b/fincept-qt/src/screens/auth/LoginScreen.h
index d2da3a1f5..a672a1afb 100644
--- a/fincept-qt/src/screens/auth/LoginScreen.h
+++ b/fincept-qt/src/screens/auth/LoginScreen.h
@@ -9,6 +9,11 @@ namespace fincept::screens {
/// Login screen — email/password, MFA step, force-login for active sessions.
/// Obsidian design: sharp corners, monospace, no shadows, terminal aesthetic.
+///
+/// Internationalised: all user-facing strings flow through tr(). On
+/// QEvent::LanguageChange (emitted by Qt when LanguageManager installs a new
+/// translator) retranslateUi() reapplies translated text to every widget held
+/// by member pointer.
class LoginScreen : public QWidget {
Q_OBJECT
public:
@@ -19,19 +24,38 @@ class LoginScreen : public QWidget {
void navigate_forgot_password();
private:
+ // ── Login page widgets that need re-translating ─────────────────────────
+ QLabel* login_title_ = nullptr;
+ QLabel* login_subtitle_ = nullptr;
+ QLabel* email_lbl_ = nullptr;
+ QLabel* pw_lbl_ = nullptr;
QLineEdit* email_input_ = nullptr;
QLineEdit* password_input_ = nullptr;
QPushButton* login_btn_ = nullptr;
- QLabel* error_label_ = nullptr;
+ QPushButton* forgot_btn_ = nullptr;
QPushButton* show_pw_btn_ = nullptr;
+ QLabel* no_account_lbl_ = nullptr;
+ QPushButton* signup_btn_ = nullptr;
+ QLabel* error_label_ = nullptr;
+ // ── MFA page widgets ────────────────────────────────────────────────────
QWidget* mfa_page_ = nullptr;
+ QLabel* mfa_title_ = nullptr;
+ QLabel* mfa_indicator_ = nullptr;
+ QLabel* mfa_sub_ = nullptr;
+ QLabel* mfa_code_lbl_ = nullptr;
QLineEdit* mfa_input_ = nullptr;
QPushButton* mfa_verify_btn_ = nullptr;
+ QPushButton* mfa_back_btn_ = nullptr;
QLabel* mfa_error_ = nullptr;
+ // ── Conflict page widgets ───────────────────────────────────────────────
QWidget* conflict_page_ = nullptr;
+ QLabel* conflict_title_ = nullptr;
+ QLabel* conflict_warning_lbl_ = nullptr;
QLabel* conflict_msg_ = nullptr;
+ QPushButton* force_login_btn_ = nullptr;
+ QPushButton* cancel_btn_ = nullptr;
QStackedWidget* pages_ = nullptr;
@@ -39,12 +63,17 @@ class LoginScreen : public QWidget {
void build_mfa_page();
void build_conflict_page();
+ /// Reapply translated text to every widget cached as a member pointer.
+ /// Called from the constructor and from changeEvent(LanguageChange).
+ void retranslateUi();
+
void show_error(const QString& msg);
void clear_error();
void set_loading(bool loading);
protected:
void paintEvent(QPaintEvent* event) override;
+ void changeEvent(QEvent* event) override;
/// Wipe email/password/MFA fields whenever the screen leaves the stack so
/// credentials do not linger across logout → login cycles.
void hideEvent(QHideEvent* event) override;
diff --git a/fincept-qt/src/screens/auth/RegisterScreen.cpp b/fincept-qt/src/screens/auth/RegisterScreen.cpp
index ee4c39d60..e9ca959e9 100644
--- a/fincept-qt/src/screens/auth/RegisterScreen.cpp
+++ b/fincept-qt/src/screens/auth/RegisterScreen.cpp
@@ -3,7 +3,9 @@
#include "auth/AuthManager.h"
#include "auth/AuthTypes.h"
#include "ui/theme/Theme.h"
+#include "ui/widgets/LanguageSwitcher.h"
+#include <QEvent>
#include <QFrame>
#include <QHBoxLayout>
#include <QHideEvent>
@@ -93,6 +95,13 @@ RegisterScreen::RegisterScreen(QWidget* parent) : QWidget(parent) {
auto* root = new QVBoxLayout(this);
root->setContentsMargins(0, 0, 0, 0);
+ // Top-right language picker — visible without account.
+ auto* top_row = new QHBoxLayout;
+ top_row->setContentsMargins(20, 20, 20, 0);
+ top_row->addStretch();
+ top_row->addWidget(new ui::LanguageSwitcher(this));
+ root->addLayout(top_row);
+
auto* overlay = new QVBoxLayout;
overlay->setAlignment(Qt::AlignCenter);
root->addLayout(overlay, 1);
@@ -107,10 +116,12 @@ RegisterScreen::RegisterScreen(QWidget* parent) : QWidget(parent) {
overlay->addWidget(pages_, 0, Qt::AlignCenter);
+ retranslateUi();
+
auto& auth = auth::AuthManager::instance();
connect(&auth, &auth::AuthManager::signup_succeeded, this, [this]() {
register_btn_->setEnabled(true);
- register_btn_->setText(" CREATE ACCOUNT ");
+ register_btn_->setText(tr(" CREATE ACCOUNT "));
otp_email_->setText(email_->text().trimmed());
otp_input_->clear();
otp_error_->hide();
@@ -118,14 +129,14 @@ RegisterScreen::RegisterScreen(QWidget* parent) : QWidget(parent) {
});
connect(&auth, &auth::AuthManager::signup_failed, this, [this](const QString& err) {
register_btn_->setEnabled(true);
- register_btn_->setText(" CREATE ACCOUNT ");
+ register_btn_->setText(tr(" CREATE ACCOUNT "));
error_label_->setText(err);
error_label_->show();
});
connect(&auth, &auth::AuthManager::otp_verified, this, [this]() { verify_btn_->setEnabled(true); });
connect(&auth, &auth::AuthManager::otp_failed, this, [this](const QString& err) {
verify_btn_->setEnabled(true);
- verify_btn_->setText(" VERIFY ");
+ verify_btn_->setText(tr(" VERIFY "));
otp_error_->setText(err);
otp_error_->show();
});
@@ -148,6 +159,13 @@ void RegisterScreen::hideEvent(QHideEvent* event) {
QWidget::hideEvent(event);
}
+void RegisterScreen::changeEvent(QEvent* event) {
+ if (event->type() == QEvent::LanguageChange) {
+ retranslateUi();
+ }
+ QWidget::changeEvent(event);
+}
+
void RegisterScreen::paintEvent(QPaintEvent* /*event*/) {
QPainter p(this);
p.fillRect(rect(), QColor(ui::colors::BG_BASE()));
@@ -177,7 +195,7 @@ void RegisterScreen::build_form_page() {
auto* hl = new QHBoxLayout(header);
hl->setContentsMargins(14, 0, 14, 0);
- auto* back = new QPushButton("<");
+ auto* back = new QPushButton(QStringLiteral("<"));
back->setFixedSize(24, 24);
back->setStyleSheet(QString("QPushButton { color: %1; background: transparent; border: none;"
" font-size: 16px; font-family: 'Consolas','Courier New',monospace; }"
@@ -186,30 +204,26 @@ void RegisterScreen::build_form_page() {
connect(back, &QPushButton::clicked, this, &RegisterScreen::navigate_login);
hl->addWidget(back);
- auto* title = new QLabel("CREATE ACCOUNT");
- title->setStyleSheet(QString("color: %1; font-size: 14px; font-weight: 700;"
- "background: transparent; letter-spacing: 1px;"
- "font-family: 'Consolas','Courier New',monospace;")
- .arg(ui::colors::AMBER()));
- hl->addWidget(title);
+ form_title_ = new QLabel;
+ form_title_->setStyleSheet(QString("color: %1; font-size: 14px; font-weight: 700;"
+ "background: transparent; letter-spacing: 1px;"
+ "font-family: 'Consolas','Courier New',monospace;")
+ .arg(ui::colors::AMBER()));
+ hl->addWidget(form_title_);
hl->addStretch();
vl->addWidget(header);
vl->addWidget(make_separator());
- // Helper to add a compact field
- auto add_field = [&](QLineEdit*& field, const char* label, const char* placeholder, QLayout* parent) {
- auto* lbl = new QLabel(label);
- lbl->setStyleSheet(label_style());
- if (auto* vbl = qobject_cast<QVBoxLayout*>(static_cast<QObject*>(nullptr)); !vbl) {
- // parent is a layout — just add
- }
- static_cast<QBoxLayout*>(parent)->addWidget(lbl);
- field = new QLineEdit;
- field->setPlaceholderText(placeholder);
- field->setFixedHeight(30);
- field->setStyleSheet(input_style());
- static_cast<QBoxLayout*>(parent)->addWidget(field);
+ // Helper that creates a label + line edit; stores both pointers via output params.
+ auto add_field = [&](QLabel*& label_out, QLineEdit*& field_out, QLayout* parent) {
+ label_out = new QLabel;
+ label_out->setStyleSheet(label_style());
+ static_cast<QBoxLayout*>(parent)->addWidget(label_out);
+ field_out = new QLineEdit;
+ field_out->setFixedHeight(30);
+ field_out->setStyleSheet(input_style());
+ static_cast<QBoxLayout*>(parent)->addWidget(field_out);
};
// Name row — side by side
@@ -221,16 +235,16 @@ void RegisterScreen::build_form_page() {
auto* fn_col = new QVBoxLayout;
fn_col->setSpacing(2);
- add_field(first_name_, "FIRST NAME", "First", fn_col);
+ add_field(first_name_lbl_, first_name_, fn_col);
nrl->addLayout(fn_col);
auto* ln_col = new QVBoxLayout;
ln_col->setSpacing(2);
- add_field(last_name_, "LAST NAME", "Last", ln_col);
+ add_field(last_name_lbl_, last_name_, ln_col);
nrl->addLayout(ln_col);
vl->addWidget(name_row);
- add_field(email_, "EMAIL", "[email protected]", vl);
+ add_field(email_lbl_, email_, vl);
// Phone + country code side by side
auto* ph_row = new QWidget(this);
@@ -241,21 +255,22 @@ void RegisterScreen::build_form_page() {
auto* cc_col = new QVBoxLayout;
cc_col->setSpacing(2);
- add_field(country_code_, "CODE", "+1", cc_col);
+ add_field(code_lbl_, country_code_, cc_col);
country_code_->setFixedWidth(72);
phl->addLayout(cc_col);
auto* ph_col = new QVBoxLayout;
ph_col->setSpacing(2);
- add_field(phone_, "PHONE", "234 567 8900", ph_col);
+ add_field(phone_lbl_, phone_, ph_col);
phl->addLayout(ph_col);
vl->addWidget(ph_row);
- add_field(password_, "PASSWORD", "min 8 characters", vl);
+ add_field(password_lbl_, password_, vl);
password_->setEchoMode(QLineEdit::Password);
- // Password strength — compact single row hints
+ // Password strength — compact single row hints. The labels are symbolic
+ // ("8+", "A-Z", etc.) — left untranslated.
auto* pw_checks = new QWidget(this);
pw_checks->setStyleSheet("background: transparent;");
auto* pcl = new QHBoxLayout(pw_checks);
@@ -263,7 +278,7 @@ void RegisterScreen::build_form_page() {
pcl->setSpacing(8);
auto make_check = [&](QLabel*& lbl, const char* text) {
- lbl = new QLabel(text);
+ lbl = new QLabel(QString::fromUtf8(text));
lbl->setStyleSheet(check_off());
pcl->addWidget(lbl);
};
@@ -277,7 +292,7 @@ void RegisterScreen::build_form_page() {
connect(password_, &QLineEdit::textChanged, this, &RegisterScreen::update_password_strength);
- add_field(confirm_pw_, "CONFIRM PASSWORD", "re-enter password", vl);
+ add_field(confirm_pw_lbl_, confirm_pw_, vl);
confirm_pw_->setEchoMode(QLineEdit::Password);
// Error
@@ -293,7 +308,7 @@ void RegisterScreen::build_form_page() {
vl->addSpacing(2);
- register_btn_ = new QPushButton(" CREATE ACCOUNT ");
+ register_btn_ = new QPushButton;
register_btn_->setFixedHeight(32);
register_btn_->setStyleSheet(btn_primary());
connect(register_btn_, &QPushButton::clicked, this, &RegisterScreen::on_register);
@@ -308,18 +323,18 @@ void RegisterScreen::build_form_page() {
lrl->setAlignment(Qt::AlignCenter);
lrl->setContentsMargins(0, 0, 0, 0);
- auto* have = new QLabel("Already have an account?");
- have->setStyleSheet(muted_style());
- lrl->addWidget(have);
-
- auto* signin = new QPushButton("SIGN IN");
- signin->setStyleSheet(QString("QPushButton { color: %1; background: transparent; border: none;"
- " font-size: 12px; font-weight: 700;"
- " font-family: 'Consolas','Courier New',monospace; }"
- "QPushButton:hover { color: %2; }")
- .arg(ui::colors::AMBER(), ui::colors::TEXT_PRIMARY()));
- connect(signin, &QPushButton::clicked, this, &RegisterScreen::navigate_login);
- lrl->addWidget(signin);
+ have_account_lbl_ = new QLabel;
+ have_account_lbl_->setStyleSheet(muted_style());
+ lrl->addWidget(have_account_lbl_);
+
+ signin_btn_ = new QPushButton;
+ signin_btn_->setStyleSheet(QString("QPushButton { color: %1; background: transparent; border: none;"
+ " font-size: 12px; font-weight: 700;"
+ " font-family: 'Consolas','Courier New',monospace; }"
+ "QPushButton:hover { color: %2; }")
+ .arg(ui::colors::AMBER(), ui::colors::TEXT_PRIMARY()));
+ connect(signin_btn_, &QPushButton::clicked, this, &RegisterScreen::navigate_login);
+ lrl->addWidget(signin_btn_);
vl->addWidget(login_row);
pages_->addWidget(page);
@@ -342,12 +357,12 @@ void RegisterScreen::build_otp_page() {
auto* hl = new QHBoxLayout(header);
hl->setContentsMargins(14, 0, 14, 0);
- auto* title = new QLabel("VERIFY EMAIL");
- title->setStyleSheet(QString("color: %1; font-size: 14px; font-weight: 700;"
- "background: transparent; letter-spacing: 1px;"
- "font-family: 'Consolas','Courier New',monospace;")
- .arg(ui::colors::AMBER()));
- hl->addWidget(title);
+ otp_title_ = new QLabel;
+ otp_title_->setStyleSheet(QString("color: %1; font-size: 14px; font-weight: 700;"
+ "background: transparent; letter-spacing: 1px;"
+ "font-family: 'Consolas','Courier New',monospace;")
+ .arg(ui::colors::AMBER()));
+ hl->addWidget(otp_title_);
hl->addStretch();
vl->addWidget(header);
@@ -358,12 +373,11 @@ void RegisterScreen::build_otp_page() {
vl->addWidget(make_separator());
- auto* lbl = new QLabel("VERIFICATION CODE");
- lbl->setStyleSheet(label_style());
- vl->addWidget(lbl);
+ otp_code_lbl_ = new QLabel;
+ otp_code_lbl_->setStyleSheet(label_style());
+ vl->addWidget(otp_code_lbl_);
otp_input_ = new QLineEdit;
- otp_input_->setPlaceholderText("enter code from email");
otp_input_->setFixedHeight(34);
otp_input_->setStyleSheet(QString("QLineEdit {"
" background: %1; color: %2;"
@@ -387,27 +401,59 @@ void RegisterScreen::build_otp_page() {
otp_error_->hide();
vl->addWidget(otp_error_);
- verify_btn_ = new QPushButton(" VERIFY ");
+ verify_btn_ = new QPushButton;
verify_btn_->setFixedHeight(32);
verify_btn_->setStyleSheet(btn_primary());
connect(verify_btn_, &QPushButton::clicked, this, &RegisterScreen::on_verify_otp);
vl->addWidget(verify_btn_);
- auto* resend = new QPushButton("DIDN'T RECEIVE? RESEND");
- resend->setStyleSheet(link_style());
- connect(resend, &QPushButton::clicked, this, &RegisterScreen::on_resend_otp);
- vl->addWidget(resend, 0, Qt::AlignCenter);
+ resend_btn_ = new QPushButton;
+ resend_btn_->setStyleSheet(link_style());
+ connect(resend_btn_, &QPushButton::clicked, this, &RegisterScreen::on_resend_otp);
+ vl->addWidget(resend_btn_, 0, Qt::AlignCenter);
- auto* back2 = new QPushButton("BACK TO FORM");
- back2->setStyleSheet(link_style());
- connect(back2, &QPushButton::clicked, this, [this]() { pages_->setCurrentIndex(0); });
- vl->addWidget(back2, 0, Qt::AlignCenter);
+ back_to_form_btn_ = new QPushButton;
+ back_to_form_btn_->setStyleSheet(link_style());
+ connect(back_to_form_btn_, &QPushButton::clicked, this, [this]() { pages_->setCurrentIndex(0); });
+ vl->addWidget(back_to_form_btn_, 0, Qt::AlignCenter);
vl->addStretch();
connect(otp_input_, &QLineEdit::returnPressed, this, &RegisterScreen::on_verify_otp);
pages_->addWidget(page);
}
+// ── Re-translation ───────────────────────────────────────────────────────────
+
+void RegisterScreen::retranslateUi() {
+ if (form_title_) form_title_->setText(tr("CREATE ACCOUNT"));
+ if (first_name_lbl_) first_name_lbl_->setText(tr("FIRST NAME"));
+ if (last_name_lbl_) last_name_lbl_->setText(tr("LAST NAME"));
+ if (email_lbl_) email_lbl_->setText(tr("EMAIL"));
+ if (code_lbl_) code_lbl_->setText(tr("CODE"));
+ if (phone_lbl_) phone_lbl_->setText(tr("PHONE"));
+ if (password_lbl_) password_lbl_->setText(tr("PASSWORD"));
+ if (confirm_pw_lbl_) confirm_pw_lbl_->setText(tr("CONFIRM PASSWORD"));
+
+ if (first_name_) first_name_->setPlaceholderText(tr("First"));
+ if (last_name_) last_name_->setPlaceholderText(tr("Last"));
+ if (email_) email_->setPlaceholderText(tr("[email protected]"));
+ if (country_code_) country_code_->setPlaceholderText(tr("+1"));
+ if (phone_) phone_->setPlaceholderText(tr("234 567 8900"));
+ if (password_) password_->setPlaceholderText(tr("min 8 characters"));
+ if (confirm_pw_) confirm_pw_->setPlaceholderText(tr("re-enter password"));
+
+ if (register_btn_) register_btn_->setText(tr(" CREATE ACCOUNT "));
+ if (have_account_lbl_) have_account_lbl_->setText(tr("Already have an account?"));
+ if (signin_btn_) signin_btn_->setText(tr("SIGN IN"));
+
+ if (otp_title_) otp_title_->setText(tr("VERIFY EMAIL"));
+ if (otp_code_lbl_) otp_code_lbl_->setText(tr("VERIFICATION CODE"));
+ if (otp_input_) otp_input_->setPlaceholderText(tr("enter code from email"));
+ if (verify_btn_) verify_btn_->setText(tr(" VERIFY "));
+ if (resend_btn_) resend_btn_->setText(tr("DIDN'T RECEIVE? RESEND"));
+ if (back_to_form_btn_) back_to_form_btn_->setText(tr("BACK TO FORM"));
+}
+
// ── Password Strength ────────────────────────────────────────────────────────
void RegisterScreen::update_password_strength() {
@@ -433,12 +479,12 @@ void RegisterScreen::on_register() {
QString cpw = confirm_pw_->text();
if (fn.isEmpty() || ln.isEmpty() || em.isEmpty() || ph.isEmpty() || pw.isEmpty() || cpw.isEmpty()) {
- error_label_->setText("All fields are required");
+ error_label_->setText(tr("All fields are required"));
error_label_->show();
return;
}
if (cc.isEmpty()) {
- error_label_->setText("Country code is required (e.g. +1, +91)");
+ error_label_->setText(tr("Country code is required (e.g. +1, +91)"));
error_label_->show();
return;
}
@@ -454,25 +500,25 @@ void RegisterScreen::on_register() {
return;
}
if (pw != cpw) {
- error_label_->setText("Passwords do not match");
+ error_label_->setText(tr("Passwords do not match"));
error_label_->show();
return;
}
if (pw.length() < 8) {
- error_label_->setText("Password must be at least 8 characters");
+ error_label_->setText(tr("Password must be at least 8 characters"));
error_label_->show();
return;
}
QString username = auth::sanitize_input(fn + ln).toLower();
if (username.length() < 3 || username.length() > 50) {
- error_label_->setText("Username must be 3-50 characters");
+ error_label_->setText(tr("Username must be 3-50 characters"));
error_label_->show();
return;
}
register_btn_->setEnabled(false);
- register_btn_->setText(" CREATING... ");
+ register_btn_->setText(tr(" CREATING... "));
auth::AuthManager::instance().signup(username, em, pw, ph, {}, cc);
}
@@ -480,12 +526,12 @@ void RegisterScreen::on_verify_otp() {
otp_error_->hide();
QString code = otp_input_->text().trimmed();
if (code.isEmpty()) {
- otp_error_->setText("Enter the verification code");
+ otp_error_->setText(tr("Enter the verification code"));
otp_error_->show();
return;
}
verify_btn_->setEnabled(false);
- verify_btn_->setText(" VERIFYING... ");
+ verify_btn_->setText(tr(" VERIFYING... "));
auth::AuthManager::instance().verify_otp(email_->text().trimmed(), code);
}
diff --git a/fincept-qt/src/screens/auth/RegisterScreen.h b/fincept-qt/src/screens/auth/RegisterScreen.h
index c6fa70223..d9447db60 100644
--- a/fincept-qt/src/screens/auth/RegisterScreen.h
+++ b/fincept-qt/src/screens/auth/RegisterScreen.h
@@ -8,6 +8,8 @@
namespace fincept::screens {
/// Registration screen — Obsidian design, compact form + OTP verification.
+/// Internationalised via tr() + retranslateUi(); reacts to runtime language
+/// switches through changeEvent(QEvent::LanguageChange).
class RegisterScreen : public QWidget {
Q_OBJECT
public:
@@ -18,6 +20,7 @@ class RegisterScreen : public QWidget {
protected:
void paintEvent(QPaintEvent* event) override;
+ void changeEvent(QEvent* event) override;
/// Wipe registration + OTP fields whenever the screen leaves the stack so
/// entered credentials do not linger.
void hideEvent(QHideEvent* event) override;
@@ -25,6 +28,16 @@ class RegisterScreen : public QWidget {
private:
QStackedWidget* pages_ = nullptr;
+ // Form page — text-bearing widgets retained for retranslation
+ QLabel* form_title_ = nullptr;
+ QLabel* first_name_lbl_ = nullptr;
+ QLabel* last_name_lbl_ = nullptr;
+ QLabel* email_lbl_ = nullptr;
+ QLabel* code_lbl_ = nullptr;
+ QLabel* phone_lbl_ = nullptr;
+ QLabel* password_lbl_ = nullptr;
+ QLabel* confirm_pw_lbl_ = nullptr;
+
QLineEdit* first_name_ = nullptr;
QLineEdit* last_name_ = nullptr;
QLineEdit* email_ = nullptr;
@@ -34,6 +47,8 @@ class RegisterScreen : public QWidget {
QLineEdit* confirm_pw_ = nullptr;
QPushButton* register_btn_ = nullptr;
QLabel* error_label_ = nullptr;
+ QLabel* have_account_lbl_ = nullptr;
+ QPushButton* signin_btn_ = nullptr;
QLabel* pw_len_ = nullptr;
QLabel* pw_up_ = nullptr;
@@ -41,14 +56,20 @@ class RegisterScreen : public QWidget {
QLabel* pw_num_ = nullptr;
QLabel* pw_spec_ = nullptr;
+ // OTP page
+ QLabel* otp_title_ = nullptr;
+ QLabel* otp_code_lbl_ = nullptr;
QLineEdit* otp_input_ = nullptr;
QPushButton* verify_btn_ = nullptr;
+ QPushButton* resend_btn_ = nullptr;
+ QPushButton* back_to_form_btn_ = nullptr;
QLabel* otp_error_ = nullptr;
QLabel* otp_email_ = nullptr;
void build_form_page();
void build_otp_page();
void update_password_strength();
+ void retranslateUi();
private slots:
void on_register();
diff --git a/fincept-qt/src/screens/dashboard/widgets/EconomicCalendarWidget.cpp b/fincept-qt/src/screens/dashboard/widgets/EconomicCalendarWidget.cpp
index 245fc259f..1ffc61e1c 100644
--- a/fincept-qt/src/screens/dashboard/widgets/EconomicCalendarWidget.cpp
+++ b/fincept-qt/src/screens/dashboard/widgets/EconomicCalendarWidget.cpp
@@ -9,6 +9,20 @@
namespace {
constexpr const char* kTopic = "econ:fincept:upcoming_events";
+
+// Fixed column widths so header + rows line up regardless of event-name
+// length. QHBoxLayout's stretch factors alone don't align columns when
+// each row has different text widths — long event names push their
+// neighbours rightward, breaking the table look. EVENT is the only
+// variable column; it takes whatever leftover space the layout has.
+constexpr int kColWidthCty = 32;
+constexpr int kColWidthDate = 86;
+constexpr int kColWidthRef = 40;
+constexpr int kColWidthAct = 56;
+constexpr int kColWidthFcst = 48;
+constexpr int kColWidthCons = 48;
+constexpr int kColWidthPrev = 48;
+constexpr int kColWidthImp = 40;
} // namespace
namespace fincept::screens::widgets {
@@ -24,18 +38,25 @@ EconomicCalendarWidget::EconomicCalendarWidget(QWidget* parent)
auto* hl = new QHBoxLayout(header_widget_);
hl->setContentsMargins(8, 4, 8, 4);
- auto make_hdr = [&](const QString& text, int stretch, Qt::Alignment align = Qt::AlignLeft) {
+ auto make_hdr = [&](const QString& text, int fixed_w, int stretch, Qt::Alignment align = Qt::AlignLeft) {
auto* lbl = new QLabel(text);
lbl->setAlignment(align);
+ if (fixed_w > 0)
+ lbl->setFixedWidth(fixed_w);
+ else
+ lbl->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Preferred);
header_labels_.append(lbl);
hl->addWidget(lbl, stretch);
};
- make_hdr("EVENT", 4);
- make_hdr("CTY", 1);
- make_hdr("DATE", 2);
- make_hdr("ACT", 1, Qt::AlignRight);
- make_hdr("FCST", 1, Qt::AlignRight);
- make_hdr("IMP", 1, Qt::AlignRight);
+ make_hdr("EVENT", /*fixed_w=*/0, /*stretch=*/1);
+ make_hdr("CTY", kColWidthCty, 0);
+ make_hdr("DATE", kColWidthDate, 0);
+ make_hdr("REF", kColWidthRef, 0);
+ make_hdr("ACT", kColWidthAct, 0, Qt::AlignRight);
+ make_hdr("FCST", kColWidthFcst, 0, Qt::AlignRight);
+ make_hdr("CONS", kColWidthCons, 0, Qt::AlignRight);
+ make_hdr("PREV", kColWidthPrev, 0, Qt::AlignRight);
+ make_hdr("IMP", kColWidthImp, 0, Qt::AlignRight);
vl->addWidget(header_widget_);
header_sep_ = new QFrame;
@@ -63,7 +84,15 @@ EconomicCalendarWidget::EconomicCalendarWidget(QWidget* parent)
// User-driven refresh button on the BaseWidget title bar — force the
// hub to refresh the topic. Per-producer rate limit (2/sec) still
// applies, so rage-clicking can't hammer api.fincept.in.
- connect(this, &BaseWidget::refresh_requested, this, []() {
+ //
+ // We must show the loading overlay BEFORE the request — otherwise the
+ // click feels dead when the producer returns the same cached payload
+ // (TTL=5min: the API genuinely has nothing new most of the time) or
+ // when the producer is currently in_flight and the hub silently drops
+ // the duplicate request. Capturing `this` keeps the slot bound to the
+ // widget lifetime so set_loading is safe across re-shows.
+ connect(this, &BaseWidget::refresh_requested, this, [this]() {
+ set_loading(true);
datahub::DataHub::instance().request(QString::fromLatin1(kTopic), /*force=*/true);
});
@@ -181,16 +210,28 @@ void EconomicCalendarWidget::populate(const QJsonArray& events) {
break;
auto e = v.toObject();
- // Real fields: event, country, date, time, importance, actual, forecast, previous
+ // Fincept upcoming-events schema (May 2026 endpoint update): each row
+ // carries event, category, country, date/time, reference_period,
+ // actual, forecast, consensus, previous, revised_from, sentiment,
+ // symbol, importance, url, chart_url. Tile shows the most important
+ // columns inline; the rest is packed into the tooltip so power users
+ // get the full data without sacrificing the table layout.
QString event_name = e["event"].toString().trimmed();
if (event_name.isEmpty())
continue;
+ QString category = e["category"].toString().trimmed();
QString country = e["country"].toString().toUpper();
QString date = e["date"].toString();
QString time_str = e["time"].toString().trimmed();
+ QString reference_period = e["reference_period"].toString().trimmed();
QString actual = e["actual"].toString().trimmed();
QString forecast = e["forecast"].toString().trimmed();
+ QString consensus = e["consensus"].toString().trimmed();
+ QString previous = e["previous"].toString().trimmed();
+ QString revised_from = e["revised_from"].toString().trimmed();
+ QString sentiment = e["sentiment"].toString().trimmed();
+ QString symbol = e["symbol"].toString().trimmed();
int imp_int = e["importance"].toInt(0);
// Date: show as MMM-DD
@@ -219,42 +260,100 @@ void EconomicCalendarWidget::populate(const QJsonArray& events) {
auto* rl = new QHBoxLayout(row);
rl->setContentsMargins(8, 4, 8, 4);
- // Event name
+ // Sentiment colours the event-name label so the user can scan
+ // positive/negative releases at a glance. Falls back to the standard
+ // primary text colour when sentiment is missing or "neutral".
+ QString event_color = ui::colors::TEXT_PRIMARY();
+ if (sentiment == QLatin1String("positive"))
+ event_color = ui::colors::POSITIVE();
+ else if (sentiment == QLatin1String("negative"))
+ event_color = ui::colors::NEGATIVE();
+
+ // Build a rich tooltip with every field that doesn't fit inline:
+ // category, sentiment, symbol, revised_from. Tooltip plain-text only
+ // (no HTML) to keep rendering cheap.
+ QStringList tip_lines;
+ tip_lines << event_name;
+ if (!category.isEmpty())
+ tip_lines << QStringLiteral("Category: %1").arg(category);
+ if (!symbol.isEmpty())
+ tip_lines << QStringLiteral("Symbol: %1").arg(symbol);
+ if (!reference_period.isEmpty())
+ tip_lines << QStringLiteral("Period: %1").arg(reference_period);
+ if (!sentiment.isEmpty())
+ tip_lines << QStringLiteral("Sentiment: %1").arg(sentiment);
+ if (!revised_from.isEmpty())
+ tip_lines << QStringLiteral("Revised from: %1").arg(revised_from);
+ const QString tooltip = tip_lines.join('\n');
+
+ // Event name — Ignored size policy so it doesn't claim its sizeHint
+ // (which varies per row and was pushing the other columns sideways).
+ // The stretch=1 below + fixed-width neighbours mean it gets exactly
+ // the leftover space.
QString display_name = event_name;
if (display_name.length() > 28)
display_name = display_name.left(26) + "…";
auto* ev_lbl = new QLabel(display_name);
- ev_lbl->setToolTip(event_name); // full name on hover
+ ev_lbl->setToolTip(tooltip);
+ ev_lbl->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Preferred);
ev_lbl->setStyleSheet(
- QString("color: %1; font-size: 10px; background: transparent;").arg(ui::colors::TEXT_PRIMARY()));
- rl->addWidget(ev_lbl, 4);
+ QString("color: %1; font-size: 10px; background: transparent;").arg(event_color));
+ rl->addWidget(ev_lbl, 1);
auto* cty_lbl = new QLabel(country);
+ cty_lbl->setFixedWidth(kColWidthCty);
cty_lbl->setStyleSheet(QString("color: %1; font-size: 9px; background: transparent;").arg(ui::colors::CYAN()));
- rl->addWidget(cty_lbl, 1);
+ rl->addWidget(cty_lbl, 0);
auto* date_lbl = new QLabel(date_display);
+ date_lbl->setFixedWidth(kColWidthDate);
date_lbl->setStyleSheet(
QString("color: %1; font-size: 9px; background: transparent;").arg(ui::colors::TEXT_SECONDARY()));
- rl->addWidget(date_lbl, 2);
+ rl->addWidget(date_lbl, 0);
+
+ auto* ref_lbl = new QLabel(reference_period.isEmpty() ? "--" : reference_period);
+ ref_lbl->setFixedWidth(kColWidthRef);
+ ref_lbl->setStyleSheet(
+ QString("color: %1; font-size: 9px; background: transparent;")
+ .arg(reference_period.isEmpty() ? ui::colors::TEXT_TERTIARY() : ui::colors::TEXT_SECONDARY()));
+ rl->addWidget(ref_lbl, 0);
auto* act_lbl = new QLabel(actual.isEmpty() ? "--" : actual);
+ act_lbl->setFixedWidth(kColWidthAct);
act_lbl->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
act_lbl->setStyleSheet(QString("color: %1; font-size: 10px; font-weight: bold; background: transparent;")
.arg(actual.isEmpty() ? ui::colors::TEXT_TERTIARY() : ui::colors::TEXT_PRIMARY()));
- rl->addWidget(act_lbl, 1);
+ rl->addWidget(act_lbl, 0);
auto* fcst_lbl = new QLabel(forecast.isEmpty() ? "--" : forecast);
+ fcst_lbl->setFixedWidth(kColWidthFcst);
fcst_lbl->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
fcst_lbl->setStyleSheet(
QString("color: %1; font-size: 9px; background: transparent;").arg(ui::colors::TEXT_SECONDARY()));
- rl->addWidget(fcst_lbl, 1);
+ rl->addWidget(fcst_lbl, 0);
+
+ auto* cons_lbl = new QLabel(consensus.isEmpty() ? "--" : consensus);
+ cons_lbl->setFixedWidth(kColWidthCons);
+ cons_lbl->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
+ cons_lbl->setStyleSheet(
+ QString("color: %1; font-size: 9px; background: transparent;")
+ .arg(consensus.isEmpty() ? ui::colors::TEXT_TERTIARY() : ui::colors::TEXT_SECONDARY()));
+ rl->addWidget(cons_lbl, 0);
+
+ auto* prev_lbl = new QLabel(previous.isEmpty() ? "--" : previous);
+ prev_lbl->setFixedWidth(kColWidthPrev);
+ prev_lbl->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
+ prev_lbl->setStyleSheet(
+ QString("color: %1; font-size: 9px; background: transparent;")
+ .arg(previous.isEmpty() ? ui::colors::TEXT_TERTIARY() : ui::colors::TEXT_SECONDARY()));
+ rl->addWidget(prev_lbl, 0);
auto* imp_lbl = new QLabel(imp_text);
+ imp_lbl->setFixedWidth(kColWidthImp);
imp_lbl->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
imp_lbl->setStyleSheet(
QString("color: %1; font-size: 9px; font-weight: bold; background: transparent;").arg(imp_color));
- rl->addWidget(imp_lbl, 1);
+ rl->addWidget(imp_lbl, 0);
list_layout_->addWidget(row);
alt = !alt;
diff --git a/fincept-qt/src/screens/markets/MarketPanel.cpp b/fincept-qt/src/screens/markets/MarketPanel.cpp
index c90dd5cb4..ca2746ceb 100644
--- a/fincept-qt/src/screens/markets/MarketPanel.cpp
+++ b/fincept-qt/src/screens/markets/MarketPanel.cpp
@@ -17,21 +17,6 @@
#include <QStackedWidget>
#include <QVBoxLayout>
-namespace {
-
-QString format_compact_volume(double v) {
- if (!std::isfinite(v) || v <= 0)
- return QStringLiteral("--");
- if (v >= 1e9)
- return QString::number(v / 1e9, 'f', 2) + QStringLiteral("B");
- if (v >= 1e6)
- return QString::number(v / 1e6, 'f', 2) + QStringLiteral("M");
- if (v >= 1e3)
- return QString::number(v / 1e3, 'f', 2) + QStringLiteral("K");
- return QString::number(qint64(v));
-}
-
-}
namespace fincept::screens {
MarketPanel::MarketPanel(const MarketPanelConfig& config, QWidget* parent)
@@ -387,7 +372,6 @@ void MarketPanel::populate(const QVector<services::QuoteData>& quotes) {
else if (col == "CHG%") table_->setItem(row, ci, mk(QString("%1%2%").arg(arr).arg(std::abs(q.change_pct), 0, 'f', 2), cc));
else if (col == "HIGH") table_->setItem(row, ci, mk(QString::number(q.high, 'f', 2), ui::colors::TEXT_SECONDARY()));
else if (col == "LOW") table_->setItem(row, ci, mk(QString::number(q.low, 'f', 2), ui::colors::TEXT_SECONDARY()));
- else if (col == "VOL") table_->setItem(row, ci, mk(format_compact_volume(q.volume), ui::colors::TEXT_DIM()));
else if (col == "VOL") table_->setItem(row, ci, mk(fincept::ui::formatting::format_compact_volume(static_cast<qint64>(q.volume)), ui::colors::TEXT_DIM()));
else if (col == "BID") table_->setItem(row, ci, mk("--", ui::colors::TEXT_DIM()));
else if (col == "ASK") table_->setItem(row, ci, mk("--", ui::colors::TEXT_DIM()));
diff --git a/fincept-qt/src/screens/profile/ProfileScreen.cpp b/fincept-qt/src/screens/profile/ProfileScreen.cpp
index 6ed349b5f..5605be8e8 100644
--- a/fincept-qt/src/screens/profile/ProfileScreen.cpp
+++ b/fincept-qt/src/screens/profile/ProfileScreen.cpp
@@ -557,7 +557,10 @@ void ProfileScreen::fetch_usage_data() {
const auto& s = auth::AuthManager::instance().session();
usg_credits_->setText(QString::number(s.user_info.credit_balance, 'f', 0));
usg_plan_->setText(s.account_type().toUpper());
- usg_rate_->setText("—");
+ // /user/profile now returns the rate-limit window directly — show it
+ // immediately instead of "—" while /user/usage is in flight.
+ const int rl_limit = s.user_info.rate_limit.limit;
+ usg_rate_->setText(rl_limit > 0 ? QString::number(rl_limit) : QStringLiteral("—"));
QPointer<ProfileScreen> self = this;
auth::UserApi::instance().get_user_usage(30, [self](auth::ApiResponse r) {
diff --git a/fincept-qt/src/screens/settings/AppearanceSection.cpp b/fincept-qt/src/screens/settings/AppearanceSection.cpp
index 9390cb582..70036bd89 100644
--- a/fincept-qt/src/screens/settings/AppearanceSection.cpp
+++ b/fincept-qt/src/screens/settings/AppearanceSection.cpp
@@ -60,7 +60,7 @@ void AppearanceSection::build_ui() {
vl->setSpacing(8);
// ── TYPOGRAPHY ────────────────────────────────────────────────────────────
- auto* t = new QLabel("TYPOGRAPHY");
+ auto* t = new QLabel(tr("TYPOGRAPHY"));
t->setStyleSheet(section_title_ss());
vl->addWidget(t);
vl->addWidget(make_sep());
@@ -71,13 +71,13 @@ void AppearanceSection::build_ui() {
app_font_size_->addItem(QString("%1px").arg(px));
app_font_size_->setCurrentText(kDefaultFontSize);
app_font_size_->setStyleSheet(combo_ss());
- vl->addWidget(make_row("Font Size", app_font_size_));
+ vl->addWidget(make_row(tr("Font Size"), app_font_size_));
app_font_family_ = new QComboBox;
app_font_family_->addItems(QFontDatabase::families());
app_font_family_->setCurrentText(kDefaultFontFamily);
app_font_family_->setStyleSheet(combo_ss());
- vl->addWidget(make_row("Font Family", app_font_family_));
+ vl->addWidget(make_row(tr("Font Family"), app_font_family_));
// Debounced live preview — coalesce rapid changes into one apply after 300ms idle.
//
@@ -128,7 +128,7 @@ void AppearanceSection::build_ui() {
vl->addSpacing(8);
// ── THEME ─────────────────────────────────────────────────────────────────
- auto* t2 = new QLabel("THEME");
+ auto* t2 = new QLabel(tr("THEME"));
t2->setStyleSheet(sub_title_ss());
vl->addWidget(t2);
vl->addSpacing(4);
@@ -137,7 +137,7 @@ void AppearanceSection::build_ui() {
app_density_->addItems(ui::ThemeManager::available_densities());
app_density_->setCurrentText("Default");
app_density_->setStyleSheet(combo_ss());
- vl->addWidget(make_row("Content Density", app_density_, "Controls padding and spacing throughout the UI."));
+ vl->addWidget(make_row(tr("Content Density"), app_density_, tr("Controls padding and spacing throughout the UI.")));
connect(app_density_, &QComboBox::currentTextChanged, this, restart_debounce,
Qt::UniqueConnection);
@@ -147,31 +147,31 @@ void AppearanceSection::build_ui() {
vl->addSpacing(8);
// ── INTERFACE ─────────────────────────────────────────────────────────────
- auto* t3 = new QLabel("INTERFACE");
+ auto* t3 = new QLabel(tr("INTERFACE"));
t3->setStyleSheet(sub_title_ss());
vl->addWidget(t3);
vl->addSpacing(4);
- chat_bubble_toggle_ = new QCheckBox("Show AI Chat Bubble");
+ chat_bubble_toggle_ = new QCheckBox(tr("Show AI Chat Bubble"));
chat_bubble_toggle_->setChecked(true);
chat_bubble_toggle_->setStyleSheet(check_ss());
vl->addWidget(
- make_row("AI Chat Bubble", chat_bubble_toggle_, "Floating chat assistant in the bottom-right corner."));
+ make_row(tr("AI Chat Bubble"), chat_bubble_toggle_, tr("Floating chat assistant in the bottom-right corner.")));
- ticker_bar_toggle_ = new QCheckBox("Show Ticker Bar");
+ ticker_bar_toggle_ = new QCheckBox(tr("Show Ticker Bar"));
ticker_bar_toggle_->setChecked(true);
ticker_bar_toggle_->setStyleSheet(check_ss());
- vl->addWidget(make_row("Ticker Bar", ticker_bar_toggle_, "Live price ticker at the bottom of the screen."));
+ vl->addWidget(make_row(tr("Ticker Bar"), ticker_bar_toggle_, tr("Live price ticker at the bottom of the screen.")));
- animations_toggle_ = new QCheckBox("Enable Animations");
+ animations_toggle_ = new QCheckBox(tr("Enable Animations"));
animations_toggle_->setChecked(true);
animations_toggle_->setStyleSheet(check_ss());
- vl->addWidget(make_row("Animations", animations_toggle_, "Fade and transition effects throughout the UI."));
+ vl->addWidget(make_row(tr("Animations"), animations_toggle_, tr("Fade and transition effects throughout the UI.")));
vl->addSpacing(16);
// ── SAVE ──────────────────────────────────────────────────────────────────
- auto* apply_btn = new QPushButton("Save Settings");
+ auto* apply_btn = new QPushButton(tr("Save Settings"));
apply_btn->setFixedWidth(160);
apply_btn->setStyleSheet(btn_primary_ss());
connect(apply_btn, &QPushButton::clicked, this, [this]() {
diff --git a/fincept-qt/src/screens/settings/CredentialsSection.cpp b/fincept-qt/src/screens/settings/CredentialsSection.cpp
index 60d5ac1eb..f61c72067 100644
--- a/fincept-qt/src/screens/settings/CredentialsSection.cpp
+++ b/fincept-qt/src/screens/settings/CredentialsSection.cpp
@@ -77,13 +77,13 @@ void CredentialsSection::build_ui() {
vl->setContentsMargins(24, 24, 24, 24);
vl->setSpacing(0);
- auto* t = new QLabel("API CREDENTIALS");
+ auto* t = new QLabel(tr("API CREDENTIALS"));
t->setStyleSheet(section_title_ss());
vl->addWidget(t);
vl->addSpacing(4);
auto* info = new QLabel(
- "Store API keys securely in the OS keychain. Keys are never written to disk in plain text.");
+ tr("Store API keys securely in the OS keychain. Keys are never written to disk in plain text."));
info->setWordWrap(true);
info->setStyleSheet(QString("color:%1;background:transparent;").arg(ui::colors::TEXT_SECONDARY()));
vl->addWidget(info);
@@ -114,7 +114,7 @@ void CredentialsSection::build_ui() {
hhl->addWidget(name_lbl);
hhl->addStretch();
- auto* status_lbl = new QLabel("Not set");
+ auto* status_lbl = new QLabel(tr("Not set"));
status_lbl->setStyleSheet(QString("color:%1;background:transparent;").arg(ui::colors::TEXT_SECONDARY()));
hhl->addWidget(status_lbl);
cred_status_[key] = status_lbl;
@@ -129,23 +129,23 @@ void CredentialsSection::build_ui() {
auto* field = new QLineEdit;
field->setEchoMode(QLineEdit::Password);
- field->setPlaceholderText("Not configured");
+ field->setPlaceholderText(tr("Not configured"));
field->setStyleSheet(input_ss());
cred_fields_[key] = field;
bhl->addWidget(field, 1);
- auto* save_btn = new QPushButton("Save");
+ auto* save_btn = new QPushButton(tr("Save"));
save_btn->setFixedHeight(30);
save_btn->setFixedWidth(70);
save_btn->setStyleSheet(btn_primary_ss());
bhl->addWidget(save_btn);
- connect(save_btn, &QPushButton::clicked, this, [key, field, status_lbl]() {
+ connect(save_btn, &QPushButton::clicked, this, [this, key, field, status_lbl]() {
QString val = field->text().trimmed();
if (val.isEmpty()) {
SecureStorage::instance().remove(key);
- field->setPlaceholderText("Not configured");
- status_lbl->setText("Cleared");
+ field->setPlaceholderText(tr("Not configured"));
+ status_lbl->setText(tr("Cleared"));
status_lbl->setStyleSheet(
QString("color:%1;background:transparent;").arg(ui::colors::TEXT_SECONDARY()));
LOG_INFO("Credentials", "Cleared key: " + key);
@@ -153,13 +153,13 @@ void CredentialsSection::build_ui() {
auto r = SecureStorage::instance().store(key, val);
if (r.is_ok()) {
field->clear();
- field->setPlaceholderText("•••••••• (saved)");
- status_lbl->setText("Saved ✓");
+ field->setPlaceholderText(tr("•••••••• (saved)"));
+ status_lbl->setText(tr("Saved ✓"));
status_lbl->setStyleSheet(
QString("color:%1;background:transparent;").arg(ui::colors::POSITIVE()));
LOG_INFO("Credentials", "Stored key: " + key);
} else {
- status_lbl->setText("Save failed");
+ status_lbl->setText(tr("Save failed"));
status_lbl->setStyleSheet(
QString("color:%1;background:transparent;").arg(ui::colors::NEGATIVE()));
LOG_ERROR("Credentials", "Failed to store " + key);
@@ -187,13 +187,13 @@ void CredentialsSection::reload() {
auto r = SecureStorage::instance().retrieve(key);
if (r.is_ok() && !r.value().isEmpty()) {
field->clear();
- field->setPlaceholderText("•••••••• (saved)");
- status->setText("Saved ✓");
+ field->setPlaceholderText(tr("•••••••• (saved)"));
+ status->setText(tr("Saved ✓"));
status->setStyleSheet(QString("color:%1;background:transparent;").arg(ui::colors::POSITIVE()));
} else {
field->clear();
- field->setPlaceholderText("Not configured");
- status->setText("Not set");
+ field->setPlaceholderText(tr("Not configured"));
+ status->setText(tr("Not set"));
status->setStyleSheet(QString("color:%1;background:transparent;").arg(ui::colors::TEXT_SECONDARY()));
}
}
diff --git a/fincept-qt/src/screens/settings/DataSourcesSection.cpp b/fincept-qt/src/screens/settings/DataSourcesSection.cpp
index 74cb310a2..d884eaff0 100644
--- a/fincept-qt/src/screens/settings/DataSourcesSection.cpp
+++ b/fincept-qt/src/screens/settings/DataSourcesSection.cpp
@@ -98,12 +98,12 @@ QWidget* DataSourcesSection::build_content() {
title_row->setStyleSheet("background:transparent;");
auto* trl = new QHBoxLayout(title_row);
trl->setContentsMargins(0, 0, 0, 0);
- auto* t = new QLabel("DATA SOURCES");
+ auto* t = new QLabel(tr("DATA SOURCES"));
t->setStyleSheet(section_title_ss());
trl->addWidget(t);
trl->addStretch();
- auto* open_full = new QPushButton("OPEN FULL SCREEN");
+ auto* open_full = new QPushButton(tr("OPEN FULL SCREEN"));
open_full->setFixedHeight(24);
open_full->setCursor(Qt::PointingHandCursor);
open_full->setStyleSheet(
@@ -111,12 +111,12 @@ QWidget* DataSourcesSection::build_content() {
"QPushButton:hover{background:%1;color:%3;}")
.arg(ui::colors::AMBER(), ui::colors::AMBER_DIM(), ui::colors::BG_BASE()));
connect(open_full, &QPushButton::clicked, this,
- []() { EventBus::instance().publish("nav.switch_screen", {{"screen", "data_sources"}}); });
+ []() { EventBus::instance().publish("nav.switch_screen", {{"screen_id", "data_sources"}}); });
trl->addWidget(open_full);
vl->addWidget(title_row);
- auto* info = new QLabel("Quick management of configured connections. "
- "For full browsing, adding, testing, and import/export use the full screen.");
+ auto* info = new QLabel(tr("Quick management of configured connections. "
+ "For full browsing, adding, testing, and import/export use the full screen."));
info->setWordWrap(true);
info->setStyleSheet(QString("color:%1;background:transparent;").arg(ui::colors::TEXT_SECONDARY()));
vl->addWidget(info);
@@ -167,10 +167,10 @@ QWidget* DataSourcesSection::build_content() {
shl->addWidget(box, 1);
};
- make_stat("TOTAL", total, ui::colors::CYAN());
- make_stat("ACTIVE", active, ui::colors::POSITIVE());
- make_stat("INACTIVE", total - active, ui::colors::TEXT_DIM());
- make_stat("PROVIDERS", providers.size(), ui::colors::AMBER());
+ make_stat(tr("TOTAL"), total, ui::colors::CYAN());
+ make_stat(tr("ACTIVE"), active, ui::colors::POSITIVE());
+ make_stat(tr("INACTIVE"), total - active, ui::colors::TEXT_DIM());
+ make_stat(tr("PROVIDERS"), providers.size(), ui::colors::AMBER());
vl->addWidget(stat_row);
}
@@ -178,13 +178,13 @@ QWidget* DataSourcesSection::build_content() {
// Connections table
if (connections.isEmpty()) {
- auto* empty_panel = make_panel("CONNECTIONS");
+ auto* empty_panel = make_panel(tr("CONNECTIONS"));
auto* empty_body = new QWidget(this);
empty_body->setStyleSheet("background:transparent;");
auto* evl = new QVBoxLayout(empty_body);
evl->setContentsMargins(12, 16, 12, 16);
auto* elbl = new QLabel(
- "No data sources configured. Open the full Data Sources screen to browse and add connectors.");
+ tr("No data sources configured. Open the full Data Sources screen to browse and add connectors."));
elbl->setWordWrap(true);
elbl->setStyleSheet(QString("color:%1;background:transparent;").arg(ui::colors::TEXT_SECONDARY()));
evl->addWidget(elbl);
@@ -197,7 +197,7 @@ QWidget* DataSourcesSection::build_content() {
grouped[cat].append(ds);
}
- auto* panel = make_panel("CONNECTIONS");
+ auto* panel = make_panel(tr("CONNECTIONS"));
auto* body = new QWidget(this);
body->setStyleSheet("background:transparent;");
auto* bvl = new QVBoxLayout(body);
@@ -223,11 +223,11 @@ QWidget* DataSourcesSection::build_content() {
}
thl->addWidget(lbl, width > 0 ? 0 : 1);
};
- add_th("SOURCE");
- add_th("TYPE", 44);
- add_th("CATEGORY", 80);
- add_th("ON", 30);
- add_th("DEL", 30);
+ add_th(tr("SOURCE"));
+ add_th(tr("TYPE"), 44);
+ add_th(tr("CATEGORY"), 80);
+ add_th(tr("ON"), 30);
+ add_th(tr("DEL"), 30);
bvl->addWidget(th);
int row_idx = 0;
@@ -299,8 +299,8 @@ QWidget* DataSourcesSection::build_content() {
"QPushButton:hover{color:%2;}")
.arg(ui::colors::TEXT_DIM(), ui::colors::NEGATIVE()));
connect(del_btn, &QPushButton::clicked, this, [this, source_id, name, row]() {
- auto answer = QMessageBox::warning(this, "Delete Connection",
- "Delete connection \"" + name + "\"?\n\nThis cannot be undone.",
+ auto answer = QMessageBox::warning(this, tr("Delete Connection"),
+ tr("Delete connection \"%1\"?\n\nThis cannot be undone.").arg(name),
QMessageBox::Yes | QMessageBox::Cancel, QMessageBox::Cancel);
if (answer != QMessageBox::Yes) return;
@@ -323,7 +323,7 @@ QWidget* DataSourcesSection::build_content() {
// Bulk actions
{
- auto* panel = make_panel("BULK ACTIONS");
+ auto* panel = make_panel(tr("BULK ACTIONS"));
auto* body = new QWidget(this);
body->setStyleSheet("background:transparent;");
auto* bvl = new QVBoxLayout(body);
@@ -336,7 +336,7 @@ QWidget* DataSourcesSection::build_content() {
brhl->setContentsMargins(0, 0, 0, 0);
brhl->setSpacing(8);
- auto* enable_all = new QPushButton("ENABLE ALL");
+ auto* enable_all = new QPushButton(tr("ENABLE ALL"));
enable_all->setFixedHeight(24);
enable_all->setStyleSheet(QString("QPushButton{background:rgba(22,163,74,0.1);color:%1;border:1px solid "
"%1;font-weight:700;padding:0 10px;}"
@@ -352,7 +352,7 @@ QWidget* DataSourcesSection::build_content() {
});
brhl->addWidget(enable_all);
- auto* disable_all = new QPushButton("DISABLE ALL");
+ auto* disable_all = new QPushButton(tr("DISABLE ALL"));
disable_all->setFixedHeight(24);
disable_all->setStyleSheet(
QString("QPushButton{background:rgba(220,38,38,0.1);color:%1;border:1px solid %3;font-weight:700;padding:0 "
@@ -360,7 +360,7 @@ QWidget* DataSourcesSection::build_content() {
"QPushButton:hover{background:%1;color:%2;}")
.arg(ui::colors::NEGATIVE(), ui::colors::TEXT_PRIMARY(), ui::colors::NEGATIVE_DIM()));
connect(disable_all, &QPushButton::clicked, this, [this]() {
- auto answer = QMessageBox::warning(this, "Disable All", "Disable all data source connections?",
+ auto answer = QMessageBox::warning(this, tr("Disable All"), tr("Disable all data source connections?"),
QMessageBox::Yes | QMessageBox::Cancel, QMessageBox::Cancel);
if (answer != QMessageBox::Yes) return;
auto r = DataSourceRepository::instance().list_all();
@@ -372,7 +372,7 @@ QWidget* DataSourcesSection::build_content() {
});
brhl->addWidget(disable_all);
- auto* delete_all = new QPushButton("DELETE ALL");
+ auto* delete_all = new QPushButton(tr("DELETE ALL"));
delete_all->setFixedHeight(24);
delete_all->setStyleSheet(
QString("QPushButton{background:%1;color:%2;border:2px solid %2;font-weight:700;padding:0 10px;}"
@@ -380,9 +380,9 @@ QWidget* DataSourcesSection::build_content() {
.arg(ui::colors::BG_RAISED(), ui::colors::NEGATIVE(), ui::colors::TEXT_PRIMARY()));
connect(delete_all, &QPushButton::clicked, this, [this]() {
auto answer = QMessageBox::critical(
- this, "Delete All Connections",
- "Permanently delete ALL data source connections?\n\n"
- "This cannot be undone. You can re-add them from the full Data Sources screen.",
+ this, tr("Delete All Connections"),
+ tr("Permanently delete ALL data source connections?\n\n"
+ "This cannot be undone. You can re-add them from the full Data Sources screen."),
QMessageBox::Yes | QMessageBox::Cancel, QMessageBox::Cancel);
if (answer != QMessageBox::Yes) return;
@@ -398,8 +398,8 @@ QWidget* DataSourcesSection::build_content() {
brhl->addStretch();
bvl->addWidget(btn_row);
- auto* note = new QLabel("For adding new connections, testing connectivity, and import/export, "
- "use the full Data Sources screen.");
+ auto* note = new QLabel(tr("For adding new connections, testing connectivity, and import/export, "
+ "use the full Data Sources screen."));
note->setWordWrap(true);
note->setStyleSheet(QString("color:%1;background:transparent;").arg(ui::colors::TEXT_DIM()));
bvl->addWidget(note);
diff --git a/fincept-qt/src/screens/settings/DeveloperSection.cpp b/fincept-qt/src/screens/settings/DeveloperSection.cpp
index d9bba9929..660cafaf4 100644
--- a/fincept-qt/src/screens/settings/DeveloperSection.cpp
+++ b/fincept-qt/src/screens/settings/DeveloperSection.cpp
@@ -25,21 +25,21 @@ DeveloperSection::DeveloperSection(QWidget* parent) : QWidget(parent) {
vl->setSpacing(12);
// ── Agentic Mode toggle ──────────────────────────────────────────────────
- auto* agentic_title = new QLabel("Agentic Mode (Experimental)");
+ auto* agentic_title = new QLabel(tr("Agentic Mode (Experimental)"));
agentic_title->setStyleSheet(section_title_ss());
vl->addWidget(agentic_title);
auto* agentic_desc = new QLabel(
- "Enable durable, long-running autonomous tasks. When on, AGENT STUDIO shows "
- "an extra AGENTIC tab listing in-flight tasks (plan, step log, pause/resume/"
- "cancel) and the chat panel offers a \"Run as background task\" checkbox. "
- "All state is checkpointed to SQLite so tasks survive process restarts. "
- "Leave off for standard chatbot behavior.");
+ tr("Enable durable, long-running autonomous tasks. When on, AGENT STUDIO shows "
+ "an extra AGENTIC tab listing in-flight tasks (plan, step log, pause/resume/"
+ "cancel) and the chat panel offers a \"Run as background task\" checkbox. "
+ "All state is checkpointed to SQLite so tasks survive process restarts. "
+ "Leave off for standard chatbot behavior."));
agentic_desc->setWordWrap(true);
agentic_desc->setStyleSheet(QString("color:%1;font-size:11px;").arg(ui::colors::TEXT_SECONDARY()));
vl->addWidget(agentic_desc);
- auto* agentic_toggle = new QCheckBox("Enable Agentic Mode");
+ auto* agentic_toggle = new QCheckBox(tr("Enable Agentic Mode"));
agentic_toggle->setStyleSheet(QString("color:%1;font-size:12px;padding:4px 0;")
.arg(ui::colors::TEXT_PRIMARY()));
{
@@ -64,14 +64,14 @@ DeveloperSection::DeveloperSection(QWidget* parent) : QWidget(parent) {
vl->addWidget(sep);
// ── DataHub Inspector ────────────────────────────────────────────────────
- auto* title = new QLabel("DataHub Inspector");
+ auto* title = new QLabel(tr("DataHub Inspector"));
title->setStyleSheet(section_title_ss());
vl->addWidget(title);
auto* desc = new QLabel(
- "Live view over the in-process pub/sub layer. Shows every active topic, its "
- "subscriber count, total publishes, and time since last publish. Refreshes "
- "once per second while this tab is visible.");
+ tr("Live view over the in-process pub/sub layer. Shows every active topic, its "
+ "subscriber count, total publishes, and time since last publish. Refreshes "
+ "once per second while this tab is visible."));
desc->setWordWrap(true);
desc->setStyleSheet(QString("color:%1;font-size:11px;").arg(ui::colors::TEXT_SECONDARY()));
vl->addWidget(desc);
diff --git a/fincept-qt/src/screens/settings/GeneralSection.cpp b/fincept-qt/src/screens/settings/GeneralSection.cpp
index 4087a356c..c6cbfb102 100644
--- a/fincept-qt/src/screens/settings/GeneralSection.cpp
+++ b/fincept-qt/src/screens/settings/GeneralSection.cpp
@@ -2,6 +2,7 @@
#include "screens/settings/GeneralSection.h"
+#include "core/i18n/LanguageManager.h"
#include "core/logging/Logger.h"
#include "screens/settings/SettingsRowHelpers.h"
#include "screens/settings/SettingsStyles.h"
@@ -19,6 +20,8 @@ namespace fincept::screens {
namespace {
constexpr const char* kKeyOnClose = "general.on_last_window_close";
constexpr const char* kDefaultOnClose = "quit";
+constexpr const char* kKeyLanguage = "general.language";
+constexpr const char* kDefaultLanguage = "en";
} // namespace
GeneralSection::GeneralSection(QWidget* parent) : QWidget(parent) {
@@ -52,21 +55,21 @@ void GeneralSection::build_ui() {
vl->setSpacing(8);
// ── WINDOW BEHAVIOUR ──────────────────────────────────────────────────────
- auto* t = new QLabel("WINDOW BEHAVIOUR");
+ auto* t = new QLabel(tr("WINDOW BEHAVIOUR"));
t->setStyleSheet(section_title_ss());
vl->addWidget(t);
vl->addWidget(make_sep());
vl->addSpacing(8);
on_close_combo_ = new QComboBox;
- on_close_combo_->addItem("Quit application", QStringLiteral("quit"));
- on_close_combo_->addItem("Show Launchpad", QStringLiteral("show_launchpad"));
+ on_close_combo_->addItem(tr("Quit application"), QStringLiteral("quit"));
+ on_close_combo_->addItem(tr("Show Launchpad"), QStringLiteral("show_launchpad"));
on_close_combo_->setStyleSheet(combo_ss());
vl->addWidget(make_row(
- "On last window close",
+ tr("On last window close"),
on_close_combo_,
- "Default is Quit. Choose 'Show Launchpad' if you want a small portal "
- "window to stay open after closing your last terminal window."));
+ tr("Default is Quit. Choose 'Show Launchpad' if you want a small portal "
+ "window to stay open after closing your last terminal window.")));
connect(on_close_combo_, qOverload<int>(&QComboBox::currentIndexChanged), this,
[this](int idx) {
@@ -76,6 +79,41 @@ void GeneralSection::build_ui() {
LOG_INFO("Settings", QString("on_last_window_close → %1").arg(val));
});
+ vl->addSpacing(20);
+
+ // ── LANGUAGE ──────────────────────────────────────────────────────────────
+ auto* lang_title = new QLabel(tr("LANGUAGE"));
+ lang_title->setStyleSheet(section_title_ss());
+ vl->addWidget(lang_title);
+ vl->addWidget(make_sep());
+ vl->addSpacing(8);
+
+ language_combo_ = new QComboBox;
+ // Populate from LanguageManager so the canonical list lives in one place.
+ // Native names are intentionally NOT translated — each language is always
+ // shown in its own script so a user can recognise their own locale even
+ // when the current UI language is unfamiliar to them.
+ for (const QString& code : i18n::LanguageManager::supported_languages()) {
+ language_combo_->addItem(i18n::LanguageManager::native_name(code), code);
+ }
+ language_combo_->setStyleSheet(combo_ss());
+ vl->addWidget(make_row(
+ tr("Interface language"),
+ language_combo_,
+ tr("Changes apply immediately. English is the source language; all other "
+ "translations are embedded with the build.")));
+
+ connect(language_combo_, qOverload<int>(&QComboBox::currentIndexChanged), this,
+ [this](int idx) {
+ const QString code = language_combo_->itemData(idx).toString();
+ if (code.isEmpty())
+ return;
+ LOG_INFO("Settings", QString("language → %1").arg(code));
+ // LanguageManager handles persistence + translator swap + the
+ // QEvent::LanguageChange that retranslates every screen.
+ i18n::LanguageManager::instance().set_language(code);
+ });
+
vl->addStretch();
scroll->setWidget(page);
@@ -83,13 +121,23 @@ void GeneralSection::build_ui() {
}
void GeneralSection::reload() {
- if (!on_close_combo_) return;
- const auto r = SettingsRepository::instance().get(
- QString::fromLatin1(kKeyOnClose), QString::fromLatin1(kDefaultOnClose));
- const QString cur = r.is_ok() ? r.value() : QString::fromLatin1(kDefaultOnClose);
- const int idx = on_close_combo_->findData(cur);
- QSignalBlocker block(on_close_combo_);
- on_close_combo_->setCurrentIndex(idx >= 0 ? idx : 0);
+ if (on_close_combo_) {
+ const auto r = SettingsRepository::instance().get(
+ QString::fromLatin1(kKeyOnClose), QString::fromLatin1(kDefaultOnClose));
+ const QString cur = r.is_ok() ? r.value() : QString::fromLatin1(kDefaultOnClose);
+ const int idx = on_close_combo_->findData(cur);
+ QSignalBlocker block(on_close_combo_);
+ on_close_combo_->setCurrentIndex(idx >= 0 ? idx : 0);
+ }
+ if (language_combo_) {
+ // Trust LanguageManager over the raw DB read — they should agree, but
+ // LanguageManager is the live source after a startup-time install.
+ const QString cur = i18n::LanguageManager::instance().current_language();
+ const QString effective = cur.isEmpty() ? QString::fromLatin1(kDefaultLanguage) : cur;
+ const int idx = language_combo_->findData(effective);
+ QSignalBlocker block(language_combo_);
+ language_combo_->setCurrentIndex(idx >= 0 ? idx : 0);
+ }
}
} // namespace fincept::screens
diff --git a/fincept-qt/src/screens/settings/GeneralSection.h b/fincept-qt/src/screens/settings/GeneralSection.h
index 15bf5c7bf..bb48f73ff 100644
--- a/fincept-qt/src/screens/settings/GeneralSection.h
+++ b/fincept-qt/src/screens/settings/GeneralSection.h
@@ -1,7 +1,8 @@
#pragma once
// GeneralSection.h — application-wide behaviour toggles that don't fit
-// any of the more specific sections. Currently houses the "on last window
-// close" preference (Phase L1 of the workspace/launchpad refactor).
+// any of the more specific sections. Houses:
+// * "On last window close" preference (workspace/launchpad refactor)
+// * "Language" preference (i18n)
#include <QComboBox>
#include <QWidget>
@@ -23,6 +24,7 @@ class GeneralSection : public QWidget {
void build_ui();
QComboBox* on_close_combo_ = nullptr;
+ QComboBox* language_combo_ = nullptr;
};
} // namespace fincept::screens
diff --git a/fincept-qt/src/screens/settings/KeybindingsSection.cpp b/fincept-qt/src/screens/settings/KeybindingsSection.cpp
index d10cb24b7..e009a351b 100644
--- a/fincept-qt/src/screens/settings/KeybindingsSection.cpp
+++ b/fincept-qt/src/screens/settings/KeybindingsSection.cpp
@@ -22,7 +22,7 @@ namespace fincept::screens {
KeyCaptureDialog::KeyCaptureDialog(KeyAction action, const QKeySequence& current, QWidget* parent)
: QDialog(parent), action_(action) {
- setWindowTitle("Rebind: " + KeyConfigManager::instance().display_name(action));
+ setWindowTitle(tr("Rebind: %1").arg(KeyConfigManager::instance().display_name(action)));
setFixedSize(360, 200);
setModal(true);
@@ -30,10 +30,10 @@ KeyCaptureDialog::KeyCaptureDialog(KeyAction action, const QKeySequence& current
layout->setSpacing(12);
layout->setContentsMargins(20, 20, 20, 20);
- auto* current_lbl = new QLabel("Current: " + current.toString(QKeySequence::NativeText));
+ auto* current_lbl = new QLabel(tr("Current: %1").arg(current.toString(QKeySequence::NativeText)));
current_lbl->setStyleSheet(QString("color:%1;").arg(ui::colors::TEXT_SECONDARY()));
- hint_label_ = new QLabel("Press new key combination...");
+ hint_label_ = new QLabel(tr("Press new key combination..."));
hint_label_->setStyleSheet(QString("color:%1;font-weight:bold;").arg(ui::colors::TEXT_PRIMARY()));
captured_label_ = new QLabel;
@@ -46,8 +46,8 @@ KeyCaptureDialog::KeyCaptureDialog(KeyAction action, const QKeySequence& current
conflict_label_->hide();
auto* btn_box = new QDialogButtonBox(Qt::Horizontal);
- apply_btn_ = btn_box->addButton("Apply", QDialogButtonBox::AcceptRole);
- btn_box->addButton("Cancel", QDialogButtonBox::RejectRole);
+ apply_btn_ = btn_box->addButton(tr("Apply"), QDialogButtonBox::AcceptRole);
+ btn_box->addButton(tr("Cancel"), QDialogButtonBox::RejectRole);
apply_btn_->setEnabled(false);
connect(btn_box, &QDialogButtonBox::accepted, this, &QDialog::accept);
@@ -79,7 +79,7 @@ void KeyCaptureDialog::keyPressEvent(QKeyEvent* event) {
auto conflict = KeyConfigManager::instance().find_conflict(captured_, action_);
if (conflict.has_value()) {
const QString name = KeyConfigManager::instance().display_name(conflict.value());
- conflict_label_->setText("Warning: already used by \"" + name + "\"");
+ conflict_label_->setText(tr("Warning: already used by \"%1\"").arg(name));
conflict_label_->show();
} else {
conflict_label_->hide();
@@ -103,7 +103,7 @@ void KeybindingsSection::build_ui() {
// Search bar
search_input_ = new QLineEdit;
- search_input_->setPlaceholderText("Search actions...");
+ search_input_->setPlaceholderText(tr("Search actions..."));
search_input_->setStyleSheet(
QString("QLineEdit{background:%1;color:%2;border:1px solid %3;padding:6px;}"
"QLineEdit:focus{border:1px solid %4;}")
@@ -125,7 +125,7 @@ void KeybindingsSection::build_ui() {
rebuild_rows();
// Reset All button
- auto* reset_all_btn = new QPushButton("Reset All to Defaults");
+ auto* reset_all_btn = new QPushButton(tr("Reset All to Defaults"));
reset_all_btn->setStyleSheet(
QString("QPushButton{background:%1;color:%2;border:1px solid %3;padding:0 12px;height:32px;}"
"QPushButton:hover{background:%4;}")
@@ -204,7 +204,7 @@ QWidget* KeybindingsSection::build_group(const QString& group_name, const QList<
QString("color:%1;font-family:monospace;min-width:120px;").arg(ui::colors::TEXT_SECONDARY()));
key_lbl->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
- auto* reset_btn = new QPushButton("Reset");
+ auto* reset_btn = new QPushButton(tr("Reset"));
reset_btn->setFixedSize(56, 24);
reset_btn->setStyleSheet(
QString("QPushButton{background:%1;color:%2;border:1px solid %3;}"
diff --git a/fincept-qt/src/screens/settings/LlmConfigSection.cpp b/fincept-qt/src/screens/settings/LlmConfigSection.cpp
index d4e7f524d..64ade5ff0 100644
--- a/fincept-qt/src/screens/settings/LlmConfigSection.cpp
+++ b/fincept-qt/src/screens/settings/LlmConfigSection.cpp
@@ -141,7 +141,7 @@ void LlmConfigSection::build_ui() {
QString(ui::colors::BORDER_DIM()) + ";");
auto* tbl = new QHBoxLayout(title_bar);
tbl->setContentsMargins(16, 0, 16, 0);
- auto* title_lbl = new QLabel("LLM CONFIGURATION");
+ auto* title_lbl = new QLabel(tr("LLM CONFIGURATION"));
title_lbl->setStyleSheet("color:" + QString(ui::colors::AMBER()) + ";font-weight:700;letter-spacing:1px;");
tbl->addWidget(title_lbl);
tbl->addStretch();
diff --git a/fincept-qt/src/screens/settings/LlmConfigSection_Profiles.cpp b/fincept-qt/src/screens/settings/LlmConfigSection_Profiles.cpp
index 9ff1f6d33..0bca39068 100644
--- a/fincept-qt/src/screens/settings/LlmConfigSection_Profiles.cpp
+++ b/fincept-qt/src/screens/settings/LlmConfigSection_Profiles.cpp
@@ -60,11 +60,11 @@ QWidget* LlmConfigSection::build_profile_list_panel() {
vl->setContentsMargins(8, 8, 8, 8);
vl->setSpacing(6);
- auto* lbl = new QLabel("PROFILES");
+ auto* lbl = new QLabel(tr("PROFILES"));
lbl->setStyleSheet("color:" + QString(ui::colors::TEXT_SECONDARY()) + ";font-weight:700;letter-spacing:1px;");
vl->addWidget(lbl);
- auto* hint = new QLabel("A profile = named LLM config you can assign to any agent or team.");
+ auto* hint = new QLabel(tr("A profile = named LLM config you can assign to any agent or team."));
hint->setWordWrap(true);
hint->setStyleSheet("color:" + QString(ui::colors::TEXT_TERTIARY()) + ";padding-bottom:4px;");
vl->addWidget(hint);
diff --git a/fincept-qt/src/screens/settings/LoggingSection.cpp b/fincept-qt/src/screens/settings/LoggingSection.cpp
index 309324e6d..375ac19bb 100644
--- a/fincept-qt/src/screens/settings/LoggingSection.cpp
+++ b/fincept-qt/src/screens/settings/LoggingSection.cpp
@@ -56,17 +56,17 @@ void LoggingSection::build_ui() {
vl->setContentsMargins(24, 24, 24, 24);
vl->setSpacing(16);
- auto* t = new QLabel("LOGGING");
+ auto* t = new QLabel(tr("LOGGING"));
t->setStyleSheet(section_title_ss());
vl->addWidget(t);
vl->addWidget(make_sep());
// ── Global level ────────────────────────────────────────────────────────
- auto* global_lbl = new QLabel("Global Log Level");
+ auto* global_lbl = new QLabel(tr("Global Log Level"));
global_lbl->setStyleSheet(sub_title_ss());
vl->addWidget(global_lbl);
- auto* global_desc = new QLabel("Minimum level for all tags unless overridden.");
+ auto* global_desc = new QLabel(tr("Minimum level for all tags unless overridden."));
global_desc->setStyleSheet(label_ss());
global_desc->setWordWrap(true);
vl->addWidget(global_desc);
@@ -83,23 +83,23 @@ void LoggingSection::build_ui() {
vl->addWidget(make_sep());
// ── Output format ───────────────────────────────────────────────────────
- auto* fmt_title = new QLabel("Output Format");
+ auto* fmt_title = new QLabel(tr("Output Format"));
fmt_title->setStyleSheet(sub_title_ss());
vl->addWidget(fmt_title);
auto* fmt_desc = new QLabel(
- "Plain text is human-readable; JSON emits one structured object per line (easier to parse with tooling).");
+ tr("Plain text is human-readable; JSON emits one structured object per line (easier to parse with tooling)."));
fmt_desc->setStyleSheet(label_ss());
fmt_desc->setWordWrap(true);
vl->addWidget(fmt_desc);
- log_json_mode_ = new QCheckBox("Emit structured JSON lines");
+ log_json_mode_ = new QCheckBox(tr("Emit structured JSON lines"));
log_json_mode_->setChecked(AppConfig::instance().get("log/json_mode", false).toBool());
vl->addWidget(log_json_mode_);
vl->addWidget(make_sep());
// ── Log file location ───────────────────────────────────────────────────
- auto* path_title = new QLabel("Log File");
+ auto* path_title = new QLabel(tr("Log File"));
path_title->setStyleSheet(sub_title_ss());
vl->addWidget(path_title);
@@ -115,14 +115,14 @@ void LoggingSection::build_ui() {
path_rl->setContentsMargins(0, 0, 0, 0);
path_rl->setSpacing(8);
- auto* open_folder_btn = new QPushButton("Open Log Folder");
+ auto* open_folder_btn = new QPushButton(tr("Open Log Folder"));
open_folder_btn->setStyleSheet(btn_secondary_ss());
open_folder_btn->setFixedHeight(30);
open_folder_btn->setFixedWidth(160);
connect(open_folder_btn, &QPushButton::clicked, this,
[]() { QDesktopServices::openUrl(QUrl::fromLocalFile(AppPaths::logs())); });
- auto* copy_path_btn = new QPushButton("Copy Path");
+ auto* copy_path_btn = new QPushButton(tr("Copy Path"));
copy_path_btn->setStyleSheet(btn_secondary_ss());
copy_path_btn->setFixedHeight(30);
copy_path_btn->setFixedWidth(120);
@@ -138,11 +138,11 @@ void LoggingSection::build_ui() {
vl->addWidget(make_sep());
// ── Per-tag overrides ───────────────────────────────────────────────────
- auto* tag_title = new QLabel("Per-Tag Overrides");
+ auto* tag_title = new QLabel(tr("Per-Tag Overrides"));
tag_title->setStyleSheet(sub_title_ss());
vl->addWidget(tag_title);
- auto* tag_desc = new QLabel("Override the log level for a specific tag (e.g. ExchangeService, AgentService).");
+ auto* tag_desc = new QLabel(tr("Override the log level for a specific tag (e.g. ExchangeService, AgentService)."));
tag_desc->setStyleSheet(label_ss());
tag_desc->setWordWrap(true);
vl->addWidget(tag_desc);
@@ -162,7 +162,7 @@ void LoggingSection::build_ui() {
rl->setSpacing(8);
auto* tag_edit = new QLineEdit(tag);
- tag_edit->setPlaceholderText("Tag name");
+ tag_edit->setPlaceholderText(tr("Tag name"));
tag_edit->setFixedWidth(220);
tag_edit->setStyleSheet(input_ss());
@@ -172,7 +172,7 @@ void LoggingSection::build_ui() {
lvl_combo->setFixedWidth(120);
lvl_combo->setCurrentIndex(level_to_idx(level));
- auto* del_btn = new QPushButton("Remove");
+ auto* del_btn = new QPushButton(tr("Remove"));
del_btn->setStyleSheet(btn_danger_ss());
del_btn->setFixedHeight(28);
connect(del_btn, &QPushButton::clicked, this, [row]() { row->deleteLater(); });
@@ -192,7 +192,7 @@ void LoggingSection::build_ui() {
vl->addWidget(log_tag_list_);
- auto* add_btn = new QPushButton("+ Add Tag Override");
+ auto* add_btn = new QPushButton(tr("+ Add Tag Override"));
add_btn->setStyleSheet(btn_secondary_ss());
add_btn->setFixedHeight(30);
add_btn->setFixedWidth(180);
@@ -201,7 +201,7 @@ void LoggingSection::build_ui() {
vl->addWidget(make_sep());
// ── Save ────────────────────────────────────────────────────────────────
- auto* save_btn = new QPushButton("Apply & Save");
+ auto* save_btn = new QPushButton(tr("Apply & Save"));
save_btn->setStyleSheet(btn_primary_ss());
save_btn->setFixedHeight(34);
save_btn->setFixedWidth(140);
diff --git a/fincept-qt/src/screens/settings/McpServersSection.cpp b/fincept-qt/src/screens/settings/McpServersSection.cpp
index 44304c63b..6337ad210 100644
--- a/fincept-qt/src/screens/settings/McpServersSection.cpp
+++ b/fincept-qt/src/screens/settings/McpServersSection.cpp
@@ -68,7 +68,7 @@ void McpServersSection::build_ui() {
QString(ui::colors::BORDER_DIM()) + ";");
auto* tbl = new QHBoxLayout(title_bar);
tbl->setContentsMargins(16, 0, 16, 0);
- auto* title = new QLabel("MCP SERVERS");
+ auto* title = new QLabel(tr("MCP SERVERS"));
title->setStyleSheet("color:" + QString(ui::colors::AMBER()) + ";font-weight:700;letter-spacing:1px;");
tbl->addWidget(title);
tbl->addStretch();
diff --git a/fincept-qt/src/screens/settings/NotificationsSection.cpp b/fincept-qt/src/screens/settings/NotificationsSection.cpp
index ca96b07dd..7830f16c9 100644
--- a/fincept-qt/src/screens/settings/NotificationsSection.cpp
+++ b/fincept-qt/src/screens/settings/NotificationsSection.cpp
@@ -129,7 +129,7 @@ void NotificationsSection::build_ui() {
vl->setContentsMargins(24, 24, 24, 24);
vl->setSpacing(6);
- auto* hdr_lbl = new QLabel("NOTIFICATION PROVIDERS");
+ auto* hdr_lbl = new QLabel(tr("NOTIFICATION PROVIDERS"));
hdr_lbl->setStyleSheet(section_title_ss());
vl->addWidget(hdr_lbl);
vl->addWidget(make_sep());
@@ -198,7 +198,7 @@ void NotificationsSection::build_ui() {
thl->setContentsMargins(0, 4, 0, 0);
thl->setSpacing(8);
- pw.test_btn = new QPushButton("Test Send");
+ pw.test_btn = new QPushButton(tr("Test Send"));
pw.test_btn->setFixedWidth(100);
pw.test_btn->setStyleSheet(btn_secondary_ss());
@@ -232,19 +232,19 @@ void NotificationsSection::build_ui() {
save_provider_fields(pid, pw);
NotificationService::instance().reload_all_configs();
- pw.status_lbl->setText("Sending...");
+ pw.status_lbl->setText(tr("Sending..."));
pw.status_lbl->setStyleSheet(QString("color:%1;background:transparent;").arg(ui::colors::TEXT_SECONDARY()));
NotificationRequest req;
- req.title = "Fincept Test";
- req.message = "This is a test notification from Fincept Terminal.";
+ req.title = tr("Fincept Test");
+ req.message = tr("This is a test notification from Fincept Terminal.");
req.trigger = NotifTrigger::Manual;
QPointer<QLabel> status_ptr = pw.status_lbl;
- NotificationService::instance().send_to(pid, req, [status_ptr](bool ok, const QString& err) {
+ NotificationService::instance().send_to(pid, req, [this, status_ptr](bool ok, const QString& err) {
if (!status_ptr) return;
if (ok) {
- status_ptr->setText("✓ Sent successfully");
+ status_ptr->setText(tr("✓ Sent successfully"));
status_ptr->setStyleSheet(QString("color:%1;background:transparent;").arg(ui::colors::POSITIVE()));
} else {
status_ptr->setText("✗ " + err.left(60));
@@ -262,7 +262,7 @@ void NotificationsSection::build_ui() {
vl->addSpacing(8);
// ── Alert triggers ────────────────────────────────────────────────────────
- auto* trig_hdr = new QLabel("ALERT TRIGGERS");
+ auto* trig_hdr = new QLabel(tr("ALERT TRIGGERS"));
trig_hdr->setStyleSheet(sub_title_ss());
vl->addWidget(trig_hdr);
vl->addSpacing(4);
@@ -272,10 +272,10 @@ void NotificationsSection::build_ui() {
trigger_news_ = new QCheckBox; trigger_news_->setStyleSheet(check_ss());
trigger_orders_ = new QCheckBox; trigger_orders_->setStyleSheet(check_ss());
- vl->addWidget(make_row("In-App Alerts (toast + bell)", trigger_inapp_,
- "Show slide-in toasts and update bell badge."));
- vl->addWidget(make_row("Price Alerts", trigger_price_, "Notify when price alert thresholds are crossed."));
- vl->addWidget(make_row("News Alerts", trigger_news_, "Enable news notifications (configure which types below)."));
+ vl->addWidget(make_row(tr("In-App Alerts (toast + bell)"), trigger_inapp_,
+ tr("Show slide-in toasts and update bell badge.")));
+ vl->addWidget(make_row(tr("Price Alerts"), trigger_price_, tr("Notify when price alert thresholds are crossed.")));
+ vl->addWidget(make_row(tr("News Alerts"), trigger_news_, tr("Enable news notifications (configure which types below).")));
// News alert sub-options
news_subopts_frame_ = new QFrame;
@@ -292,27 +292,27 @@ void NotificationsSection::build_ui() {
news_deviations_ = new QCheckBox; news_deviations_->setStyleSheet(check_ss());
news_flash_ = new QCheckBox; news_flash_->setStyleSheet(check_ss());
- sub_vl->addWidget(make_row("Breaking News", news_breaking_,
- "Notify on FLASH/BREAKING/URGENT priority clusters."));
- sub_vl->addWidget(make_row("Monitor Keyword Matches", news_monitors_,
- "Notify when a news monitor watch list gets new matches."));
- sub_vl->addWidget(make_row("Category Volume Spikes", news_deviations_,
- "Notify when a category has abnormally high article volume (z-score ≥ 3)."));
- sub_vl->addWidget(make_row("FLASH + High-Impact Articles", news_flash_,
- "Notify on individual articles that are both FLASH priority and high market impact."));
+ sub_vl->addWidget(make_row(tr("Breaking News"), news_breaking_,
+ tr("Notify on FLASH/BREAKING/URGENT priority clusters.")));
+ sub_vl->addWidget(make_row(tr("Monitor Keyword Matches"), news_monitors_,
+ tr("Notify when a news monitor watch list gets new matches.")));
+ sub_vl->addWidget(make_row(tr("Category Volume Spikes"), news_deviations_,
+ tr("Notify when a category has abnormally high article volume (z-score ≥ 3).")));
+ sub_vl->addWidget(make_row(tr("FLASH + High-Impact Articles"), news_flash_,
+ tr("Notify on individual articles that are both FLASH priority and high market impact.")));
vl->addWidget(news_subopts_frame_);
connect(trigger_news_, &QCheckBox::toggled, this,
[this](bool on) { news_subopts_frame_->setVisible(on); });
- vl->addWidget(make_row("Order Fill Alerts", trigger_orders_,
- "Notify when orders are filled or rejected."));
+ vl->addWidget(make_row(tr("Order Fill Alerts"), trigger_orders_,
+ tr("Notify when orders are filled or rejected.")));
vl->addSpacing(16);
// Save
- auto* save_btn = new QPushButton("Save All Providers");
+ auto* save_btn = new QPushButton(tr("Save All Providers"));
save_btn->setFixedWidth(200);
save_btn->setStyleSheet(btn_primary_ss());
connect(save_btn, &QPushButton::clicked, this, [this]() {
diff --git a/fincept-qt/src/screens/settings/ProfilesSection.cpp b/fincept-qt/src/screens/settings/ProfilesSection.cpp
index fefd45ba1..f3a229c9a 100644
--- a/fincept-qt/src/screens/settings/ProfilesSection.cpp
+++ b/fincept-qt/src/screens/settings/ProfilesSection.cpp
@@ -42,24 +42,24 @@ void ProfilesSection::build_ui() {
vl->setContentsMargins(24, 20, 24, 20);
vl->setSpacing(16);
- auto* title = new QLabel("Profiles");
+ auto* title = new QLabel(tr("Profiles"));
title->setStyleSheet(section_title_ss());
vl->addWidget(title);
- auto* desc = new QLabel("Each profile has its own isolated database, credentials, logs and workspaces.\n"
- "Launch the terminal with --profile <name> to open a specific profile.\n"
- "Different profiles can run simultaneously — useful for separate trading accounts.");
+ auto* desc = new QLabel(tr("Each profile has its own isolated database, credentials, logs and workspaces.\n"
+ "Launch the terminal with --profile <name> to open a specific profile.\n"
+ "Different profiles can run simultaneously — useful for separate trading accounts."));
desc->setWordWrap(true);
desc->setStyleSheet(label_ss());
vl->addWidget(desc);
vl->addWidget(make_sep());
auto& pm = ProfileManager::instance();
- auto* active_lbl = new QLabel(QString("Active profile: <b>%1</b>").arg(pm.active()));
+ auto* active_lbl = new QLabel(tr("Active profile: <b>%1</b>").arg(pm.active()));
active_lbl->setStyleSheet(label_ss());
vl->addWidget(active_lbl);
- auto* list_title = new QLabel("All profiles");
+ auto* list_title = new QLabel(tr("All profiles"));
list_title->setStyleSheet(sub_title_ss());
vl->addWidget(list_title);
@@ -80,12 +80,12 @@ void ProfilesSection::build_ui() {
hl->addWidget(name_lbl, 1);
if (name == pm.active()) {
- auto* badge = new QLabel("ACTIVE");
+ auto* badge = new QLabel(tr("ACTIVE"));
badge->setStyleSheet(QString("color:%1;font-weight:700;font-size:10px;background:transparent;")
.arg(ui::colors::AMBER()));
hl->addWidget(badge);
} else {
- auto* switch_btn = new QPushButton("Switch");
+ auto* switch_btn = new QPushButton(tr("Switch"));
switch_btn->setFixedWidth(72);
switch_btn->setStyleSheet(btn_secondary_ss());
connect(switch_btn, &QPushButton::clicked, this, [name]() {
@@ -100,7 +100,7 @@ void ProfilesSection::build_ui() {
vl->addWidget(list_widget);
vl->addWidget(make_sep());
- auto* new_title = new QLabel("Create new profile");
+ auto* new_title = new QLabel(tr("Create new profile"));
new_title->setStyleSheet(sub_title_ss());
vl->addWidget(new_title);
@@ -110,11 +110,11 @@ void ProfilesSection::build_ui() {
new_hl->setSpacing(8);
auto* name_input = new QLineEdit;
- name_input->setPlaceholderText("profile-name (alphanumeric, - and _ only)");
+ name_input->setPlaceholderText(tr("profile-name (alphanumeric, - and _ only)"));
name_input->setStyleSheet(input_ss());
new_hl->addWidget(name_input, 1);
- auto* create_btn = new QPushButton("Create & Switch");
+ auto* create_btn = new QPushButton(tr("Create & Switch"));
create_btn->setStyleSheet(btn_primary_ss());
connect(create_btn, &QPushButton::clicked, this, [name_input]() {
const QString name = name_input->text().trimmed().toLower();
@@ -127,8 +127,8 @@ void ProfilesSection::build_ui() {
new_hl->addWidget(create_btn);
vl->addWidget(new_row);
- auto* hint = new QLabel("Creating a profile sets up a fresh data directory. "
- "The app will restart with the new profile active.");
+ auto* hint = new QLabel(tr("Creating a profile sets up a fresh data directory. "
+ "The app will restart with the new profile active."));
hint->setWordWrap(true);
hint->setStyleSheet(label_ss());
vl->addWidget(hint);
diff --git a/fincept-qt/src/screens/settings/PythonEnvSection.cpp b/fincept-qt/src/screens/settings/PythonEnvSection.cpp
index 78e6dcd3d..d089965af 100644
--- a/fincept-qt/src/screens/settings/PythonEnvSection.cpp
+++ b/fincept-qt/src/screens/settings/PythonEnvSection.cpp
@@ -119,15 +119,15 @@ void PythonEnvSection::build_ui() {
root->setSpacing(0);
// Title
- auto* title = new QLabel("PYTHON ENVIRONMENTS");
+ auto* title = new QLabel(tr("PYTHON ENVIRONMENTS"));
title->setStyleSheet(section_title_ss());
root->addWidget(title);
root->addSpacing(4);
auto* info = new QLabel(
- "Inspect and manage packages installed in both Python environments. "
- "Trading (venv-numpy1) contains NumPy 1.x-dependent libraries. "
- "Analytics (venv-numpy2) contains NumPy 2.x / ML / AI libraries.");
+ tr("Inspect and manage packages installed in both Python environments. "
+ "Trading (venv-numpy1) contains NumPy 1.x-dependent libraries. "
+ "Analytics (venv-numpy2) contains NumPy 2.x / ML / AI libraries."));
info->setWordWrap(true);
info->setStyleSheet(label_ss());
root->addWidget(info);
diff --git a/fincept-qt/src/screens/settings/SecuritySection.cpp b/fincept-qt/src/screens/settings/SecuritySection.cpp
index df2f8edee..1a8d89106 100644
--- a/fincept-qt/src/screens/settings/SecuritySection.cpp
+++ b/fincept-qt/src/screens/settings/SecuritySection.cpp
@@ -54,7 +54,7 @@ void SecuritySection::build_ui() {
vl->setSpacing(8);
// ── PIN STATUS ────────────────────────────────────────────────────────────
- auto* t1 = new QLabel("PIN AUTHENTICATION");
+ auto* t1 = new QLabel(tr("PIN AUTHENTICATION"));
t1->setStyleSheet(section_title_ss());
vl->addWidget(t1);
vl->addWidget(make_sep());
@@ -62,24 +62,24 @@ void SecuritySection::build_ui() {
sec_pin_status_ = new QLabel;
sec_pin_status_->setStyleSheet(QString("color:%1;background:transparent;").arg(ui::colors::TEXT_PRIMARY()));
- vl->addWidget(make_row("PIN Status", sec_pin_status_, "A 6-digit PIN is required to unlock the terminal."));
+ vl->addWidget(make_row(tr("PIN Status"), sec_pin_status_, tr("A 6-digit PIN is required to unlock the terminal.")));
sec_lockout_status_ = new QLabel;
sec_lockout_status_->setStyleSheet(QString("color:%1;background:transparent;").arg(ui::colors::TEXT_SECONDARY()));
- vl->addWidget(make_row("Failed Attempts", sec_lockout_status_,
- "PIN lockout engages after 5 consecutive failures."));
+ vl->addWidget(make_row(tr("Failed Attempts"), sec_lockout_status_,
+ tr("PIN lockout engages after 5 consecutive failures.")));
vl->addSpacing(8);
vl->addWidget(make_sep());
vl->addSpacing(8);
// ── CHANGE PIN ────────────────────────────────────────────────────────────
- auto* t2 = new QLabel("CHANGE PIN");
+ auto* t2 = new QLabel(tr("CHANGE PIN"));
t2->setStyleSheet(sub_title_ss());
vl->addWidget(t2);
vl->addSpacing(4);
- sec_change_pin_btn_ = new QPushButton("Change PIN");
+ sec_change_pin_btn_ = new QPushButton(tr("Change PIN"));
sec_change_pin_btn_->setFixedWidth(140);
sec_change_pin_btn_->setStyleSheet(btn_secondary_ss());
vl->addWidget(sec_change_pin_btn_);
@@ -100,14 +100,14 @@ void SecuritySection::build_ui() {
return input;
};
- sec_current_pin_ = make_pin_field("Current PIN");
- cpfl->addWidget(make_row("Current PIN", sec_current_pin_));
+ sec_current_pin_ = make_pin_field(tr("Current PIN"));
+ cpfl->addWidget(make_row(tr("Current PIN"), sec_current_pin_));
- sec_new_pin_ = make_pin_field("New PIN");
- cpfl->addWidget(make_row("New PIN", sec_new_pin_));
+ sec_new_pin_ = make_pin_field(tr("New PIN"));
+ cpfl->addWidget(make_row(tr("New PIN"), sec_new_pin_));
- sec_confirm_pin_ = make_pin_field("Confirm PIN");
- cpfl->addWidget(make_row("Confirm PIN", sec_confirm_pin_));
+ sec_confirm_pin_ = make_pin_field(tr("Confirm PIN"));
+ cpfl->addWidget(make_row(tr("Confirm PIN"), sec_confirm_pin_));
sec_pin_error_ = new QLabel;
sec_pin_error_->setWordWrap(true);
@@ -125,7 +125,7 @@ void SecuritySection::build_ui() {
sec_pin_success_->hide();
cpfl->addWidget(sec_pin_success_);
- auto* save_pin_btn = new QPushButton("Update PIN");
+ auto* save_pin_btn = new QPushButton(tr("Update PIN"));
save_pin_btn->setFixedWidth(140);
save_pin_btn->setStyleSheet(btn_primary_ss());
cpfl->addWidget(save_pin_btn);
@@ -136,7 +136,7 @@ void SecuritySection::build_ui() {
connect(sec_change_pin_btn_, &QPushButton::clicked, this, [this]() {
bool showing = sec_change_pin_form_->isVisible();
sec_change_pin_form_->setVisible(!showing);
- sec_change_pin_btn_->setText(showing ? "Change PIN" : "Cancel");
+ sec_change_pin_btn_->setText(showing ? tr("Change PIN") : tr("Cancel"));
if (!showing) {
sec_current_pin_->clear();
sec_new_pin_->clear();
@@ -160,7 +160,7 @@ void SecuritySection::build_ui() {
if (pm.is_locked_out()) {
int secs = pm.lockout_remaining_seconds();
- sec_pin_error_->setText(QString("Locked out — try again in %1s").arg(secs));
+ sec_pin_error_->setText(tr("Locked out — try again in %1s").arg(secs));
sec_pin_error_->show();
sec_current_pin_->clear();
sec_new_pin_->clear();
@@ -169,7 +169,7 @@ void SecuritySection::build_ui() {
}
if (new_pin != confirm) {
- sec_pin_error_->setText("New PINs do not match");
+ sec_pin_error_->setText(tr("New PINs do not match"));
sec_pin_error_->show();
sec_new_pin_->clear();
sec_confirm_pin_->clear();
@@ -181,7 +181,7 @@ void SecuritySection::build_ui() {
if (result.is_err()) {
if (pm.is_locked_out()) {
int secs = pm.lockout_remaining_seconds();
- sec_pin_error_->setText(QString("Too many failed attempts — locked for %1s").arg(secs));
+ sec_pin_error_->setText(tr("Too many failed attempts — locked for %1s").arg(secs));
} else {
sec_pin_error_->setText(QString::fromStdString(result.error()));
}
@@ -191,7 +191,7 @@ void SecuritySection::build_ui() {
return;
}
- sec_pin_success_->setText("PIN updated successfully");
+ sec_pin_success_->setText(tr("PIN updated successfully"));
sec_pin_success_->show();
sec_current_pin_->clear();
sec_new_pin_->clear();
@@ -206,40 +206,40 @@ void SecuritySection::build_ui() {
vl->addSpacing(8);
// ── AUTO-LOCK ─────────────────────────────────────────────────────────────
- auto* t3 = new QLabel("AUTO-LOCK");
+ auto* t3 = new QLabel(tr("AUTO-LOCK"));
t3->setStyleSheet(sub_title_ss());
vl->addWidget(t3);
vl->addSpacing(4);
- sec_autolock_toggle_ = new QCheckBox("Enable auto-lock on inactivity");
+ sec_autolock_toggle_ = new QCheckBox(tr("Enable auto-lock on inactivity"));
sec_autolock_toggle_->setChecked(true);
sec_autolock_toggle_->setStyleSheet(check_ss());
- vl->addWidget(make_row("Auto-Lock", sec_autolock_toggle_, "Locks the terminal after a period of inactivity."));
+ vl->addWidget(make_row(tr("Auto-Lock"), sec_autolock_toggle_, tr("Locks the terminal after a period of inactivity.")));
sec_lock_timeout_ = new QComboBox;
- sec_lock_timeout_->addItem("1 min", 1);
- sec_lock_timeout_->addItem("2 min", 2);
- sec_lock_timeout_->addItem("5 min", 5);
- sec_lock_timeout_->addItem("10 min", 10);
- sec_lock_timeout_->addItem("15 min", 15);
- sec_lock_timeout_->addItem("30 min", 30);
- sec_lock_timeout_->addItem("60 min", 60);
+ sec_lock_timeout_->addItem(tr("1 min"), 1);
+ sec_lock_timeout_->addItem(tr("2 min"), 2);
+ sec_lock_timeout_->addItem(tr("5 min"), 5);
+ sec_lock_timeout_->addItem(tr("10 min"), 10);
+ sec_lock_timeout_->addItem(tr("15 min"), 15);
+ sec_lock_timeout_->addItem(tr("30 min"), 30);
+ sec_lock_timeout_->addItem(tr("60 min"), 60);
sec_lock_timeout_->setCurrentIndex(3);
sec_lock_timeout_->setStyleSheet(combo_ss());
- vl->addWidget(make_row("Lock Timeout", sec_lock_timeout_, "Time of inactivity before the terminal locks."));
+ vl->addWidget(make_row(tr("Lock Timeout"), sec_lock_timeout_, tr("Time of inactivity before the terminal locks.")));
connect(sec_autolock_toggle_, &QCheckBox::toggled, this,
[this](bool checked) { sec_lock_timeout_->setEnabled(checked); });
- sec_lock_on_minimize_ = new QCheckBox("Lock when the window is minimized");
+ sec_lock_on_minimize_ = new QCheckBox(tr("Lock when the window is minimized"));
sec_lock_on_minimize_->setStyleSheet(check_ss());
- vl->addWidget(make_row("Lock on Minimize", sec_lock_on_minimize_,
- "When on, minimizing the terminal immediately shows the PIN screen."));
+ vl->addWidget(make_row(tr("Lock on Minimize"), sec_lock_on_minimize_,
+ tr("When on, minimizing the terminal immediately shows the PIN screen.")));
vl->addSpacing(16);
// ── SAVE ──────────────────────────────────────────────────────────────────
- auto* save_btn = new QPushButton("Save Security Settings");
+ auto* save_btn = new QPushButton(tr("Save Security Settings"));
save_btn->setFixedWidth(200);
save_btn->setStyleSheet(btn_primary_ss());
connect(save_btn, &QPushButton::clicked, this, [this]() {
@@ -271,12 +271,12 @@ void SecuritySection::build_ui() {
// ── AUDIT LOG ─────────────────────────────────────────────────────────────
vl->addSpacing(16);
- auto* t_audit = new QLabel("AUDIT LOG");
+ auto* t_audit = new QLabel(tr("AUDIT LOG"));
t_audit->setStyleSheet(sub_title_ss());
vl->addWidget(t_audit);
vl->addSpacing(4);
- auto* audit_note = new QLabel("Recent security events (PIN setup, failed unlocks, inactivity locks).");
+ auto* audit_note = new QLabel(tr("Recent security events (PIN setup, failed unlocks, inactivity locks)."));
audit_note->setWordWrap(true);
audit_note->setStyleSheet(QString("color:%1;font-size:12px;background:transparent;")
.arg(ui::colors::TEXT_DIM()));
@@ -291,7 +291,7 @@ void SecuritySection::build_ui() {
.arg(ui::colors::BG_SURFACE(), ui::colors::TEXT_PRIMARY(), ui::colors::BORDER_DIM()));
vl->addWidget(sec_audit_list_);
- auto* refresh_audit_btn = new QPushButton("Refresh");
+ auto* refresh_audit_btn = new QPushButton(tr("Refresh"));
refresh_audit_btn->setFixedWidth(140);
refresh_audit_btn->setStyleSheet(btn_secondary_ss());
connect(refresh_audit_btn, &QPushButton::clicked, this, [this]() { refresh_audit_log(); });
@@ -313,7 +313,7 @@ void SecuritySection::refresh_audit_log() {
: QString("%1 %2 (%3)").arg(ts, e.event, e.detail);
sec_audit_list_->addItem(line);
}
- if (events.isEmpty()) sec_audit_list_->addItem("(no events recorded yet)");
+ if (events.isEmpty()) sec_audit_list_->addItem(tr("(no events recorded yet)"));
}
void SecuritySection::reload() {
@@ -321,7 +321,7 @@ void SecuritySection::reload() {
auto& repo = SettingsRepository::instance();
if (sec_pin_status_) {
- sec_pin_status_->setText(pm.has_pin() ? "CONFIGURED" : "NOT SET");
+ sec_pin_status_->setText(pm.has_pin() ? tr("CONFIGURED") : tr("NOT SET"));
sec_pin_status_->setStyleSheet(QString("color:%1;font-weight:700;background:transparent;")
.arg(pm.has_pin() ? ui::colors::POSITIVE() : ui::colors::NEGATIVE()));
}
diff --git a/fincept-qt/src/screens/settings/SettingsScreen.cpp b/fincept-qt/src/screens/settings/SettingsScreen.cpp
index cba36d53a..bb2ef6dad 100644
--- a/fincept-qt/src/screens/settings/SettingsScreen.cpp
+++ b/fincept-qt/src/screens/settings/SettingsScreen.cpp
@@ -3,6 +3,7 @@
#include "screens/settings/SettingsScreen.h"
+#include "core/i18n/LanguageManager.h"
#include "services/llm/LlmService.h"
#include "core/events/EventBus.h"
#include "core/logging/Logger.h"
@@ -29,6 +30,7 @@
#include "ui/theme/Theme.h"
#include "ui/theme/ThemeManager.h"
+#include <QEvent>
#include <QHBoxLayout>
#include <QLabel>
#include <QPointer>
@@ -51,37 +53,41 @@ SettingsScreen::SettingsScreen(QWidget* parent) : QWidget(parent) {
nvl->setContentsMargins(8, 16, 8, 8);
nvl->setSpacing(2);
- auto* title = new QLabel("SETTINGS");
- title->setStyleSheet(section_title_ss());
- nvl->addWidget(title);
+ nav_title_ = new QLabel;
+ nav_title_->setStyleSheet(section_title_ss());
+ nvl->addWidget(nav_title_);
nvl->addSpacing(12);
- // Sections (order matters — indices used in nav buttons)
+ // ── Section factories ────────────────────────────────────────────────────
+ // One factory per stack index. Used at construction AND by the language-
+ // change rebuild path so we don't hardcode the type list twice.
+ section_factories_.clear();
+ section_factories_.resize(15);
+ section_factories_[0] = [] { return new CredentialsSection; };
+ section_factories_[1] = [] { return new AppearanceSection; };
+ section_factories_[2] = [] { return new NotificationsSection; };
+ section_factories_[3] = [] { return new StorageSection; };
+ section_factories_[4] = [] { return new DataSourcesSection; };
+ section_factories_[5] = [] { return new LlmConfigSection; };
+ section_factories_[6] = [] { return new McpServersSection; };
+ section_factories_[7] = [] { return new LoggingSection; };
+ section_factories_[8] = [] { return new SecuritySection; };
+ section_factories_[9] = [] { return new ProfilesSection; };
+ section_factories_[10] = [] { return new KeybindingsSection; };
+ section_factories_[11] = [] { return new PythonEnvSection; };
+ section_factories_[12] = [] { return new DeveloperSection; };
+ section_factories_[13] = [] { return new VoiceConfigSection; };
+ section_factories_[14] = [] { return new GeneralSection; };
+
sections_ = new QStackedWidget;
- sections_->addWidget(new CredentialsSection); // 0
- sections_->addWidget(new AppearanceSection); // 1
- sections_->addWidget(new NotificationsSection); // 2
- sections_->addWidget(new StorageSection); // 3
- sections_->addWidget(new DataSourcesSection); // 4
- sections_->addWidget(new LlmConfigSection); // 5
- sections_->addWidget(new McpServersSection); // 6
- sections_->addWidget(new LoggingSection); // 7
- sections_->addWidget(new SecuritySection); // 8
- sections_->addWidget(new ProfilesSection); // 9
- sections_->addWidget(new KeybindingsSection); // 10
- sections_->addWidget(new PythonEnvSection); // 11
- sections_->addWidget(new DeveloperSection); // 12
- sections_->addWidget(new VoiceConfigSection); // 13
- sections_->addWidget(new GeneralSection); // 14
-
- auto make_btn = [&](const QString& text, int idx) {
- auto* btn = new QPushButton(text);
+ for (const auto& factory : section_factories_)
+ sections_->addWidget(factory());
+
+ auto make_btn = [&](const QString& source_key, int idx) {
+ auto* btn = new QPushButton;
btn->setFixedHeight(32);
btn->setCheckable(true);
btn->setStyleSheet(nav_btn_ss());
- // Tag the button with its target section index so restore_state
- // can re-highlight the right nav row without depending on
- // section count or string-matching button text.
btn->setProperty("settingsSectionIndex", idx);
connect(btn, &QPushButton::clicked, this, [this, btn, idx]() {
if (auto* parent = btn->parentWidget()) {
@@ -93,40 +99,38 @@ SettingsScreen::SettingsScreen(QWidget* parent) : QWidget(parent) {
ScreenStateManager::instance().notify_changed(this);
});
nvl->addWidget(btn);
+ nav_buttons_.append({btn, source_key});
return btn;
};
- // Decision 10.9: hierarchical scopes. Each section is tagged by which
- // tier it lives at — Shell-wide settings (theme, hotkeys, telemetry)
- // versus per-Profile settings (credentials, brokers, sync). Frame and
- // Panel scopes are owned by their respective UI surfaces (status bar,
- // panel context menus) and don't appear here.
- auto add_scope_header = [&](const QString& label) {
- auto* h = new QLabel(label);
+ auto add_scope_header = [&](const QString& key) {
+ auto* h = new QLabel;
h->setStyleSheet(QString("color:%1;font-size:10px;font-weight:700;"
"letter-spacing:1.2px;padding:8px 6px 4px 6px;")
.arg(ui::colors::TEXT_DIM()));
nvl->addWidget(h);
+ scope_headers_.append(h);
+ scope_header_keys_.append(key);
};
- add_scope_header("SHELL");
- auto* first = make_btn("General", 14);
- make_btn("Appearance", 1);
- make_btn("Notifications", 2);
- make_btn("Keybindings", 10);
- make_btn("Voice", 13);
- make_btn("Logging", 7);
- make_btn("Developer", 12);
-
- add_scope_header("PROFILE");
- make_btn("Profiles", 9);
- make_btn("Credentials", 0);
- make_btn("Security", 8);
- make_btn("Data Sources", 4);
- make_btn("LLM Config", 5);
- make_btn("MCP Servers", 6);
- make_btn("Python Env", 11);
- make_btn("Storage & Cache", 3);
+ add_scope_header(QStringLiteral("SHELL"));
+ auto* first = make_btn(QStringLiteral("General"), 14);
+ make_btn(QStringLiteral("Appearance"), 1);
+ make_btn(QStringLiteral("Notifications"), 2);
+ make_btn(QStringLiteral("Keybindings"), 10);
+ make_btn(QStringLiteral("Voice"), 13);
+ make_btn(QStringLiteral("Logging"), 7);
+ make_btn(QStringLiteral("Developer"), 12);
+
+ add_scope_header(QStringLiteral("PROFILE"));
+ make_btn(QStringLiteral("Profiles"), 9);
+ make_btn(QStringLiteral("Credentials"), 0);
+ make_btn(QStringLiteral("Security"), 8);
+ make_btn(QStringLiteral("Data Sources"), 4);
+ make_btn(QStringLiteral("LLM Config"), 5);
+ make_btn(QStringLiteral("MCP Servers"), 6);
+ make_btn(QStringLiteral("Python Env"), 11);
+ make_btn(QStringLiteral("Storage & Cache"), 3);
first->setChecked(true);
sections_->setCurrentIndex(14);
@@ -135,15 +139,65 @@ SettingsScreen::SettingsScreen(QWidget* parent) : QWidget(parent) {
root->addWidget(nav_);
root->addWidget(sections_, 1);
- // Wire LLM config changes → reload AI chat service
+ retranslateUi();
+ wire_section_signals();
+
+ connect(&ui::ThemeManager::instance(), &ui::ThemeManager::theme_changed, this,
+ [this](const ui::ThemeTokens&) { refresh_theme(); });
+ refresh_theme();
+
+ // Language changes mean every section needs fresh tr() lookups. We rebuild
+ // each section by constructing a new instance via its factory — simpler
+ // and more reliable than threading retranslateUi() through every section.
+ connect(&i18n::LanguageManager::instance(), &i18n::LanguageManager::language_changed,
+ this, [this](const QString&) { rebuild_sections_for_language_change(); });
+}
+
+void SettingsScreen::changeEvent(QEvent* e) {
+ if (e->type() == QEvent::LanguageChange)
+ retranslateUi();
+ QWidget::changeEvent(e);
+}
+
+void SettingsScreen::retranslateUi() {
+ if (nav_title_) nav_title_->setText(tr("SETTINGS"));
+ for (const auto& nb : nav_buttons_) {
+ if (nb.btn) nb.btn->setText(tr(nb.source_key.toUtf8().constData()));
+ }
+ for (int i = 0; i < scope_headers_.size() && i < scope_header_keys_.size(); ++i) {
+ if (scope_headers_[i])
+ scope_headers_[i]->setText(tr(scope_header_keys_[i].toUtf8().constData()));
+ }
+}
+
+void SettingsScreen::rebuild_sections_for_language_change() {
+ if (!sections_) return;
+ const int current = sections_->currentIndex();
+ // Replace each widget in-place. We insert at the same index first, then
+ // remove the old widget — preserves index ordering for nav buttons.
+ for (int i = 0; i < section_factories_.size(); ++i) {
+ if (!section_factories_[i]) continue;
+ QWidget* old = sections_->widget(i);
+ QWidget* fresh = section_factories_[i]();
+ sections_->insertWidget(i, fresh);
+ sections_->removeWidget(old);
+ if (old) old->deleteLater();
+ }
+ sections_->setCurrentIndex(current);
+ // External signals must be re-wired against the fresh section instances.
+ wire_section_signals();
+}
+
+void SettingsScreen::wire_section_signals() {
+ if (!sections_) return;
+ // LLM config changes → reload AI chat service.
if (auto* llm = qobject_cast<LlmConfigSection*>(sections_->widget(5))) {
connect(llm, &LlmConfigSection::config_changed, this,
[]() { ai_chat::LlmService::instance().reload_config(); });
}
-
- // Wire Voice config changes — reload BOTH STT and TTS services and
- // restart the clap detector so the user's new provider / key / voice /
- // wake-trigger picks take effect on the next session.
+ // Voice config changes → reload BOTH STT and TTS services and restart
+ // the clap detector so the user's new provider / key / voice / wake-trigger
+ // picks take effect on the next session.
if (auto* voice = qobject_cast<VoiceConfigSection*>(sections_->widget(13))) {
connect(voice, &VoiceConfigSection::config_changed, this, []() {
fincept::services::SpeechService::instance().reload_config();
@@ -155,10 +209,6 @@ SettingsScreen::SettingsScreen(QWidget* parent) : QWidget(parent) {
clap.start();
});
}
-
- connect(&ui::ThemeManager::instance(), &ui::ThemeManager::theme_changed, this,
- [this](const ui::ThemeTokens&) { refresh_theme(); });
- refresh_theme();
}
void SettingsScreen::refresh_theme() {
@@ -169,17 +219,14 @@ void SettingsScreen::refresh_theme() {
.arg(ui::colors::BG_SURFACE(), ui::colors::BORDER_DIM()));
for (auto* btn : nav_->findChildren<QPushButton*>())
btn->setStyleSheet(nav_btn_ss());
- // Re-apply scope-header colour. Headers carry no objectName, so
- // tag them by stylesheet content prefix to avoid clobbering the
- // SETTINGS title at the top of the nav.
- for (auto* lbl : nav_->findChildren<QLabel*>()) {
- const QString text = lbl->text();
- if (text == QStringLiteral("SHELL") || text == QStringLiteral("PROFILE")) {
- lbl->setStyleSheet(
- QString("color:%1;font-size:10px;font-weight:700;"
- "letter-spacing:1.2px;padding:8px 6px 4px 6px;")
- .arg(ui::colors::TEXT_DIM()));
- }
+ // Re-apply scope-header colour. Walk our explicit list rather than
+ // text-matching, so the headers' style survives translation to
+ // languages where the source label no longer literally reads "SHELL".
+ for (auto* lbl : scope_headers_) {
+ if (!lbl) continue;
+ lbl->setStyleSheet(QString("color:%1;font-size:10px;font-weight:700;"
+ "letter-spacing:1.2px;padding:8px 6px 4px 6px;")
+ .arg(ui::colors::TEXT_DIM()));
}
}
}
@@ -187,8 +234,6 @@ void SettingsScreen::refresh_theme() {
void SettingsScreen::showEvent(QShowEvent* e) {
QWidget::showEvent(e);
subscribe_mcp_events();
- // Each section's own showEvent fires when it becomes the current page;
- // no orchestration needed here.
}
void SettingsScreen::hideEvent(QHideEvent* e) {
@@ -197,9 +242,6 @@ void SettingsScreen::hideEvent(QHideEvent* e) {
}
void SettingsScreen::reload_visible_section() {
- // MCP settings change → nudge the currently-visible section so it picks up
- // the mutation. Each section has a public reload()-like surface invoked
- // via showEvent; we fire it by hiding + showing the current widget.
if (!sections_) return;
auto* w = sections_->currentWidget();
if (!w) return;
@@ -208,9 +250,6 @@ void SettingsScreen::reload_visible_section() {
}
// ── MCP-driven UI sync ──────────────────────────────────────────────────────
-// MCP settings tools publish settings.changed and llm.provider_changed when
-// the LLM mutates config via Finagent or AI Chat. The provider-change handler
-// also nudges LlmService so the chat screen subscriber doesn't race.
void SettingsScreen::subscribe_mcp_events() {
if (!mcp_event_subs_.isEmpty()) return; // idempotent
@@ -250,17 +289,11 @@ QVariantMap SettingsScreen::save_state() const {
void SettingsScreen::restore_state(const QVariantMap& state) {
if (!sections_) return;
- // Default to General (index 14) — landing page after the hierarchical
- // refactor. Users who had previously visited a different section get
- // it back via the saved index.
const int idx = state.value("section", 14).toInt();
if (idx < 0 || idx >= sections_->count())
return;
sections_->setCurrentIndex(idx);
- // Sync the nav-button checked-state so the highlight matches the
- // restored section. Buttons are tagged with `settingsSectionIndex`
- // by `make_btn`; un-check everything, then check the matching one.
if (!nav_)
return;
for (auto* btn : nav_->findChildren<QPushButton*>()) {
diff --git a/fincept-qt/src/screens/settings/SettingsScreen.h b/fincept-qt/src/screens/settings/SettingsScreen.h
index 56b476db6..4f1610dc4 100644
--- a/fincept-qt/src/screens/settings/SettingsScreen.h
+++ b/fincept-qt/src/screens/settings/SettingsScreen.h
@@ -1,13 +1,16 @@
#pragma once
// SettingsScreen.h — top-level settings shell. Hosts a left-nav + QStackedWidget
// of sub-section widgets. All section state and UI lives in *Section.h/.cpp
-// files in this directory; this class only owns the navigation and the MCP
-// event subscription that triggers a cross-section reload.
+// files in this directory; this class only owns the navigation, the MCP
+// event subscription that triggers a cross-section reload, and the centralised
+// language-change handler that rebuilds every section so their newly
+// constructed widgets pick up the active QTranslator.
#include "core/events/EventBus.h"
#include "screens/common/IStatefulScreen.h"
#include <QHideEvent>
+#include <QLabel>
#include <QList>
#include <QPushButton>
#include <QShowEvent>
@@ -15,12 +18,10 @@
#include <QVariantMap>
#include <QWidget>
+#include <functional>
+
namespace fincept::screens {
-/// Full-featured settings screen.
-/// Sections: Credentials | Appearance | Notifications | Storage & Cache |
-/// Data Sources | LLM Config | MCP Servers | Logging | Security |
-/// Profiles | Keybindings | Python Env | Developer | Voice
class SettingsScreen : public QWidget, public IStatefulScreen {
Q_OBJECT
public:
@@ -33,17 +34,38 @@ class SettingsScreen : public QWidget, public IStatefulScreen {
protected:
void showEvent(QShowEvent* e) override;
void hideEvent(QHideEvent* e) override;
+ void changeEvent(QEvent* e) override;
private:
QStackedWidget* sections_ = nullptr;
QWidget* nav_ = nullptr;
+ QLabel* nav_title_ = nullptr;
void refresh_theme();
+ void retranslateUi();
+
+ /// Re-wire signals from section instances to external services. Called
+ /// after every section rebuild (language change) so the wiring survives
+ /// the destruction of the old section widgets.
+ void wire_section_signals();
+
+ /// Rebuild every section widget by constructing fresh instances via the
+ /// stored factories. Preserves the current section index. Each rebuilt
+ /// section picks up the active QTranslator at construction time.
+ void rebuild_sections_for_language_change();
+
+ /// Nav button → source key map used to retranslate button labels and
+ /// scope headers without rebuilding the nav.
+ struct NavButton { QPushButton* btn; QString source_key; };
+ QList<NavButton> nav_buttons_;
+ QList<QLabel*> scope_headers_; // entries align with scope_header_keys_
+ QList<QString> scope_header_keys_;
+
+ /// Factories for each section index. Used by the language-change rebuild
+ /// path so we can recreate widgets without hardcoding the type list twice.
+ QList<std::function<QWidget*()>> section_factories_;
// ── MCP-driven UI sync ────────────────────────────────────────────────────
- // MCP settings tools publish settings.changed / llm.provider_changed when
- // the LLM mutates settings via Finagent or AI Chat. Subscribers are active
- // only while the screen is visible (P3 lifecycle).
QList<EventBus::HandlerId> mcp_event_subs_;
void subscribe_mcp_events();
void unsubscribe_mcp_events();
diff --git a/fincept-qt/src/screens/settings/StorageSection.cpp b/fincept-qt/src/screens/settings/StorageSection.cpp
index 72f5c49b3..d2b17246b 100644
--- a/fincept-qt/src/screens/settings/StorageSection.cpp
+++ b/fincept-qt/src/screens/settings/StorageSection.cpp
@@ -199,13 +199,13 @@ void StorageSection::build_ui() {
vl->setContentsMargins(14, 14, 14, 14);
vl->setSpacing(10);
- auto* t = new QLabel("STORAGE & DATA MANAGEMENT");
+ auto* t = new QLabel(tr("STORAGE & DATA MANAGEMENT"));
t->setStyleSheet(section_title_ss());
vl->addWidget(t);
vl->addSpacing(4);
- auto* info = new QLabel("Manage all persistent data, databases, and files. "
- "Execute SQL queries directly against terminal databases.");
+ auto* info = new QLabel(tr("Manage all persistent data, databases, and files. "
+ "Execute SQL queries directly against terminal databases."));
info->setWordWrap(true);
info->setStyleSheet(QString("color:%1;background:transparent;").arg(ui::colors::TEXT_SECONDARY()));
vl->addWidget(info);
diff --git a/fincept-qt/src/screens/settings/VoiceConfigSection.cpp b/fincept-qt/src/screens/settings/VoiceConfigSection.cpp
index 0764c9537..7c307fb9c 100644
--- a/fincept-qt/src/screens/settings/VoiceConfigSection.cpp
+++ b/fincept-qt/src/screens/settings/VoiceConfigSection.cpp
@@ -111,20 +111,20 @@ void VoiceConfigSection::build_ui() {
vl->setSpacing(14);
// ── Title + blurb ────────────────────────────────────────────────────────
- auto* title = new QLabel("VOICE — SPEECH-TO-TEXT & TEXT-TO-SPEECH");
+ auto* title = new QLabel(tr("VOICE — SPEECH-TO-TEXT & TEXT-TO-SPEECH"));
title->setStyleSheet(title_ss());
vl->addWidget(title);
auto* blurb = new QLabel(
- "Pick a provider for each direction independently. Free options work "
- "out of the box; Deepgram requires an API key but offers higher accuracy "
- "(STT) and natural-sounding voices (TTS).");
+ tr("Pick a provider for each direction independently. Free options work "
+ "out of the box; Deepgram requires an API key but offers higher accuracy "
+ "(STT) and natural-sounding voices (TTS)."));
blurb->setStyleSheet(label_ss());
blurb->setWordWrap(true);
vl->addWidget(blurb);
// ── STT provider ─────────────────────────────────────────────────────────
- auto* stt_section = new QLabel("SPEECH-TO-TEXT (microphone -> text)");
+ auto* stt_section = new QLabel(tr("SPEECH-TO-TEXT (microphone -> text)"));
stt_section->setStyleSheet(subtitle_ss());
vl->addWidget(stt_section);
@@ -433,7 +433,7 @@ void VoiceConfigSection::on_test() {
}
// Step 1 — verify the Python SDK is installed in venv-numpy2 (only
- // matters for STT; TTS uses requests + pyaudio, which are already
+ // matters for STT; TTS uses requests + sounddevice, which are already
// present). Done via a filesystem probe of the venv site-packages.
const QString stt = stt_provider_combo_->currentData().toString();
if (stt == "deepgram") {
diff --git a/fincept-qt/src/screens/setup/SetupScreen.cpp b/fincept-qt/src/screens/setup/SetupScreen.cpp
index e5f52f740..1123e6ef5 100644
--- a/fincept-qt/src/screens/setup/SetupScreen.cpp
+++ b/fincept-qt/src/screens/setup/SetupScreen.cpp
@@ -5,9 +5,11 @@
#include "core/net/NetSpeedMeter.h"
#include "python/PythonSetupManager.h"
#include "ui/theme/Theme.h"
+#include "ui/widgets/LanguageSwitcher.h"
#include "ui/widgets/SpeedSparkline.h"
#include <QDateTime>
+#include <QEvent>
#include <QHBoxLayout>
#include <QLabel>
@@ -32,6 +34,7 @@ static const QString kAccent = colors::AMBER;
SetupScreen::SetupScreen(QWidget* parent) : QWidget(parent) {
build_ui();
+ retranslateUi();
prefill_completed_steps();
connect(&python::PythonSetupManager::instance(), &python::PythonSetupManager::progress_changed, this,
@@ -39,24 +42,27 @@ SetupScreen::SetupScreen(QWidget* parent) : QWidget(parent) {
connect(&python::PythonSetupManager::instance(), &python::PythonSetupManager::setup_complete, this,
&SetupScreen::on_setup_done);
- // 15-minute overall timeout — shows skip button if setup is stuck
timeout_timer_ = new QTimer(this);
timeout_timer_->setSingleShot(true);
timeout_timer_->setInterval(15 * 60 * 1000);
connect(timeout_timer_, &QTimer::timeout, this, &SetupScreen::on_setup_timeout);
- // Liveness: system-wide network throughput meter (starts when user clicks
- // BEGIN SETUP, stops on completion/skip/timeout).
net_meter_ = new fincept::net::NetSpeedMeter(this);
connect(net_meter_, &fincept::net::NetSpeedMeter::speed_changed,
this, &SetupScreen::on_net_speed);
- // Elapsed-time ticker, drives the "Elapsed: Xm Ys" label once per second.
elapsed_timer_ = new QTimer(this);
elapsed_timer_->setInterval(1000);
connect(elapsed_timer_, &QTimer::timeout, this, &SetupScreen::on_elapsed_tick);
}
+void SetupScreen::changeEvent(QEvent* event) {
+ if (event->type() == QEvent::LanguageChange) {
+ retranslateUi();
+ }
+ QWidget::changeEvent(event);
+}
+
// ─────────────────────────────────────────────────────────────────────────────
// Build UI
// ─────────────────────────────────────────────────────────────────────────────
@@ -68,6 +74,14 @@ void SetupScreen::build_ui() {
root->setContentsMargins(0, 0, 0, 0);
root->setSpacing(0);
+ // Top-right language picker — visible during first-run setup so the user
+ // can switch language before installation begins.
+ auto* top_row = new QHBoxLayout;
+ top_row->setContentsMargins(20, 20, 20, 0);
+ top_row->addStretch();
+ top_row->addWidget(new ui::LanguageSwitcher(this));
+ root->addLayout(top_row);
+
root->addStretch(2);
auto* center = new QWidget(this);
@@ -76,27 +90,25 @@ void SetupScreen::build_ui() {
cl->setSpacing(8);
// ── Title block ───────────────────────────────────────────────────────────
- auto* title = new QLabel("FINCEPT TERMINAL", center);
- title->setAlignment(Qt::AlignCenter);
- title->setStyleSheet(QString("color:%1; font-family:%2; font-size:24px; font-weight:700; letter-spacing:3px;")
- .arg(kAccent, fonts::DATA_FAMILY));
- cl->addWidget(title);
-
- subtitle_lbl_ = new QLabel("Getting your workspace ready", center);
+ // FINCEPT TERMINAL — brand, not translated.
+ title_lbl_ = new QLabel(QStringLiteral("FINCEPT TERMINAL"), center);
+ title_lbl_->setAlignment(Qt::AlignCenter);
+ title_lbl_->setStyleSheet(QString("color:%1; font-family:%2; font-size:24px; font-weight:700; letter-spacing:3px;")
+ .arg(kAccent, fonts::DATA_FAMILY));
+ cl->addWidget(title_lbl_);
+
+ subtitle_lbl_ = new QLabel(center);
subtitle_lbl_->setAlignment(Qt::AlignCenter);
subtitle_lbl_->setStyleSheet(
QString("color:%1; font-family:%2; font-size:13px;").arg(colors::TEXT_SECONDARY(), fonts::DATA_FAMILY));
cl->addWidget(subtitle_lbl_);
- // Brief plain-English explanation
- auto* intro = new QLabel("We need to download a few tools and data libraries once.\n"
- "This only happens the first time — future launches are instant.",
- center);
- intro->setAlignment(Qt::AlignCenter);
- intro->setWordWrap(true);
- intro->setStyleSheet(QString("color:%1; font-family:%2; font-size:10px; margin-top:4px; margin-bottom:12px;")
- .arg(colors::TEXT_TERTIARY(), fonts::DATA_FAMILY));
- cl->addWidget(intro);
+ intro_lbl_ = new QLabel(center);
+ intro_lbl_->setAlignment(Qt::AlignCenter);
+ intro_lbl_->setWordWrap(true);
+ intro_lbl_->setStyleSheet(QString("color:%1; font-family:%2; font-size:10px; margin-top:4px; margin-bottom:12px;")
+ .arg(colors::TEXT_TERTIARY(), fonts::DATA_FAMILY));
+ cl->addWidget(intro_lbl_);
// ── Divider ───────────────────────────────────────────────────────────────
auto* divider = new QFrame(center);
@@ -105,22 +117,16 @@ void SetupScreen::build_ui() {
cl->addWidget(divider);
cl->addSpacing(4);
- // ── Step rows — plain-English labels + technical key hidden inside ────────
- cl->addWidget(
- build_step_row("uv", "Download Installer", "Downloads the tool that manages everything else (~13 MB)"));
- cl->addWidget(
- build_step_row("python", "Install Python Runtime", "The programming language engine used for all analytics"));
- cl->addWidget(build_step_row("venv", "Create Isolated Workspaces",
- "Two sandboxed environments to keep library versions conflict-free"));
- cl->addWidget(build_step_row("packages-numpy1", "Install Trading Libraries",
- "Backtesting, portfolio optimization and legacy quant tools"));
- cl->addWidget(build_step_row("packages-numpy2", "Install Analytics Libraries",
- "Machine learning, data science and AI agent frameworks"));
+ // ── Step rows — labels and sublabels are translated in retranslateUi() ───
+ cl->addWidget(build_step_row("uv"));
+ cl->addWidget(build_step_row("python"));
+ cl->addWidget(build_step_row("venv"));
+ cl->addWidget(build_step_row("packages-numpy1"));
+ cl->addWidget(build_step_row("packages-numpy2"));
cl->addSpacing(16);
- // ── Action buttons ────────────────────────────────────────────────────────
- begin_btn_ = new QPushButton("BEGIN SETUP", center);
+ begin_btn_ = new QPushButton(center);
begin_btn_->setFixedHeight(46);
begin_btn_->setCursor(Qt::PointingHandCursor);
begin_btn_->setStyleSheet(
@@ -132,16 +138,14 @@ void SetupScreen::build_ui() {
connect(begin_btn_, &QPushButton::clicked, this, &SetupScreen::on_begin_setup);
cl->addWidget(begin_btn_);
- // Status label
- status_label_ = new QLabel({}, center);
+ status_label_ = new QLabel(center);
status_label_->setAlignment(Qt::AlignCenter);
status_label_->setWordWrap(true);
status_label_->setStyleSheet(QString("color:%1; font-family:%2; font-size:10px; margin-top:6px;")
.arg(colors::TEXT_TERTIARY(), fonts::DATA_FAMILY));
cl->addWidget(status_label_);
- // ── Liveness row: elapsed time + ↓/↑ network speed + sparkline ───────────
- // Hidden until BEGIN SETUP is pressed so it doesn't clutter the idle view.
+ // ── Liveness row ─────────────────────────────────────────────────────────
live_row_ = new QWidget(center);
live_row_->setVisible(false);
auto* live_hl = new QHBoxLayout(live_row_);
@@ -150,17 +154,17 @@ void SetupScreen::build_ui() {
const QString stat_css = QString("color:%1; font-family:%2; font-size:10px;")
.arg(colors::TEXT_SECONDARY(), fonts::DATA_FAMILY);
- elapsed_lbl_ = new QLabel("Elapsed: 0s", live_row_);
+ elapsed_lbl_ = new QLabel(live_row_);
elapsed_lbl_->setStyleSheet(stat_css);
elapsed_lbl_->setFixedWidth(120);
live_hl->addWidget(elapsed_lbl_);
- down_lbl_ = new QLabel("\u2193 0 B/s", live_row_);
+ down_lbl_ = new QLabel(QStringLiteral("↓ 0 B/s"), live_row_);
down_lbl_->setStyleSheet(stat_css);
down_lbl_->setFixedWidth(110);
live_hl->addWidget(down_lbl_);
- up_lbl_ = new QLabel("\u2191 0 B/s", live_row_);
+ up_lbl_ = new QLabel(QStringLiteral("↑ 0 B/s"), live_row_);
up_lbl_->setStyleSheet(stat_css);
up_lbl_->setFixedWidth(110);
live_hl->addWidget(up_lbl_);
@@ -175,15 +179,14 @@ void SetupScreen::build_ui() {
cl->addWidget(live_row_);
- summary_lbl_ = new QLabel({}, center);
+ summary_lbl_ = new QLabel(center);
summary_lbl_->setAlignment(Qt::AlignCenter);
summary_lbl_->setWordWrap(true);
summary_lbl_->setStyleSheet(
QString("color:%1; font-family:%2; font-size:10px;").arg(colors::TEXT_TERTIARY(), fonts::DATA_FAMILY));
cl->addWidget(summary_lbl_);
- // Skip button
- skip_btn_ = new QPushButton("SKIP & CONTINUE", center);
+ skip_btn_ = new QPushButton(center);
skip_btn_->setFixedHeight(36);
skip_btn_->setCursor(Qt::PointingHandCursor);
skip_btn_->setVisible(false);
@@ -195,12 +198,11 @@ void SetupScreen::build_ui() {
connect(skip_btn_, &QPushButton::clicked, this, &SetupScreen::on_skip_clicked);
cl->addWidget(skip_btn_);
- // Install dir — small, dim, for power users
- auto* dir_label = new QLabel("Installing to: " + python::PythonSetupManager::instance().install_dir(), center);
- dir_label->setAlignment(Qt::AlignCenter);
- dir_label->setStyleSheet(
+ install_dir_lbl_ = new QLabel(center);
+ install_dir_lbl_->setAlignment(Qt::AlignCenter);
+ install_dir_lbl_->setStyleSheet(
QString("color:%1; font-family:%2; font-size:9px; margin-top:6px;").arg(colors::TEXT_DIM(), fonts::DATA_FAMILY));
- cl->addWidget(dir_label);
+ cl->addWidget(install_dir_lbl_);
auto* hcenter = new QHBoxLayout();
hcenter->addStretch();
@@ -211,32 +213,30 @@ void SetupScreen::build_ui() {
root->addStretch(3);
}
-QWidget* SetupScreen::build_step_row(const QString& key, const QString& label, const QString& sublabel) {
+QWidget* SetupScreen::build_step_row(const QString& key) {
auto* row = new QWidget(this);
auto* hl = new QHBoxLayout(row);
hl->setContentsMargins(0, 6, 0, 6);
hl->setSpacing(12);
- // Left: label stack (name + description)
auto* label_col = new QWidget(row);
label_col->setFixedWidth(220);
auto* label_vl = new QVBoxLayout(label_col);
label_vl->setContentsMargins(0, 0, 0, 0);
label_vl->setSpacing(2);
- auto* lbl = new QLabel(label, label_col);
+ auto* lbl = new QLabel(label_col);
lbl->setStyleSheet(QString("color:%1; font-family:%2; font-size:11px; font-weight:600;")
.arg(colors::TEXT_SECONDARY(), fonts::DATA_FAMILY));
label_vl->addWidget(lbl);
- auto* sub = new QLabel(sublabel, label_col);
+ auto* sub = new QLabel(label_col);
sub->setWordWrap(true);
sub->setStyleSheet(QString("color:%1; font-family:%2; font-size:9px;").arg(colors::TEXT_DIM(), fonts::DATA_FAMILY));
label_vl->addWidget(sub);
hl->addWidget(label_col);
- // Middle: progress bar
auto* bar = new QProgressBar(row);
bar->setRange(0, 100);
bar->setValue(0);
@@ -247,17 +247,15 @@ QWidget* SetupScreen::build_step_row(const QString& key, const QString& label, c
.arg(colors::BG_RAISED(), colors::BORDER_DIM(), kAccent));
hl->addWidget(bar, 1);
- // Right: status badge
- auto* status = new QLabel("Waiting", row);
+ auto* status = new QLabel(row);
status->setFixedWidth(72);
status->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
status->setStyleSheet(
QString("color:%1; font-family:%2; font-size:9px;").arg(colors::TEXT_TERTIARY(), fonts::DATA_FAMILY));
hl->addWidget(status);
- // Pulse timer — drives the indeterminate animation while step is in-flight
auto* pulse = new QTimer(row);
- pulse->setInterval(100); // ~10 fps — imperceptible vs 25 fps for a progress bar
+ pulse->setInterval(100);
pulse->setSingleShot(false);
StepUI step;
@@ -267,15 +265,14 @@ QWidget* SetupScreen::build_step_row(const QString& key, const QString& label, c
step.status = status;
step.pulse = pulse;
step.pulse_val = 0;
+ step.status_state = StepStatus::Waiting;
+ step.percent = 0;
steps_[key] = step;
- // Connect pulse tick — captures key by value so it's safe after row moves
connect(pulse, &QTimer::timeout, this, [this, key]() {
if (!steps_.contains(key))
return;
auto& s = steps_[key];
- // Smooth bouncing fill: ramps 0→85 then stays — gives "working" feel
- // without implying false completion.
s.pulse_val = std::min(s.pulse_val + 1, 85);
s.bar->setValue(s.pulse_val);
});
@@ -284,9 +281,149 @@ QWidget* SetupScreen::build_step_row(const QString& key, const QString& label, c
}
// ─────────────────────────────────────────────────────────────────────────────
-// Actions
+// Re-translation
// ─────────────────────────────────────────────────────────────────────────────
+void SetupScreen::retranslateUi() {
+ if (intro_lbl_)
+ intro_lbl_->setText(tr("We need to download a few tools and data libraries once.\n"
+ "This only happens the first time — future launches are instant."));
+
+ // Step labels + sublabels.
+ struct StepCopy { const char* key; QString label; QString sublabel; };
+ const StepCopy copy[] = {
+ {"uv", tr("Download Installer"),
+ tr("Downloads the tool that manages everything else (~13 MB)")},
+ {"python", tr("Install Python Runtime"),
+ tr("The programming language engine used for all analytics")},
+ {"venv", tr("Create Isolated Workspaces"),
+ tr("Two sandboxed environments to keep library versions conflict-free")},
+ {"packages-numpy1", tr("Install Trading Libraries"),
+ tr("Backtesting, portfolio optimization and legacy quant tools")},
+ {"packages-numpy2", tr("Install Analytics Libraries"),
+ tr("Machine learning, data science and AI agent frameworks")},
+ };
+ for (const auto& c : copy) {
+ const QString k = QString::fromLatin1(c.key);
+ if (!steps_.contains(k)) continue;
+ auto& s = steps_[k];
+ if (s.label) s.label->setText(c.label);
+ if (s.sublabel) s.sublabel->setText(c.sublabel);
+ update_step_status(k);
+ }
+
+ if (install_dir_lbl_) {
+ install_dir_lbl_->setText(tr("Installing to: %1").arg(python::PythonSetupManager::instance().install_dir()));
+ }
+
+ update_subtitle();
+ update_begin_button();
+ update_status_label();
+ update_elapsed_label();
+ if (skip_btn_) skip_btn_->setText(tr("SKIP & CONTINUE"));
+}
+
+void SetupScreen::update_subtitle() {
+ if (!subtitle_lbl_) return;
+ switch (subtitle_state_) {
+ case SubtitleState::Ready: subtitle_lbl_->setText(tr("Getting your workspace ready")); break;
+ case SubtitleState::AlreadyConfigured: subtitle_lbl_->setText(tr("Your workspace is fully configured")); break;
+ case SubtitleState::Finishing: subtitle_lbl_->setText(tr("Finishing your workspace setup")); break;
+ }
+}
+
+void SetupScreen::update_begin_button() {
+ if (!begin_btn_) return;
+ switch (begin_btn_state_) {
+ case BeginBtnState::Begin: begin_btn_->setText(tr("BEGIN SETUP")); break;
+ case BeginBtnState::SettingUp: begin_btn_->setText(tr("SETTING UP...")); break;
+ case BeginBtnState::Retry: begin_btn_->setText(tr("RETRY SETUP")); break;
+ case BeginBtnState::Launch: begin_btn_->setText(tr("LAUNCH")); break;
+ case BeginBtnState::Continue: begin_btn_->setText(tr("CONTINUE SETUP")); break;
+ case BeginBtnState::AlreadyComplete: begin_btn_->setText(tr("ALREADY COMPLETE")); break;
+ }
+}
+
+void SetupScreen::update_status_label() {
+ if (!status_label_) return;
+ QString text;
+ QString color = colors::TEXT_TERTIARY();
+ switch (status_state_) {
+ case StatusState::Idle:
+ text = tr("Takes about 3–5 minutes. Needs an internet connection.");
+ break;
+ case StatusState::InProgress:
+ text = tr("Setup in progress — please keep the application open");
+ color = kAccent;
+ break;
+ case StatusState::AllDone:
+ text = tr("Everything is ready! Launching Fincept Terminal...");
+ color = colors::GREEN();
+ break;
+ case StatusState::AnyDone:
+ text = tr("Only the missing pieces will be downloaded. Needs an internet connection.");
+ break;
+ case StatusState::Failed:
+ text = tr("Setup failed: %1").arg(status_detail_.isEmpty()
+ ? tr("Unknown error — see logs for details.")
+ : status_detail_);
+ color = colors::RED();
+ break;
+ case StatusState::Timeout:
+ text = tr("Setup is taking longer than expected — possibly a slow internet connection.\n"
+ "You can wait or skip and continue with limited functionality.");
+ break;
+ case StatusState::Custom:
+ text = status_detail_;
+ break;
+ }
+ status_label_->setText(text);
+ status_label_->setStyleSheet(
+ QString("color:%1; font-family:%2; font-size:10px; margin-top:6px;").arg(color, fonts::DATA_FAMILY));
+}
+
+void SetupScreen::update_step_status(const QString& key) {
+ if (!steps_.contains(key)) return;
+ auto& s = steps_[key];
+ if (!s.status) return;
+ switch (s.status_state) {
+ case StepStatus::Waiting:
+ s.status->setText(tr("Waiting"));
+ s.status->setStyleSheet(QString("color:%1; font-family:%2; font-size:9px;")
+ .arg(colors::TEXT_TERTIARY(), fonts::DATA_FAMILY));
+ break;
+ case StepStatus::Working:
+ s.status->setText(tr("Working..."));
+ s.status->setStyleSheet(QString("color:%1; font-family:%2; font-size:9px;")
+ .arg(kAccent, fonts::DATA_FAMILY));
+ break;
+ case StepStatus::Done:
+ s.status->setText(tr("DONE"));
+ s.status->setStyleSheet(QString("color:%1; font-family:%2; font-size:9px;")
+ .arg(colors::GREEN(), fonts::DATA_FAMILY));
+ break;
+ case StepStatus::Failed:
+ s.status->setText(tr("FAILED"));
+ s.status->setStyleSheet(QString("color:%1; font-family:%2; font-size:9px;")
+ .arg(colors::RED(), fonts::DATA_FAMILY));
+ break;
+ case StepStatus::Percent:
+ // "%1%" is a locale-neutral numeric format — no translation needed.
+ s.status->setText(QStringLiteral("%1%").arg(s.percent));
+ s.status->setStyleSheet(QString("color:%1; font-family:%2; font-size:9px;")
+ .arg(kAccent, fonts::DATA_FAMILY));
+ break;
+ }
+}
+
+void SetupScreen::update_elapsed_label() {
+ if (!elapsed_lbl_) return;
+ if (elapsed_secs_ < 60)
+ elapsed_lbl_->setText(tr("Elapsed: %1s").arg(elapsed_secs_));
+ else
+ elapsed_lbl_->setText(tr("Elapsed: %1m %2s").arg(elapsed_secs_ / 60).arg(elapsed_secs_ % 60));
+}
+
// ─────────────────────────────────────────────────────────────────────────────
// Pulse helpers
// ─────────────────────────────────────────────────────────────────────────────
@@ -313,8 +450,8 @@ void SetupScreen::mark_step_active(const QString& key) {
if (!steps_.contains(key))
return;
auto& s = steps_[key];
- s.status->setText("Working...");
- s.status->setStyleSheet(QString("color:%1; font-family:%2; font-size:9px;").arg(kAccent, fonts::DATA_FAMILY));
+ s.status_state = StepStatus::Working;
+ update_step_status(key);
start_pulse(key);
}
@@ -324,21 +461,20 @@ void SetupScreen::mark_step_active(const QString& key) {
void SetupScreen::on_begin_setup() {
begin_btn_->setEnabled(false);
- begin_btn_->setText("SETTING UP...");
- status_label_->setText("Setup in progress — please keep the application open");
- status_label_->setStyleSheet(
- QString("color:%1; font-family:%2; font-size:10px; margin-top:6px;").arg(kAccent, fonts::DATA_FAMILY));
+ begin_btn_state_ = BeginBtnState::SettingUp;
+ update_begin_button();
+ status_state_ = StatusState::InProgress;
+ update_status_label();
- // Show liveness row and start throughput + elapsed meters.
setup_started_ms_ = QDateTime::currentMSecsSinceEpoch();
if (live_row_)
live_row_->setVisible(true);
- if (elapsed_lbl_)
- elapsed_lbl_->setText("Elapsed: 0s");
+ elapsed_secs_ = 0;
+ update_elapsed_label();
if (down_lbl_)
- down_lbl_->setText(QStringLiteral("\u2193 0 B/s"));
+ down_lbl_->setText(QStringLiteral("↓ 0 B/s"));
if (up_lbl_)
- up_lbl_->setText(QStringLiteral("\u2191 0 B/s"));
+ up_lbl_->setText(QStringLiteral("↑ 0 B/s"));
if (net_meter_)
net_meter_->start(1000);
if (elapsed_timer_)
@@ -350,24 +486,21 @@ void SetupScreen::on_begin_setup() {
}
void SetupScreen::on_net_speed(qint64 down_bps, qint64 up_bps) {
+ down_bps_ = down_bps;
+ up_bps_ = up_bps;
if (down_lbl_)
- down_lbl_->setText(QStringLiteral("\u2193 ") + fincept::net::NetSpeedMeter::format_bps(down_bps));
+ down_lbl_->setText(QStringLiteral("↓ ") + fincept::net::NetSpeedMeter::format_bps(down_bps));
if (up_lbl_)
- up_lbl_->setText(QStringLiteral("\u2191 ") + fincept::net::NetSpeedMeter::format_bps(up_bps));
+ up_lbl_->setText(QStringLiteral("↑ ") + fincept::net::NetSpeedMeter::format_bps(up_bps));
if (sparkline_)
sparkline_->push(down_bps);
}
void SetupScreen::on_elapsed_tick() {
- if (!elapsed_lbl_ || setup_started_ms_ == 0)
+ if (setup_started_ms_ == 0)
return;
- const qint64 secs = (QDateTime::currentMSecsSinceEpoch() - setup_started_ms_) / 1000;
- QString text;
- if (secs < 60)
- text = QString("Elapsed: %1s").arg(secs);
- else
- text = QString("Elapsed: %1m %2s").arg(secs / 60).arg(secs % 60);
- elapsed_lbl_->setText(text);
+ elapsed_secs_ = (QDateTime::currentMSecsSinceEpoch() - setup_started_ms_) / 1000;
+ update_elapsed_label();
}
void SetupScreen::on_progress(const python::SetupProgress& progress) {
@@ -377,40 +510,36 @@ void SetupScreen::on_progress(const python::SetupProgress& progress) {
auto& s = steps_[key];
if (progress.is_error) {
- // Stop pulse, show red failed badge
stop_pulse(key);
s.bar->setValue(s.pulse_val > 0 ? s.pulse_val : 0);
- s.status->setText("FAILED");
- s.status->setStyleSheet(
- QString("color:%1; font-family:%2; font-size:9px;").arg(colors::RED(), fonts::DATA_FAMILY));
+ s.status_state = StepStatus::Failed;
+ update_step_status(key);
} else if (progress.progress == 0) {
- // Step just started — kick off the pulse animation
mark_step_active(key);
} else if (progress.progress >= 100) {
- // Step finished — stop pulse and snap to full
mark_step_done(key);
} else {
- // Mid-step real progress (pass-2 per-package installs send real %)
stop_pulse(key);
s.bar->setValue(progress.progress);
- s.status->setText(QString("%1%").arg(progress.progress));
- s.status->setStyleSheet(
- QString("color:%1; font-family:%2; font-size:9px;").arg(kAccent, fonts::DATA_FAMILY));
+ s.percent = progress.progress;
+ s.status_state = StepStatus::Percent;
+ update_step_status(key);
}
}
- // Plain-English status line — strip internal technical messages
+ // Plain-English status line — keep raw, since the upstream messages can
+ // include identifiers like venv-numpy1 that need substitution.
QString msg = progress.message;
- // Replace internal step identifiers users don't need to see
- msg.replace("venv-numpy1", "Trading workspace");
- msg.replace("venv-numpy2", "Analytics workspace");
- msg.replace("requirements-numpy1.txt", "trading library list");
- msg.replace("requirements-numpy2.txt", "analytics library list");
- status_label_->setText(msg);
+ msg.replace(QLatin1String("venv-numpy1"), tr("Trading workspace"));
+ msg.replace(QLatin1String("venv-numpy2"), tr("Analytics workspace"));
+ msg.replace(QLatin1String("requirements-numpy1.txt"), tr("trading library list"));
+ msg.replace(QLatin1String("requirements-numpy2.txt"), tr("analytics library list"));
+ status_state_ = StatusState::Custom;
+ status_detail_ = msg;
+ update_status_label();
}
void SetupScreen::on_setup_done(bool success, const QString& error) {
- // Stop liveness meters regardless of outcome.
if (net_meter_)
net_meter_->stop();
if (elapsed_timer_)
@@ -418,23 +547,27 @@ void SetupScreen::on_setup_done(bool success, const QString& error) {
if (success) {
LOG_INFO("SetupScreen", "Python setup completed — all steps done");
- status_label_->setText("Everything is ready! Launching Fincept Terminal...");
- status_label_->setStyleSheet(
- QString("color:%1; font-family:%2; font-size:10px; margin-top:6px;").arg(colors::GREEN(), fonts::DATA_FAMILY));
- begin_btn_->setText("LAUNCH");
+ status_state_ = StatusState::AllDone;
+ status_detail_.clear();
+ update_status_label();
+ begin_btn_state_ = BeginBtnState::Launch;
+ update_begin_button();
if (timeout_timer_)
timeout_timer_->stop();
QTimer::singleShot(1500, this, [this]() { emit setup_complete(); });
} else {
- // Stop all running pulses
for (auto it = steps_.keyBegin(); it != steps_.keyEnd(); ++it)
stop_pulse(*it);
begin_btn_->setEnabled(true);
- begin_btn_->setText("RETRY SETUP");
- status_label_->setText("Something went wrong during setup. Check your internet connection and try again.");
- status_label_->setStyleSheet(
- QString("color:%1; font-family:%2; font-size:10px; margin-top:6px;").arg(colors::RED(), fonts::DATA_FAMILY));
+ begin_btn_state_ = BeginBtnState::Retry;
+ update_begin_button();
+ // Surface the underlying error so users can act on package-name or
+ // network hints instead of getting a generic "check your internet".
+ status_state_ = StatusState::Failed;
+ status_detail_ = error.trimmed().left(240);
+ update_status_label();
+ status_label_->setWordWrap(true);
LOG_ERROR("SetupScreen", "Setup failed: " + error);
}
}
@@ -454,10 +587,8 @@ void SetupScreen::on_skip_clicked() {
void SetupScreen::on_setup_timeout() {
LOG_WARN("SetupScreen", "Setup timed out after 15 minutes — showing skip option");
- status_label_->setText("Setup is taking longer than expected — possibly a slow internet connection.\n"
- "You can wait or skip and continue with limited functionality.");
- status_label_->setStyleSheet(QString("color:%1; font-family:%2; font-size:10px; margin-top:6px;")
- .arg(colors::TEXT_TERTIARY(), fonts::DATA_FAMILY));
+ status_state_ = StatusState::Timeout;
+ update_status_label();
if (skip_btn_)
skip_btn_->setVisible(true);
}
@@ -468,8 +599,8 @@ void SetupScreen::mark_step_done(const QString& key) {
stop_pulse(key);
auto& s = steps_[key];
s.bar->setValue(100);
- s.status->setText("DONE");
- s.status->setStyleSheet(QString("color:%1; font-family:%2; font-size:9px;").arg(colors::GREEN(), fonts::DATA_FAMILY));
+ s.status_state = StepStatus::Done;
+ update_step_status(key);
}
void SetupScreen::prefill_completed_steps() {
@@ -486,10 +617,8 @@ void SetupScreen::prefill_completed_steps() {
self->mark_step_done("uv");
if (status.python_installed)
self->mark_step_done("python");
- // "venv" step = both venv directories created (python exe present)
if (status.venv_numpy1_created && status.venv_numpy2_created)
self->mark_step_done("venv");
- // package steps = packages actually installed (marker file present)
if (status.venv_numpy1_ready)
self->mark_step_done("packages-numpy1");
if (status.venv_numpy2_ready)
@@ -504,20 +633,25 @@ void SetupScreen::prefill_completed_steps() {
self->summary_lbl_->setText({});
if (all_done) {
- self->subtitle_lbl_->setText("Your workspace is fully configured");
+ self->subtitle_state_ = SubtitleState::AlreadyConfigured;
+ self->begin_btn_state_ = BeginBtnState::AlreadyComplete;
self->begin_btn_->setEnabled(false);
- self->begin_btn_->setText("ALREADY COMPLETE");
- self->status_label_->setText("Everything is installed and ready to go.");
+ self->status_state_ = StatusState::Custom;
+ self->status_detail_ = self->tr("Everything is installed and ready to go.");
} else if (any_done) {
- self->subtitle_lbl_->setText("Finishing your workspace setup");
- self->begin_btn_->setText("CONTINUE SETUP");
- self->status_label_->setText(
- "Only the missing pieces will be downloaded. Needs an internet connection.");
+ self->subtitle_state_ = SubtitleState::Finishing;
+ self->begin_btn_state_ = BeginBtnState::Continue;
+ self->status_state_ = StatusState::AnyDone;
+ self->status_detail_.clear();
} else {
- self->subtitle_lbl_->setText("Getting your workspace ready");
- self->begin_btn_->setText("BEGIN SETUP");
- self->status_label_->setText("Takes about 3–5 minutes. Needs an internet connection.");
+ self->subtitle_state_ = SubtitleState::Ready;
+ self->begin_btn_state_ = BeginBtnState::Begin;
+ self->status_state_ = StatusState::Idle;
+ self->status_detail_.clear();
}
+ self->update_subtitle();
+ self->update_begin_button();
+ self->update_status_label();
}, Qt::QueuedConnection);
});
}
diff --git a/fincept-qt/src/screens/setup/SetupScreen.h b/fincept-qt/src/screens/setup/SetupScreen.h
index 6499f39ab..380d3a93e 100644
--- a/fincept-qt/src/screens/setup/SetupScreen.h
+++ b/fincept-qt/src/screens/setup/SetupScreen.h
@@ -1,6 +1,11 @@
// src/screens/setup/SetupScreen.h
// First-run setup screen — shown when Python environment is not installed.
// Displays setup steps with progress bars and a BEGIN SETUP button.
+//
+// Internationalised: all user-facing strings flow through tr(). State-driven
+// labels (subtitle, primary button, status line) are derived from member
+// state enums so retranslateUi() can reapply the right text after a language
+// switch without losing the current state.
#pragma once
#include <QLabel>
@@ -36,29 +41,57 @@ class SetupScreen : public QWidget {
void on_begin_setup();
void on_progress(const fincept::python::SetupProgress& progress);
void on_setup_done(bool success, const QString& error);
- void on_skip_clicked(); // user-initiated skip
- void on_setup_timeout(); // overall 15-min timeout fired
+ void on_skip_clicked();
+ void on_setup_timeout();
void on_net_speed(qint64 down_bps, qint64 up_bps);
void on_elapsed_tick();
+ protected:
+ void changeEvent(QEvent* event) override;
+
private:
void build_ui();
- QWidget* build_step_row(const QString& key, const QString& label, const QString& sublabel);
+ QWidget* build_step_row(const QString& key);
void prefill_completed_steps();
void mark_step_done(const QString& key);
- void mark_step_active(const QString& key); // highlights the currently running step
- void start_pulse(const QString& key); // starts indeterminate pulse on a bar
- void stop_pulse(const QString& key); // stops pulse, keeps value
+ void mark_step_active(const QString& key);
+ void start_pulse(const QString& key);
+ void stop_pulse(const QString& key);
+
+ /// Reapply translated text to every widget cached as a member pointer.
+ /// State-dependent labels are re-derived from member state enums so
+ /// retranslating mid-flow doesn't lose the current screen state.
+ void retranslateUi();
+ void update_subtitle();
+ void update_begin_button();
+ void update_status_label();
+ void update_step_status(const QString& key);
+ void update_elapsed_label();
+
+ // ── State enums for runtime-translatable dynamic text ───────────────────
+ enum class SubtitleState { Ready, AlreadyConfigured, Finishing };
+ enum class BeginBtnState { Begin, SettingUp, Retry, Launch, Continue, AlreadyComplete };
+ enum class StatusState { Idle, InProgress, AllDone, AnyDone, Failed, Timeout, Custom };
+
+ SubtitleState subtitle_state_ = SubtitleState::Ready;
+ BeginBtnState begin_btn_state_ = BeginBtnState::Begin;
+ StatusState status_state_ = StatusState::Idle;
+ /// Detail string baked into the current status — e.g. the python error
+ /// surfaced for StatusState::Failed, or a raw progress message used for
+ /// StatusState::Custom. Stored verbatim and re-rendered with the active
+ /// language template.
+ QString status_detail_;
QPushButton* begin_btn_ = nullptr;
QPushButton* skip_btn_ = nullptr;
+ QLabel* title_lbl_ = nullptr; // FINCEPT TERMINAL — brand, not translated
QLabel* status_label_ = nullptr;
QLabel* subtitle_lbl_ = nullptr;
+ QLabel* intro_lbl_ = nullptr;
QLabel* summary_lbl_ = nullptr;
- QTimer* timeout_timer_ = nullptr; // 15-min overall timeout
+ QLabel* install_dir_lbl_ = nullptr;
+ QTimer* timeout_timer_ = nullptr;
- // Liveness indicator — shown while setup is running so users can see
- // network activity even during long silent package installs.
QWidget* live_row_ = nullptr;
QLabel* down_lbl_ = nullptr;
QLabel* up_lbl_ = nullptr;
@@ -67,15 +100,23 @@ class SetupScreen : public QWidget {
fincept::net::NetSpeedMeter* net_meter_ = nullptr;
QTimer* elapsed_timer_ = nullptr;
qint64 setup_started_ms_ = 0;
+ qint64 elapsed_secs_ = 0;
+ qint64 down_bps_ = 0;
+ qint64 up_bps_ = 0;
+
+ /// Per-step status state. "Waiting" is the default; transitions to
+ /// "Working...", an integer percentage string, "DONE", or "FAILED".
+ enum class StepStatus { Waiting, Working, Done, Failed, Percent };
- // Step progress bars (keyed by step name)
struct StepUI {
QLabel* label = nullptr;
- QLabel* sublabel = nullptr; // plain-English description below the label
+ QLabel* sublabel = nullptr;
QProgressBar* bar = nullptr;
QLabel* status = nullptr;
- QTimer* pulse = nullptr; // drives indeterminate animation
- int pulse_val = 0; // current pulse position 0-99
+ QTimer* pulse = nullptr;
+ int pulse_val = 0;
+ StepStatus status_state = StepStatus::Waiting;
+ int percent = 0;
};
QMap<QString, StepUI> steps_;
};
diff --git a/fincept-qt/src/services/economics/MacroCalendarService.cpp b/fincept-qt/src/services/economics/MacroCalendarService.cpp
index a926d1a61..88eacd9ae 100644
--- a/fincept-qt/src/services/economics/MacroCalendarService.cpp
+++ b/fincept-qt/src/services/economics/MacroCalendarService.cpp
@@ -3,12 +3,16 @@
#include "core/logging/Logger.h"
#include "datahub/DataHub.h"
#include "datahub/TopicPolicy.h"
-#include "network/http/HttpClient.h"
#include <QJsonDocument>
#include <QJsonObject>
+#include <QJsonParseError>
#include <QJsonValue>
+#include <QNetworkAccessManager>
+#include <QNetworkReply>
+#include <QNetworkRequest>
#include <QPointer>
+#include <QUrl>
namespace fincept::services {
@@ -16,6 +20,13 @@ namespace {
constexpr const char* kTopic = "econ:fincept:upcoming_events";
constexpr const char* kUrl = "https://api.fincept.in/macro/upcoming-events?limit=25";
+// Endpoint-specific API key. The shared HttpClient singleton attaches the
+// signed-in user's session key to same-host requests; this endpoint requires
+// an explicit user-issued key separate from session auth, so we hand-build
+// the request via a private QNetworkAccessManager rather than polluting
+// HttpClient's global api_key_ state.
+constexpr const char* kApiKey = "fk_user_IYchlC3isi4NG5jtjkrNWX4nF3iPHgsFTT5rZ9TkpTQ";
+
QJsonArray parse_events(const QJsonDocument& doc) {
if (doc.isArray())
return doc.array();
@@ -44,7 +55,9 @@ MacroCalendarService& MacroCalendarService::instance() {
return s;
}
-MacroCalendarService::MacroCalendarService(QObject* parent) : QObject(parent) {}
+MacroCalendarService::MacroCalendarService(QObject* parent) : QObject(parent) {
+ nam_ = new QNetworkAccessManager(this);
+}
void MacroCalendarService::ensure_registered_with_hub() {
if (hub_registered_)
@@ -72,20 +85,38 @@ void MacroCalendarService::refresh(const QStringList& topics) {
if (!topics.contains(QString::fromLatin1(kTopic)))
return;
+ QNetworkRequest req{QUrl(QString::fromLatin1(kUrl))};
+ req.setHeader(QNetworkRequest::ContentTypeHeader, "application/json");
+ req.setHeader(QNetworkRequest::UserAgentHeader, "FinceptTerminal/4.0");
+ req.setRawHeader("X-API-Key", QByteArray(kApiKey));
+
QPointer<MacroCalendarService> self = this;
- fincept::HttpClient::instance().get(QString::fromLatin1(kUrl),
- [self](fincept::Result<QJsonDocument> result) {
- if (!self)
- return;
- auto& hub = fincept::datahub::DataHub::instance();
- if (!result.is_ok()) {
- hub.publish_error(QString::fromLatin1(kTopic),
- QString::fromStdString(result.error()));
- return;
- }
- const QJsonArray events = parse_events(result.value());
- hub.publish(QString::fromLatin1(kTopic), QVariant::fromValue(events));
- });
+ QNetworkReply* reply = nam_->get(req);
+ connect(reply, &QNetworkReply::finished, this, [self, reply]() {
+ reply->deleteLater();
+ if (!self)
+ return;
+ auto& hub = fincept::datahub::DataHub::instance();
+
+ if (reply->error() != QNetworkReply::NoError) {
+ const int status = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
+ const QString msg = QStringLiteral("HTTP %1: %2").arg(status).arg(reply->errorString());
+ LOG_WARN("MacroCalendarService", msg);
+ hub.publish_error(QString::fromLatin1(kTopic), msg);
+ return;
+ }
+
+ QJsonParseError perr{};
+ const QJsonDocument doc = QJsonDocument::fromJson(reply->readAll(), &perr);
+ if (perr.error != QJsonParseError::NoError) {
+ const QString msg = QStringLiteral("Parse error: %1").arg(perr.errorString());
+ LOG_WARN("MacroCalendarService", msg);
+ hub.publish_error(QString::fromLatin1(kTopic), msg);
+ return;
+ }
+ const QJsonArray events = parse_events(doc);
+ hub.publish(QString::fromLatin1(kTopic), QVariant::fromValue(events));
+ });
}
} // namespace fincept::services
diff --git a/fincept-qt/src/services/economics/MacroCalendarService.h b/fincept-qt/src/services/economics/MacroCalendarService.h
index 4d853d522..8f60f428e 100644
--- a/fincept-qt/src/services/economics/MacroCalendarService.h
+++ b/fincept-qt/src/services/economics/MacroCalendarService.h
@@ -39,6 +39,7 @@ class MacroCalendarService : public QObject
Q_DISABLE_COPY(MacroCalendarService)
bool hub_registered_ = false;
+ class QNetworkAccessManager* nam_ = nullptr; ///< Dedicated NAM so we can attach the per-endpoint API key without polluting the shared HttpClient auth header.
};
} // namespace fincept::services
diff --git a/fincept-qt/src/services/llm/LlmModelsApi.cpp b/fincept-qt/src/services/llm/LlmModelsApi.cpp
index ad2c7a16f..4363bf01d 100644
--- a/fincept-qt/src/services/llm/LlmModelsApi.cpp
+++ b/fincept-qt/src/services/llm/LlmModelsApi.cpp
@@ -13,6 +13,7 @@
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QNetworkRequest>
+#include <QRegularExpression>
#include <QString>
#include <QStringList>
#include <QTimer>
@@ -38,11 +39,22 @@ QString LlmService::get_models_url(const QString& provider, const QString& api_k
// Custom base_url (except fincept) — assume OpenAI-compatible /v1/models.
if (!base_url.isEmpty() && p != "fincept") {
QString base = base_url;
- if (base.endsWith('/'))
+ while (base.endsWith('/'))
base.chop(1);
- if (p == "anthropic")
- return base + "/v1/models?limit=1000";
- return base + "/v1/models";
+
+ const QString suffix = (p == "anthropic") ? QStringLiteral("/models?limit=1000")
+ : QStringLiteral("/models");
+
+ // Already a full endpoint — use verbatim.
+ if (base.contains(QStringLiteral("/models")))
+ return base;
+
+ // Base already includes a version segment (e.g. ".../v1", ".../v1beta") —
+ // append only the suffix. Otherwise inject the default "/v1".
+ static const QRegularExpression re(QStringLiteral("/v\\d+[a-zA-Z]*$"));
+ if (re.match(base).hasMatch())
+ return base + suffix;
+ return base + QStringLiteral("/v1") + suffix;
}
if (p == "openai") return "https://api.openai.com/v1/models";
diff --git a/fincept-qt/src/services/llm/LlmService.cpp b/fincept-qt/src/services/llm/LlmService.cpp
index d4e262c92..c0e7d7bfb 100644
--- a/fincept-qt/src/services/llm/LlmService.cpp
+++ b/fincept-qt/src/services/llm/LlmService.cpp
@@ -318,11 +318,22 @@ QString LlmService::get_endpoint_url() const {
// Custom base_url wins over hard-coded defaults.
if (!base_url_.isEmpty()) {
QString base = base_url_;
- if (base.endsWith('/'))
+ while (base.endsWith('/'))
base.chop(1);
- if (p == "anthropic")
- return base + "/v1/messages";
- return base + "/v1/chat/completions";
+
+ const QString suffix = (p == "anthropic") ? QStringLiteral("/messages")
+ : QStringLiteral("/chat/completions");
+
+ // Already a full endpoint — use verbatim.
+ if (base.endsWith(suffix))
+ return base;
+
+ // Base already includes a version segment (e.g. ".../v1", ".../v1beta") —
+ // append only the suffix. Otherwise inject the default "/v1".
+ static const QRegularExpression re(QStringLiteral("/v\\d+[a-zA-Z]*$"));
+ if (re.match(base).hasMatch())
+ return base + suffix;
+ return base + QStringLiteral("/v1") + suffix;
}
if (p == "openai")
diff --git a/fincept-qt/src/services/markets/MarketDataService.cpp b/fincept-qt/src/services/markets/MarketDataService.cpp
index a666707aa..dd48c1f56 100644
--- a/fincept-qt/src/services/markets/MarketDataService.cpp
+++ b/fincept-qt/src/services/markets/MarketDataService.cpp
@@ -144,15 +144,39 @@ void MarketDataService::refresh(const QStringList& topics) {
// object so root is already the {quotes,sparklines,histories} map.
// publish to hub, store in cache. We don't need the flush_batch code
// path here because no callback chain is waiting on this refresh tick.
+ //
+ // CRITICAL: every requested topic MUST end with either publish()
+ // (success) or publish_error() (failure) so the hub clears its
+ // `in_flight` flag. Silently dropping errored/missing symbols
+ // pins the topic for 30s (refresh_timeout_ms) and triggers the
+ // BaseWidget watchdog to render "No data yet — click refresh to
+ // retry" on every dashboard widget that subscribed to one of
+ // them. yfinance fails per-symbol frequently (rate limits,
+ // closed-market windows like ^N225 outside Asia hours, transient
+ // 4xx), so tracking and erroring on misses is the difference
+ // between "tile flashes a row missing" and "tile permanently
+ // stuck in loading state".
+ auto& hub = datahub::DataHub::instance();
const QJsonArray quotes_arr = root.value("quotes").toArray();
+ QSet<QString> quotes_seen;
int quotes_ok = 0;
for (const auto& v : quotes_arr) {
const QJsonObject q = v.toObject();
- if (q.isEmpty() || q.contains("error"))
+ const QString sym = q.value("symbol").toString();
+ if (!sym.isEmpty())
+ quotes_seen.insert(sym);
+ if (q.isEmpty() || q.contains("error")) {
+ if (!sym.isEmpty()) {
+ const QString errstr =
+ q.value("error").toString(QStringLiteral("no data"));
+ hub.publish_error(QStringLiteral("market:quote:") + sym,
+ errstr.left(200));
+ }
continue;
+ }
QuoteData qd{
- q["symbol"].toString(),
- q["name"].toString(q["symbol"].toString()),
+ sym,
+ q["name"].toString(sym),
q["price"].toDouble(),
q["change"].toDouble(),
q["change_percent"].toDouble(),
@@ -178,14 +202,26 @@ void MarketDataService::refresh(const QStringList& topics) {
self->publish_quote_to_hub(qd);
++quotes_ok;
}
+ // Any requested quote symbol that didn't appear in the response
+ // at all — surface as an error so the hub doesn't pin it.
+ for (const auto& s : quote_syms) {
+ if (!quotes_seen.contains(s))
+ hub.publish_error(QStringLiteral("market:quote:") + s,
+ QStringLiteral("missing from batch response"));
+ }
// Sparklines — {sym: [closes]}
const QJsonObject sparks = root.value("sparklines").toObject();
+ QSet<QString> sparks_seen;
int sparks_ok = 0;
for (auto it = sparks.begin(); it != sparks.end(); ++it) {
+ sparks_seen.insert(it.key());
const QJsonArray closes = it.value().toArray();
- if (closes.isEmpty())
+ if (closes.isEmpty()) {
+ hub.publish_error(QStringLiteral("market:sparkline:") + it.key(),
+ QStringLiteral("no data"));
continue;
+ }
QVector<double> prices;
prices.reserve(closes.size());
for (const auto& c : closes)
@@ -193,17 +229,32 @@ void MarketDataService::refresh(const QStringList& topics) {
self->publish_sparkline_to_hub(it.key(), prices);
++sparks_ok;
}
+ for (const auto& s : spark_syms) {
+ if (!sparks_seen.contains(s))
+ hub.publish_error(QStringLiteral("market:sparkline:") + s,
+ QStringLiteral("missing from batch response"));
+ }
// Histories — array of {symbol, period, interval, points[]}
const QJsonArray hists = root.value("histories").toArray();
+ QSet<QString> hists_seen;
int hists_ok = 0;
for (const auto& hv : hists) {
const QJsonObject h = hv.toObject();
- if (h.contains("error"))
- continue;
const QString sym = h.value("symbol").toString();
const QString per = h.value("period").toString();
const QString ivl = h.value("interval").toString();
+ const QString topic = QStringLiteral("market:history:") + sym +
+ QLatin1Char(':') + per +
+ QLatin1Char(':') + ivl;
+ if (!sym.isEmpty() && !per.isEmpty() && !ivl.isEmpty())
+ hists_seen.insert(topic);
+ if (h.contains("error")) {
+ const QString errstr =
+ h.value("error").toString(QStringLiteral("no data"));
+ hub.publish_error(topic, errstr.left(200));
+ continue;
+ }
const QJsonArray pts = h.value("points").toArray();
QVector<HistoryPoint> points;
points.reserve(pts.size());
@@ -221,6 +272,11 @@ void MarketDataService::refresh(const QStringList& topics) {
self->publish_history_to_hub(sym, per, ivl, points);
++hists_ok;
}
+ for (const auto& h : hist_reqs) {
+ if (!hists_seen.contains(h.topic))
+ hub.publish_error(h.topic,
+ QStringLiteral("missing from batch response"));
+ }
LOG_INFO("MarketData",
QString("batch_all OK in %1ms: quotes=%2/%3 sparks=%4/%5 hists=%6/%7")
diff --git a/fincept-qt/src/services/tts/TtsService.cpp b/fincept-qt/src/services/tts/TtsService.cpp
index bf66dcd73..199c6d69f 100644
--- a/fincept-qt/src/services/tts/TtsService.cpp
+++ b/fincept-qt/src/services/tts/TtsService.cpp
@@ -301,8 +301,8 @@ class Pyttsx3TtsProvider final : public PythonTtsProvider {
// ── DeepgramTtsProvider ──────────────────────────────────────────────────────
//
// POSTs text to Deepgram /v1/speak (Aura-2 voices) and pipes returned PCM
-// straight into pyaudio. Reads API key from SecureStorage; voice model from
-// AppConfig key "voice/deepgram/tts_model".
+// straight into sounddevice. Reads API key from SecureStorage; voice model
+// from AppConfig key "voice/deepgram/tts_model".
class DeepgramTtsProvider final : public PythonTtsProvider {
public:
diff --git a/fincept-qt/src/ui/navigation/FKeyBar.cpp b/fincept-qt/src/ui/navigation/FKeyBar.cpp
index 86ef0a354..2ab514cac 100644
--- a/fincept-qt/src/ui/navigation/FKeyBar.cpp
+++ b/fincept-qt/src/ui/navigation/FKeyBar.cpp
@@ -3,6 +3,8 @@
#include "ui/theme/Theme.h"
#include "ui/theme/ThemeManager.h"
+#include <QEvent>
+
namespace fincept::ui {
TabBar::TabBar(QWidget* parent) : QWidget(parent) {
@@ -17,31 +19,50 @@ TabBar::TabBar(QWidget* parent) : QWidget(parent) {
tab_layout_->setContentsMargins(4, 0, 4, 0);
tab_layout_->setSpacing(2);
- QVector<TabDef> tabs = {
+ tab_defs_ = {
{"dashboard", "DASHBOARD"}, {"markets", "MARKETS"}, {"crypto_trading", "CRYPTO"}, {"portfolio", "PORTFOLIO"},
{"news", "NEWS"}, {"ai_chat", "AI CHAT"}, {"backtesting", "BACKTEST"}, {"algo_trading", "ALGO"},
{"node_editor", "NODES"}, {"code_editor", "CODE"}, {"ai_quant_lab", "QUANT LAB"}, {"quantlib", "QUANTLIB"},
{"forum", "FORUM"}, {"settings", "SETTINGS"}, {"profile", "PROFILE"},
};
- for (const auto& def : tabs)
+ for (const auto& def : tab_defs_)
add_tab(def);
scroll_area->setWidget(container);
auto* root = new QHBoxLayout(this);
root->setContentsMargins(0, 0, 0, 0);
root->addWidget(scroll_area);
+ retranslateUi();
+
connect(&ThemeManager::instance(), &ThemeManager::theme_changed, this,
[this](const ThemeTokens&) { refresh_theme(); });
refresh_theme();
}
+void TabBar::changeEvent(QEvent* e) {
+ if (e->type() == QEvent::LanguageChange) {
+ retranslateUi();
+ }
+ QWidget::changeEvent(e);
+}
+
+void TabBar::retranslateUi() {
+ // Tab definitions and button order are stable — walk in parallel and
+ // reapply translated text + tooltip via the source label as the tr() key.
+ for (int i = 0; i < tab_defs_.size() && i < tab_buttons_.size(); ++i) {
+ const QString text = tr(tab_defs_[i].source_label.toUtf8().constData());
+ tab_buttons_[i]->setText(text);
+ tab_buttons_[i]->setToolTip(text);
+ }
+}
+
void TabBar::add_tab(const TabDef& def) {
- auto* btn = new QPushButton(def.label);
+ auto* btn = new QPushButton(def.source_label);
btn->setFixedHeight(32);
btn->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed);
btn->setCursor(Qt::PointingHandCursor);
btn->setProperty("tab_id", def.id);
- btn->setToolTip(def.label);
+ btn->setToolTip(def.source_label);
connect(btn, &QPushButton::clicked, this, [this, id = def.id]() {
set_active(id);
emit tab_changed(id);
diff --git a/fincept-qt/src/ui/navigation/FKeyBar.h b/fincept-qt/src/ui/navigation/FKeyBar.h
index 47022148c..2234e0011 100644
--- a/fincept-qt/src/ui/navigation/FKeyBar.h
+++ b/fincept-qt/src/ui/navigation/FKeyBar.h
@@ -2,6 +2,8 @@
#include <QHBoxLayout>
#include <QPushButton>
#include <QScrollArea>
+#include <QString>
+#include <QVector>
#include <QWidget>
namespace fincept::ui {
@@ -9,6 +11,10 @@ namespace fincept::ui {
/// Scrollable tab bar.
/// Tabs: Dashboard, Markets, Portfolio, News, Report Builder,
/// Settings, Profile, About, Support
+///
+/// Internationalised: tab labels retranslate via tr() on
+/// QEvent::LanguageChange. Tab IDs stay stable (Latin keys) so screen
+/// routing isn't affected by language switching.
class TabBar : public QWidget {
Q_OBJECT
public:
@@ -20,18 +26,23 @@ class TabBar : public QWidget {
signals:
void tab_changed(const QString& tab_id);
+ protected:
+ void changeEvent(QEvent* e) override;
+
private:
struct TabDef {
QString id;
- QString label;
+ QString source_label; // English source key (used for tr() lookup)
};
QHBoxLayout* tab_layout_ = nullptr;
QVector<QPushButton*> tab_buttons_;
+ QVector<TabDef> tab_defs_;
QString active_id_ = "dashboard";
void add_tab(const TabDef& def);
void refresh_theme();
+ void retranslateUi();
void update_styles();
};
diff --git a/fincept-qt/src/ui/navigation/StatusBar.cpp b/fincept-qt/src/ui/navigation/StatusBar.cpp
index 522fd4098..82c31c26a 100644
--- a/fincept-qt/src/ui/navigation/StatusBar.cpp
+++ b/fincept-qt/src/ui/navigation/StatusBar.cpp
@@ -7,6 +7,8 @@
#include "ui/theme/Theme.h"
#include "ui/theme/ThemeManager.h"
+#include <QEvent>
+
namespace fincept::ui {
StatusBar::StatusBar(QWidget* parent) : QWidget(parent) {
@@ -40,9 +42,11 @@ StatusBar::StatusBar(QWidget* parent) : QWidget(parent) {
hl->addWidget(link_label_);
hl->addWidget(mk(" | ", "sbSep2"));
- ready_label_ = mk("READY", "sbReady");
+ ready_label_ = mk({}, "sbReady");
hl->addWidget(ready_label_);
+ retranslateUi();
+
connect(&ThemeManager::instance(), &ThemeManager::theme_changed, this,
[this](const ThemeTokens&) { refresh_theme(); });
refresh_theme();
@@ -50,6 +54,18 @@ StatusBar::StatusBar(QWidget* parent) : QWidget(parent) {
wire_link_indicator();
}
+void StatusBar::changeEvent(QEvent* e) {
+ if (e->type() == QEvent::LanguageChange) {
+ retranslateUi();
+ }
+ QWidget::changeEvent(e);
+}
+
+void StatusBar::retranslateUi() {
+ if (ready_label_)
+ ready_label_->setText(ready_state_ ? tr("READY") : tr("BUSY"));
+}
+
void StatusBar::wire_link_indicator() {
auto& ctx = fincept::SymbolContext::instance();
// Update on every active-symbol publish. Phase 7 already broadcasts
@@ -133,7 +149,8 @@ void StatusBar::refresh_theme() {
}
void StatusBar::set_ready(bool ready) {
- ready_label_->setText(ready ? "READY" : "BUSY");
+ ready_state_ = ready;
+ ready_label_->setText(ready ? tr("READY") : tr("BUSY"));
ready_label_->setStyleSheet(QString("color:%1;font-weight:700;background:transparent;")
.arg(ready ? colors::POSITIVE() : colors::TEXT_TERTIARY()));
}
diff --git a/fincept-qt/src/ui/navigation/StatusBar.h b/fincept-qt/src/ui/navigation/StatusBar.h
index 6502b226c..c344761c0 100644
--- a/fincept-qt/src/ui/navigation/StatusBar.h
+++ b/fincept-qt/src/ui/navigation/StatusBar.h
@@ -11,14 +11,19 @@ enum class SymbolGroup : char;
namespace fincept::ui {
/// Bottom status bar: version, feed indicators, ready status, active-symbol indicator.
+/// Internationalised — READY/BUSY label retranslates on QEvent::LanguageChange.
class StatusBar : public QWidget {
Q_OBJECT
public:
explicit StatusBar(QWidget* parent = nullptr);
void set_ready(bool ready);
+ protected:
+ void changeEvent(QEvent* e) override;
+
private:
void refresh_theme();
+ void retranslateUi();
/// Subscribes to SymbolContext::active_symbol_changed to mirror the most recent group publish.
void wire_link_indicator();
@@ -26,6 +31,9 @@ class StatusBar : public QWidget {
QLabel* ready_label_ = nullptr;
QLabel* link_label_ = nullptr;
+ /// Tracks the current ready/busy state so retranslateUi() can recompute
+ /// the translated label without depending on the existing widget text.
+ bool ready_state_ = true;
};
} // namespace fincept::ui
diff --git a/fincept-qt/src/ui/navigation/ToolBar.cpp b/fincept-qt/src/ui/navigation/ToolBar.cpp
index 0b2080a07..041e635b0 100644
--- a/fincept-qt/src/ui/navigation/ToolBar.cpp
+++ b/fincept-qt/src/ui/navigation/ToolBar.cpp
@@ -1,4 +1,4 @@
-#include "ui/navigation/ToolBar.h"
+#include "ui/navigation/ToolBar.h"
#include "auth/AuthManager.h"
#include "ui/pushpins/PushpinBar.h"
@@ -7,6 +7,7 @@
#include <QAction>
#include <QDateTime>
+#include <QEvent>
#include <QFontMetrics>
#include <QGuiApplication>
#include <QHBoxLayout>
@@ -50,10 +51,7 @@ ToolBar::ToolBar(QWidget* parent) : QWidget(parent) {
// File/Navigate/View/Help missing from the toolbar row on Mac builds.
menu_bar_->setNativeMenuBar(false);
menu_bar_->setStyleSheet(menu_ss());
- menu_bar_->addMenu(build_file_menu());
- menu_bar_->addMenu(build_navigate_menu());
- menu_bar_->addMenu(build_view_menu());
- menu_bar_->addMenu(build_help_menu());
+ rebuild_menus();
hl->addWidget(menu_bar_);
command_bar_ = new CommandBar(this);
@@ -79,16 +77,17 @@ ToolBar::ToolBar(QWidget* parent) : QWidget(parent) {
};
sep();
- fincept_label_ = mk("FINCEPT ");
+ // FINCEPT / TERMINAL are brand marks — set raw, never translated.
+ fincept_label_ = mk(QStringLiteral("FINCEPT "));
hl->addWidget(fincept_label_);
- branding_label_ = mk("TERMINAL");
+ branding_label_ = mk(QStringLiteral("TERMINAL"));
hl->addWidget(branding_label_);
- subtitle_label_ = mk(" | PROFESSIONAL RESEARCH DESK");
+ subtitle_label_ = mk({});
hl->addWidget(subtitle_label_);
hl->addWidget(mk(" "));
- live_dot_ = mk("\xe2\x97\x8f");
+ live_dot_ = mk(QString::fromUtf8("\xe2\x97\x8f")); // U+25CF — pure icon, no translation
hl->addWidget(live_dot_);
- live_label_ = mk(" LIVE");
+ live_label_ = mk({});
hl->addWidget(live_label_);
sep();
@@ -117,28 +116,28 @@ ToolBar::ToolBar(QWidget* parent) : QWidget(parent) {
sep();
plan_btn_ = new QPushButton("---");
plan_btn_->setCursor(Qt::PointingHandCursor);
- plan_btn_->setToolTip("View Plans & Pricing");
plan_btn_->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
connect(plan_btn_, &QPushButton::clicked, this, &ToolBar::plan_clicked);
hl->addWidget(plan_btn_);
sep();
- chat_mode_btn_ = new QPushButton(QString::fromUtf8("⬡ CHAT"));
+ chat_mode_btn_ = new QPushButton;
chat_mode_btn_->setFixedHeight(20);
chat_mode_btn_->setCursor(Qt::PointingHandCursor);
- chat_mode_btn_->setToolTip("Switch to Chat Mode (F9)");
chat_mode_btn_->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
connect(chat_mode_btn_, &QPushButton::clicked, this, &ToolBar::chat_mode_toggled);
hl->addWidget(chat_mode_btn_);
sep();
- logout_btn_ = new QPushButton("LOGOUT");
+ logout_btn_ = new QPushButton;
logout_btn_->setFixedHeight(20);
logout_btn_->setCursor(Qt::PointingHandCursor);
logout_btn_->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
connect(logout_btn_, &QPushButton::clicked, this, &ToolBar::logout_clicked);
hl->addWidget(logout_btn_);
+ retranslateUi();
+
clock_timer_ = new QTimer(this);
clock_timer_->setInterval(1000);
connect(clock_timer_, &QTimer::timeout, this, &ToolBar::update_clock);
@@ -155,6 +154,44 @@ ToolBar::ToolBar(QWidget* parent) : QWidget(parent) {
refresh_theme();
}
+void ToolBar::changeEvent(QEvent* e) {
+ if (e->type() == QEvent::LanguageChange) {
+ retranslateUi();
+ }
+ QWidget::changeEvent(e);
+}
+
+void ToolBar::retranslateUi() {
+ if (subtitle_label_) subtitle_label_->setText(tr(" | PROFESSIONAL RESEARCH DESK"));
+ if (live_label_) live_label_->setText(tr(" LIVE"));
+ if (plan_btn_) plan_btn_->setToolTip(tr("View Plans & Pricing"));
+ if (chat_mode_btn_) {
+ // Keep the ⬡ glyph as a visual icon; only the label after it translates.
+ chat_mode_btn_->setText(QStringLiteral("\xe2\xac\xa1 ") + tr("CHAT"));
+ chat_mode_btn_->setToolTip(tr("Switch to Chat Mode (F9)"));
+ }
+ if (logout_btn_) logout_btn_->setText(tr("LOGOUT"));
+ // Rebuild menus so the new translator applies to every QAction label.
+ rebuild_menus();
+ // Refresh user display so "FREE" / "---" placeholders pick up new locale.
+ refresh_user_display();
+}
+
+void ToolBar::rebuild_menus() {
+ if (!menu_bar_) return;
+ menu_bar_->clear();
+ menu_bar_->addMenu(build_file_menu());
+ menu_bar_->addMenu(build_navigate_menu());
+ menu_bar_->addMenu(build_view_menu());
+ menu_bar_->addMenu(build_help_menu());
+ // Reapply popup stylesheet after rebuild — refresh_theme normally does
+ // this on theme change, but a pure language switch should also style
+ // the freshly created submenus.
+ for (auto* action : menu_bar_->actions())
+ if (action->menu())
+ action->menu()->setStyleSheet(popup_ss());
+}
+
void ToolBar::refresh_theme() {
setStyleSheet(QString("background:%1;border-bottom:1px solid %2;").arg(colors::BG_BASE()).arg(colors::BORDER_DIM()));
if (menu_bar_) {
@@ -251,28 +288,28 @@ void ToolBar::refresh_user_display() {
user_label_->setToolTip(name);
int credits = static_cast<int>(s.user_info.credit_balance);
- credits_label_->setText(QString("%1 CR").arg(credits));
+ credits_label_->setText(tr("%1 CR").arg(credits));
credits_label_->setStyleSheet(
QString("color:%1;background:transparent;")
.arg(s.user_info.credit_balance > 0 ? colors::POSITIVE.get() : colors::NEGATIVE.get()));
QString plan_text = s.account_type().toUpper();
- plan_btn_->setText(plan_text.isEmpty() ? "FREE" : plan_text);
+ plan_btn_->setText(plan_text.isEmpty() ? tr("FREE") : plan_text);
}
QMenu* ToolBar::build_file_menu() {
- auto* m = new QMenu("File", this);
+ auto* m = new QMenu(tr("File"), this);
m->setStyleSheet(popup_ss());
- m->addAction("New Window", this, [this]() { emit action_triggered("new_window"); });
+ m->addAction(tr("New Window"), this, [this]() { emit action_triggered("new_window"); });
// Rebuilt on popup so plug/unplug is reflected. Emits "move_to_monitor:<name>" — names are stable, indices aren't.
- auto* monitors = m->addMenu("Move to Monitor");
+ auto* monitors = m->addMenu(tr("Move to Monitor"));
monitors->setStyleSheet(popup_ss());
connect(monitors, &QMenu::aboutToShow, this, [this, monitors]() {
monitors->clear();
const auto screens = QGuiApplication::screens();
if (screens.size() <= 1) {
- auto* only = monitors->addAction("(single monitor)");
+ auto* only = monitors->addAction(tr("(single monitor)"));
only->setEnabled(false);
return;
}
@@ -280,6 +317,7 @@ QMenu* ToolBar::build_file_menu() {
for (QScreen* s : screens) {
const QString name = s->name();
const QSize size = s->size();
+ // Resolution format (W×H) is locale-neutral.
const QString label =
QString("%1. %2 (%3×%4)").arg(idx++).arg(name).arg(size.width()).arg(size.height());
monitors->addAction(label, this, [this, name]() {
@@ -289,22 +327,22 @@ QMenu* ToolBar::build_file_menu() {
});
m->addSeparator();
- m->addAction("New Layout", this, [this]() { emit action_triggered("layout_new"); });
- m->addAction("Open Layout…", this, [this]() { emit action_triggered("layout_open"); });
- m->addAction("Save Layout", this, [this]() { emit action_triggered("layout_save"); });
- m->addAction("Save Layout As…", this, [this]() { emit action_triggered("layout_save_as"); });
+ m->addAction(tr("New Layout"), this, [this]() { emit action_triggered("layout_new"); });
+ m->addAction(tr("Open Layout…"), this, [this]() { emit action_triggered("layout_open"); });
+ m->addAction(tr("Save Layout"), this, [this]() { emit action_triggered("layout_save"); });
+ m->addAction(tr("Save Layout As…"), this, [this]() { emit action_triggered("layout_save_as"); });
m->addSeparator();
- m->addAction("Import Layout", this, [this]() { emit action_triggered("import_data"); });
- m->addAction("Export Layout", this, [this]() { emit action_triggered("export_data"); });
+ m->addAction(tr("Import Layout"), this, [this]() { emit action_triggered("import_data"); });
+ m->addAction(tr("Export Layout"), this, [this]() { emit action_triggered("export_data"); });
m->addSeparator();
- m->addAction("File Manager", this, [this]() { emit navigate_to("file_manager"); });
+ m->addAction(tr("File Manager"), this, [this]() { emit navigate_to("file_manager"); });
m->addSeparator();
- m->addAction("Refresh All", this, [this]() { emit action_triggered("refresh"); });
+ m->addAction(tr("Refresh All"), this, [this]() { emit action_triggered("refresh"); });
return m;
}
QMenu* ToolBar::build_navigate_menu() {
- auto* m = new QMenu("Navigate", this);
+ auto* m = new QMenu(tr("Navigate"), this);
m->setStyleSheet(QString("QMenu{background:%1;color:%2;border:1px solid %3;padding:2px 0;}"
"QMenu::item{padding:3px 20px 3px 10px;}"
"QMenu::item:selected{background:%4;}"
@@ -328,142 +366,142 @@ QMenu* ToolBar::build_navigate_menu() {
menu->addAction(label, this, [this, id]() { emit navigate_to(id); });
};
- auto* mkt = add_sub("Markets & Data");
- nav(mkt, "Economics", "economics");
- nav(mkt, "GOVT Data", "gov_data");
- nav(mkt, "DBnomics", "dbnomics");
- nav(mkt, "AKShare Data", "akshare");
- nav(mkt, "Asia Markets", "asia_markets");
- nav(mkt, "Relationship Map", "relationship_map");
-
- auto* trd = add_sub("Trading & Portfolio");
- nav(trd, "Equity Trading", "equity_trading");
- nav(trd, "Alpha Arena", "alpha_arena");
- nav(trd, "Prediction Markets", "polymarket");
- nav(trd, "Derivatives", "derivatives");
- nav(trd, "F&&O", "fno");
- nav(trd, "Watchlist", "watchlist");
-
- auto* crypto = add_sub("Crypto");
- nav(crypto, "Crypto Center", "crypto_center");
-
- auto* res = add_sub("Research & Intelligence");
- nav(res, "Equity Research", "equity_research");
- nav(res, "M&A Analytics", "ma_analytics");
- nav(res, "Alt. Investments", "alt_investments");
- nav(res, "Geopolitics", "geopolitics");
- nav(res, "Maritime", "maritime");
- nav(res, "Surface Analytics", "surface_analytics");
-
- auto* tools = add_sub("Tools");
- nav(tools, "Agent Config", "agent_config");
- nav(tools, "MCP Servers", "mcp_servers");
- nav(tools, "Data Mapping", "data_mapping");
- nav(tools, "Data Sources", "data_sources");
- nav(tools, "Report Builder", "report_builder");
- nav(tools, "Excel", "excel");
- nav(tools, "Trade Viz", "trade_viz");
- nav(tools, "File Manager", "file_manager");
- nav(tools, "Notes", "notes");
+ auto* mkt = add_sub(tr("Markets & Data"));
+ nav(mkt, tr("Economics"), "economics");
+ nav(mkt, tr("GOVT Data"), "gov_data");
+ nav(mkt, tr("DBnomics"), "dbnomics");
+ nav(mkt, tr("AKShare Data"), "akshare");
+ nav(mkt, tr("Asia Markets"), "asia_markets");
+ nav(mkt, tr("Relationship Map"), "relationship_map");
+
+ auto* trd = add_sub(tr("Trading & Portfolio"));
+ nav(trd, tr("Equity Trading"), "equity_trading");
+ nav(trd, tr("Alpha Arena"), "alpha_arena");
+ nav(trd, tr("Prediction Markets"), "polymarket");
+ nav(trd, tr("Derivatives"), "derivatives");
+ nav(trd, tr("F&&O"), "fno");
+ nav(trd, tr("Watchlist"), "watchlist");
+
+ auto* crypto = add_sub(tr("Crypto"));
+ nav(crypto, tr("Crypto Center"), "crypto_center");
+
+ auto* res = add_sub(tr("Research & Intelligence"));
+ nav(res, tr("Equity Research"), "equity_research");
+ nav(res, tr("M&A Analytics"), "ma_analytics");
+ nav(res, tr("Alt. Investments"), "alt_investments");
+ nav(res, tr("Geopolitics"), "geopolitics");
+ nav(res, tr("Maritime"), "maritime");
+ nav(res, tr("Surface Analytics"), "surface_analytics");
+
+ auto* tools = add_sub(tr("Tools"));
+ nav(tools, tr("Agent Config"), "agent_config");
+ nav(tools, tr("MCP Servers"), "mcp_servers");
+ nav(tools, tr("Data Mapping"), "data_mapping");
+ nav(tools, tr("Data Sources"), "data_sources");
+ nav(tools, tr("Report Builder"), "report_builder");
+ nav(tools, tr("Excel"), "excel");
+ nav(tools, tr("Trade Viz"), "trade_viz");
+ nav(tools, tr("File Manager"), "file_manager");
+ nav(tools, tr("Notes"), "notes");
m->addSeparator();
- nav(m, "Forum", "forum");
- nav(m, "Docs", "docs");
- nav(m, "Support", "support");
- nav(m, "About", "about");
+ nav(m, tr("Forum"), "forum");
+ nav(m, tr("Docs"), "docs");
+ nav(m, tr("Support"), "support");
+ nav(m, tr("About"), "about");
return m;
}
QMenu* ToolBar::build_view_menu() {
- auto* m = new QMenu("View", this);
+ auto* m = new QMenu(tr("View"), this);
m->setStyleSheet(popup_ss());
- m->addAction("Component Browser\tCtrl+K", this,
+ m->addAction(tr("Component Browser\tCtrl+K"), this,
[this]() { emit action_triggered("browse_components"); });
m->addSeparator();
- m->addAction("Fullscreen\tF11", this, [this]() { emit action_triggered("fullscreen"); });
+ m->addAction(tr("Fullscreen\tF11"), this, [this]() { emit action_triggered("fullscreen"); });
m->addSeparator();
- m->addAction("Focus Mode\tF10", this, [this]() { emit action_triggered("focus_mode"); });
+ m->addAction(tr("Focus Mode\tF10"), this, [this]() { emit action_triggered("focus_mode"); });
// Not checkable — state lives on WindowFrame::always_on_top_; a checkable QAction would drift on focus changes.
- m->addAction("Always on Top\tCtrl+Shift+T", this,
+ m->addAction(tr("Always on Top\tCtrl+Shift+T"), this,
[this]() { emit action_triggered("always_on_top"); });
m->addSeparator();
- auto* panels = m->addMenu("Float Panel");
+ auto* panels = m->addMenu(tr("Float Panel"));
panels->setStyleSheet(popup_ss());
- panels->addAction("Dashboard", this, [this]() { emit action_triggered("panel_dashboard"); });
- panels->addAction("Watchlist", this, [this]() { emit action_triggered("panel_watchlist"); });
- panels->addAction("News Feed", this, [this]() { emit action_triggered("panel_news"); });
- panels->addAction("Portfolio", this, [this]() { emit action_triggered("panel_portfolio"); });
- panels->addAction("Markets", this, [this]() { emit action_triggered("panel_markets"); });
+ panels->addAction(tr("Dashboard"), this, [this]() { emit action_triggered("panel_dashboard"); });
+ panels->addAction(tr("Watchlist"), this, [this]() { emit action_triggered("panel_watchlist"); });
+ panels->addAction(tr("News Feed"), this, [this]() { emit action_triggered("panel_news"); });
+ panels->addAction(tr("Portfolio"), this, [this]() { emit action_triggered("panel_portfolio"); });
+ panels->addAction(tr("Markets"), this, [this]() { emit action_triggered("panel_markets"); });
panels->addSeparator();
- panels->addAction("Crypto Trading", this, [this]() { emit action_triggered("panel_crypto"); });
- panels->addAction("Equity Trading", this, [this]() { emit action_triggered("panel_equity"); });
- panels->addAction("Algo Trading", this, [this]() { emit action_triggered("panel_algo"); });
+ panels->addAction(tr("Crypto Trading"), this, [this]() { emit action_triggered("panel_crypto"); });
+ panels->addAction(tr("Equity Trading"), this, [this]() { emit action_triggered("panel_equity"); });
+ panels->addAction(tr("Algo Trading"), this, [this]() { emit action_triggered("panel_algo"); });
panels->addSeparator();
- panels->addAction("Equity Research", this, [this]() { emit action_triggered("panel_research"); });
- panels->addAction("Economics", this, [this]() { emit action_triggered("panel_economics"); });
- panels->addAction("Geopolitics", this, [this]() { emit action_triggered("panel_geopolitics"); });
- panels->addAction("AI Chat", this, [this]() { emit action_triggered("panel_ai_chat"); });
+ panels->addAction(tr("Equity Research"), this, [this]() { emit action_triggered("panel_research"); });
+ panels->addAction(tr("Economics"), this, [this]() { emit action_triggered("panel_economics"); });
+ panels->addAction(tr("Geopolitics"), this, [this]() { emit action_triggered("panel_geopolitics"); });
+ panels->addAction(tr("AI Chat"), this, [this]() { emit action_triggered("panel_ai_chat"); });
m->addSeparator();
- auto* persp = m->addMenu("Quick Switch");
+ auto* persp = m->addMenu(tr("Quick Switch"));
persp->setStyleSheet(popup_ss());
- persp->addAction("Save Workspace", this, [this]() { emit action_triggered("perspective_save"); });
+ persp->addAction(tr("Save Workspace"), this, [this]() { emit action_triggered("perspective_save"); });
persp->addSeparator();
- auto* qs_trading = persp->addMenu("Trading");
+ auto* qs_trading = persp->addMenu(tr("Trading"));
qs_trading->setStyleSheet(popup_ss());
- qs_trading->addAction("Crypto Trading", this, [this]() { emit action_triggered("perspective_trading"); });
- qs_trading->addAction("Equity Trading", this, [this]() { emit action_triggered("perspective_equity"); });
- qs_trading->addAction("Algo Trading", this, [this]() { emit action_triggered("perspective_algo"); });
+ qs_trading->addAction(tr("Crypto Trading"), this, [this]() { emit action_triggered("perspective_trading"); });
+ qs_trading->addAction(tr("Equity Trading"), this, [this]() { emit action_triggered("perspective_equity"); });
+ qs_trading->addAction(tr("Algo Trading"), this, [this]() { emit action_triggered("perspective_algo"); });
- auto* qs_research = persp->addMenu("Research");
+ auto* qs_research = persp->addMenu(tr("Research"));
qs_research->setStyleSheet(popup_ss());
- qs_research->addAction("Equity Research", this, [this]() { emit action_triggered("perspective_research"); });
- qs_research->addAction("Derivatives", this, [this]() { emit action_triggered("perspective_derivatives"); });
- qs_research->addAction("F&&O", this, [this]() { emit action_triggered("perspective_fno"); });
- qs_research->addAction("M&&A Analytics", this, [this]() { emit action_triggered("perspective_ma"); });
+ qs_research->addAction(tr("Equity Research"), this, [this]() { emit action_triggered("perspective_research"); });
+ qs_research->addAction(tr("Derivatives"), this, [this]() { emit action_triggered("perspective_derivatives"); });
+ qs_research->addAction(tr("F&&O"), this, [this]() { emit action_triggered("perspective_fno"); });
+ qs_research->addAction(tr("M&&A Analytics"), this, [this]() { emit action_triggered("perspective_ma"); });
- persp->addAction("Portfolio View", this, [this]() { emit action_triggered("perspective_portfolio"); });
- persp->addAction("Markets View", this, [this]() { emit action_triggered("perspective_markets"); });
- persp->addAction("News View", this, [this]() { emit action_triggered("perspective_news"); });
+ persp->addAction(tr("Portfolio View"), this, [this]() { emit action_triggered("perspective_portfolio"); });
+ persp->addAction(tr("Markets View"), this, [this]() { emit action_triggered("perspective_markets"); });
+ persp->addAction(tr("News View"), this, [this]() { emit action_triggered("perspective_news"); });
- auto* qs_econ = persp->addMenu("Economics && Data");
+ auto* qs_econ = persp->addMenu(tr("Economics && Data"));
qs_econ->setStyleSheet(popup_ss());
- qs_econ->addAction("Economics", this, [this]() { emit action_triggered("perspective_economics"); });
- qs_econ->addAction("Data Sources", this, [this]() { emit action_triggered("perspective_data"); });
+ qs_econ->addAction(tr("Economics"), this, [this]() { emit action_triggered("perspective_economics"); });
+ qs_econ->addAction(tr("Data Sources"), this, [this]() { emit action_triggered("perspective_data"); });
- persp->addAction("Geopolitics View", this, [this]() { emit action_triggered("perspective_geopolitics"); });
+ persp->addAction(tr("Geopolitics View"), this, [this]() { emit action_triggered("perspective_geopolitics"); });
- auto* qs_ai = persp->addMenu("AI && Quant");
+ auto* qs_ai = persp->addMenu(tr("AI && Quant"));
qs_ai->setStyleSheet(popup_ss());
- qs_ai->addAction("Quant Lab", this, [this]() { emit action_triggered("perspective_quant"); });
- qs_ai->addAction("AI Chat", this, [this]() { emit action_triggered("perspective_ai"); });
+ qs_ai->addAction(tr("Quant Lab"), this, [this]() { emit action_triggered("perspective_quant"); });
+ qs_ai->addAction(tr("AI Chat"), this, [this]() { emit action_triggered("perspective_ai"); });
- persp->addAction("Tools View", this, [this]() { emit action_triggered("perspective_tools"); });
+ persp->addAction(tr("Tools View"), this, [this]() { emit action_triggered("perspective_tools"); });
m->addSeparator();
- m->addAction("Refresh Screen\tF5", this, [this]() { emit action_triggered("refresh"); });
- m->addAction("Take Screenshot\tCtrl+P", this, [this]() { emit action_triggered("screenshot"); });
+ m->addAction(tr("Refresh Screen\tF5"), this, [this]() { emit action_triggered("refresh"); });
+ m->addAction(tr("Take Screenshot\tCtrl+P"), this, [this]() { emit action_triggered("screenshot"); });
return m;
}
QMenu* ToolBar::build_help_menu() {
- auto* m = new QMenu("Help", this);
+ auto* m = new QMenu(tr("Help"), this);
m->setStyleSheet(popup_ss());
- m->addAction("About Fincept", this, [this]() { emit navigate_to("about"); });
- m->addAction("Help Center", this, [this]() { emit navigate_to("help"); });
+ m->addAction(tr("About Fincept"), this, [this]() { emit navigate_to("about"); });
+ m->addAction(tr("Help Center"), this, [this]() { emit navigate_to("help"); });
m->addSeparator();
- m->addAction("Contact Us", this, [this]() { emit navigate_to("contact"); });
- m->addAction("Terms of Service", this, [this]() { emit navigate_to("terms"); });
- m->addAction("Privacy Policy", this, [this]() { emit navigate_to("privacy"); });
- m->addAction("Trademarks", this, [this]() { emit navigate_to("trademarks"); });
+ m->addAction(tr("Contact Us"), this, [this]() { emit navigate_to("contact"); });
+ m->addAction(tr("Terms of Service"), this, [this]() { emit navigate_to("terms"); });
+ m->addAction(tr("Privacy Policy"), this, [this]() { emit navigate_to("privacy"); });
+ m->addAction(tr("Trademarks"), this, [this]() { emit navigate_to("trademarks"); });
m->addSeparator();
- m->addAction("Check for Updates", this, [this]() { emit action_triggered("check_updates"); });
+ m->addAction(tr("Check for Updates"), this, [this]() { emit action_triggered("check_updates"); });
m->addSeparator();
- m->addAction("Logout", this, [this]() { emit action_triggered("logout"); });
+ m->addAction(tr("Logout"), this, [this]() { emit action_triggered("logout"); });
return m;
}
diff --git a/fincept-qt/src/ui/navigation/ToolBar.h b/fincept-qt/src/ui/navigation/ToolBar.h
index e45dfbe58..53cc1889a 100644
--- a/fincept-qt/src/ui/navigation/ToolBar.h
+++ b/fincept-qt/src/ui/navigation/ToolBar.h
@@ -14,6 +14,10 @@ class PushpinBar;
/// Combined toolbar: File/Navigate/View/Help menus + branding + clock + user info + logout.
/// Replaces both ToolBar and NavigationBar in a single row.
+///
+/// Internationalised: all menus and labels flow through tr(). Menus are
+/// rebuilt on QEvent::LanguageChange so action labels pick up the new
+/// translator; static labels and buttons retranslate via setText().
class ToolBar : public QWidget {
Q_OBJECT
public:
@@ -33,6 +37,7 @@ class ToolBar : public QWidget {
protected:
void resizeEvent(QResizeEvent* e) override;
+ void changeEvent(QEvent* e) override;
private slots:
void update_clock();
@@ -57,6 +62,11 @@ class ToolBar : public QWidget {
PushpinBar* pushpin_bar_ = nullptr;
void refresh_theme();
+ void retranslateUi();
+ /// Tear down and recreate every menu on the menu bar so action labels
+ /// pick up the active QTranslator. Called from retranslateUi() so a
+ /// LanguageChange event rebuilds menus alongside static labels.
+ void rebuild_menus();
void apply_responsive_layout(int width);
QMenu* build_file_menu();
diff --git a/fincept-qt/src/ui/widgets/LanguageSwitcher.cpp b/fincept-qt/src/ui/widgets/LanguageSwitcher.cpp
new file mode 100644
index 000000000..fedd67d57
--- /dev/null
+++ b/fincept-qt/src/ui/widgets/LanguageSwitcher.cpp
@@ -0,0 +1,103 @@
+#include "ui/widgets/LanguageSwitcher.h"
+
+#include "core/i18n/LanguageManager.h"
+#include "ui/theme/Theme.h"
+
+#include <QActionGroup>
+#include <QEvent>
+#include <QMenu>
+
+namespace fincept::ui {
+
+LanguageSwitcher::LanguageSwitcher(QWidget* parent) : QPushButton(parent) {
+ setCursor(Qt::PointingHandCursor);
+ // Slight amber-tinted background so it reads as an interactive control
+ // rather than a label, while still staying quiet on the grid backdrop.
+ setStyleSheet(QString("QPushButton {"
+ " background: rgba(217,119,6,0.06);"
+ " color: %1;"
+ " border: 1px solid %2;"
+ " padding: 5px 12px;"
+ " font-size: 12px; font-weight: 700;"
+ " font-family: 'Consolas','Courier New',monospace;"
+ " letter-spacing: 0.5px;"
+ "}"
+ "QPushButton:hover {"
+ " color: %3;"
+ " border-color: %4;"
+ " background: rgba(217,119,6,0.12);"
+ "}"
+ "QPushButton:pressed {"
+ " background: rgba(217,119,6,0.18);"
+ "}")
+ .arg(colors::TEXT_SECONDARY(), colors::BORDER_DIM(),
+ colors::AMBER(), colors::BORDER_BRIGHT()));
+
+ rebuild_label();
+
+ connect(this, &QPushButton::clicked, this, &LanguageSwitcher::show_menu);
+ connect(&i18n::LanguageManager::instance(), &i18n::LanguageManager::language_changed,
+ this, [this](const QString&) { rebuild_label(); });
+}
+
+void LanguageSwitcher::changeEvent(QEvent* event) {
+ if (event->type() == QEvent::LanguageChange) {
+ rebuild_label();
+ }
+ QPushButton::changeEvent(event);
+}
+
+void LanguageSwitcher::rebuild_label() {
+ const QString code = i18n::LanguageManager::instance().current_language();
+ const QString resolved = code.isEmpty() ? QStringLiteral("en") : code;
+ const QString name = i18n::LanguageManager::native_name(resolved);
+ // U+25BE = small down-pointing triangle. Two spaces of padding so the
+ // chevron doesn't crowd the language name in a monospace font.
+ setText(name + QStringLiteral(" ▾"));
+}
+
+void LanguageSwitcher::show_menu() {
+ QMenu menu(this);
+ menu.setStyleSheet(QString("QMenu {"
+ " background: %1;"
+ " color: %2;"
+ " border: 1px solid %3;"
+ " padding: 4px 0;"
+ " font-family: 'Consolas','Courier New',monospace;"
+ " font-size: 13px;"
+ "}"
+ "QMenu::item {"
+ " padding: 6px 18px;"
+ "}"
+ "QMenu::item:selected {"
+ " background: rgba(217,119,6,0.15);"
+ " color: %4;"
+ "}"
+ "QMenu::item:checked {"
+ " color: %4;"
+ "}")
+ .arg(colors::BG_SURFACE(), colors::TEXT_SECONDARY(),
+ colors::BORDER_DIM(), colors::AMBER()));
+
+ auto* group = new QActionGroup(&menu);
+ const QString current_code = i18n::LanguageManager::instance().current_language();
+
+ for (const QString& code : i18n::LanguageManager::supported_languages()) {
+ const QString name = i18n::LanguageManager::native_name(code);
+ auto* action = menu.addAction(name);
+ action->setCheckable(true);
+ action->setChecked(code == current_code);
+ group->addAction(action);
+ // Capture by value — the action outlives this loop iteration.
+ connect(action, &QAction::triggered, this, [code]() {
+ i18n::LanguageManager::instance().set_language(code);
+ });
+ }
+
+ // Right-align the menu under the button so it doesn't overflow off-screen
+ // when the button itself sits near the right edge of the window.
+ const QPoint anchor = mapToGlobal(QPoint(width() - menu.sizeHint().width(), height()));
+ menu.exec(anchor);
+}
+
+} // namespace fincept::ui
diff --git a/fincept-qt/src/ui/widgets/LanguageSwitcher.h b/fincept-qt/src/ui/widgets/LanguageSwitcher.h
new file mode 100644
index 000000000..bbb7bef33
--- /dev/null
+++ b/fincept-qt/src/ui/widgets/LanguageSwitcher.h
@@ -0,0 +1,30 @@
+#pragma once
+// LanguageSwitcher — compact language picker for pre-login screens.
+//
+// Renders as a small Obsidian-styled button showing the active language's
+// native name with a chevron. Clicking opens a popup menu listing all
+// supported languages; selecting one calls LanguageManager::set_language(),
+// which swaps the QTranslator and posts QEvent::LanguageChange to every
+// widget in the app (including the auth/setup card currently on screen).
+//
+// Also subscribes to LanguageManager::language_changed so the button updates
+// itself when the language is changed elsewhere (e.g. Settings → General).
+
+#include <QPushButton>
+
+namespace fincept::ui {
+
+class LanguageSwitcher : public QPushButton {
+ Q_OBJECT
+ public:
+ explicit LanguageSwitcher(QWidget* parent = nullptr);
+
+ protected:
+ void changeEvent(QEvent* event) override;
+
+ private:
+ void rebuild_label();
+ void show_menu();
+};
+
+} // namespace fincept::ui
diff --git a/fincept-qt/translations/fincept_de_DE.ts b/fincept-qt/translations/fincept_de_DE.ts
new file mode 100644
index 000000000..ecdd73f42
--- /dev/null
+++ b/fincept-qt/translations/fincept_de_DE.ts
@@ -0,0 +1,519 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1" language="de_DE" sourcelanguage="en">
+<context>
+ <name>fincept::screens::LoginScreen</name>
+ <message><source>SIGN IN</source><translation>ANMELDEN</translation></message>
+ <message><source>Access your terminal account</source><translation>Greifen Sie auf Ihr Terminal-Konto zu</translation></message>
+ <message><source>EMAIL</source><translation>E-MAIL</translation></message>
+ <message><source>[email protected]</source><translation>[email protected]</translation></message>
+ <message><source>PASSWORD</source><translation>PASSWORT</translation></message>
+ <message><source>enter password</source><translation>Passwort eingeben</translation></message>
+ <message><source>SHOW</source><translation>ZEIGEN</translation></message>
+ <message><source>HIDE</source><translation>VERBERGEN</translation></message>
+ <message><source>FORGOT PASSWORD?</source><translation>PASSWORT VERGESSEN?</translation></message>
+ <message><source> SIGN IN </source><translation> ANMELDEN </translation></message>
+ <message><source> SIGNING IN... </source><translation> ANMELDUNG LÄUFT... </translation></message>
+ <message><source>No account?</source><translation>Kein Konto?</translation></message>
+ <message><source>SIGN UP</source><translation>REGISTRIEREN</translation></message>
+ <message><source>TWO-FACTOR AUTH</source><translation>ZWEI-FAKTOR-AUTH</translation></message>
+ <message><source>SECURE</source><translation>SICHER</translation></message>
+ <message><source>Enter the 6-digit code from your authenticator</source><translation>Geben Sie den 6-stelligen Code aus Ihrer Authenticator-App ein</translation></message>
+ <message><source>VERIFICATION CODE</source><translation>BESTÄTIGUNGSCODE</translation></message>
+ <message><source> VERIFY </source><translation> BESTÄTIGEN </translation></message>
+ <message><source>BACK TO LOGIN</source><translation>ZURÜCK ZUR ANMELDUNG</translation></message>
+ <message><source>SESSION CONFLICT</source><translation>SITZUNGSKONFLIKT</translation></message>
+ <message><source>WARNING</source><translation>WARNUNG</translation></message>
+ <message><source> LOG OUT OTHER SESSION &amp; CONTINUE </source><translation> ANDERE SITZUNG ABMELDEN &amp; FORTFAHREN </translation></message>
+ <message><source> CANCEL </source><translation> ABBRECHEN </translation></message>
+ <message><source>Please enter your password</source><translation>Bitte geben Sie Ihr Passwort ein</translation></message>
+ <message><source>Please enter the code</source><translation>Bitte geben Sie den Code ein</translation></message>
+</context>
+<context>
+ <name>fincept::screens::RegisterScreen</name>
+ <message><source>CREATE ACCOUNT</source><translation>KONTO ERSTELLEN</translation></message>
+ <message><source>FIRST NAME</source><translation>VORNAME</translation></message>
+ <message><source>LAST NAME</source><translation>NACHNAME</translation></message>
+ <message><source>EMAIL</source><translation>E-MAIL</translation></message>
+ <message><source>CODE</source><translation>VORW.</translation></message>
+ <message><source>PHONE</source><translation>TELEFON</translation></message>
+ <message><source>PASSWORD</source><translation>PASSWORT</translation></message>
+ <message><source>CONFIRM PASSWORD</source><translation>PASSWORT BESTÄTIGEN</translation></message>
+ <message><source>First</source><translation>Vorname</translation></message>
+ <message><source>Last</source><translation>Nachname</translation></message>
+ <message><source>[email protected]</source><translation>[email protected]</translation></message>
+ <message><source>+1</source><translation>+49</translation></message>
+ <message><source>234 567 8900</source><translation>30 12345678</translation></message>
+ <message><source>min 8 characters</source><translation>min. 8 Zeichen</translation></message>
+ <message><source>re-enter password</source><translation>Passwort erneut eingeben</translation></message>
+ <message><source> CREATE ACCOUNT </source><translation> KONTO ERSTELLEN </translation></message>
+ <message><source> CREATING... </source><translation> WIRD ERSTELLT... </translation></message>
+ <message><source>Already have an account?</source><translation>Sie haben bereits ein Konto?</translation></message>
+ <message><source>SIGN IN</source><translation>ANMELDEN</translation></message>
+ <message><source>VERIFY EMAIL</source><translation>E-MAIL BESTÄTIGEN</translation></message>
+ <message><source>VERIFICATION CODE</source><translation>BESTÄTIGUNGSCODE</translation></message>
+ <message><source>enter code from email</source><translation>Code aus der E-Mail eingeben</translation></message>
+ <message><source> VERIFY </source><translation> BESTÄTIGEN </translation></message>
+ <message><source> VERIFYING... </source><translation> WIRD GEPRÜFT... </translation></message>
+ <message><source>DIDN&apos;T RECEIVE? RESEND</source><translation>NICHTS ERHALTEN? ERNEUT SENDEN</translation></message>
+ <message><source>BACK TO FORM</source><translation>ZURÜCK ZUM FORMULAR</translation></message>
+ <message><source>All fields are required</source><translation>Alle Felder sind erforderlich</translation></message>
+ <message><source>Country code is required (e.g. +1, +91)</source><translation>Landesvorwahl ist erforderlich (z. B. +49, +1)</translation></message>
+ <message><source>Passwords do not match</source><translation>Passwörter stimmen nicht überein</translation></message>
+ <message><source>Password must be at least 8 characters</source><translation>Das Passwort muss mindestens 8 Zeichen lang sein</translation></message>
+ <message><source>Username must be 3-50 characters</source><translation>Der Benutzername muss 3-50 Zeichen lang sein</translation></message>
+ <message><source>Enter the verification code</source><translation>Bestätigungscode eingeben</translation></message>
+</context>
+<context>
+ <name>fincept::screens::ForgotPasswordScreen</name>
+ <message><source>RESET PASSWORD</source><translation>PASSWORT ZURÜCKSETZEN</translation></message>
+ <message><source>Enter your email and we&apos;ll send a verification code.</source><translation>Geben Sie Ihre E-Mail ein und wir senden Ihnen einen Bestätigungscode.</translation></message>
+ <message><source>EMAIL</source><translation>E-MAIL</translation></message>
+ <message><source>[email protected]</source><translation>[email protected]</translation></message>
+ <message><source> SEND CODE </source><translation> CODE SENDEN </translation></message>
+ <message><source>REMEMBER YOUR PASSWORD? SIGN IN</source><translation>PASSWORT WIEDER GEWUSST? ANMELDEN</translation></message>
+ <message><source>CHECK YOUR EMAIL</source><translation>PRÜFEN SIE IHRE E-MAIL</translation></message>
+ <message><source>We&apos;ve sent a verification code. Enter it on the next screen to reset your password.</source><translation>Wir haben einen Bestätigungscode gesendet. Geben Sie ihn im nächsten Schritt ein, um Ihr Passwort zurückzusetzen.</translation></message>
+ <message><source> I HAVE THE CODE </source><translation> ICH HABE DEN CODE </translation></message>
+ <message><source>DIDN&apos;T RECEIVE? RESEND</source><translation>NICHTS ERHALTEN? ERNEUT SENDEN</translation></message>
+ <message><source>VERIFICATION CODE</source><translation>BESTÄTIGUNGSCODE</translation></message>
+ <message><source>NEW PASSWORD</source><translation>NEUES PASSWORT</translation></message>
+ <message><source>CONFIRM PASSWORD</source><translation>PASSWORT BESTÄTIGEN</translation></message>
+ <message><source>enter code from email</source><translation>Code aus der E-Mail eingeben</translation></message>
+ <message><source>min 8 characters</source><translation>min. 8 Zeichen</translation></message>
+ <message><source>re-enter password</source><translation>Passwort erneut eingeben</translation></message>
+ <message><source> RESET PASSWORD </source><translation> PASSWORT ZURÜCKSETZEN </translation></message>
+ <message><source>PASSWORD RESET</source><translation>PASSWORT ZURÜCKGESETZT</translation></message>
+ <message><source>SUCCESS</source><translation>ERFOLGREICH</translation></message>
+ <message><source>Your password has been reset. You can now sign in with your new password.</source><translation>Ihr Passwort wurde zurückgesetzt. Sie können sich jetzt mit Ihrem neuen Passwort anmelden.</translation></message>
+ <message><source> CONTINUE TO LOGIN </source><translation> WEITER ZUR ANMELDUNG </translation></message>
+</context>
+<context>
+ <name>fincept::screens::LockScreen</name>
+ <message><source>SECURITY SETUP</source><translation>SICHERHEITSEINRICHTUNG</translation></message>
+ <message><source>REQUIRED</source><translation>ERFORDERLICH</translation></message>
+ <message><source>Create a 6-digit PIN to secure your terminal</source><translation>Erstellen Sie eine 6-stellige PIN zum Schutz Ihres Terminals</translation></message>
+ <message><source>This PIN will be required each time you open
+the terminal or after a period of inactivity.</source><translation>Diese PIN wird jedes Mal abgefragt, wenn Sie das
+Terminal öffnen oder nach einer Inaktivitätsphase.</translation></message>
+ <message><source>ENTER PIN</source><translation>PIN EINGEBEN</translation></message>
+ <message><source>CONFIRM PIN</source><translation>PIN BESTÄTIGEN</translation></message>
+ <message><source> SET PIN </source><translation> PIN FESTLEGEN </translation></message>
+ <message><source>PIN is encrypted and stored locally on this device.
+It cannot be recovered if forgotten.</source><translation>Die PIN wird verschlüsselt und lokal auf diesem Gerät gespeichert.
+Eine Wiederherstellung bei Verlust ist nicht möglich.</translation></message>
+ <message><source>TERMINAL LOCKED</source><translation>TERMINAL GESPERRT</translation></message>
+ <message><source>SECURE</source><translation>SICHER</translation></message>
+ <message><source>Enter your 6-digit PIN to unlock</source><translation>Geben Sie Ihre 6-stellige PIN zum Entsperren ein</translation></message>
+ <message><source>PIN</source><translation>PIN</translation></message>
+ <message><source> UNLOCK </source><translation> ENTSPERREN </translation></message>
+ <message><source>ACCOUNT LOCKED</source><translation>KONTO GESPERRT</translation></message>
+ <message><source>SECURITY</source><translation>SICHERHEIT</translation></message>
+ <message><source>Too many failed PIN attempts.
+
+For your security, the terminal has been locked.
+You must sign in again with your email and password
+to reset your PIN and regain access.</source><translation>Zu viele fehlgeschlagene PIN-Versuche.
+
+Zu Ihrer Sicherheit wurde das Terminal gesperrt.
+Sie müssen sich erneut mit E-Mail und Passwort anmelden,
+um Ihre PIN zurückzusetzen und den Zugriff wiederzuerlangen.</translation></message>
+ <message><source> SIGN IN AGAIN </source><translation> ERNEUT ANMELDEN </translation></message>
+ <message><source>PINs do not match</source><translation>PINs stimmen nicht überein</translation></message>
+ <message><source>Enter your PIN</source><translation>Geben Sie Ihre PIN ein</translation></message>
+ <message><source>Incorrect PIN</source><translation>Falsche PIN</translation></message>
+ <message numerus="yes"><source>%n ATTEMPT(S) REMAINING</source><translation><numerusform>%n VERSUCH ÜBRIG</numerusform><numerusform>%n VERSUCHE ÜBRIG</numerusform></translation></message>
+ <message><source>Locked for %1 — too many failed attempts</source><translation>Gesperrt für %1 — zu viele fehlgeschlagene Versuche</translation></message>
+</context>
+<context>
+ <name>fincept::screens::SetupScreen</name>
+ <message><source>We need to download a few tools and data libraries once.
+This only happens the first time — future launches are instant.</source><translation>Wir müssen einige Werkzeuge und Datenbibliotheken einmalig herunterladen.
+Dies geschieht nur beim ersten Mal — spätere Starts erfolgen sofort.</translation></message>
+ <message><source>Download Installer</source><translation>Installer herunterladen</translation></message>
+ <message><source>Downloads the tool that manages everything else (~13 MB)</source><translation>Lädt das Werkzeug herunter, das alles Übrige verwaltet (~13 MB)</translation></message>
+ <message><source>Install Python Runtime</source><translation>Python-Laufzeitumgebung installieren</translation></message>
+ <message><source>The programming language engine used for all analytics</source><translation>Die Programmiersprachen-Engine für alle Analysen</translation></message>
+ <message><source>Create Isolated Workspaces</source><translation>Isolierte Arbeitsumgebungen erstellen</translation></message>
+ <message><source>Two sandboxed environments to keep library versions conflict-free</source><translation>Zwei abgeschottete Umgebungen, um Versionskonflikte zu vermeiden</translation></message>
+ <message><source>Install Trading Libraries</source><translation>Trading-Bibliotheken installieren</translation></message>
+ <message><source>Backtesting, portfolio optimization and legacy quant tools</source><translation>Backtesting, Portfolio-Optimierung und klassische Quant-Werkzeuge</translation></message>
+ <message><source>Install Analytics Libraries</source><translation>Analyse-Bibliotheken installieren</translation></message>
+ <message><source>Machine learning, data science and AI agent frameworks</source><translation>Maschinelles Lernen, Data Science und KI-Agent-Frameworks</translation></message>
+ <message><source>Installing to: %1</source><translation>Installation nach: %1</translation></message>
+ <message><source>Getting your workspace ready</source><translation>Ihre Arbeitsumgebung wird vorbereitet</translation></message>
+ <message><source>Your workspace is fully configured</source><translation>Ihre Arbeitsumgebung ist vollständig konfiguriert</translation></message>
+ <message><source>Finishing your workspace setup</source><translation>Einrichtung der Arbeitsumgebung wird abgeschlossen</translation></message>
+ <message><source>BEGIN SETUP</source><translation>EINRICHTUNG STARTEN</translation></message>
+ <message><source>SETTING UP...</source><translation>WIRD EINGERICHTET...</translation></message>
+ <message><source>RETRY SETUP</source><translation>ERNEUT VERSUCHEN</translation></message>
+ <message><source>LAUNCH</source><translation>STARTEN</translation></message>
+ <message><source>CONTINUE SETUP</source><translation>EINRICHTUNG FORTSETZEN</translation></message>
+ <message><source>ALREADY COMPLETE</source><translation>BEREITS ABGESCHLOSSEN</translation></message>
+ <message><source>SKIP &amp; CONTINUE</source><translation>ÜBERSPRINGEN &amp; FORTFAHREN</translation></message>
+ <message><source>Takes about 3–5 minutes. Needs an internet connection.</source><translation>Dauert etwa 3–5 Minuten. Eine Internetverbindung ist erforderlich.</translation></message>
+ <message><source>Setup in progress — please keep the application open</source><translation>Einrichtung läuft — bitte lassen Sie die Anwendung geöffnet</translation></message>
+ <message><source>Everything is ready! Launching Fincept Terminal...</source><translation>Alles bereit! Fincept Terminal wird gestartet...</translation></message>
+ <message><source>Only the missing pieces will be downloaded. Needs an internet connection.</source><translation>Nur die fehlenden Teile werden heruntergeladen. Eine Internetverbindung ist erforderlich.</translation></message>
+ <message><source>Setup failed: %1</source><translation>Einrichtung fehlgeschlagen: %1</translation></message>
+ <message><source>Unknown error — see logs for details.</source><translation>Unbekannter Fehler — Einzelheiten in den Protokollen.</translation></message>
+ <message><source>Setup is taking longer than expected — possibly a slow internet connection.
+You can wait or skip and continue with limited functionality.</source><translation>Die Einrichtung dauert länger als erwartet — möglicherweise eine langsame Internetverbindung.
+Sie können warten oder überspringen und mit eingeschränkter Funktionalität fortfahren.</translation></message>
+ <message><source>Waiting</source><translation>Warten</translation></message>
+ <message><source>Working...</source><translation>Arbeitet...</translation></message>
+ <message><source>DONE</source><translation>FERTIG</translation></message>
+ <message><source>FAILED</source><translation>FEHLER</translation></message>
+ <message><source>Elapsed: %1s</source><translation>Verstrichen: %1s</translation></message>
+ <message><source>Elapsed: %1m %2s</source><translation>Verstrichen: %1m %2s</translation></message>
+ <message><source>Trading workspace</source><translation>Trading-Arbeitsumgebung</translation></message>
+ <message><source>Analytics workspace</source><translation>Analyse-Arbeitsumgebung</translation></message>
+ <message><source>trading library list</source><translation>Trading-Bibliotheksliste</translation></message>
+ <message><source>analytics library list</source><translation>Analyse-Bibliotheksliste</translation></message>
+ <message><source>Everything is installed and ready to go.</source><translation>Alles ist installiert und einsatzbereit.</translation></message>
+</context>
+<context>
+ <name>fincept::screens::SettingsScreen</name>
+ <message><source>SETTINGS</source><translation>EINSTELLUNGEN</translation></message>
+ <message><source>SHELL</source><translation>ANWENDUNG</translation></message>
+ <message><source>PROFILE</source><translation>PROFIL</translation></message>
+ <message><source>General</source><translation>Allgemein</translation></message>
+ <message><source>Appearance</source><translation>Erscheinungsbild</translation></message>
+ <message><source>Notifications</source><translation>Benachrichtigungen</translation></message>
+ <message><source>Keybindings</source><translation>Tastenkürzel</translation></message>
+ <message><source>Voice</source><translation>Stimme</translation></message>
+ <message><source>Logging</source><translation>Protokollierung</translation></message>
+ <message><source>Developer</source><translation>Entwickler</translation></message>
+ <message><source>Profiles</source><translation>Profile</translation></message>
+ <message><source>Credentials</source><translation>Anmeldedaten</translation></message>
+ <message><source>Security</source><translation>Sicherheit</translation></message>
+ <message><source>Data Sources</source><translation>Datenquellen</translation></message>
+ <message><source>LLM Config</source><translation>LLM-Konfig.</translation></message>
+ <message><source>MCP Servers</source><translation>MCP-Server</translation></message>
+ <message><source>Python Env</source><translation>Python-Umgebung</translation></message>
+ <message><source>Storage &amp; Cache</source><translation>Speicher &amp; Cache</translation></message>
+</context>
+<context>
+ <name>fincept::screens::GeneralSection</name>
+ <message><source>WINDOW BEHAVIOUR</source><translation>FENSTERVERHALTEN</translation></message>
+ <message><source>Quit application</source><translation>Anwendung beenden</translation></message>
+ <message><source>Show Launchpad</source><translation>Launchpad anzeigen</translation></message>
+ <message><source>On last window close</source><translation>Beim Schließen des letzten Fensters</translation></message>
+ <message><source>LANGUAGE</source><translation>SPRACHE</translation></message>
+ <message><source>Interface language</source><translation>Oberflächensprache</translation></message>
+ <message><source>Changes apply immediately. English is the source language; all other translations are embedded with the build.</source><translation>Änderungen werden sofort übernommen. Englisch ist die Quellsprache; alle anderen Übersetzungen sind im Build enthalten.</translation></message>
+</context>
+<context>
+ <name>fincept::screens::AppearanceSection</name>
+ <message><source>TYPOGRAPHY</source><translation>TYPOGRAFIE</translation></message>
+ <message><source>Font Size</source><translation>Schriftgröße</translation></message>
+ <message><source>Font Family</source><translation>Schriftart</translation></message>
+ <message><source>THEME</source><translation>DESIGN</translation></message>
+ <message><source>Content Density</source><translation>Inhaltsdichte</translation></message>
+ <message><source>INTERFACE</source><translation>OBERFLÄCHE</translation></message>
+ <message><source>AI Chat Bubble</source><translation>KI-Chat-Blase</translation></message>
+ <message><source>Ticker Bar</source><translation>Ticker-Leiste</translation></message>
+ <message><source>Animations</source><translation>Animationen</translation></message>
+ <message><source>Save Settings</source><translation>Einstellungen speichern</translation></message>
+</context>
+<context>
+ <name>fincept::screens::DeveloperSection</name>
+ <message><source>Agentic Mode (Experimental)</source><translation>Agent-Modus (Experimentell)</translation></message>
+ <message><source>Enable Agentic Mode</source><translation>Agent-Modus aktivieren</translation></message>
+ <message><source>DataHub Inspector</source><translation>DataHub-Inspektor</translation></message>
+</context>
+<context>
+ <name>fincept::screens::ProfilesSection</name>
+ <message><source>Profiles</source><translation>Profile</translation></message>
+ <message><source>All profiles</source><translation>Alle Profile</translation></message>
+ <message><source>ACTIVE</source><translation>AKTIV</translation></message>
+ <message><source>Switch</source><translation>Wechseln</translation></message>
+ <message><source>Create new profile</source><translation>Neues Profil erstellen</translation></message>
+ <message><source>Create &amp; Switch</source><translation>Erstellen &amp; Wechseln</translation></message>
+</context>
+<context>
+ <name>fincept::screens::LoggingSection</name>
+ <message><source>LOGGING</source><translation>PROTOKOLLIERUNG</translation></message>
+ <message><source>Global Log Level</source><translation>Globale Protokollstufe</translation></message>
+ <message><source>Output Format</source><translation>Ausgabeformat</translation></message>
+ <message><source>Log File</source><translation>Protokolldatei</translation></message>
+ <message><source>Open Log Folder</source><translation>Protokollordner öffnen</translation></message>
+ <message><source>Copy Path</source><translation>Pfad kopieren</translation></message>
+ <message><source>Per-Tag Overrides</source><translation>Per-Tag-Überschreibungen</translation></message>
+ <message><source>Tag name</source><translation>Tag-Name</translation></message>
+ <message><source>Remove</source><translation>Entfernen</translation></message>
+ <message><source>Apply &amp; Save</source><translation>Anwenden &amp; Speichern</translation></message>
+</context>
+<context>
+ <name>fincept::screens::NotificationsSection</name>
+ <message><source>NOTIFICATION PROVIDERS</source><translation>BENACHRICHTIGUNGSANBIETER</translation></message>
+ <message><source>Test Send</source><translation>Test senden</translation></message>
+ <message><source>Sending...</source><translation>Senden...</translation></message>
+ <message><source>✓ Sent successfully</source><translation>✓ Erfolgreich gesendet</translation></message>
+ <message><source>ALERT TRIGGERS</source><translation>ALARM-AUSLÖSER</translation></message>
+ <message><source>Price Alerts</source><translation>Preisalarme</translation></message>
+ <message><source>News Alerts</source><translation>Nachrichtenalarme</translation></message>
+ <message><source>Order Fill Alerts</source><translation>Order-Ausführungs-Alarme</translation></message>
+ <message><source>Save All Providers</source><translation>Alle Anbieter speichern</translation></message>
+</context>
+<context>
+ <name>fincept::screens::KeybindingsSection</name>
+ <message><source>Apply</source><translation>Anwenden</translation></message>
+ <message><source>Cancel</source><translation>Abbrechen</translation></message>
+ <message><source>Search actions...</source><translation>Aktionen suchen...</translation></message>
+ <message><source>Reset All to Defaults</source><translation>Alle auf Standard zurücksetzen</translation></message>
+ <message><source>Reset</source><translation>Zurücksetzen</translation></message>
+</context>
+<context>
+ <name>fincept::screens::CredentialsSection</name>
+ <message><source>API CREDENTIALS</source><translation>API-ANMELDEDATEN</translation></message>
+ <message><source>Not set</source><translation>Nicht festgelegt</translation></message>
+ <message><source>Not configured</source><translation>Nicht konfiguriert</translation></message>
+ <message><source>Save</source><translation>Speichern</translation></message>
+ <message><source>Cleared</source><translation>Gelöscht</translation></message>
+ <message><source>Saved ✓</source><translation>Gespeichert ✓</translation></message>
+ <message><source>Save failed</source><translation>Speichern fehlgeschlagen</translation></message>
+</context>
+<context>
+ <name>fincept::screens::SecuritySection</name>
+ <message><source>PIN AUTHENTICATION</source><translation>PIN-AUTHENTIFIZIERUNG</translation></message>
+ <message><source>PIN Status</source><translation>PIN-Status</translation></message>
+ <message><source>Failed Attempts</source><translation>Fehlgeschlagene Versuche</translation></message>
+ <message><source>CHANGE PIN</source><translation>PIN ÄNDERN</translation></message>
+ <message><source>Change PIN</source><translation>PIN ändern</translation></message>
+ <message><source>Cancel</source><translation>Abbrechen</translation></message>
+ <message><source>Current PIN</source><translation>Aktuelle PIN</translation></message>
+ <message><source>New PIN</source><translation>Neue PIN</translation></message>
+ <message><source>Confirm PIN</source><translation>PIN bestätigen</translation></message>
+ <message><source>Update PIN</source><translation>PIN aktualisieren</translation></message>
+ <message><source>AUTO-LOCK</source><translation>AUTO-SPERRE</translation></message>
+ <message><source>Auto-Lock</source><translation>Auto-Sperre</translation></message>
+ <message><source>Lock Timeout</source><translation>Sperrzeit</translation></message>
+ <message><source>1 min</source><translation>1 Min.</translation></message>
+ <message><source>2 min</source><translation>2 Min.</translation></message>
+ <message><source>5 min</source><translation>5 Min.</translation></message>
+ <message><source>10 min</source><translation>10 Min.</translation></message>
+ <message><source>15 min</source><translation>15 Min.</translation></message>
+ <message><source>30 min</source><translation>30 Min.</translation></message>
+ <message><source>60 min</source><translation>60 Min.</translation></message>
+ <message><source>Save Security Settings</source><translation>Sicherheitseinstellungen speichern</translation></message>
+ <message><source>AUDIT LOG</source><translation>AUDIT-PROTOKOLL</translation></message>
+ <message><source>Refresh</source><translation>Aktualisieren</translation></message>
+ <message><source>CONFIGURED</source><translation>KONFIGURIERT</translation></message>
+ <message><source>NOT SET</source><translation>NICHT FESTGELEGT</translation></message>
+</context>
+<context>
+ <name>fincept::screens::DataSourcesSection</name>
+ <message><source>DATA SOURCES</source><translation>DATENQUELLEN</translation></message>
+ <message><source>OPEN FULL SCREEN</source><translation>VOLLBILD ÖFFNEN</translation></message>
+ <message><source>TOTAL</source><translation>GESAMT</translation></message>
+ <message><source>ACTIVE</source><translation>AKTIV</translation></message>
+ <message><source>INACTIVE</source><translation>INAKTIV</translation></message>
+ <message><source>PROVIDERS</source><translation>ANBIETER</translation></message>
+ <message><source>CONNECTIONS</source><translation>VERBINDUNGEN</translation></message>
+ <message><source>BULK ACTIONS</source><translation>MASSENAKTIONEN</translation></message>
+ <message><source>ENABLE ALL</source><translation>ALLE AKTIVIEREN</translation></message>
+ <message><source>DISABLE ALL</source><translation>ALLE DEAKTIVIEREN</translation></message>
+ <message><source>DELETE ALL</source><translation>ALLE LÖSCHEN</translation></message>
+</context>
+<context>
+ <name>fincept::screens::McpServersSection</name>
+ <message><source>MCP SERVERS</source><translation>MCP-SERVER</translation></message>
+</context>
+<context>
+ <name>fincept::screens::StorageSection</name>
+ <message><source>STORAGE &amp; DATA MANAGEMENT</source><translation>SPEICHER &amp; DATENVERWALTUNG</translation></message>
+</context>
+<context>
+ <name>fincept::screens::VoiceConfigSection</name>
+ <message><source>VOICE — SPEECH-TO-TEXT &amp; TEXT-TO-SPEECH</source><translation>STIMME — SPRACHE-ZU-TEXT &amp; TEXT-ZU-SPRACHE</translation></message>
+</context>
+<context>
+ <name>fincept::screens::PythonEnvSection</name>
+ <message><source>PYTHON ENVIRONMENTS</source><translation>PYTHON-UMGEBUNGEN</translation></message>
+</context>
+<context>
+ <name>fincept::screens::LlmConfigSection</name>
+ <message><source>LLM CONFIGURATION</source><translation>LLM-KONFIGURATION</translation></message>
+ <message><source>PROFILES</source><translation>PROFILE</translation></message>
+</context>
+<context>
+ <name>fincept::ui::ToolBar</name>
+ <message><source> | PROFESSIONAL RESEARCH DESK</source><translation> | PROFESSIONELLE RECHERCHE-PLATTFORM</translation></message>
+ <message><source> LIVE</source><translation> LIVE</translation></message>
+ <message><source>View Plans &amp; Pricing</source><translation>Tarife und Preise anzeigen</translation></message>
+ <message><source>CHAT</source><translation>CHAT</translation></message>
+ <message><source>Switch to Chat Mode (F9)</source><translation>In den Chat-Modus wechseln (F9)</translation></message>
+ <message><source>LOGOUT</source><translation>ABMELDEN</translation></message>
+ <message><source>%1 CR</source><translation>%1 CR</translation></message>
+ <message><source>FREE</source><translation>KOSTENLOS</translation></message>
+ <message><source>File</source><translation>Datei</translation></message>
+ <message><source>New Window</source><translation>Neues Fenster</translation></message>
+ <message><source>Move to Monitor</source><translation>Auf Monitor verschieben</translation></message>
+ <message><source>(single monitor)</source><translation>(nur ein Monitor)</translation></message>
+ <message><source>New Layout</source><translation>Neues Layout</translation></message>
+ <message><source>Open Layout…</source><translation>Layout öffnen…</translation></message>
+ <message><source>Save Layout</source><translation>Layout speichern</translation></message>
+ <message><source>Save Layout As…</source><translation>Layout speichern unter…</translation></message>
+ <message><source>Import Layout</source><translation>Layout importieren</translation></message>
+ <message><source>Export Layout</source><translation>Layout exportieren</translation></message>
+ <message><source>File Manager</source><translation>Dateiverwaltung</translation></message>
+ <message><source>Refresh All</source><translation>Alles aktualisieren</translation></message>
+ <message><source>Navigate</source><translation>Navigation</translation></message>
+ <message><source>Markets &amp; Data</source><translation>Märkte &amp; Daten</translation></message>
+ <message><source>Economics</source><translation>Wirtschaft</translation></message>
+ <message><source>GOVT Data</source><translation>Regierungsdaten</translation></message>
+ <message><source>AKShare Data</source><translation>AKShare-Daten</translation></message>
+ <message><source>Asia Markets</source><translation>Asien-Märkte</translation></message>
+ <message><source>Relationship Map</source><translation>Beziehungsdiagramm</translation></message>
+ <message><source>Trading &amp; Portfolio</source><translation>Handel &amp; Portfolio</translation></message>
+ <message><source>Equity Trading</source><translation>Aktienhandel</translation></message>
+ <message><source>Alpha Arena</source><translation>Alpha Arena</translation></message>
+ <message><source>Prediction Markets</source><translation>Prognosemärkte</translation></message>
+ <message><source>Derivatives</source><translation>Derivate</translation></message>
+ <message><source>F&amp;&amp;O</source><translation>F&amp;&amp;O</translation></message>
+ <message><source>Watchlist</source><translation>Beobachtungsliste</translation></message>
+ <message><source>Crypto</source><translation>Krypto</translation></message>
+ <message><source>Crypto Center</source><translation>Krypto-Zentrum</translation></message>
+ <message><source>Research &amp; Intelligence</source><translation>Recherche &amp; Analyse</translation></message>
+ <message><source>Equity Research</source><translation>Aktienanalyse</translation></message>
+ <message><source>M&amp;A Analytics</source><translation>M&amp;A-Analyse</translation></message>
+ <message><source>Alt. Investments</source><translation>Alternative Anlagen</translation></message>
+ <message><source>Geopolitics</source><translation>Geopolitik</translation></message>
+ <message><source>Maritime</source><translation>Schifffahrt</translation></message>
+ <message><source>Surface Analytics</source><translation>Volatilitätsoberflächen-Analyse</translation></message>
+ <message><source>Tools</source><translation>Werkzeuge</translation></message>
+ <message><source>Agent Config</source><translation>Agent-Konfig.</translation></message>
+ <message><source>Data Mapping</source><translation>Datenzuordnung</translation></message>
+ <message><source>Report Builder</source><translation>Berichtsersteller</translation></message>
+ <message><source>Trade Viz</source><translation>Handels-Vis.</translation></message>
+ <message><source>Notes</source><translation>Notizen</translation></message>
+ <message><source>Forum</source><translation>Forum</translation></message>
+ <message><source>Docs</source><translation>Doku</translation></message>
+ <message><source>Support</source><translation>Support</translation></message>
+ <message><source>About</source><translation>Über</translation></message>
+ <message><source>View</source><translation>Ansicht</translation></message>
+ <message><source>Component Browser Ctrl+K</source><translation>Komponenten-Browser Strg+K</translation></message>
+ <message><source>Fullscreen F11</source><translation>Vollbild F11</translation></message>
+ <message><source>Focus Mode F10</source><translation>Fokus-Modus F10</translation></message>
+ <message><source>Always on Top Ctrl+Shift+T</source><translation>Immer im Vordergrund Strg+Umschalt+T</translation></message>
+ <message><source>Float Panel</source><translation>Panel abdocken</translation></message>
+ <message><source>Dashboard</source><translation>Übersicht</translation></message>
+ <message><source>News Feed</source><translation>Nachrichtenfeed</translation></message>
+ <message><source>Portfolio</source><translation>Portfolio</translation></message>
+ <message><source>Markets</source><translation>Märkte</translation></message>
+ <message><source>Crypto Trading</source><translation>Krypto-Handel</translation></message>
+ <message><source>Algo Trading</source><translation>Algo-Handel</translation></message>
+ <message><source>AI Chat</source><translation>KI-Chat</translation></message>
+ <message><source>Quick Switch</source><translation>Schnellwechsel</translation></message>
+ <message><source>Save Workspace</source><translation>Arbeitsbereich speichern</translation></message>
+ <message><source>Trading</source><translation>Handel</translation></message>
+ <message><source>Research</source><translation>Recherche</translation></message>
+ <message><source>M&amp;&amp;A Analytics</source><translation>M&amp;&amp;A-Analyse</translation></message>
+ <message><source>Portfolio View</source><translation>Portfolio-Ansicht</translation></message>
+ <message><source>Markets View</source><translation>Markt-Ansicht</translation></message>
+ <message><source>News View</source><translation>Nachrichten-Ansicht</translation></message>
+ <message><source>Economics &amp;&amp; Data</source><translation>Wirtschaft &amp;&amp; Daten</translation></message>
+ <message><source>Geopolitics View</source><translation>Geopolitik-Ansicht</translation></message>
+ <message><source>AI &amp;&amp; Quant</source><translation>KI &amp;&amp; Quant</translation></message>
+ <message><source>Quant Lab</source><translation>Quant-Labor</translation></message>
+ <message><source>Tools View</source><translation>Werkzeug-Ansicht</translation></message>
+ <message><source>Refresh Screen F5</source><translation>Bildschirm aktualisieren F5</translation></message>
+ <message><source>Take Screenshot Ctrl+P</source><translation>Screenshot aufnehmen Strg+P</translation></message>
+ <message><source>Help</source><translation>Hilfe</translation></message>
+ <message><source>About Fincept</source><translation>Über Fincept</translation></message>
+ <message><source>Help Center</source><translation>Hilfe-Center</translation></message>
+ <message><source>Contact Us</source><translation>Kontaktieren Sie uns</translation></message>
+ <message><source>Terms of Service</source><translation>Nutzungsbedingungen</translation></message>
+ <message><source>Privacy Policy</source><translation>Datenschutzerklärung</translation></message>
+ <message><source>Trademarks</source><translation>Marken</translation></message>
+ <message><source>Check for Updates</source><translation>Nach Updates suchen</translation></message>
+ <message><source>Logout</source><translation>Abmelden</translation></message>
+ <message><source>News</source><translation>Nachrichten</translation></message>
+</context>
+<context>
+ <name>fincept::ui::TabBar</name>
+ <message><source>DASHBOARD</source><translation>ÜBERSICHT</translation></message>
+ <message><source>MARKETS</source><translation>MÄRKTE</translation></message>
+ <message><source>CRYPTO</source><translation>KRYPTO</translation></message>
+ <message><source>PORTFOLIO</source><translation>PORTFOLIO</translation></message>
+ <message><source>NEWS</source><translation>NACHR.</translation></message>
+ <message><source>AI CHAT</source><translation>KI-CHAT</translation></message>
+ <message><source>BACKTEST</source><translation>BACKTEST</translation></message>
+ <message><source>ALGO</source><translation>ALGO</translation></message>
+ <message><source>NODES</source><translation>KNOTEN</translation></message>
+ <message><source>CODE</source><translation>CODE</translation></message>
+ <message><source>QUANT LAB</source><translation>QUANT-LABOR</translation></message>
+ <message><source>QUANTLIB</source><translation>QUANTLIB</translation></message>
+ <message><source>FORUM</source><translation>FORUM</translation></message>
+ <message><source>SETTINGS</source><translation>EINSTELL.</translation></message>
+ <message><source>PROFILE</source><translation>PROFIL</translation></message>
+</context>
+<context>
+ <name>fincept::ui::StatusBar</name>
+ <message><source>READY</source><translation>BEREIT</translation></message>
+ <message><source>BUSY</source><translation>BESCHÄFTIGT</translation></message>
+</context>
+<context>
+ <name>fincept::WindowFrame</name>
+ <message><source>Save Layout</source><translation>Layout speichern</translation></message>
+ <message><source>Layout name:</source><translation>Layout-Name:</translation></message>
+ <message><source>Import Layout</source><translation>Layout importieren</translation></message>
+ <message><source>Fincept Layout (*.flayout *.fwsp);;All Files (*)</source><translation>Fincept-Layout (*.flayout *.fwsp);;Alle Dateien (*)</translation></message>
+ <message><source>Import Failed</source><translation>Import fehlgeschlagen</translation></message>
+ <message><source>Export Layout</source><translation>Layout exportieren</translation></message>
+ <message><source>Open or save a layout first, then export it.</source><translation>Öffnen oder speichern Sie zuerst ein Layout und exportieren Sie es dann.</translation></message>
+ <message><source>Fincept Layout (*.flayout)</source><translation>Fincept-Layout (*.flayout)</translation></message>
+ <message><source>Export Failed</source><translation>Export fehlgeschlagen</translation></message>
+ <message><source>Save Screenshot</source><translation>Screenshot speichern</translation></message>
+ <message><source>PNG Images (*.png)</source><translation>PNG-Bilder (*.png)</translation></message>
+</context>
+<context>
+ <name>fincept::DockScreenRouter</name>
+ <message><source>Dashboard</source><translation>Übersicht</translation></message>
+ <message><source>Markets</source><translation>Märkte</translation></message>
+ <message><source>Crypto Trading</source><translation>Krypto-Handel</translation></message>
+ <message><source>Equity Trading</source><translation>Aktienhandel</translation></message>
+ <message><source>Algo Trading</source><translation>Algo-Handel</translation></message>
+ <message><source>Backtesting</source><translation>Backtesting</translation></message>
+ <message><source>Portfolio</source><translation>Portfolio</translation></message>
+ <message><source>Watchlist</source><translation>Beobachtungsliste</translation></message>
+ <message><source>News</source><translation>Nachrichten</translation></message>
+ <message><source>AI Chat</source><translation>KI-Chat</translation></message>
+ <message><source>Equity Research</source><translation>Aktienanalyse</translation></message>
+ <message><source>Economics</source><translation>Wirtschaft</translation></message>
+ <message><source>AkShare Data</source><translation>AkShare-Daten</translation></message>
+ <message><source>Asia Markets</source><translation>Asien-Märkte</translation></message>
+ <message><source>Geopolitics</source><translation>Geopolitik</translation></message>
+ <message><source>Gov Data</source><translation>Regierungsdaten</translation></message>
+ <message><source>Maritime</source><translation>Schifffahrt</translation></message>
+ <message><source>Prediction Markets</source><translation>Prognosemärkte</translation></message>
+ <message><source>Relationship Map</source><translation>Beziehungsdiagramm</translation></message>
+ <message><source>Derivatives</source><translation>Derivate</translation></message>
+ <message><source>Alt Investments</source><translation>Alternative Anlagen</translation></message>
+ <message><source>M&amp;A Analytics</source><translation>M&amp;A-Analyse</translation></message>
+ <message><source>Surface Analytics</source><translation>Volatilitätsoberflächen-Analyse</translation></message>
+ <message><source>AI Quant Lab</source><translation>KI-Quant-Labor</translation></message>
+ <message><source>Alpha Arena</source><translation>Alpha Arena</translation></message>
+ <message><source>Agent Config</source><translation>Agent-Konfig.</translation></message>
+ <message><source>Node Editor</source><translation>Knoten-Editor</translation></message>
+ <message><source>Code Editor</source><translation>Code-Editor</translation></message>
+ <message><source>Report Builder</source><translation>Berichtsersteller</translation></message>
+ <message><source>Trade Viz</source><translation>Handels-Vis.</translation></message>
+ <message><source>Data Sources</source><translation>Datenquellen</translation></message>
+ <message><source>Data Mapping</source><translation>Datenzuordnung</translation></message>
+ <message><source>File Manager</source><translation>Dateiverwaltung</translation></message>
+ <message><source>Notes</source><translation>Notizen</translation></message>
+ <message><source>Forum</source><translation>Forum</translation></message>
+ <message><source>Docs</source><translation>Doku</translation></message>
+ <message><source>Support</source><translation>Support</translation></message>
+ <message><source>About</source><translation>Über</translation></message>
+ <message><source>Profile</source><translation>Profil</translation></message>
+ <message><source>Settings</source><translation>Einstellungen</translation></message>
+ <message><source>Contact</source><translation>Kontakt</translation></message>
+ <message><source>Terms</source><translation>Bedingungen</translation></message>
+ <message><source>Privacy</source><translation>Datenschutz</translation></message>
+ <message><source>Trademarks</source><translation>Marken</translation></message>
+ <message><source>Help</source><translation>Hilfe</translation></message>
+</context>
+</TS>
diff --git a/fincept-qt/translations/fincept_id_ID.ts b/fincept-qt/translations/fincept_id_ID.ts
new file mode 100644
index 000000000..f60b1f177
--- /dev/null
+++ b/fincept-qt/translations/fincept_id_ID.ts
@@ -0,0 +1,358 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1" language="id_ID" sourcelanguage="en">
+<context>
+ <name>fincept::screens::LoginScreen</name>
+ <message><source>SIGN IN</source><translation>MASUK</translation></message>
+ <message><source>Access your terminal account</source><translation>Akses akun terminal Anda</translation></message>
+ <message><source>EMAIL</source><translation>EMAIL</translation></message>
+ <message><source>[email protected]</source><translation>[email protected]</translation></message>
+ <message><source>PASSWORD</source><translation>KATA SANDI</translation></message>
+ <message><source>enter password</source><translation>masukkan kata sandi</translation></message>
+ <message><source>SHOW</source><translation>TAMPIL</translation></message>
+ <message><source>HIDE</source><translation>SEMBUNYI</translation></message>
+ <message><source>FORGOT PASSWORD?</source><translation>LUPA KATA SANDI?</translation></message>
+ <message><source> SIGN IN </source><translation> MASUK </translation></message>
+ <message><source> SIGNING IN... </source><translation> MASUK... </translation></message>
+ <message><source>No account?</source><translation>Belum punya akun?</translation></message>
+ <message><source>SIGN UP</source><translation>DAFTAR</translation></message>
+ <message><source>TWO-FACTOR AUTH</source><translation>AUTENTIKASI DUA FAKTOR</translation></message>
+ <message><source>SECURE</source><translation>AMAN</translation></message>
+ <message><source>Enter the 6-digit code from your authenticator</source><translation>Masukkan kode 6 digit dari aplikasi autentikator Anda</translation></message>
+ <message><source>VERIFICATION CODE</source><translation>KODE VERIFIKASI</translation></message>
+ <message><source> VERIFY </source><translation> VERIFIKASI </translation></message>
+ <message><source>BACK TO LOGIN</source><translation>KEMBALI KE MASUK</translation></message>
+ <message><source>SESSION CONFLICT</source><translation>SESI BERTENTANGAN</translation></message>
+ <message><source>WARNING</source><translation>PERINGATAN</translation></message>
+ <message><source> LOG OUT OTHER SESSION &amp; CONTINUE </source><translation> KELUAR DARI SESI LAIN &amp; LANJUTKAN </translation></message>
+ <message><source> CANCEL </source><translation> BATAL </translation></message>
+ <message><source>Please enter your password</source><translation>Silakan masukkan kata sandi Anda</translation></message>
+ <message><source>Please enter the code</source><translation>Silakan masukkan kodenya</translation></message>
+</context>
+<context>
+ <name>fincept::screens::RegisterScreen</name>
+ <message><source>CREATE ACCOUNT</source><translation>BUAT AKUN</translation></message>
+ <message><source>FIRST NAME</source><translation>NAMA DEPAN</translation></message>
+ <message><source>LAST NAME</source><translation>NAMA BELAKANG</translation></message>
+ <message><source>EMAIL</source><translation>EMAIL</translation></message>
+ <message><source>CODE</source><translation>KODE</translation></message>
+ <message><source>PHONE</source><translation>TELEPON</translation></message>
+ <message><source>PASSWORD</source><translation>KATA SANDI</translation></message>
+ <message><source>CONFIRM PASSWORD</source><translation>KONFIRMASI KATA SANDI</translation></message>
+ <message><source>First</source><translation>Depan</translation></message>
+ <message><source>Last</source><translation>Belakang</translation></message>
+ <message><source>[email protected]</source><translation>[email protected]</translation></message>
+ <message><source>+1</source><translation>+62</translation></message>
+ <message><source>234 567 8900</source><translation>812 3456 7890</translation></message>
+ <message><source>min 8 characters</source><translation>min. 8 karakter</translation></message>
+ <message><source>re-enter password</source><translation>masukkan ulang kata sandi</translation></message>
+ <message><source> CREATE ACCOUNT </source><translation> BUAT AKUN </translation></message>
+ <message><source> CREATING... </source><translation> MEMBUAT... </translation></message>
+ <message><source>Already have an account?</source><translation>Sudah punya akun?</translation></message>
+ <message><source>SIGN IN</source><translation>MASUK</translation></message>
+ <message><source>VERIFY EMAIL</source><translation>VERIFIKASI EMAIL</translation></message>
+ <message><source>VERIFICATION CODE</source><translation>KODE VERIFIKASI</translation></message>
+ <message><source>enter code from email</source><translation>masukkan kode dari email</translation></message>
+ <message><source> VERIFY </source><translation> VERIFIKASI </translation></message>
+ <message><source> VERIFYING... </source><translation> MEMVERIFIKASI... </translation></message>
+ <message><source>DIDN&apos;T RECEIVE? RESEND</source><translation>BELUM MENERIMA? KIRIM ULANG</translation></message>
+ <message><source>BACK TO FORM</source><translation>KEMBALI KE FORMULIR</translation></message>
+ <message><source>All fields are required</source><translation>Semua kolom wajib diisi</translation></message>
+ <message><source>Country code is required (e.g. +1, +91)</source><translation>Kode negara wajib diisi (mis. +62, +1)</translation></message>
+ <message><source>Passwords do not match</source><translation>Kata sandi tidak cocok</translation></message>
+ <message><source>Password must be at least 8 characters</source><translation>Kata sandi minimal harus 8 karakter</translation></message>
+ <message><source>Username must be 3-50 characters</source><translation>Nama pengguna harus 3-50 karakter</translation></message>
+ <message><source>Enter the verification code</source><translation>Masukkan kode verifikasi</translation></message>
+</context>
+<context>
+ <name>fincept::screens::ForgotPasswordScreen</name>
+ <message><source>RESET PASSWORD</source><translation>ATUR ULANG KATA SANDI</translation></message>
+ <message><source>Enter your email and we&apos;ll send a verification code.</source><translation>Masukkan email Anda dan kami akan mengirimkan kode verifikasi.</translation></message>
+ <message><source>EMAIL</source><translation>EMAIL</translation></message>
+ <message><source>[email protected]</source><translation>[email protected]</translation></message>
+ <message><source> SEND CODE </source><translation> KIRIM KODE </translation></message>
+ <message><source>REMEMBER YOUR PASSWORD? SIGN IN</source><translation>INGAT KATA SANDI ANDA? MASUK</translation></message>
+ <message><source>CHECK YOUR EMAIL</source><translation>PERIKSA EMAIL ANDA</translation></message>
+ <message><source>We&apos;ve sent a verification code. Enter it on the next screen to reset your password.</source><translation>Kami telah mengirimkan kode verifikasi. Masukkan pada layar berikutnya untuk mengatur ulang kata sandi.</translation></message>
+ <message><source> I HAVE THE CODE </source><translation> SAYA SUDAH MEMILIKI KODE </translation></message>
+ <message><source>DIDN&apos;T RECEIVE? RESEND</source><translation>BELUM MENERIMA? KIRIM ULANG</translation></message>
+ <message><source>VERIFICATION CODE</source><translation>KODE VERIFIKASI</translation></message>
+ <message><source>NEW PASSWORD</source><translation>KATA SANDI BARU</translation></message>
+ <message><source>CONFIRM PASSWORD</source><translation>KONFIRMASI KATA SANDI</translation></message>
+ <message><source>enter code from email</source><translation>masukkan kode dari email</translation></message>
+ <message><source>min 8 characters</source><translation>min. 8 karakter</translation></message>
+ <message><source>re-enter password</source><translation>masukkan ulang kata sandi</translation></message>
+ <message><source> RESET PASSWORD </source><translation> ATUR ULANG KATA SANDI </translation></message>
+ <message><source>PASSWORD RESET</source><translation>KATA SANDI DIATUR ULANG</translation></message>
+ <message><source>SUCCESS</source><translation>BERHASIL</translation></message>
+ <message><source>Your password has been reset. You can now sign in with your new password.</source><translation>Kata sandi Anda telah diatur ulang. Anda sekarang dapat masuk dengan kata sandi baru.</translation></message>
+ <message><source> CONTINUE TO LOGIN </source><translation> LANJUTKAN KE MASUK </translation></message>
+</context>
+<context>
+ <name>fincept::screens::LockScreen</name>
+ <message><source>SECURITY SETUP</source><translation>PENGATURAN KEAMANAN</translation></message>
+ <message><source>REQUIRED</source><translation>WAJIB</translation></message>
+ <message><source>Create a 6-digit PIN to secure your terminal</source><translation>Buat PIN 6 digit untuk mengamankan terminal Anda</translation></message>
+ <message><source>This PIN will be required each time you open
+the terminal or after a period of inactivity.</source><translation>PIN ini akan diminta setiap kali Anda membuka
+terminal atau setelah jangka waktu tidak aktif.</translation></message>
+ <message><source>ENTER PIN</source><translation>MASUKKAN PIN</translation></message>
+ <message><source>CONFIRM PIN</source><translation>KONFIRMASI PIN</translation></message>
+ <message><source> SET PIN </source><translation> ATUR PIN </translation></message>
+ <message><source>PIN is encrypted and stored locally on this device.
+It cannot be recovered if forgotten.</source><translation>PIN dienkripsi dan disimpan secara lokal pada perangkat ini.
+PIN tidak dapat dipulihkan jika lupa.</translation></message>
+ <message><source>TERMINAL LOCKED</source><translation>TERMINAL TERKUNCI</translation></message>
+ <message><source>SECURE</source><translation>AMAN</translation></message>
+ <message><source>Enter your 6-digit PIN to unlock</source><translation>Masukkan PIN 6 digit untuk membuka kunci</translation></message>
+ <message><source>PIN</source><translation>PIN</translation></message>
+ <message><source> UNLOCK </source><translation> BUKA KUNCI </translation></message>
+ <message><source>ACCOUNT LOCKED</source><translation>AKUN TERKUNCI</translation></message>
+ <message><source>SECURITY</source><translation>KEAMANAN</translation></message>
+ <message><source>Too many failed PIN attempts.
+
+For your security, the terminal has been locked.
+You must sign in again with your email and password
+to reset your PIN and regain access.</source><translation>Terlalu banyak percobaan PIN yang gagal.
+
+Demi keamanan Anda, terminal telah dikunci.
+Anda harus masuk kembali dengan email dan kata sandi
+untuk mengatur ulang PIN dan mendapatkan kembali akses.</translation></message>
+ <message><source> SIGN IN AGAIN </source><translation> MASUK KEMBALI </translation></message>
+ <message><source>PINs do not match</source><translation>PIN tidak cocok</translation></message>
+ <message><source>Enter your PIN</source><translation>Masukkan PIN Anda</translation></message>
+ <message><source>Incorrect PIN</source><translation>PIN salah</translation></message>
+ <message numerus="yes"><source>%n ATTEMPT(S) REMAINING</source><translation><numerusform>%n PERCOBAAN TERSISA</numerusform></translation></message>
+ <message><source>Locked for %1 — too many failed attempts</source><translation>Terkunci selama %1 — terlalu banyak percobaan gagal</translation></message>
+</context>
+<context>
+ <name>fincept::screens::SetupScreen</name>
+ <message><source>We need to download a few tools and data libraries once.
+This only happens the first time — future launches are instant.</source><translation>Kami perlu mengunduh beberapa alat dan pustaka data sekali saja.
+Hanya terjadi saat pertama kali — peluncuran selanjutnya akan langsung.</translation></message>
+ <message><source>Download Installer</source><translation>Unduh Pemasang</translation></message>
+ <message><source>Downloads the tool that manages everything else (~13 MB)</source><translation>Mengunduh alat yang mengelola semuanya (~13 MB)</translation></message>
+ <message><source>Install Python Runtime</source><translation>Pasang Runtime Python</translation></message>
+ <message><source>The programming language engine used for all analytics</source><translation>Mesin bahasa pemrograman yang digunakan untuk semua analitik</translation></message>
+ <message><source>Create Isolated Workspaces</source><translation>Buat Ruang Kerja Terisolasi</translation></message>
+ <message><source>Two sandboxed environments to keep library versions conflict-free</source><translation>Dua lingkungan sandbox agar versi pustaka tidak berbenturan</translation></message>
+ <message><source>Install Trading Libraries</source><translation>Pasang Pustaka Trading</translation></message>
+ <message><source>Backtesting, portfolio optimization and legacy quant tools</source><translation>Backtesting, optimisasi portofolio, dan alat kuantitatif lama</translation></message>
+ <message><source>Install Analytics Libraries</source><translation>Pasang Pustaka Analitik</translation></message>
+ <message><source>Machine learning, data science and AI agent frameworks</source><translation>Machine learning, ilmu data, dan kerangka kerja agen AI</translation></message>
+ <message><source>Installing to: %1</source><translation>Memasang ke: %1</translation></message>
+ <message><source>Getting your workspace ready</source><translation>Mempersiapkan ruang kerja Anda</translation></message>
+ <message><source>Your workspace is fully configured</source><translation>Ruang kerja Anda telah dikonfigurasi sepenuhnya</translation></message>
+ <message><source>Finishing your workspace setup</source><translation>Menyelesaikan pengaturan ruang kerja Anda</translation></message>
+ <message><source>BEGIN SETUP</source><translation>MULAI PEMASANGAN</translation></message>
+ <message><source>SETTING UP...</source><translation>MEMASANG...</translation></message>
+ <message><source>RETRY SETUP</source><translation>COBA LAGI</translation></message>
+ <message><source>LAUNCH</source><translation>LUNCURKAN</translation></message>
+ <message><source>CONTINUE SETUP</source><translation>LANJUTKAN PEMASANGAN</translation></message>
+ <message><source>ALREADY COMPLETE</source><translation>SUDAH SELESAI</translation></message>
+ <message><source>SKIP &amp; CONTINUE</source><translation>LEWATI &amp; LANJUT</translation></message>
+ <message><source>Takes about 3–5 minutes. Needs an internet connection.</source><translation>Memakan waktu sekitar 3–5 menit. Membutuhkan koneksi internet.</translation></message>
+ <message><source>Setup in progress — please keep the application open</source><translation>Pemasangan sedang berlangsung — harap biarkan aplikasi tetap terbuka</translation></message>
+ <message><source>Everything is ready! Launching Fincept Terminal...</source><translation>Semua siap! Meluncurkan Fincept Terminal...</translation></message>
+ <message><source>Only the missing pieces will be downloaded. Needs an internet connection.</source><translation>Hanya bagian yang hilang yang akan diunduh. Membutuhkan koneksi internet.</translation></message>
+ <message><source>Setup failed: %1</source><translation>Pemasangan gagal: %1</translation></message>
+ <message><source>Unknown error — see logs for details.</source><translation>Kesalahan tidak diketahui — lihat log untuk detailnya.</translation></message>
+ <message><source>Setup is taking longer than expected — possibly a slow internet connection.
+You can wait or skip and continue with limited functionality.</source><translation>Pemasangan memakan waktu lebih lama dari yang diharapkan — kemungkinan koneksi internet lambat.
+Anda dapat menunggu atau melewati dan melanjutkan dengan fungsi terbatas.</translation></message>
+ <message><source>Waiting</source><translation>Menunggu</translation></message>
+ <message><source>Working...</source><translation>Memproses...</translation></message>
+ <message><source>DONE</source><translation>SELESAI</translation></message>
+ <message><source>FAILED</source><translation>GAGAL</translation></message>
+ <message><source>Elapsed: %1s</source><translation>Berjalan: %1d</translation></message>
+ <message><source>Elapsed: %1m %2s</source><translation>Berjalan: %1m %2d</translation></message>
+ <message><source>Trading workspace</source><translation>Ruang kerja trading</translation></message>
+ <message><source>Analytics workspace</source><translation>Ruang kerja analitik</translation></message>
+ <message><source>trading library list</source><translation>daftar pustaka trading</translation></message>
+ <message><source>analytics library list</source><translation>daftar pustaka analitik</translation></message>
+ <message><source>Everything is installed and ready to go.</source><translation>Semua telah terpasang dan siap digunakan.</translation></message>
+</context>
+<context>
+ <name>fincept::screens::SettingsScreen</name>
+ <message><source>SETTINGS</source><translation>PENGATURAN</translation></message>
+ <message><source>SHELL</source><translation>APLIKASI</translation></message>
+ <message><source>PROFILE</source><translation>PROFIL</translation></message>
+ <message><source>General</source><translation>Umum</translation></message>
+ <message><source>Appearance</source><translation>Tampilan</translation></message>
+ <message><source>Notifications</source><translation>Notifikasi</translation></message>
+ <message><source>Keybindings</source><translation>Pintasan</translation></message>
+ <message><source>Voice</source><translation>Suara</translation></message>
+ <message><source>Logging</source><translation>Log</translation></message>
+ <message><source>Developer</source><translation>Pengembang</translation></message>
+ <message><source>Profiles</source><translation>Profil</translation></message>
+ <message><source>Credentials</source><translation>Kredensial</translation></message>
+ <message><source>Security</source><translation>Keamanan</translation></message>
+ <message><source>Data Sources</source><translation>Sumber Data</translation></message>
+ <message><source>LLM Config</source><translation>Konfig. LLM</translation></message>
+ <message><source>MCP Servers</source><translation>Server MCP</translation></message>
+ <message><source>Python Env</source><translation>Lingk. Python</translation></message>
+ <message><source>Storage &amp; Cache</source><translation>Penyimp. &amp; Cache</translation></message>
+</context>
+<context>
+ <name>fincept::screens::GeneralSection</name>
+ <message><source>WINDOW BEHAVIOUR</source><translation>PERILAKU JENDELA</translation></message>
+ <message><source>Quit application</source><translation>Keluar aplikasi</translation></message>
+ <message><source>Show Launchpad</source><translation>Tampilkan Launchpad</translation></message>
+ <message><source>On last window close</source><translation>Saat jendela terakhir ditutup</translation></message>
+ <message><source>LANGUAGE</source><translation>BAHASA</translation></message>
+ <message><source>Interface language</source><translation>Bahasa antarmuka</translation></message>
+</context>
+<context>
+ <name>fincept::screens::AppearanceSection</name>
+ <message><source>TYPOGRAPHY</source><translation>TIPOGRAFI</translation></message>
+ <message><source>Font Size</source><translation>Ukuran Font</translation></message>
+ <message><source>Font Family</source><translation>Keluarga Font</translation></message>
+ <message><source>THEME</source><translation>TEMA</translation></message>
+ <message><source>INTERFACE</source><translation>ANTARMUKA</translation></message>
+ <message><source>Save Settings</source><translation>Simpan Pengaturan</translation></message>
+</context>
+<context>
+ <name>fincept::screens::ProfilesSection</name>
+ <message><source>Profiles</source><translation>Profil</translation></message>
+ <message><source>ACTIVE</source><translation>AKTIF</translation></message>
+ <message><source>Switch</source><translation>Beralih</translation></message>
+</context>
+<context>
+ <name>fincept::screens::LoggingSection</name>
+ <message><source>LOGGING</source><translation>LOG</translation></message>
+ <message><source>Apply &amp; Save</source><translation>Terapkan &amp; Simpan</translation></message>
+</context>
+<context>
+ <name>fincept::screens::NotificationsSection</name>
+ <message><source>NOTIFICATION PROVIDERS</source><translation>PENYEDIA NOTIFIKASI</translation></message>
+ <message><source>ALERT TRIGGERS</source><translation>PEMICU PERINGATAN</translation></message>
+</context>
+<context>
+ <name>fincept::screens::KeybindingsSection</name>
+ <message><source>Apply</source><translation>Terapkan</translation></message>
+ <message><source>Cancel</source><translation>Batal</translation></message>
+ <message><source>Reset</source><translation>Reset</translation></message>
+</context>
+<context>
+ <name>fincept::screens::CredentialsSection</name>
+ <message><source>API CREDENTIALS</source><translation>KREDENSIAL API</translation></message>
+ <message><source>Save</source><translation>Simpan</translation></message>
+</context>
+<context>
+ <name>fincept::screens::SecuritySection</name>
+ <message><source>PIN AUTHENTICATION</source><translation>AUTENTIKASI PIN</translation></message>
+ <message><source>CHANGE PIN</source><translation>UBAH PIN</translation></message>
+ <message><source>AUTO-LOCK</source><translation>KUNCI OTOMATIS</translation></message>
+ <message><source>AUDIT LOG</source><translation>LOG AUDIT</translation></message>
+</context>
+<context>
+ <name>fincept::screens::DataSourcesSection</name>
+ <message><source>DATA SOURCES</source><translation>SUMBER DATA</translation></message>
+ <message><source>CONNECTIONS</source><translation>KONEKSI</translation></message>
+ <message><source>BULK ACTIONS</source><translation>TINDAKAN MASSAL</translation></message>
+</context>
+<context>
+ <name>fincept::screens::McpServersSection</name>
+ <message><source>MCP SERVERS</source><translation>SERVER MCP</translation></message>
+</context>
+<context>
+ <name>fincept::screens::StorageSection</name>
+ <message><source>STORAGE &amp; DATA MANAGEMENT</source><translation>PENGELOLAAN PENYIMPANAN &amp; DATA</translation></message>
+</context>
+<context>
+ <name>fincept::screens::VoiceConfigSection</name>
+ <message><source>VOICE — SPEECH-TO-TEXT &amp; TEXT-TO-SPEECH</source><translation>SUARA — UCAPAN-KE-TEKS &amp; TEKS-KE-UCAPAN</translation></message>
+</context>
+<context>
+ <name>fincept::screens::PythonEnvSection</name>
+ <message><source>PYTHON ENVIRONMENTS</source><translation>LINGKUNGAN PYTHON</translation></message>
+</context>
+<context>
+ <name>fincept::screens::LlmConfigSection</name>
+ <message><source>LLM CONFIGURATION</source><translation>KONFIGURASI LLM</translation></message>
+ <message><source>PROFILES</source><translation>PROFIL</translation></message>
+</context>
+<context>
+ <name>fincept::ui::ToolBar</name>
+ <message><source> LIVE</source><translation> LANGSUNG</translation></message>
+ <message><source>LOGOUT</source><translation>KELUAR</translation></message>
+ <message><source>FREE</source><translation>GRATIS</translation></message>
+ <message><source>File</source><translation>Berkas</translation></message>
+ <message><source>New Window</source><translation>Jendela Baru</translation></message>
+ <message><source>Move to Monitor</source><translation>Pindah ke Monitor</translation></message>
+ <message><source>(single monitor)</source><translation>(monitor tunggal)</translation></message>
+ <message><source>New Layout</source><translation>Tata Letak Baru</translation></message>
+ <message><source>Save Layout</source><translation>Simpan Tata Letak</translation></message>
+ <message><source>Import Layout</source><translation>Impor Tata Letak</translation></message>
+ <message><source>Export Layout</source><translation>Ekspor Tata Letak</translation></message>
+ <message><source>File Manager</source><translation>Manajer Berkas</translation></message>
+ <message><source>Refresh All</source><translation>Segarkan Semua</translation></message>
+ <message><source>Navigate</source><translation>Navigasi</translation></message>
+ <message><source>Markets &amp; Data</source><translation>Pasar &amp; Data</translation></message>
+ <message><source>Economics</source><translation>Ekonomi</translation></message>
+ <message><source>Trading &amp; Portfolio</source><translation>Trading &amp; Portofolio</translation></message>
+ <message><source>Equity Trading</source><translation>Trading Saham</translation></message>
+ <message><source>Watchlist</source><translation>Daftar Pantauan</translation></message>
+ <message><source>Crypto</source><translation>Kripto</translation></message>
+ <message><source>Research &amp; Intelligence</source><translation>Riset &amp; Intelijen</translation></message>
+ <message><source>Geopolitics</source><translation>Geopolitik</translation></message>
+ <message><source>Tools</source><translation>Alat</translation></message>
+ <message><source>Notes</source><translation>Catatan</translation></message>
+ <message><source>Forum</source><translation>Forum</translation></message>
+ <message><source>Support</source><translation>Dukungan</translation></message>
+ <message><source>About</source><translation>Tentang</translation></message>
+ <message><source>View</source><translation>Tampilan</translation></message>
+ <message><source>Dashboard</source><translation>Dasbor</translation></message>
+ <message><source>Portfolio</source><translation>Portofolio</translation></message>
+ <message><source>Markets</source><translation>Pasar</translation></message>
+ <message><source>Crypto Trading</source><translation>Trading Kripto</translation></message>
+ <message><source>AI Chat</source><translation>Obrolan AI</translation></message>
+ <message><source>Help</source><translation>Bantuan</translation></message>
+ <message><source>Logout</source><translation>Keluar</translation></message>
+ <message><source>News</source><translation>Berita</translation></message>
+</context>
+<context>
+ <name>fincept::ui::TabBar</name>
+ <message><source>DASHBOARD</source><translation>DASBOR</translation></message>
+ <message><source>MARKETS</source><translation>PASAR</translation></message>
+ <message><source>CRYPTO</source><translation>KRIPTO</translation></message>
+ <message><source>PORTFOLIO</source><translation>PORTOFOLIO</translation></message>
+ <message><source>NEWS</source><translation>BERITA</translation></message>
+ <message><source>AI CHAT</source><translation>OBROLAN AI</translation></message>
+ <message><source>BACKTEST</source><translation>BACKTEST</translation></message>
+ <message><source>ALGO</source><translation>ALGO</translation></message>
+ <message><source>NODES</source><translation>SIMPUL</translation></message>
+ <message><source>CODE</source><translation>KODE</translation></message>
+ <message><source>QUANT LAB</source><translation>LAB QUANT</translation></message>
+ <message><source>FORUM</source><translation>FORUM</translation></message>
+ <message><source>SETTINGS</source><translation>PENGATURAN</translation></message>
+ <message><source>PROFILE</source><translation>PROFIL</translation></message>
+</context>
+<context>
+ <name>fincept::ui::StatusBar</name>
+ <message><source>READY</source><translation>SIAP</translation></message>
+ <message><source>BUSY</source><translation>SIBUK</translation></message>
+</context>
+<context>
+ <name>fincept::DockScreenRouter</name>
+ <message><source>Dashboard</source><translation>Dasbor</translation></message>
+ <message><source>Markets</source><translation>Pasar</translation></message>
+ <message><source>Crypto Trading</source><translation>Trading Kripto</translation></message>
+ <message><source>Equity Trading</source><translation>Trading Saham</translation></message>
+ <message><source>Portfolio</source><translation>Portofolio</translation></message>
+ <message><source>Watchlist</source><translation>Daftar Pantauan</translation></message>
+ <message><source>News</source><translation>Berita</translation></message>
+ <message><source>AI Chat</source><translation>Obrolan AI</translation></message>
+ <message><source>Economics</source><translation>Ekonomi</translation></message>
+ <message><source>Geopolitics</source><translation>Geopolitik</translation></message>
+ <message><source>Data Sources</source><translation>Sumber Data</translation></message>
+ <message><source>File Manager</source><translation>Manajer Berkas</translation></message>
+ <message><source>Notes</source><translation>Catatan</translation></message>
+ <message><source>Forum</source><translation>Forum</translation></message>
+ <message><source>Support</source><translation>Dukungan</translation></message>
+ <message><source>About</source><translation>Tentang</translation></message>
+ <message><source>Profile</source><translation>Profil</translation></message>
+ <message><source>Settings</source><translation>Pengaturan</translation></message>
+ <message><source>Help</source><translation>Bantuan</translation></message>
+</context>
+</TS>
diff --git a/fincept-qt/translations/fincept_pt_BR.ts b/fincept-qt/translations/fincept_pt_BR.ts
new file mode 100644
index 000000000..8b88171a5
--- /dev/null
+++ b/fincept-qt/translations/fincept_pt_BR.ts
@@ -0,0 +1,514 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1" language="pt_BR" sourcelanguage="en">
+<context>
+ <name>fincept::screens::LoginScreen</name>
+ <message><source>SIGN IN</source><translation>ENTRAR</translation></message>
+ <message><source>Access your terminal account</source><translation>Acesse sua conta do terminal</translation></message>
+ <message><source>EMAIL</source><translation>E-MAIL</translation></message>
+ <message><source>[email protected]</source><translation>[email protected]</translation></message>
+ <message><source>PASSWORD</source><translation>SENHA</translation></message>
+ <message><source>enter password</source><translation>digite a senha</translation></message>
+ <message><source>SHOW</source><translation>MOSTRAR</translation></message>
+ <message><source>HIDE</source><translation>OCULTAR</translation></message>
+ <message><source>FORGOT PASSWORD?</source><translation>ESQUECEU A SENHA?</translation></message>
+ <message><source> SIGN IN </source><translation> ENTRAR </translation></message>
+ <message><source> SIGNING IN... </source><translation> ENTRANDO... </translation></message>
+ <message><source>No account?</source><translation>Sem conta?</translation></message>
+ <message><source>SIGN UP</source><translation>CADASTRAR</translation></message>
+ <message><source>TWO-FACTOR AUTH</source><translation>AUTENTICAÇÃO 2 FATORES</translation></message>
+ <message><source>SECURE</source><translation>SEGURO</translation></message>
+ <message><source>Enter the 6-digit code from your authenticator</source><translation>Digite o código de 6 dígitos do seu autenticador</translation></message>
+ <message><source>VERIFICATION CODE</source><translation>CÓDIGO DE VERIFICAÇÃO</translation></message>
+ <message><source> VERIFY </source><translation> VERIFICAR </translation></message>
+ <message><source>BACK TO LOGIN</source><translation>VOLTAR AO LOGIN</translation></message>
+ <message><source>SESSION CONFLICT</source><translation>CONFLITO DE SESSÃO</translation></message>
+ <message><source>WARNING</source><translation>AVISO</translation></message>
+ <message><source> LOG OUT OTHER SESSION &amp; CONTINUE </source><translation> SAIR DA OUTRA SESSÃO E CONTINUAR </translation></message>
+ <message><source> CANCEL </source><translation> CANCELAR </translation></message>
+ <message><source>Please enter your password</source><translation>Por favor, digite sua senha</translation></message>
+ <message><source>Please enter the code</source><translation>Por favor, digite o código</translation></message>
+</context>
+<context>
+ <name>fincept::screens::RegisterScreen</name>
+ <message><source>CREATE ACCOUNT</source><translation>CRIAR CONTA</translation></message>
+ <message><source>FIRST NAME</source><translation>NOME</translation></message>
+ <message><source>LAST NAME</source><translation>SOBRENOME</translation></message>
+ <message><source>EMAIL</source><translation>E-MAIL</translation></message>
+ <message><source>CODE</source><translation>DDI</translation></message>
+ <message><source>PHONE</source><translation>TELEFONE</translation></message>
+ <message><source>PASSWORD</source><translation>SENHA</translation></message>
+ <message><source>CONFIRM PASSWORD</source><translation>CONFIRMAR SENHA</translation></message>
+ <message><source>First</source><translation>Nome</translation></message>
+ <message><source>Last</source><translation>Sobrenome</translation></message>
+ <message><source>[email protected]</source><translation>[email protected]</translation></message>
+ <message><source>+1</source><translation>+55</translation></message>
+ <message><source>234 567 8900</source><translation>11 91234 5678</translation></message>
+ <message><source>min 8 characters</source><translation>mín. 8 caracteres</translation></message>
+ <message><source>re-enter password</source><translation>digite a senha novamente</translation></message>
+ <message><source> CREATE ACCOUNT </source><translation> CRIAR CONTA </translation></message>
+ <message><source> CREATING... </source><translation> CRIANDO... </translation></message>
+ <message><source>Already have an account?</source><translation>Já tem uma conta?</translation></message>
+ <message><source>SIGN IN</source><translation>ENTRAR</translation></message>
+ <message><source>VERIFY EMAIL</source><translation>VERIFICAR E-MAIL</translation></message>
+ <message><source>VERIFICATION CODE</source><translation>CÓDIGO DE VERIFICAÇÃO</translation></message>
+ <message><source>enter code from email</source><translation>digite o código do e-mail</translation></message>
+ <message><source> VERIFY </source><translation> VERIFICAR </translation></message>
+ <message><source> VERIFYING... </source><translation> VERIFICANDO... </translation></message>
+ <message><source>DIDN&apos;T RECEIVE? RESEND</source><translation>NÃO RECEBEU? REENVIAR</translation></message>
+ <message><source>BACK TO FORM</source><translation>VOLTAR AO FORMULÁRIO</translation></message>
+ <message><source>All fields are required</source><translation>Todos os campos são obrigatórios</translation></message>
+ <message><source>Country code is required (e.g. +1, +91)</source><translation>O código do país é obrigatório (ex.: +55, +1)</translation></message>
+ <message><source>Passwords do not match</source><translation>As senhas não coincidem</translation></message>
+ <message><source>Password must be at least 8 characters</source><translation>A senha deve ter no mínimo 8 caracteres</translation></message>
+ <message><source>Username must be 3-50 characters</source><translation>O nome de usuário deve ter de 3 a 50 caracteres</translation></message>
+ <message><source>Enter the verification code</source><translation>Digite o código de verificação</translation></message>
+</context>
+<context>
+ <name>fincept::screens::ForgotPasswordScreen</name>
+ <message><source>RESET PASSWORD</source><translation>REDEFINIR SENHA</translation></message>
+ <message><source>Enter your email and we&apos;ll send a verification code.</source><translation>Digite seu e-mail e enviaremos um código de verificação.</translation></message>
+ <message><source>EMAIL</source><translation>E-MAIL</translation></message>
+ <message><source>[email protected]</source><translation>[email protected]</translation></message>
+ <message><source> SEND CODE </source><translation> ENVIAR CÓDIGO </translation></message>
+ <message><source>REMEMBER YOUR PASSWORD? SIGN IN</source><translation>LEMBROU DA SENHA? ENTRAR</translation></message>
+ <message><source>CHECK YOUR EMAIL</source><translation>VERIFIQUE SEU E-MAIL</translation></message>
+ <message><source>We&apos;ve sent a verification code. Enter it on the next screen to reset your password.</source><translation>Enviamos um código de verificação. Digite-o na próxima tela para redefinir sua senha.</translation></message>
+ <message><source> I HAVE THE CODE </source><translation> JÁ TENHO O CÓDIGO </translation></message>
+ <message><source>DIDN&apos;T RECEIVE? RESEND</source><translation>NÃO RECEBEU? REENVIAR</translation></message>
+ <message><source>VERIFICATION CODE</source><translation>CÓDIGO DE VERIFICAÇÃO</translation></message>
+ <message><source>NEW PASSWORD</source><translation>NOVA SENHA</translation></message>
+ <message><source>CONFIRM PASSWORD</source><translation>CONFIRMAR SENHA</translation></message>
+ <message><source>enter code from email</source><translation>digite o código do e-mail</translation></message>
+ <message><source>min 8 characters</source><translation>mín. 8 caracteres</translation></message>
+ <message><source>re-enter password</source><translation>digite a senha novamente</translation></message>
+ <message><source> RESET PASSWORD </source><translation> REDEFINIR SENHA </translation></message>
+ <message><source>PASSWORD RESET</source><translation>SENHA REDEFINIDA</translation></message>
+ <message><source>SUCCESS</source><translation>SUCESSO</translation></message>
+ <message><source>Your password has been reset. You can now sign in with your new password.</source><translation>Sua senha foi redefinida. Agora você pode entrar com a nova senha.</translation></message>
+ <message><source> CONTINUE TO LOGIN </source><translation> CONTINUAR PARA O LOGIN </translation></message>
+</context>
+<context>
+ <name>fincept::screens::LockScreen</name>
+ <message><source>SECURITY SETUP</source><translation>CONFIGURAÇÃO DE SEGURANÇA</translation></message>
+ <message><source>REQUIRED</source><translation>OBRIGATÓRIO</translation></message>
+ <message><source>Create a 6-digit PIN to secure your terminal</source><translation>Crie um PIN de 6 dígitos para proteger seu terminal</translation></message>
+ <message><source>This PIN will be required each time you open
+the terminal or after a period of inactivity.</source><translation>Este PIN será solicitado sempre que você abrir
+o terminal ou após um período de inatividade.</translation></message>
+ <message><source>ENTER PIN</source><translation>DIGITAR PIN</translation></message>
+ <message><source>CONFIRM PIN</source><translation>CONFIRMAR PIN</translation></message>
+ <message><source> SET PIN </source><translation> DEFINIR PIN </translation></message>
+ <message><source>PIN is encrypted and stored locally on this device.
+It cannot be recovered if forgotten.</source><translation>O PIN é criptografado e armazenado localmente neste dispositivo.
+Não pode ser recuperado se esquecido.</translation></message>
+ <message><source>TERMINAL LOCKED</source><translation>TERMINAL BLOQUEADO</translation></message>
+ <message><source>SECURE</source><translation>SEGURO</translation></message>
+ <message><source>Enter your 6-digit PIN to unlock</source><translation>Digite seu PIN de 6 dígitos para desbloquear</translation></message>
+ <message><source>PIN</source><translation>PIN</translation></message>
+ <message><source> UNLOCK </source><translation> DESBLOQUEAR </translation></message>
+ <message><source>ACCOUNT LOCKED</source><translation>CONTA BLOQUEADA</translation></message>
+ <message><source>SECURITY</source><translation>SEGURANÇA</translation></message>
+ <message><source>Too many failed PIN attempts.
+
+For your security, the terminal has been locked.
+You must sign in again with your email and password
+to reset your PIN and regain access.</source><translation>Muitas tentativas de PIN falharam.
+
+Por segurança, o terminal foi bloqueado.
+Você deve entrar novamente com seu e-mail e senha
+para redefinir o PIN e recuperar o acesso.</translation></message>
+ <message><source> SIGN IN AGAIN </source><translation> ENTRAR NOVAMENTE </translation></message>
+ <message><source>PINs do not match</source><translation>Os PINs não coincidem</translation></message>
+ <message><source>Enter your PIN</source><translation>Digite seu PIN</translation></message>
+ <message><source>Incorrect PIN</source><translation>PIN incorreto</translation></message>
+ <message numerus="yes"><source>%n ATTEMPT(S) REMAINING</source><translation><numerusform>%n TENTATIVA RESTANTE</numerusform><numerusform>%n TENTATIVAS RESTANTES</numerusform></translation></message>
+ <message><source>Locked for %1 — too many failed attempts</source><translation>Bloqueado por %1 — muitas tentativas falharam</translation></message>
+</context>
+<context>
+ <name>fincept::screens::SetupScreen</name>
+ <message><source>We need to download a few tools and data libraries once.
+This only happens the first time — future launches are instant.</source><translation>Precisamos baixar algumas ferramentas e bibliotecas de dados uma única vez.
+Isso só acontece na primeira vez — as inicializações futuras são instantâneas.</translation></message>
+ <message><source>Download Installer</source><translation>Baixar Instalador</translation></message>
+ <message><source>Downloads the tool that manages everything else (~13 MB)</source><translation>Baixa a ferramenta que gerencia todo o resto (~13 MB)</translation></message>
+ <message><source>Install Python Runtime</source><translation>Instalar Ambiente Python</translation></message>
+ <message><source>The programming language engine used for all analytics</source><translation>O motor da linguagem de programação usado em todas as análises</translation></message>
+ <message><source>Create Isolated Workspaces</source><translation>Criar Espaços de Trabalho Isolados</translation></message>
+ <message><source>Two sandboxed environments to keep library versions conflict-free</source><translation>Dois ambientes isolados para evitar conflitos de versões de bibliotecas</translation></message>
+ <message><source>Install Trading Libraries</source><translation>Instalar Bibliotecas de Trading</translation></message>
+ <message><source>Backtesting, portfolio optimization and legacy quant tools</source><translation>Backtesting, otimização de portfólio e ferramentas quantitativas legadas</translation></message>
+ <message><source>Install Analytics Libraries</source><translation>Instalar Bibliotecas de Análise</translation></message>
+ <message><source>Machine learning, data science and AI agent frameworks</source><translation>Aprendizado de máquina, ciência de dados e frameworks de agentes de IA</translation></message>
+ <message><source>Installing to: %1</source><translation>Instalando em: %1</translation></message>
+ <message><source>Getting your workspace ready</source><translation>Preparando seu espaço de trabalho</translation></message>
+ <message><source>Your workspace is fully configured</source><translation>Seu espaço de trabalho está totalmente configurado</translation></message>
+ <message><source>Finishing your workspace setup</source><translation>Finalizando a configuração do espaço de trabalho</translation></message>
+ <message><source>BEGIN SETUP</source><translation>INICIAR INSTALAÇÃO</translation></message>
+ <message><source>SETTING UP...</source><translation>INSTALANDO...</translation></message>
+ <message><source>RETRY SETUP</source><translation>TENTAR NOVAMENTE</translation></message>
+ <message><source>LAUNCH</source><translation>INICIAR</translation></message>
+ <message><source>CONTINUE SETUP</source><translation>CONTINUAR INSTALAÇÃO</translation></message>
+ <message><source>ALREADY COMPLETE</source><translation>JÁ CONCLUÍDO</translation></message>
+ <message><source>SKIP &amp; CONTINUE</source><translation>PULAR &amp; CONTINUAR</translation></message>
+ <message><source>Takes about 3–5 minutes. Needs an internet connection.</source><translation>Leva cerca de 3–5 minutos. Necessita conexão com a internet.</translation></message>
+ <message><source>Setup in progress — please keep the application open</source><translation>Instalação em andamento — mantenha o aplicativo aberto</translation></message>
+ <message><source>Everything is ready! Launching Fincept Terminal...</source><translation>Tudo pronto! Iniciando o Fincept Terminal...</translation></message>
+ <message><source>Only the missing pieces will be downloaded. Needs an internet connection.</source><translation>Apenas as partes faltantes serão baixadas. Necessita conexão com a internet.</translation></message>
+ <message><source>Setup failed: %1</source><translation>Falha na instalação: %1</translation></message>
+ <message><source>Unknown error — see logs for details.</source><translation>Erro desconhecido — veja os logs para detalhes.</translation></message>
+ <message><source>Setup is taking longer than expected — possibly a slow internet connection.
+You can wait or skip and continue with limited functionality.</source><translation>A instalação está demorando mais do que o esperado — possivelmente uma conexão lenta.
+Você pode esperar ou pular e continuar com funcionalidade limitada.</translation></message>
+ <message><source>Waiting</source><translation>Aguardando</translation></message>
+ <message><source>Working...</source><translation>Trabalhando...</translation></message>
+ <message><source>DONE</source><translation>CONCLUÍDO</translation></message>
+ <message><source>FAILED</source><translation>FALHOU</translation></message>
+ <message><source>Elapsed: %1s</source><translation>Decorrido: %1s</translation></message>
+ <message><source>Elapsed: %1m %2s</source><translation>Decorrido: %1m %2s</translation></message>
+ <message><source>Trading workspace</source><translation>Espaço de trabalho de trading</translation></message>
+ <message><source>Analytics workspace</source><translation>Espaço de trabalho de análise</translation></message>
+ <message><source>trading library list</source><translation>lista de bibliotecas de trading</translation></message>
+ <message><source>analytics library list</source><translation>lista de bibliotecas de análise</translation></message>
+ <message><source>Everything is installed and ready to go.</source><translation>Tudo está instalado e pronto para uso.</translation></message>
+</context>
+<context>
+ <name>fincept::screens::SettingsScreen</name>
+ <message><source>SETTINGS</source><translation>CONFIGURAÇÕES</translation></message>
+ <message><source>SHELL</source><translation>APLICATIVO</translation></message>
+ <message><source>PROFILE</source><translation>PERFIL</translation></message>
+ <message><source>General</source><translation>Geral</translation></message>
+ <message><source>Appearance</source><translation>Aparência</translation></message>
+ <message><source>Notifications</source><translation>Notificações</translation></message>
+ <message><source>Keybindings</source><translation>Atalhos</translation></message>
+ <message><source>Voice</source><translation>Voz</translation></message>
+ <message><source>Logging</source><translation>Registro</translation></message>
+ <message><source>Developer</source><translation>Desenvolvedor</translation></message>
+ <message><source>Profiles</source><translation>Perfis</translation></message>
+ <message><source>Credentials</source><translation>Credenciais</translation></message>
+ <message><source>Security</source><translation>Segurança</translation></message>
+ <message><source>Data Sources</source><translation>Fontes de Dados</translation></message>
+ <message><source>LLM Config</source><translation>Config. LLM</translation></message>
+ <message><source>MCP Servers</source><translation>Servidores MCP</translation></message>
+ <message><source>Python Env</source><translation>Ambiente Python</translation></message>
+ <message><source>Storage &amp; Cache</source><translation>Armazen. &amp; Cache</translation></message>
+</context>
+<context>
+ <name>fincept::screens::GeneralSection</name>
+ <message><source>WINDOW BEHAVIOUR</source><translation>COMPORTAMENTO DA JANELA</translation></message>
+ <message><source>Quit application</source><translation>Sair do aplicativo</translation></message>
+ <message><source>Show Launchpad</source><translation>Mostrar Launchpad</translation></message>
+ <message><source>On last window close</source><translation>Ao fechar a última janela</translation></message>
+ <message><source>LANGUAGE</source><translation>IDIOMA</translation></message>
+ <message><source>Interface language</source><translation>Idioma da interface</translation></message>
+</context>
+<context>
+ <name>fincept::screens::AppearanceSection</name>
+ <message><source>TYPOGRAPHY</source><translation>TIPOGRAFIA</translation></message>
+ <message><source>Font Size</source><translation>Tamanho da Fonte</translation></message>
+ <message><source>Font Family</source><translation>Família da Fonte</translation></message>
+ <message><source>THEME</source><translation>TEMA</translation></message>
+ <message><source>Content Density</source><translation>Densidade do Conteúdo</translation></message>
+ <message><source>INTERFACE</source><translation>INTERFACE</translation></message>
+ <message><source>AI Chat Bubble</source><translation>Bolha de Chat IA</translation></message>
+ <message><source>Ticker Bar</source><translation>Barra de Cotações</translation></message>
+ <message><source>Animations</source><translation>Animações</translation></message>
+ <message><source>Save Settings</source><translation>Salvar Configurações</translation></message>
+</context>
+<context>
+ <name>fincept::screens::DeveloperSection</name>
+ <message><source>Agentic Mode (Experimental)</source><translation>Modo Agente (Experimental)</translation></message>
+ <message><source>Enable Agentic Mode</source><translation>Ativar Modo Agente</translation></message>
+ <message><source>DataHub Inspector</source><translation>Inspetor do DataHub</translation></message>
+</context>
+<context>
+ <name>fincept::screens::ProfilesSection</name>
+ <message><source>Profiles</source><translation>Perfis</translation></message>
+ <message><source>All profiles</source><translation>Todos os perfis</translation></message>
+ <message><source>ACTIVE</source><translation>ATIVO</translation></message>
+ <message><source>Switch</source><translation>Alternar</translation></message>
+ <message><source>Create new profile</source><translation>Criar novo perfil</translation></message>
+ <message><source>Create &amp; Switch</source><translation>Criar e Alternar</translation></message>
+</context>
+<context>
+ <name>fincept::screens::LoggingSection</name>
+ <message><source>LOGGING</source><translation>REGISTRO</translation></message>
+ <message><source>Global Log Level</source><translation>Nível Global de Registro</translation></message>
+ <message><source>Output Format</source><translation>Formato de Saída</translation></message>
+ <message><source>Log File</source><translation>Arquivo de Registro</translation></message>
+ <message><source>Open Log Folder</source><translation>Abrir Pasta de Registros</translation></message>
+ <message><source>Copy Path</source><translation>Copiar Caminho</translation></message>
+ <message><source>Per-Tag Overrides</source><translation>Substituições por Tag</translation></message>
+ <message><source>Remove</source><translation>Remover</translation></message>
+ <message><source>Apply &amp; Save</source><translation>Aplicar e Salvar</translation></message>
+</context>
+<context>
+ <name>fincept::screens::NotificationsSection</name>
+ <message><source>NOTIFICATION PROVIDERS</source><translation>PROVEDORES DE NOTIFICAÇÃO</translation></message>
+ <message><source>Test Send</source><translation>Testar Envio</translation></message>
+ <message><source>Sending...</source><translation>Enviando...</translation></message>
+ <message><source>ALERT TRIGGERS</source><translation>GATILHOS DE ALERTA</translation></message>
+ <message><source>Price Alerts</source><translation>Alertas de Preço</translation></message>
+ <message><source>News Alerts</source><translation>Alertas de Notícias</translation></message>
+ <message><source>Save All Providers</source><translation>Salvar Todos os Provedores</translation></message>
+</context>
+<context>
+ <name>fincept::screens::KeybindingsSection</name>
+ <message><source>Apply</source><translation>Aplicar</translation></message>
+ <message><source>Cancel</source><translation>Cancelar</translation></message>
+ <message><source>Search actions...</source><translation>Buscar ações...</translation></message>
+ <message><source>Reset All to Defaults</source><translation>Restaurar Padrões</translation></message>
+ <message><source>Reset</source><translation>Restaurar</translation></message>
+</context>
+<context>
+ <name>fincept::screens::CredentialsSection</name>
+ <message><source>API CREDENTIALS</source><translation>CREDENCIAIS DE API</translation></message>
+ <message><source>Not set</source><translation>Não definida</translation></message>
+ <message><source>Not configured</source><translation>Não configurada</translation></message>
+ <message><source>Save</source><translation>Salvar</translation></message>
+ <message><source>Cleared</source><translation>Limpa</translation></message>
+ <message><source>Saved ✓</source><translation>Salva ✓</translation></message>
+ <message><source>Save failed</source><translation>Falha ao salvar</translation></message>
+</context>
+<context>
+ <name>fincept::screens::SecuritySection</name>
+ <message><source>PIN AUTHENTICATION</source><translation>AUTENTICAÇÃO POR PIN</translation></message>
+ <message><source>PIN Status</source><translation>Status do PIN</translation></message>
+ <message><source>Failed Attempts</source><translation>Tentativas Falhas</translation></message>
+ <message><source>CHANGE PIN</source><translation>ALTERAR PIN</translation></message>
+ <message><source>Change PIN</source><translation>Alterar PIN</translation></message>
+ <message><source>Cancel</source><translation>Cancelar</translation></message>
+ <message><source>Current PIN</source><translation>PIN Atual</translation></message>
+ <message><source>New PIN</source><translation>Novo PIN</translation></message>
+ <message><source>Confirm PIN</source><translation>Confirmar PIN</translation></message>
+ <message><source>Update PIN</source><translation>Atualizar PIN</translation></message>
+ <message><source>AUTO-LOCK</source><translation>BLOQUEIO AUTOMÁTICO</translation></message>
+ <message><source>Lock Timeout</source><translation>Tempo de Bloqueio</translation></message>
+ <message><source>1 min</source><translation>1 min</translation></message>
+ <message><source>2 min</source><translation>2 min</translation></message>
+ <message><source>5 min</source><translation>5 min</translation></message>
+ <message><source>10 min</source><translation>10 min</translation></message>
+ <message><source>15 min</source><translation>15 min</translation></message>
+ <message><source>30 min</source><translation>30 min</translation></message>
+ <message><source>60 min</source><translation>60 min</translation></message>
+ <message><source>Save Security Settings</source><translation>Salvar Configurações de Segurança</translation></message>
+ <message><source>AUDIT LOG</source><translation>REGISTRO DE AUDITORIA</translation></message>
+ <message><source>Refresh</source><translation>Atualizar</translation></message>
+ <message><source>CONFIGURED</source><translation>CONFIGURADO</translation></message>
+ <message><source>NOT SET</source><translation>NÃO DEFINIDO</translation></message>
+</context>
+<context>
+ <name>fincept::screens::DataSourcesSection</name>
+ <message><source>DATA SOURCES</source><translation>FONTES DE DADOS</translation></message>
+ <message><source>OPEN FULL SCREEN</source><translation>ABRIR TELA CHEIA</translation></message>
+ <message><source>TOTAL</source><translation>TOTAL</translation></message>
+ <message><source>ACTIVE</source><translation>ATIVAS</translation></message>
+ <message><source>INACTIVE</source><translation>INATIVAS</translation></message>
+ <message><source>PROVIDERS</source><translation>PROVEDORES</translation></message>
+ <message><source>CONNECTIONS</source><translation>CONEXÕES</translation></message>
+ <message><source>BULK ACTIONS</source><translation>AÇÕES EM LOTE</translation></message>
+ <message><source>ENABLE ALL</source><translation>ATIVAR TODAS</translation></message>
+ <message><source>DISABLE ALL</source><translation>DESATIVAR TODAS</translation></message>
+ <message><source>DELETE ALL</source><translation>EXCLUIR TODAS</translation></message>
+</context>
+<context>
+ <name>fincept::screens::McpServersSection</name>
+ <message><source>MCP SERVERS</source><translation>SERVIDORES MCP</translation></message>
+</context>
+<context>
+ <name>fincept::screens::StorageSection</name>
+ <message><source>STORAGE &amp; DATA MANAGEMENT</source><translation>ARMAZENAMENTO E GERENCIAMENTO DE DADOS</translation></message>
+</context>
+<context>
+ <name>fincept::screens::VoiceConfigSection</name>
+ <message><source>VOICE — SPEECH-TO-TEXT &amp; TEXT-TO-SPEECH</source><translation>VOZ — FALA-PARA-TEXTO E TEXTO-PARA-FALA</translation></message>
+</context>
+<context>
+ <name>fincept::screens::PythonEnvSection</name>
+ <message><source>PYTHON ENVIRONMENTS</source><translation>AMBIENTES PYTHON</translation></message>
+</context>
+<context>
+ <name>fincept::screens::LlmConfigSection</name>
+ <message><source>LLM CONFIGURATION</source><translation>CONFIGURAÇÃO DO LLM</translation></message>
+ <message><source>PROFILES</source><translation>PERFIS</translation></message>
+</context>
+<context>
+ <name>fincept::ui::ToolBar</name>
+ <message><source> | PROFESSIONAL RESEARCH DESK</source><translation> | MESA DE PESQUISA PROFISSIONAL</translation></message>
+ <message><source> LIVE</source><translation> AO VIVO</translation></message>
+ <message><source>View Plans &amp; Pricing</source><translation>Ver Planos e Preços</translation></message>
+ <message><source>CHAT</source><translation>CHAT</translation></message>
+ <message><source>Switch to Chat Mode (F9)</source><translation>Mudar para o Modo Chat (F9)</translation></message>
+ <message><source>LOGOUT</source><translation>SAIR</translation></message>
+ <message><source>%1 CR</source><translation>%1 CR</translation></message>
+ <message><source>FREE</source><translation>GRÁTIS</translation></message>
+ <message><source>File</source><translation>Arquivo</translation></message>
+ <message><source>New Window</source><translation>Nova Janela</translation></message>
+ <message><source>Move to Monitor</source><translation>Mover para Monitor</translation></message>
+ <message><source>(single monitor)</source><translation>(monitor único)</translation></message>
+ <message><source>New Layout</source><translation>Novo Layout</translation></message>
+ <message><source>Open Layout…</source><translation>Abrir Layout…</translation></message>
+ <message><source>Save Layout</source><translation>Salvar Layout</translation></message>
+ <message><source>Save Layout As…</source><translation>Salvar Layout Como…</translation></message>
+ <message><source>Import Layout</source><translation>Importar Layout</translation></message>
+ <message><source>Export Layout</source><translation>Exportar Layout</translation></message>
+ <message><source>File Manager</source><translation>Gerenciador de Arquivos</translation></message>
+ <message><source>Refresh All</source><translation>Atualizar Tudo</translation></message>
+ <message><source>Navigate</source><translation>Navegar</translation></message>
+ <message><source>Markets &amp; Data</source><translation>Mercados e Dados</translation></message>
+ <message><source>Economics</source><translation>Economia</translation></message>
+ <message><source>GOVT Data</source><translation>Dados Governamentais</translation></message>
+ <message><source>AKShare Data</source><translation>Dados AKShare</translation></message>
+ <message><source>Asia Markets</source><translation>Mercados Asiáticos</translation></message>
+ <message><source>Relationship Map</source><translation>Mapa de Relações</translation></message>
+ <message><source>Trading &amp; Portfolio</source><translation>Negociação e Portfólio</translation></message>
+ <message><source>Equity Trading</source><translation>Negociação de Ações</translation></message>
+ <message><source>Alpha Arena</source><translation>Arena Alpha</translation></message>
+ <message><source>Prediction Markets</source><translation>Mercados de Previsão</translation></message>
+ <message><source>Derivatives</source><translation>Derivativos</translation></message>
+ <message><source>F&amp;&amp;O</source><translation>F&amp;&amp;O</translation></message>
+ <message><source>Watchlist</source><translation>Lista de Observação</translation></message>
+ <message><source>Crypto</source><translation>Cripto</translation></message>
+ <message><source>Crypto Center</source><translation>Central de Cripto</translation></message>
+ <message><source>Research &amp; Intelligence</source><translation>Pesquisa e Inteligência</translation></message>
+ <message><source>Equity Research</source><translation>Pesquisa de Ações</translation></message>
+ <message><source>M&amp;A Analytics</source><translation>Análise de M&amp;A</translation></message>
+ <message><source>Alt. Investments</source><translation>Inv. Alternativos</translation></message>
+ <message><source>Geopolitics</source><translation>Geopolítica</translation></message>
+ <message><source>Maritime</source><translation>Marítimo</translation></message>
+ <message><source>Surface Analytics</source><translation>Análise de Superfície</translation></message>
+ <message><source>Tools</source><translation>Ferramentas</translation></message>
+ <message><source>Agent Config</source><translation>Config. Agente</translation></message>
+ <message><source>Data Mapping</source><translation>Mapeamento de Dados</translation></message>
+ <message><source>Report Builder</source><translation>Construtor de Relatórios</translation></message>
+ <message><source>Trade Viz</source><translation>Visualização de Trades</translation></message>
+ <message><source>Notes</source><translation>Notas</translation></message>
+ <message><source>Forum</source><translation>Fórum</translation></message>
+ <message><source>Docs</source><translation>Docs</translation></message>
+ <message><source>Support</source><translation>Suporte</translation></message>
+ <message><source>About</source><translation>Sobre</translation></message>
+ <message><source>View</source><translation>Visualizar</translation></message>
+ <message><source>Component Browser Ctrl+K</source><translation>Navegador de Componentes Ctrl+K</translation></message>
+ <message><source>Fullscreen F11</source><translation>Tela Cheia F11</translation></message>
+ <message><source>Focus Mode F10</source><translation>Modo Foco F10</translation></message>
+ <message><source>Always on Top Ctrl+Shift+T</source><translation>Sempre no Topo Ctrl+Shift+T</translation></message>
+ <message><source>Float Panel</source><translation>Painel Flutuante</translation></message>
+ <message><source>Dashboard</source><translation>Painel</translation></message>
+ <message><source>News Feed</source><translation>Feed de Notícias</translation></message>
+ <message><source>Portfolio</source><translation>Portfólio</translation></message>
+ <message><source>Markets</source><translation>Mercados</translation></message>
+ <message><source>Crypto Trading</source><translation>Negociação Cripto</translation></message>
+ <message><source>Algo Trading</source><translation>Negociação Algorítmica</translation></message>
+ <message><source>AI Chat</source><translation>Chat IA</translation></message>
+ <message><source>Quick Switch</source><translation>Troca Rápida</translation></message>
+ <message><source>Save Workspace</source><translation>Salvar Área de Trabalho</translation></message>
+ <message><source>Trading</source><translation>Negociação</translation></message>
+ <message><source>Research</source><translation>Pesquisa</translation></message>
+ <message><source>M&amp;&amp;A Analytics</source><translation>Análise de M&amp;&amp;A</translation></message>
+ <message><source>Portfolio View</source><translation>Visão de Portfólio</translation></message>
+ <message><source>Markets View</source><translation>Visão de Mercados</translation></message>
+ <message><source>News View</source><translation>Visão de Notícias</translation></message>
+ <message><source>Economics &amp;&amp; Data</source><translation>Economia &amp;&amp; Dados</translation></message>
+ <message><source>Geopolitics View</source><translation>Visão de Geopolítica</translation></message>
+ <message><source>AI &amp;&amp; Quant</source><translation>IA &amp;&amp; Quant</translation></message>
+ <message><source>Quant Lab</source><translation>Lab. Quant</translation></message>
+ <message><source>Tools View</source><translation>Visão de Ferramentas</translation></message>
+ <message><source>Refresh Screen F5</source><translation>Atualizar Tela F5</translation></message>
+ <message><source>Take Screenshot Ctrl+P</source><translation>Capturar Tela Ctrl+P</translation></message>
+ <message><source>Help</source><translation>Ajuda</translation></message>
+ <message><source>About Fincept</source><translation>Sobre o Fincept</translation></message>
+ <message><source>Help Center</source><translation>Central de Ajuda</translation></message>
+ <message><source>Contact Us</source><translation>Fale Conosco</translation></message>
+ <message><source>Terms of Service</source><translation>Termos de Serviço</translation></message>
+ <message><source>Privacy Policy</source><translation>Política de Privacidade</translation></message>
+ <message><source>Trademarks</source><translation>Marcas</translation></message>
+ <message><source>Check for Updates</source><translation>Verificar Atualizações</translation></message>
+ <message><source>Logout</source><translation>Sair</translation></message>
+ <message><source>News</source><translation>Notícias</translation></message>
+</context>
+<context>
+ <name>fincept::ui::TabBar</name>
+ <message><source>DASHBOARD</source><translation>PAINEL</translation></message>
+ <message><source>MARKETS</source><translation>MERCADOS</translation></message>
+ <message><source>CRYPTO</source><translation>CRIPTO</translation></message>
+ <message><source>PORTFOLIO</source><translation>PORTFÓLIO</translation></message>
+ <message><source>NEWS</source><translation>NOTÍCIAS</translation></message>
+ <message><source>AI CHAT</source><translation>CHAT IA</translation></message>
+ <message><source>BACKTEST</source><translation>BACKTEST</translation></message>
+ <message><source>ALGO</source><translation>ALGO</translation></message>
+ <message><source>NODES</source><translation>NÓS</translation></message>
+ <message><source>CODE</source><translation>CÓDIGO</translation></message>
+ <message><source>QUANT LAB</source><translation>LAB QUANT</translation></message>
+ <message><source>QUANTLIB</source><translation>QUANTLIB</translation></message>
+ <message><source>FORUM</source><translation>FÓRUM</translation></message>
+ <message><source>SETTINGS</source><translation>CONFIG.</translation></message>
+ <message><source>PROFILE</source><translation>PERFIL</translation></message>
+</context>
+<context>
+ <name>fincept::ui::StatusBar</name>
+ <message><source>READY</source><translation>PRONTO</translation></message>
+ <message><source>BUSY</source><translation>OCUPADO</translation></message>
+</context>
+<context>
+ <name>fincept::WindowFrame</name>
+ <message><source>Save Layout</source><translation>Salvar Layout</translation></message>
+ <message><source>Layout name:</source><translation>Nome do layout:</translation></message>
+ <message><source>Import Layout</source><translation>Importar Layout</translation></message>
+ <message><source>Fincept Layout (*.flayout *.fwsp);;All Files (*)</source><translation>Layout Fincept (*.flayout *.fwsp);;Todos os Arquivos (*)</translation></message>
+ <message><source>Import Failed</source><translation>Falha na Importação</translation></message>
+ <message><source>Export Layout</source><translation>Exportar Layout</translation></message>
+ <message><source>Open or save a layout first, then export it.</source><translation>Abra ou salve um layout primeiro, depois exporte-o.</translation></message>
+ <message><source>Fincept Layout (*.flayout)</source><translation>Layout Fincept (*.flayout)</translation></message>
+ <message><source>Export Failed</source><translation>Falha na Exportação</translation></message>
+ <message><source>Save Screenshot</source><translation>Salvar Captura</translation></message>
+ <message><source>PNG Images (*.png)</source><translation>Imagens PNG (*.png)</translation></message>
+</context>
+<context>
+ <name>fincept::DockScreenRouter</name>
+ <message><source>Dashboard</source><translation>Painel</translation></message>
+ <message><source>Markets</source><translation>Mercados</translation></message>
+ <message><source>Crypto Trading</source><translation>Negociação Cripto</translation></message>
+ <message><source>Equity Trading</source><translation>Negociação de Ações</translation></message>
+ <message><source>Algo Trading</source><translation>Negociação Algorítmica</translation></message>
+ <message><source>Backtesting</source><translation>Backtesting</translation></message>
+ <message><source>Portfolio</source><translation>Portfólio</translation></message>
+ <message><source>Watchlist</source><translation>Lista de Observação</translation></message>
+ <message><source>News</source><translation>Notícias</translation></message>
+ <message><source>AI Chat</source><translation>Chat IA</translation></message>
+ <message><source>Equity Research</source><translation>Pesquisa de Ações</translation></message>
+ <message><source>Economics</source><translation>Economia</translation></message>
+ <message><source>AkShare Data</source><translation>Dados AkShare</translation></message>
+ <message><source>Asia Markets</source><translation>Mercados Asiáticos</translation></message>
+ <message><source>Geopolitics</source><translation>Geopolítica</translation></message>
+ <message><source>Gov Data</source><translation>Dados Gov.</translation></message>
+ <message><source>Maritime</source><translation>Marítimo</translation></message>
+ <message><source>Prediction Markets</source><translation>Mercados de Previsão</translation></message>
+ <message><source>Relationship Map</source><translation>Mapa de Relações</translation></message>
+ <message><source>Derivatives</source><translation>Derivativos</translation></message>
+ <message><source>Alt Investments</source><translation>Inv. Alternativos</translation></message>
+ <message><source>M&amp;A Analytics</source><translation>Análise de M&amp;A</translation></message>
+ <message><source>Surface Analytics</source><translation>Análise de Superfície</translation></message>
+ <message><source>AI Quant Lab</source><translation>Lab. Quant IA</translation></message>
+ <message><source>Alpha Arena</source><translation>Arena Alpha</translation></message>
+ <message><source>Agent Config</source><translation>Config. Agente</translation></message>
+ <message><source>Node Editor</source><translation>Editor de Nós</translation></message>
+ <message><source>Code Editor</source><translation>Editor de Código</translation></message>
+ <message><source>Report Builder</source><translation>Construtor de Relatórios</translation></message>
+ <message><source>Trade Viz</source><translation>Visualização de Trades</translation></message>
+ <message><source>Data Sources</source><translation>Fontes de Dados</translation></message>
+ <message><source>Data Mapping</source><translation>Mapeamento de Dados</translation></message>
+ <message><source>File Manager</source><translation>Gerenciador de Arquivos</translation></message>
+ <message><source>Notes</source><translation>Notas</translation></message>
+ <message><source>Forum</source><translation>Fórum</translation></message>
+ <message><source>Docs</source><translation>Docs</translation></message>
+ <message><source>Support</source><translation>Suporte</translation></message>
+ <message><source>About</source><translation>Sobre</translation></message>
+ <message><source>Profile</source><translation>Perfil</translation></message>
+ <message><source>Settings</source><translation>Configurações</translation></message>
+ <message><source>Contact</source><translation>Contato</translation></message>
+ <message><source>Terms</source><translation>Termos</translation></message>
+ <message><source>Privacy</source><translation>Privacidade</translation></message>
+ <message><source>Trademarks</source><translation>Marcas</translation></message>
+ <message><source>Help</source><translation>Ajuda</translation></message>
+</context>
+</TS>
diff --git a/fincept-qt/translations/fincept_tr_TR.ts b/fincept-qt/translations/fincept_tr_TR.ts
new file mode 100644
index 000000000..6690c9bd2
--- /dev/null
+++ b/fincept-qt/translations/fincept_tr_TR.ts
@@ -0,0 +1,495 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1" language="tr_TR" sourcelanguage="en">
+<context>
+ <name>fincept::screens::LoginScreen</name>
+ <message><source>SIGN IN</source><translation>GİRİŞ YAP</translation></message>
+ <message><source>Access your terminal account</source><translation>Terminal hesabınıza erişin</translation></message>
+ <message><source>EMAIL</source><translation>E-POSTA</translation></message>
+ <message><source>[email protected]</source><translation>[email protected]</translation></message>
+ <message><source>PASSWORD</source><translation>PAROLA</translation></message>
+ <message><source>enter password</source><translation>parolayı girin</translation></message>
+ <message><source>SHOW</source><translation>GÖSTER</translation></message>
+ <message><source>HIDE</source><translation>GİZLE</translation></message>
+ <message><source>FORGOT PASSWORD?</source><translation>PAROLAYI UNUTTUM</translation></message>
+ <message><source> SIGN IN </source><translation> GİRİŞ YAP </translation></message>
+ <message><source> SIGNING IN... </source><translation> GİRİŞ YAPILIYOR... </translation></message>
+ <message><source>No account?</source><translation>Hesabınız yok mu?</translation></message>
+ <message><source>SIGN UP</source><translation>KAYIT OL</translation></message>
+ <message><source>TWO-FACTOR AUTH</source><translation>İKİ AŞAMALI DOĞRULAMA</translation></message>
+ <message><source>SECURE</source><translation>GÜVENLİ</translation></message>
+ <message><source>Enter the 6-digit code from your authenticator</source><translation>Doğrulayıcı uygulamanızdaki 6 haneli kodu girin</translation></message>
+ <message><source>VERIFICATION CODE</source><translation>DOĞRULAMA KODU</translation></message>
+ <message><source> VERIFY </source><translation> DOĞRULA </translation></message>
+ <message><source>BACK TO LOGIN</source><translation>GİRİŞE DÖN</translation></message>
+ <message><source>SESSION CONFLICT</source><translation>OTURUM ÇAKIŞMASI</translation></message>
+ <message><source>WARNING</source><translation>UYARI</translation></message>
+ <message><source> LOG OUT OTHER SESSION &amp; CONTINUE </source><translation> DİĞER OTURUMU KAPAT VE DEVAM ET </translation></message>
+ <message><source> CANCEL </source><translation> İPTAL </translation></message>
+ <message><source>Please enter your password</source><translation>Lütfen parolanızı girin</translation></message>
+ <message><source>Please enter the code</source><translation>Lütfen kodu girin</translation></message>
+</context>
+<context>
+ <name>fincept::screens::RegisterScreen</name>
+ <message><source>CREATE ACCOUNT</source><translation>HESAP OLUŞTUR</translation></message>
+ <message><source>FIRST NAME</source><translation>AD</translation></message>
+ <message><source>LAST NAME</source><translation>SOYAD</translation></message>
+ <message><source>EMAIL</source><translation>E-POSTA</translation></message>
+ <message><source>CODE</source><translation>KOD</translation></message>
+ <message><source>PHONE</source><translation>TELEFON</translation></message>
+ <message><source>PASSWORD</source><translation>PAROLA</translation></message>
+ <message><source>CONFIRM PASSWORD</source><translation>PAROLAYI ONAYLA</translation></message>
+ <message><source>First</source><translation>Ad</translation></message>
+ <message><source>Last</source><translation>Soyad</translation></message>
+ <message><source>[email protected]</source><translation>[email protected]</translation></message>
+ <message><source>+1</source><translation>+90</translation></message>
+ <message><source>234 567 8900</source><translation>555 123 4567</translation></message>
+ <message><source>min 8 characters</source><translation>en az 8 karakter</translation></message>
+ <message><source>re-enter password</source><translation>parolayı tekrar girin</translation></message>
+ <message><source> CREATE ACCOUNT </source><translation> HESAP OLUŞTUR </translation></message>
+ <message><source> CREATING... </source><translation> OLUŞTURULUYOR... </translation></message>
+ <message><source>Already have an account?</source><translation>Zaten hesabınız var mı?</translation></message>
+ <message><source>SIGN IN</source><translation>GİRİŞ YAP</translation></message>
+ <message><source>VERIFY EMAIL</source><translation>E-POSTAYI DOĞRULA</translation></message>
+ <message><source>VERIFICATION CODE</source><translation>DOĞRULAMA KODU</translation></message>
+ <message><source>enter code from email</source><translation>e-postadaki kodu girin</translation></message>
+ <message><source> VERIFY </source><translation> DOĞRULA </translation></message>
+ <message><source> VERIFYING... </source><translation> DOĞRULANIYOR... </translation></message>
+ <message><source>DIDN&apos;T RECEIVE? RESEND</source><translation>ALMADIN MI? TEKRAR GÖNDER</translation></message>
+ <message><source>BACK TO FORM</source><translation>FORMA DÖN</translation></message>
+ <message><source>All fields are required</source><translation>Tüm alanlar zorunludur</translation></message>
+ <message><source>Country code is required (e.g. +1, +91)</source><translation>Ülke kodu zorunludur (örn. +90, +1)</translation></message>
+ <message><source>Passwords do not match</source><translation>Parolalar eşleşmiyor</translation></message>
+ <message><source>Password must be at least 8 characters</source><translation>Parola en az 8 karakter olmalıdır</translation></message>
+ <message><source>Username must be 3-50 characters</source><translation>Kullanıcı adı 3-50 karakter olmalıdır</translation></message>
+ <message><source>Enter the verification code</source><translation>Doğrulama kodunu girin</translation></message>
+</context>
+<context>
+ <name>fincept::screens::ForgotPasswordScreen</name>
+ <message><source>RESET PASSWORD</source><translation>PAROLAYI SIFIRLA</translation></message>
+ <message><source>Enter your email and we&apos;ll send a verification code.</source><translation>E-postanızı girin, size bir doğrulama kodu göndereceğiz.</translation></message>
+ <message><source>EMAIL</source><translation>E-POSTA</translation></message>
+ <message><source>[email protected]</source><translation>[email protected]</translation></message>
+ <message><source> SEND CODE </source><translation> KOD GÖNDER </translation></message>
+ <message><source>REMEMBER YOUR PASSWORD? SIGN IN</source><translation>PAROLANIZI HATIRLADINIZ MI? GİRİŞ YAPIN</translation></message>
+ <message><source>CHECK YOUR EMAIL</source><translation>E-POSTANIZI KONTROL EDİN</translation></message>
+ <message><source>We&apos;ve sent a verification code. Enter it on the next screen to reset your password.</source><translation>Doğrulama kodu gönderdik. Parolanızı sıfırlamak için sonraki ekranda girin.</translation></message>
+ <message><source> I HAVE THE CODE </source><translation> KOD ELİMDE </translation></message>
+ <message><source>DIDN&apos;T RECEIVE? RESEND</source><translation>ALMADIN MI? TEKRAR GÖNDER</translation></message>
+ <message><source>VERIFICATION CODE</source><translation>DOĞRULAMA KODU</translation></message>
+ <message><source>NEW PASSWORD</source><translation>YENİ PAROLA</translation></message>
+ <message><source>CONFIRM PASSWORD</source><translation>PAROLAYI ONAYLA</translation></message>
+ <message><source>enter code from email</source><translation>e-postadaki kodu girin</translation></message>
+ <message><source>min 8 characters</source><translation>en az 8 karakter</translation></message>
+ <message><source>re-enter password</source><translation>parolayı tekrar girin</translation></message>
+ <message><source> RESET PASSWORD </source><translation> PAROLAYI SIFIRLA </translation></message>
+ <message><source>PASSWORD RESET</source><translation>PAROLA SIFIRLANDI</translation></message>
+ <message><source>SUCCESS</source><translation>BAŞARILI</translation></message>
+ <message><source>Your password has been reset. You can now sign in with your new password.</source><translation>Parolanız sıfırlandı. Artık yeni parolanızla giriş yapabilirsiniz.</translation></message>
+ <message><source> CONTINUE TO LOGIN </source><translation> GİRİŞE DEVAM ET </translation></message>
+</context>
+<context>
+ <name>fincept::screens::LockScreen</name>
+ <message><source>SECURITY SETUP</source><translation>GÜVENLİK KURULUMU</translation></message>
+ <message><source>REQUIRED</source><translation>ZORUNLU</translation></message>
+ <message><source>Create a 6-digit PIN to secure your terminal</source><translation>Terminalinizi korumak için 6 haneli bir PIN oluşturun</translation></message>
+ <message><source>This PIN will be required each time you open
+the terminal or after a period of inactivity.</source><translation>Bu PIN, terminali her açtığınızda veya
+bir süre kullanılmadığında istenecektir.</translation></message>
+ <message><source>ENTER PIN</source><translation>PIN GİRİN</translation></message>
+ <message><source>CONFIRM PIN</source><translation>PIN ONAYLA</translation></message>
+ <message><source> SET PIN </source><translation> PIN&apos;İ AYARLA </translation></message>
+ <message><source>PIN is encrypted and stored locally on this device.
+It cannot be recovered if forgotten.</source><translation>PIN şifrelenmiş olarak yalnızca bu cihazda saklanır.
+Unutulması halinde kurtarılamaz.</translation></message>
+ <message><source>TERMINAL LOCKED</source><translation>TERMİNAL KİLİTLENDİ</translation></message>
+ <message><source>SECURE</source><translation>GÜVENLİ</translation></message>
+ <message><source>Enter your 6-digit PIN to unlock</source><translation>Kilidi açmak için 6 haneli PIN&apos;inizi girin</translation></message>
+ <message><source>PIN</source><translation>PIN</translation></message>
+ <message><source> UNLOCK </source><translation> KİLİDİ AÇ </translation></message>
+ <message><source>ACCOUNT LOCKED</source><translation>HESAP KİLİTLENDİ</translation></message>
+ <message><source>SECURITY</source><translation>GÜVENLİK</translation></message>
+ <message><source>Too many failed PIN attempts.
+
+For your security, the terminal has been locked.
+You must sign in again with your email and password
+to reset your PIN and regain access.</source><translation>Çok fazla başarısız PIN denemesi.
+
+Güvenliğiniz için terminal kilitlendi.
+PIN&apos;inizi sıfırlamak ve erişimi yeniden kazanmak için
+e-posta ve parolanızla tekrar giriş yapmalısınız.</translation></message>
+ <message><source> SIGN IN AGAIN </source><translation> TEKRAR GİRİŞ YAP </translation></message>
+ <message><source>PINs do not match</source><translation>PIN&apos;ler eşleşmiyor</translation></message>
+ <message><source>Enter your PIN</source><translation>PIN&apos;inizi girin</translation></message>
+ <message><source>Incorrect PIN</source><translation>Yanlış PIN</translation></message>
+ <message numerus="yes"><source>%n ATTEMPT(S) REMAINING</source><translation><numerusform>%n DENEME KALDI</numerusform><numerusform>%n DENEME KALDI</numerusform></translation></message>
+ <message><source>Locked for %1 — too many failed attempts</source><translation>%1 süreyle kilitli — çok fazla başarısız deneme</translation></message>
+</context>
+<context>
+ <name>fincept::screens::SetupScreen</name>
+ <message><source>We need to download a few tools and data libraries once.
+This only happens the first time — future launches are instant.</source><translation>Birkaç aracı ve veri kitaplığını bir kez indirmemiz gerekiyor.
+Bu yalnızca ilk seferde olur — sonraki açılışlar anlık olur.</translation></message>
+ <message><source>Download Installer</source><translation>Yükleyiciyi İndir</translation></message>
+ <message><source>Downloads the tool that manages everything else (~13 MB)</source><translation>Geri kalan her şeyi yöneten aracı indirir (~13 MB)</translation></message>
+ <message><source>Install Python Runtime</source><translation>Python Çalışma Zamanını Kur</translation></message>
+ <message><source>The programming language engine used for all analytics</source><translation>Tüm analitikler için kullanılan programlama dili motoru</translation></message>
+ <message><source>Create Isolated Workspaces</source><translation>İzole Çalışma Alanları Oluştur</translation></message>
+ <message><source>Two sandboxed environments to keep library versions conflict-free</source><translation>Kütüphane sürüm çakışmalarını önleyen iki kum havuzu ortamı</translation></message>
+ <message><source>Install Trading Libraries</source><translation>İşlem Kütüphanelerini Kur</translation></message>
+ <message><source>Backtesting, portfolio optimization and legacy quant tools</source><translation>Geriye dönük test, portföy optimizasyonu ve eski kantitatif araçlar</translation></message>
+ <message><source>Install Analytics Libraries</source><translation>Analitik Kütüphanelerini Kur</translation></message>
+ <message><source>Machine learning, data science and AI agent frameworks</source><translation>Makine öğrenmesi, veri bilimi ve AI ajan çerçeveleri</translation></message>
+ <message><source>Installing to: %1</source><translation>Şuraya kuruluyor: %1</translation></message>
+ <message><source>Getting your workspace ready</source><translation>Çalışma alanınız hazırlanıyor</translation></message>
+ <message><source>Your workspace is fully configured</source><translation>Çalışma alanınız tamamen yapılandırıldı</translation></message>
+ <message><source>Finishing your workspace setup</source><translation>Çalışma alanı kurulumu tamamlanıyor</translation></message>
+ <message><source>BEGIN SETUP</source><translation>KURULUMU BAŞLAT</translation></message>
+ <message><source>SETTING UP...</source><translation>KURULUYOR...</translation></message>
+ <message><source>RETRY SETUP</source><translation>KURULUMU TEKRAR DENE</translation></message>
+ <message><source>LAUNCH</source><translation>BAŞLAT</translation></message>
+ <message><source>CONTINUE SETUP</source><translation>KURULUMU SÜRDÜR</translation></message>
+ <message><source>ALREADY COMPLETE</source><translation>ZATEN TAMAM</translation></message>
+ <message><source>SKIP &amp; CONTINUE</source><translation>ATLA &amp; DEVAM ET</translation></message>
+ <message><source>Takes about 3–5 minutes. Needs an internet connection.</source><translation>Yaklaşık 3–5 dakika sürer. İnternet bağlantısı gerektirir.</translation></message>
+ <message><source>Setup in progress — please keep the application open</source><translation>Kurulum sürüyor — lütfen uygulamayı açık tutun</translation></message>
+ <message><source>Everything is ready! Launching Fincept Terminal...</source><translation>Her şey hazır! Fincept Terminal başlatılıyor...</translation></message>
+ <message><source>Only the missing pieces will be downloaded. Needs an internet connection.</source><translation>Yalnızca eksik parçalar indirilecek. İnternet bağlantısı gerektirir.</translation></message>
+ <message><source>Setup failed: %1</source><translation>Kurulum başarısız: %1</translation></message>
+ <message><source>Unknown error — see logs for details.</source><translation>Bilinmeyen hata — ayrıntılar için günlüklere bakın.</translation></message>
+ <message><source>Setup is taking longer than expected — possibly a slow internet connection.
+You can wait or skip and continue with limited functionality.</source><translation>Kurulum beklenenden uzun sürüyor — muhtemelen yavaş bir internet bağlantısı.
+Bekleyebilir veya atlayıp sınırlı işlevle devam edebilirsiniz.</translation></message>
+ <message><source>Waiting</source><translation>Bekliyor</translation></message>
+ <message><source>Working...</source><translation>Çalışıyor...</translation></message>
+ <message><source>DONE</source><translation>TAMAM</translation></message>
+ <message><source>FAILED</source><translation>BAŞARISIZ</translation></message>
+ <message><source>Elapsed: %1s</source><translation>Geçen süre: %1sn</translation></message>
+ <message><source>Elapsed: %1m %2s</source><translation>Geçen süre: %1dk %2sn</translation></message>
+ <message><source>Trading workspace</source><translation>İşlem çalışma alanı</translation></message>
+ <message><source>Analytics workspace</source><translation>Analitik çalışma alanı</translation></message>
+ <message><source>trading library list</source><translation>işlem kütüphane listesi</translation></message>
+ <message><source>analytics library list</source><translation>analitik kütüphane listesi</translation></message>
+ <message><source>Everything is installed and ready to go.</source><translation>Her şey kuruldu ve kullanıma hazır.</translation></message>
+</context>
+<context>
+ <name>fincept::screens::SettingsScreen</name>
+ <message><source>SETTINGS</source><translation>AYARLAR</translation></message>
+ <message><source>SHELL</source><translation>UYGULAMA</translation></message>
+ <message><source>PROFILE</source><translation>PROFİL</translation></message>
+ <message><source>General</source><translation>Genel</translation></message>
+ <message><source>Appearance</source><translation>Görünüm</translation></message>
+ <message><source>Notifications</source><translation>Bildirimler</translation></message>
+ <message><source>Keybindings</source><translation>Kısayollar</translation></message>
+ <message><source>Voice</source><translation>Ses</translation></message>
+ <message><source>Logging</source><translation>Günlük</translation></message>
+ <message><source>Developer</source><translation>Geliştirici</translation></message>
+ <message><source>Profiles</source><translation>Profiller</translation></message>
+ <message><source>Credentials</source><translation>Kimlik Bilgileri</translation></message>
+ <message><source>Security</source><translation>Güvenlik</translation></message>
+ <message><source>Data Sources</source><translation>Veri Kaynakları</translation></message>
+ <message><source>LLM Config</source><translation>LLM Ayarı</translation></message>
+ <message><source>MCP Servers</source><translation>MCP Sunucuları</translation></message>
+ <message><source>Python Env</source><translation>Python Ortamı</translation></message>
+ <message><source>Storage &amp; Cache</source><translation>Depolama &amp; Önbellek</translation></message>
+</context>
+<context>
+ <name>fincept::screens::GeneralSection</name>
+ <message><source>WINDOW BEHAVIOUR</source><translation>PENCERE DAVRANIŞI</translation></message>
+ <message><source>Quit application</source><translation>Uygulamadan çık</translation></message>
+ <message><source>Show Launchpad</source><translation>Launchpad&apos;i göster</translation></message>
+ <message><source>On last window close</source><translation>Son pencere kapandığında</translation></message>
+ <message><source>LANGUAGE</source><translation>DİL</translation></message>
+ <message><source>Interface language</source><translation>Arayüz dili</translation></message>
+</context>
+<context>
+ <name>fincept::screens::AppearanceSection</name>
+ <message><source>TYPOGRAPHY</source><translation>TİPOGRAFİ</translation></message>
+ <message><source>Font Size</source><translation>Yazı Tipi Boyutu</translation></message>
+ <message><source>Font Family</source><translation>Yazı Tipi Ailesi</translation></message>
+ <message><source>THEME</source><translation>TEMA</translation></message>
+ <message><source>Content Density</source><translation>İçerik Yoğunluğu</translation></message>
+ <message><source>INTERFACE</source><translation>ARAYÜZ</translation></message>
+ <message><source>Animations</source><translation>Animasyonlar</translation></message>
+ <message><source>Save Settings</source><translation>Ayarları Kaydet</translation></message>
+</context>
+<context>
+ <name>fincept::screens::DeveloperSection</name>
+ <message><source>Agentic Mode (Experimental)</source><translation>Ajan Modu (Deneysel)</translation></message>
+ <message><source>Enable Agentic Mode</source><translation>Ajan Modunu Etkinleştir</translation></message>
+ <message><source>DataHub Inspector</source><translation>DataHub İnceleyicisi</translation></message>
+</context>
+<context>
+ <name>fincept::screens::ProfilesSection</name>
+ <message><source>Profiles</source><translation>Profiller</translation></message>
+ <message><source>All profiles</source><translation>Tüm profiller</translation></message>
+ <message><source>ACTIVE</source><translation>ETKİN</translation></message>
+ <message><source>Switch</source><translation>Geçiş Yap</translation></message>
+ <message><source>Create new profile</source><translation>Yeni profil oluştur</translation></message>
+ <message><source>Create &amp; Switch</source><translation>Oluştur ve Geç</translation></message>
+</context>
+<context>
+ <name>fincept::screens::LoggingSection</name>
+ <message><source>LOGGING</source><translation>GÜNLÜK</translation></message>
+ <message><source>Global Log Level</source><translation>Genel Günlük Seviyesi</translation></message>
+ <message><source>Output Format</source><translation>Çıkış Biçimi</translation></message>
+ <message><source>Log File</source><translation>Günlük Dosyası</translation></message>
+ <message><source>Open Log Folder</source><translation>Günlük Klasörünü Aç</translation></message>
+ <message><source>Copy Path</source><translation>Yolu Kopyala</translation></message>
+ <message><source>Remove</source><translation>Kaldır</translation></message>
+ <message><source>Apply &amp; Save</source><translation>Uygula &amp; Kaydet</translation></message>
+</context>
+<context>
+ <name>fincept::screens::NotificationsSection</name>
+ <message><source>NOTIFICATION PROVIDERS</source><translation>BİLDİRİM SAĞLAYICILARI</translation></message>
+ <message><source>Test Send</source><translation>Test Gönder</translation></message>
+ <message><source>ALERT TRIGGERS</source><translation>UYARI TETİKLEYİCİLERİ</translation></message>
+ <message><source>Save All Providers</source><translation>Tüm Sağlayıcıları Kaydet</translation></message>
+</context>
+<context>
+ <name>fincept::screens::KeybindingsSection</name>
+ <message><source>Apply</source><translation>Uygula</translation></message>
+ <message><source>Cancel</source><translation>İptal</translation></message>
+ <message><source>Search actions...</source><translation>Eylem ara...</translation></message>
+ <message><source>Reset All to Defaults</source><translation>Hepsini Varsayılana Sıfırla</translation></message>
+ <message><source>Reset</source><translation>Sıfırla</translation></message>
+</context>
+<context>
+ <name>fincept::screens::CredentialsSection</name>
+ <message><source>API CREDENTIALS</source><translation>API KİMLİK BİLGİLERİ</translation></message>
+ <message><source>Not set</source><translation>Ayarlanmadı</translation></message>
+ <message><source>Save</source><translation>Kaydet</translation></message>
+ <message><source>Saved ✓</source><translation>Kaydedildi ✓</translation></message>
+</context>
+<context>
+ <name>fincept::screens::SecuritySection</name>
+ <message><source>PIN AUTHENTICATION</source><translation>PIN DOĞRULAMA</translation></message>
+ <message><source>PIN Status</source><translation>PIN Durumu</translation></message>
+ <message><source>CHANGE PIN</source><translation>PIN&apos;İ DEĞİŞTİR</translation></message>
+ <message><source>Change PIN</source><translation>PIN&apos;i Değiştir</translation></message>
+ <message><source>Cancel</source><translation>İptal</translation></message>
+ <message><source>Current PIN</source><translation>Mevcut PIN</translation></message>
+ <message><source>New PIN</source><translation>Yeni PIN</translation></message>
+ <message><source>Confirm PIN</source><translation>PIN&apos;i Onayla</translation></message>
+ <message><source>Update PIN</source><translation>PIN&apos;i Güncelle</translation></message>
+ <message><source>AUTO-LOCK</source><translation>OTOMATİK KİLİT</translation></message>
+ <message><source>Lock Timeout</source><translation>Kilit Süresi</translation></message>
+ <message><source>1 min</source><translation>1 dk</translation></message>
+ <message><source>2 min</source><translation>2 dk</translation></message>
+ <message><source>5 min</source><translation>5 dk</translation></message>
+ <message><source>10 min</source><translation>10 dk</translation></message>
+ <message><source>15 min</source><translation>15 dk</translation></message>
+ <message><source>30 min</source><translation>30 dk</translation></message>
+ <message><source>60 min</source><translation>60 dk</translation></message>
+ <message><source>AUDIT LOG</source><translation>DENETİM GÜNLÜĞÜ</translation></message>
+ <message><source>Refresh</source><translation>Yenile</translation></message>
+ <message><source>CONFIGURED</source><translation>YAPILANDIRILDI</translation></message>
+ <message><source>NOT SET</source><translation>AYARLANMADI</translation></message>
+</context>
+<context>
+ <name>fincept::screens::DataSourcesSection</name>
+ <message><source>DATA SOURCES</source><translation>VERİ KAYNAKLARI</translation></message>
+ <message><source>OPEN FULL SCREEN</source><translation>TAM EKRANI AÇ</translation></message>
+ <message><source>CONNECTIONS</source><translation>BAĞLANTILAR</translation></message>
+ <message><source>BULK ACTIONS</source><translation>TOPLU İŞLEMLER</translation></message>
+ <message><source>ENABLE ALL</source><translation>HEPSİNİ ETKİNLEŞTİR</translation></message>
+ <message><source>DISABLE ALL</source><translation>HEPSİNİ DEVRE DIŞI BIRAK</translation></message>
+ <message><source>DELETE ALL</source><translation>HEPSİNİ SİL</translation></message>
+</context>
+<context>
+ <name>fincept::screens::McpServersSection</name>
+ <message><source>MCP SERVERS</source><translation>MCP SUNUCULARI</translation></message>
+</context>
+<context>
+ <name>fincept::screens::StorageSection</name>
+ <message><source>STORAGE &amp; DATA MANAGEMENT</source><translation>DEPOLAMA &amp; VERİ YÖNETİMİ</translation></message>
+</context>
+<context>
+ <name>fincept::screens::VoiceConfigSection</name>
+ <message><source>VOICE — SPEECH-TO-TEXT &amp; TEXT-TO-SPEECH</source><translation>SES — KONUŞMA-METİN &amp; METİN-KONUŞMA</translation></message>
+</context>
+<context>
+ <name>fincept::screens::PythonEnvSection</name>
+ <message><source>PYTHON ENVIRONMENTS</source><translation>PYTHON ORTAMLARI</translation></message>
+</context>
+<context>
+ <name>fincept::screens::LlmConfigSection</name>
+ <message><source>LLM CONFIGURATION</source><translation>LLM YAPILANDIRMASI</translation></message>
+ <message><source>PROFILES</source><translation>PROFİLLER</translation></message>
+</context>
+<context>
+ <name>fincept::ui::ToolBar</name>
+ <message><source> | PROFESSIONAL RESEARCH DESK</source><translation> | PROFESYONEL ARAŞTIRMA MASASI</translation></message>
+ <message><source> LIVE</source><translation> CANLI</translation></message>
+ <message><source>View Plans &amp; Pricing</source><translation>Planları ve Fiyatları Görüntüle</translation></message>
+ <message><source>CHAT</source><translation>SOHBET</translation></message>
+ <message><source>Switch to Chat Mode (F9)</source><translation>Sohbet Moduna Geç (F9)</translation></message>
+ <message><source>LOGOUT</source><translation>ÇIKIŞ</translation></message>
+ <message><source>%1 CR</source><translation>%1 KR</translation></message>
+ <message><source>FREE</source><translation>ÜCRETSİZ</translation></message>
+ <message><source>File</source><translation>Dosya</translation></message>
+ <message><source>New Window</source><translation>Yeni Pencere</translation></message>
+ <message><source>Move to Monitor</source><translation>Monitöre Taşı</translation></message>
+ <message><source>(single monitor)</source><translation>(tek monitör)</translation></message>
+ <message><source>New Layout</source><translation>Yeni Düzen</translation></message>
+ <message><source>Open Layout…</source><translation>Düzen Aç…</translation></message>
+ <message><source>Save Layout</source><translation>Düzeni Kaydet</translation></message>
+ <message><source>Save Layout As…</source><translation>Düzeni Farklı Kaydet…</translation></message>
+ <message><source>Import Layout</source><translation>Düzeni İçe Aktar</translation></message>
+ <message><source>Export Layout</source><translation>Düzeni Dışa Aktar</translation></message>
+ <message><source>File Manager</source><translation>Dosya Yöneticisi</translation></message>
+ <message><source>Refresh All</source><translation>Tümünü Yenile</translation></message>
+ <message><source>Navigate</source><translation>Gezin</translation></message>
+ <message><source>Markets &amp; Data</source><translation>Piyasalar ve Veri</translation></message>
+ <message><source>Economics</source><translation>Ekonomi</translation></message>
+ <message><source>GOVT Data</source><translation>Devlet Verileri</translation></message>
+ <message><source>AKShare Data</source><translation>AKShare Verileri</translation></message>
+ <message><source>Asia Markets</source><translation>Asya Piyasaları</translation></message>
+ <message><source>Relationship Map</source><translation>İlişki Haritası</translation></message>
+ <message><source>Trading &amp; Portfolio</source><translation>İşlem ve Portföy</translation></message>
+ <message><source>Equity Trading</source><translation>Hisse İşlemleri</translation></message>
+ <message><source>Prediction Markets</source><translation>Tahmin Piyasaları</translation></message>
+ <message><source>Derivatives</source><translation>Türev Ürünler</translation></message>
+ <message><source>F&amp;&amp;O</source><translation>F&amp;&amp;O</translation></message>
+ <message><source>Watchlist</source><translation>İzleme Listesi</translation></message>
+ <message><source>Crypto</source><translation>Kripto</translation></message>
+ <message><source>Crypto Center</source><translation>Kripto Merkezi</translation></message>
+ <message><source>Research &amp; Intelligence</source><translation>Araştırma ve İstihbarat</translation></message>
+ <message><source>Equity Research</source><translation>Hisse Araştırması</translation></message>
+ <message><source>M&amp;A Analytics</source><translation>M&amp;A Analizi</translation></message>
+ <message><source>Alt. Investments</source><translation>Alt. Yatırımlar</translation></message>
+ <message><source>Geopolitics</source><translation>Jeopolitik</translation></message>
+ <message><source>Maritime</source><translation>Denizcilik</translation></message>
+ <message><source>Surface Analytics</source><translation>Yüzey Analizi</translation></message>
+ <message><source>Tools</source><translation>Araçlar</translation></message>
+ <message><source>Agent Config</source><translation>Ajan Yapılandırması</translation></message>
+ <message><source>Data Mapping</source><translation>Veri Eşleme</translation></message>
+ <message><source>Report Builder</source><translation>Rapor Oluşturucu</translation></message>
+ <message><source>Trade Viz</source><translation>İşlem Görselleştirme</translation></message>
+ <message><source>Notes</source><translation>Notlar</translation></message>
+ <message><source>Forum</source><translation>Forum</translation></message>
+ <message><source>Docs</source><translation>Belgeler</translation></message>
+ <message><source>Support</source><translation>Destek</translation></message>
+ <message><source>About</source><translation>Hakkında</translation></message>
+ <message><source>View</source><translation>Görünüm</translation></message>
+ <message><source>Component Browser Ctrl+K</source><translation>Bileşen Tarayıcı Ctrl+K</translation></message>
+ <message><source>Fullscreen F11</source><translation>Tam Ekran F11</translation></message>
+ <message><source>Focus Mode F10</source><translation>Odak Modu F10</translation></message>
+ <message><source>Always on Top Ctrl+Shift+T</source><translation>Her Zaman Üstte Ctrl+Shift+T</translation></message>
+ <message><source>Float Panel</source><translation>Yüzen Panel</translation></message>
+ <message><source>Dashboard</source><translation>Pano</translation></message>
+ <message><source>News Feed</source><translation>Haber Akışı</translation></message>
+ <message><source>Portfolio</source><translation>Portföy</translation></message>
+ <message><source>Markets</source><translation>Piyasalar</translation></message>
+ <message><source>Crypto Trading</source><translation>Kripto İşlemleri</translation></message>
+ <message><source>Algo Trading</source><translation>Algoritmik İşlem</translation></message>
+ <message><source>AI Chat</source><translation>YZ Sohbet</translation></message>
+ <message><source>Quick Switch</source><translation>Hızlı Geçiş</translation></message>
+ <message><source>Save Workspace</source><translation>Çalışma Alanını Kaydet</translation></message>
+ <message><source>Trading</source><translation>İşlem</translation></message>
+ <message><source>Research</source><translation>Araştırma</translation></message>
+ <message><source>M&amp;&amp;A Analytics</source><translation>M&amp;&amp;A Analizi</translation></message>
+ <message><source>Portfolio View</source><translation>Portföy Görünümü</translation></message>
+ <message><source>Markets View</source><translation>Piyasa Görünümü</translation></message>
+ <message><source>News View</source><translation>Haber Görünümü</translation></message>
+ <message><source>Economics &amp;&amp; Data</source><translation>Ekonomi &amp;&amp; Veri</translation></message>
+ <message><source>Geopolitics View</source><translation>Jeopolitik Görünümü</translation></message>
+ <message><source>AI &amp;&amp; Quant</source><translation>YZ &amp;&amp; Quant</translation></message>
+ <message><source>Quant Lab</source><translation>Quant Laboratuvarı</translation></message>
+ <message><source>Tools View</source><translation>Araçlar Görünümü</translation></message>
+ <message><source>Refresh Screen F5</source><translation>Ekranı Yenile F5</translation></message>
+ <message><source>Take Screenshot Ctrl+P</source><translation>Ekran Görüntüsü Al Ctrl+P</translation></message>
+ <message><source>Help</source><translation>Yardım</translation></message>
+ <message><source>About Fincept</source><translation>Fincept Hakkında</translation></message>
+ <message><source>Help Center</source><translation>Yardım Merkezi</translation></message>
+ <message><source>Contact Us</source><translation>Bize Ulaşın</translation></message>
+ <message><source>Terms of Service</source><translation>Hizmet Şartları</translation></message>
+ <message><source>Privacy Policy</source><translation>Gizlilik Politikası</translation></message>
+ <message><source>Trademarks</source><translation>Ticari Markalar</translation></message>
+ <message><source>Check for Updates</source><translation>Güncellemeleri Denetle</translation></message>
+ <message><source>Logout</source><translation>Çıkış</translation></message>
+ <message><source>News</source><translation>Haberler</translation></message>
+</context>
+<context>
+ <name>fincept::ui::TabBar</name>
+ <message><source>DASHBOARD</source><translation>PANO</translation></message>
+ <message><source>MARKETS</source><translation>PİYASALAR</translation></message>
+ <message><source>CRYPTO</source><translation>KRİPTO</translation></message>
+ <message><source>PORTFOLIO</source><translation>PORTFÖY</translation></message>
+ <message><source>NEWS</source><translation>HABERLER</translation></message>
+ <message><source>AI CHAT</source><translation>YZ SOHBET</translation></message>
+ <message><source>BACKTEST</source><translation>GERİ TEST</translation></message>
+ <message><source>ALGO</source><translation>ALGO</translation></message>
+ <message><source>NODES</source><translation>DÜĞÜMLER</translation></message>
+ <message><source>CODE</source><translation>KOD</translation></message>
+ <message><source>QUANT LAB</source><translation>QUANT LAB.</translation></message>
+ <message><source>QUANTLIB</source><translation>QUANTLIB</translation></message>
+ <message><source>FORUM</source><translation>FORUM</translation></message>
+ <message><source>SETTINGS</source><translation>AYARLAR</translation></message>
+ <message><source>PROFILE</source><translation>PROFİL</translation></message>
+</context>
+<context>
+ <name>fincept::ui::StatusBar</name>
+ <message><source>READY</source><translation>HAZIR</translation></message>
+ <message><source>BUSY</source><translation>MEŞGUL</translation></message>
+</context>
+<context>
+ <name>fincept::WindowFrame</name>
+ <message><source>Save Layout</source><translation>Düzeni Kaydet</translation></message>
+ <message><source>Layout name:</source><translation>Düzen adı:</translation></message>
+ <message><source>Import Layout</source><translation>Düzeni İçe Aktar</translation></message>
+ <message><source>Import Failed</source><translation>İçe Aktarma Başarısız</translation></message>
+ <message><source>Export Layout</source><translation>Düzeni Dışa Aktar</translation></message>
+ <message><source>Open or save a layout first, then export it.</source><translation>Önce bir düzen açın veya kaydedin, sonra dışa aktarın.</translation></message>
+ <message><source>Export Failed</source><translation>Dışa Aktarma Başarısız</translation></message>
+ <message><source>Save Screenshot</source><translation>Ekran Görüntüsünü Kaydet</translation></message>
+</context>
+<context>
+ <name>fincept::DockScreenRouter</name>
+ <message><source>Dashboard</source><translation>Pano</translation></message>
+ <message><source>Markets</source><translation>Piyasalar</translation></message>
+ <message><source>Crypto Trading</source><translation>Kripto İşlemleri</translation></message>
+ <message><source>Equity Trading</source><translation>Hisse İşlemleri</translation></message>
+ <message><source>Algo Trading</source><translation>Algoritmik İşlem</translation></message>
+ <message><source>Backtesting</source><translation>Geri Test</translation></message>
+ <message><source>Portfolio</source><translation>Portföy</translation></message>
+ <message><source>Watchlist</source><translation>İzleme Listesi</translation></message>
+ <message><source>News</source><translation>Haberler</translation></message>
+ <message><source>AI Chat</source><translation>YZ Sohbet</translation></message>
+ <message><source>Equity Research</source><translation>Hisse Araştırması</translation></message>
+ <message><source>Economics</source><translation>Ekonomi</translation></message>
+ <message><source>AkShare Data</source><translation>AkShare Verileri</translation></message>
+ <message><source>Asia Markets</source><translation>Asya Piyasaları</translation></message>
+ <message><source>Geopolitics</source><translation>Jeopolitik</translation></message>
+ <message><source>Gov Data</source><translation>Devlet Verileri</translation></message>
+ <message><source>Maritime</source><translation>Denizcilik</translation></message>
+ <message><source>Prediction Markets</source><translation>Tahmin Piyasaları</translation></message>
+ <message><source>Relationship Map</source><translation>İlişki Haritası</translation></message>
+ <message><source>Derivatives</source><translation>Türev Ürünler</translation></message>
+ <message><source>Alt Investments</source><translation>Alt. Yatırımlar</translation></message>
+ <message><source>M&amp;A Analytics</source><translation>M&amp;A Analizi</translation></message>
+ <message><source>Surface Analytics</source><translation>Yüzey Analizi</translation></message>
+ <message><source>AI Quant Lab</source><translation>YZ Quant Laboratuvarı</translation></message>
+ <message><source>Alpha Arena</source><translation>Alpha Arena</translation></message>
+ <message><source>Agent Config</source><translation>Ajan Yapılandırması</translation></message>
+ <message><source>Node Editor</source><translation>Düğüm Düzenleyicisi</translation></message>
+ <message><source>Code Editor</source><translation>Kod Düzenleyicisi</translation></message>
+ <message><source>Report Builder</source><translation>Rapor Oluşturucu</translation></message>
+ <message><source>Trade Viz</source><translation>İşlem Görselleştirme</translation></message>
+ <message><source>Data Sources</source><translation>Veri Kaynakları</translation></message>
+ <message><source>Data Mapping</source><translation>Veri Eşleme</translation></message>
+ <message><source>File Manager</source><translation>Dosya Yöneticisi</translation></message>
+ <message><source>Notes</source><translation>Notlar</translation></message>
+ <message><source>Forum</source><translation>Forum</translation></message>
+ <message><source>Docs</source><translation>Belgeler</translation></message>
+ <message><source>Support</source><translation>Destek</translation></message>
+ <message><source>About</source><translation>Hakkında</translation></message>
+ <message><source>Profile</source><translation>Profil</translation></message>
+ <message><source>Settings</source><translation>Ayarlar</translation></message>
+ <message><source>Contact</source><translation>İletişim</translation></message>
+ <message><source>Terms</source><translation>Şartlar</translation></message>
+ <message><source>Privacy</source><translation>Gizlilik</translation></message>
+ <message><source>Trademarks</source><translation>Ticari Markalar</translation></message>
+ <message><source>Help</source><translation>Yardım</translation></message>
+</context>
+</TS>
diff --git a/fincept-qt/translations/fincept_vi_VN.ts b/fincept-qt/translations/fincept_vi_VN.ts
new file mode 100644
index 000000000..666fd20fd
--- /dev/null
+++ b/fincept-qt/translations/fincept_vi_VN.ts
@@ -0,0 +1,359 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1" language="vi_VN" sourcelanguage="en">
+<context>
+ <name>fincept::screens::LoginScreen</name>
+ <message><source>SIGN IN</source><translation>ĐĂNG NHẬP</translation></message>
+ <message><source>Access your terminal account</source><translation>Truy cập tài khoản terminal của bạn</translation></message>
+ <message><source>EMAIL</source><translation>EMAIL</translation></message>
+ <message><source>[email protected]</source><translation>[email protected]</translation></message>
+ <message><source>PASSWORD</source><translation>MẬT KHẨU</translation></message>
+ <message><source>enter password</source><translation>nhập mật khẩu</translation></message>
+ <message><source>SHOW</source><translation>HIỆN</translation></message>
+ <message><source>HIDE</source><translation>ẨN</translation></message>
+ <message><source>FORGOT PASSWORD?</source><translation>QUÊN MẬT KHẨU?</translation></message>
+ <message><source> SIGN IN </source><translation> ĐĂNG NHẬP </translation></message>
+ <message><source> SIGNING IN... </source><translation> ĐANG ĐĂNG NHẬP... </translation></message>
+ <message><source>No account?</source><translation>Chưa có tài khoản?</translation></message>
+ <message><source>SIGN UP</source><translation>ĐĂNG KÝ</translation></message>
+ <message><source>TWO-FACTOR AUTH</source><translation>XÁC THỰC HAI YẾU TỐ</translation></message>
+ <message><source>SECURE</source><translation>BẢO MẬT</translation></message>
+ <message><source>Enter the 6-digit code from your authenticator</source><translation>Nhập mã 6 chữ số từ ứng dụng xác thực của bạn</translation></message>
+ <message><source>VERIFICATION CODE</source><translation>MÃ XÁC MINH</translation></message>
+ <message><source> VERIFY </source><translation> XÁC MINH </translation></message>
+ <message><source>BACK TO LOGIN</source><translation>QUAY LẠI ĐĂNG NHẬP</translation></message>
+ <message><source>SESSION CONFLICT</source><translation>XUNG ĐỘT PHIÊN</translation></message>
+ <message><source>WARNING</source><translation>CẢNH BÁO</translation></message>
+ <message><source> LOG OUT OTHER SESSION &amp; CONTINUE </source><translation> ĐĂNG XUẤT PHIÊN KHÁC &amp; TIẾP TỤC </translation></message>
+ <message><source> CANCEL </source><translation> HỦY </translation></message>
+ <message><source>Please enter your password</source><translation>Vui lòng nhập mật khẩu của bạn</translation></message>
+ <message><source>Please enter the code</source><translation>Vui lòng nhập mã</translation></message>
+</context>
+<context>
+ <name>fincept::screens::RegisterScreen</name>
+ <message><source>CREATE ACCOUNT</source><translation>TẠO TÀI KHOẢN</translation></message>
+ <message><source>FIRST NAME</source><translation>TÊN</translation></message>
+ <message><source>LAST NAME</source><translation>HỌ</translation></message>
+ <message><source>EMAIL</source><translation>EMAIL</translation></message>
+ <message><source>CODE</source><translation>MÃ</translation></message>
+ <message><source>PHONE</source><translation>ĐIỆN THOẠI</translation></message>
+ <message><source>PASSWORD</source><translation>MẬT KHẨU</translation></message>
+ <message><source>CONFIRM PASSWORD</source><translation>XÁC NHẬN MẬT KHẨU</translation></message>
+ <message><source>First</source><translation>Tên</translation></message>
+ <message><source>Last</source><translation>Họ</translation></message>
+ <message><source>[email protected]</source><translation>[email protected]</translation></message>
+ <message><source>+1</source><translation>+84</translation></message>
+ <message><source>234 567 8900</source><translation>912 345 678</translation></message>
+ <message><source>min 8 characters</source><translation>tối thiểu 8 ký tự</translation></message>
+ <message><source>re-enter password</source><translation>nhập lại mật khẩu</translation></message>
+ <message><source> CREATE ACCOUNT </source><translation> TẠO TÀI KHOẢN </translation></message>
+ <message><source> CREATING... </source><translation> ĐANG TẠO... </translation></message>
+ <message><source>Already have an account?</source><translation>Đã có tài khoản?</translation></message>
+ <message><source>SIGN IN</source><translation>ĐĂNG NHẬP</translation></message>
+ <message><source>VERIFY EMAIL</source><translation>XÁC MINH EMAIL</translation></message>
+ <message><source>VERIFICATION CODE</source><translation>MÃ XÁC MINH</translation></message>
+ <message><source>enter code from email</source><translation>nhập mã từ email</translation></message>
+ <message><source> VERIFY </source><translation> XÁC MINH </translation></message>
+ <message><source> VERIFYING... </source><translation> ĐANG XÁC MINH... </translation></message>
+ <message><source>DIDN&apos;T RECEIVE? RESEND</source><translation>CHƯA NHẬN ĐƯỢC? GỬI LẠI</translation></message>
+ <message><source>BACK TO FORM</source><translation>QUAY LẠI BIỂU MẪU</translation></message>
+ <message><source>All fields are required</source><translation>Tất cả các trường đều bắt buộc</translation></message>
+ <message><source>Country code is required (e.g. +1, +91)</source><translation>Mã quốc gia là bắt buộc (ví dụ: +84, +1)</translation></message>
+ <message><source>Passwords do not match</source><translation>Mật khẩu không khớp</translation></message>
+ <message><source>Password must be at least 8 characters</source><translation>Mật khẩu phải có ít nhất 8 ký tự</translation></message>
+ <message><source>Username must be 3-50 characters</source><translation>Tên người dùng phải có 3-50 ký tự</translation></message>
+ <message><source>Enter the verification code</source><translation>Nhập mã xác minh</translation></message>
+</context>
+<context>
+ <name>fincept::screens::ForgotPasswordScreen</name>
+ <message><source>RESET PASSWORD</source><translation>ĐẶT LẠI MẬT KHẨU</translation></message>
+ <message><source>Enter your email and we&apos;ll send a verification code.</source><translation>Nhập email của bạn và chúng tôi sẽ gửi mã xác minh.</translation></message>
+ <message><source>EMAIL</source><translation>EMAIL</translation></message>
+ <message><source>[email protected]</source><translation>[email protected]</translation></message>
+ <message><source> SEND CODE </source><translation> GỬI MÃ </translation></message>
+ <message><source>REMEMBER YOUR PASSWORD? SIGN IN</source><translation>NHỚ RA MẬT KHẨU? ĐĂNG NHẬP</translation></message>
+ <message><source>CHECK YOUR EMAIL</source><translation>KIỂM TRA EMAIL CỦA BẠN</translation></message>
+ <message><source>We&apos;ve sent a verification code. Enter it on the next screen to reset your password.</source><translation>Chúng tôi đã gửi mã xác minh. Nhập mã ở màn hình tiếp theo để đặt lại mật khẩu.</translation></message>
+ <message><source> I HAVE THE CODE </source><translation> TÔI ĐÃ CÓ MÃ </translation></message>
+ <message><source>DIDN&apos;T RECEIVE? RESEND</source><translation>CHƯA NHẬN ĐƯỢC? GỬI LẠI</translation></message>
+ <message><source>VERIFICATION CODE</source><translation>MÃ XÁC MINH</translation></message>
+ <message><source>NEW PASSWORD</source><translation>MẬT KHẨU MỚI</translation></message>
+ <message><source>CONFIRM PASSWORD</source><translation>XÁC NHẬN MẬT KHẨU</translation></message>
+ <message><source>enter code from email</source><translation>nhập mã từ email</translation></message>
+ <message><source>min 8 characters</source><translation>tối thiểu 8 ký tự</translation></message>
+ <message><source>re-enter password</source><translation>nhập lại mật khẩu</translation></message>
+ <message><source> RESET PASSWORD </source><translation> ĐẶT LẠI MẬT KHẨU </translation></message>
+ <message><source>PASSWORD RESET</source><translation>ĐÃ ĐẶT LẠI MẬT KHẨU</translation></message>
+ <message><source>SUCCESS</source><translation>THÀNH CÔNG</translation></message>
+ <message><source>Your password has been reset. You can now sign in with your new password.</source><translation>Mật khẩu của bạn đã được đặt lại. Bây giờ bạn có thể đăng nhập bằng mật khẩu mới.</translation></message>
+ <message><source> CONTINUE TO LOGIN </source><translation> TIẾP TỤC ĐĂNG NHẬP </translation></message>
+</context>
+<context>
+ <name>fincept::screens::LockScreen</name>
+ <message><source>SECURITY SETUP</source><translation>CÀI ĐẶT BẢO MẬT</translation></message>
+ <message><source>REQUIRED</source><translation>BẮT BUỘC</translation></message>
+ <message><source>Create a 6-digit PIN to secure your terminal</source><translation>Tạo mã PIN 6 chữ số để bảo vệ terminal của bạn</translation></message>
+ <message><source>This PIN will be required each time you open
+the terminal or after a period of inactivity.</source><translation>Mã PIN này sẽ được yêu cầu mỗi khi bạn mở
+terminal hoặc sau một khoảng thời gian không hoạt động.</translation></message>
+ <message><source>ENTER PIN</source><translation>NHẬP MÃ PIN</translation></message>
+ <message><source>CONFIRM PIN</source><translation>XÁC NHẬN MÃ PIN</translation></message>
+ <message><source> SET PIN </source><translation> ĐẶT MÃ PIN </translation></message>
+ <message><source>PIN is encrypted and stored locally on this device.
+It cannot be recovered if forgotten.</source><translation>Mã PIN được mã hóa và lưu cục bộ trên thiết bị này.
+Không thể khôi phục nếu quên.</translation></message>
+ <message><source>TERMINAL LOCKED</source><translation>TERMINAL ĐÃ KHÓA</translation></message>
+ <message><source>SECURE</source><translation>BẢO MẬT</translation></message>
+ <message><source>Enter your 6-digit PIN to unlock</source><translation>Nhập mã PIN 6 chữ số để mở khóa</translation></message>
+ <message><source>PIN</source><translation>PIN</translation></message>
+ <message><source> UNLOCK </source><translation> MỞ KHÓA </translation></message>
+ <message><source>ACCOUNT LOCKED</source><translation>TÀI KHOẢN BỊ KHÓA</translation></message>
+ <message><source>SECURITY</source><translation>BẢO MẬT</translation></message>
+ <message><source>Too many failed PIN attempts.
+
+For your security, the terminal has been locked.
+You must sign in again with your email and password
+to reset your PIN and regain access.</source><translation>Quá nhiều lần nhập sai mã PIN.
+
+Vì bảo mật của bạn, terminal đã bị khóa.
+Bạn phải đăng nhập lại bằng email và mật khẩu
+để đặt lại mã PIN và lấy lại quyền truy cập.</translation></message>
+ <message><source> SIGN IN AGAIN </source><translation> ĐĂNG NHẬP LẠI </translation></message>
+ <message><source>PINs do not match</source><translation>Mã PIN không khớp</translation></message>
+ <message><source>Enter your PIN</source><translation>Nhập mã PIN của bạn</translation></message>
+ <message><source>Incorrect PIN</source><translation>Mã PIN không đúng</translation></message>
+ <message numerus="yes"><source>%n ATTEMPT(S) REMAINING</source><translation><numerusform>CÒN %n LẦN THỬ</numerusform></translation></message>
+ <message><source>Locked for %1 — too many failed attempts</source><translation>Bị khóa trong %1 — quá nhiều lần thử sai</translation></message>
+</context>
+<context>
+ <name>fincept::screens::SetupScreen</name>
+ <message><source>We need to download a few tools and data libraries once.
+This only happens the first time — future launches are instant.</source><translation>Chúng tôi cần tải xuống một số công cụ và thư viện dữ liệu một lần.
+Việc này chỉ xảy ra lần đầu — các lần khởi chạy sau sẽ tức thì.</translation></message>
+ <message><source>Download Installer</source><translation>Tải Bộ Cài Đặt</translation></message>
+ <message><source>Downloads the tool that manages everything else (~13 MB)</source><translation>Tải công cụ quản lý mọi thứ khác (~13 MB)</translation></message>
+ <message><source>Install Python Runtime</source><translation>Cài Đặt Môi Trường Python</translation></message>
+ <message><source>The programming language engine used for all analytics</source><translation>Công cụ ngôn ngữ lập trình dùng cho tất cả phân tích</translation></message>
+ <message><source>Create Isolated Workspaces</source><translation>Tạo Không Gian Làm Việc Riêng Biệt</translation></message>
+ <message><source>Two sandboxed environments to keep library versions conflict-free</source><translation>Hai môi trường sandbox để tránh xung đột phiên bản thư viện</translation></message>
+ <message><source>Install Trading Libraries</source><translation>Cài Đặt Thư Viện Giao Dịch</translation></message>
+ <message><source>Backtesting, portfolio optimization and legacy quant tools</source><translation>Kiểm thử lại, tối ưu danh mục đầu tư và công cụ định lượng cũ</translation></message>
+ <message><source>Install Analytics Libraries</source><translation>Cài Đặt Thư Viện Phân Tích</translation></message>
+ <message><source>Machine learning, data science and AI agent frameworks</source><translation>Học máy, khoa học dữ liệu và khung tác nhân AI</translation></message>
+ <message><source>Installing to: %1</source><translation>Cài đặt vào: %1</translation></message>
+ <message><source>Getting your workspace ready</source><translation>Đang chuẩn bị không gian làm việc của bạn</translation></message>
+ <message><source>Your workspace is fully configured</source><translation>Không gian làm việc của bạn đã được cấu hình đầy đủ</translation></message>
+ <message><source>Finishing your workspace setup</source><translation>Đang hoàn tất cài đặt không gian làm việc</translation></message>
+ <message><source>BEGIN SETUP</source><translation>BẮT ĐẦU CÀI ĐẶT</translation></message>
+ <message><source>SETTING UP...</source><translation>ĐANG CÀI ĐẶT...</translation></message>
+ <message><source>RETRY SETUP</source><translation>THỬ LẠI CÀI ĐẶT</translation></message>
+ <message><source>LAUNCH</source><translation>KHỞI CHẠY</translation></message>
+ <message><source>CONTINUE SETUP</source><translation>TIẾP TỤC CÀI ĐẶT</translation></message>
+ <message><source>ALREADY COMPLETE</source><translation>ĐÃ HOÀN TẤT</translation></message>
+ <message><source>SKIP &amp; CONTINUE</source><translation>BỎ QUA &amp; TIẾP TỤC</translation></message>
+ <message><source>Takes about 3–5 minutes. Needs an internet connection.</source><translation>Mất khoảng 3–5 phút. Cần kết nối internet.</translation></message>
+ <message><source>Setup in progress — please keep the application open</source><translation>Đang cài đặt — vui lòng giữ ứng dụng mở</translation></message>
+ <message><source>Everything is ready! Launching Fincept Terminal...</source><translation>Mọi thứ đã sẵn sàng! Đang khởi chạy Fincept Terminal...</translation></message>
+ <message><source>Only the missing pieces will be downloaded. Needs an internet connection.</source><translation>Chỉ những phần còn thiếu sẽ được tải xuống. Cần kết nối internet.</translation></message>
+ <message><source>Setup failed: %1</source><translation>Cài đặt thất bại: %1</translation></message>
+ <message><source>Unknown error — see logs for details.</source><translation>Lỗi không xác định — xem nhật ký để biết chi tiết.</translation></message>
+ <message><source>Setup is taking longer than expected — possibly a slow internet connection.
+You can wait or skip and continue with limited functionality.</source><translation>Quá trình cài đặt mất nhiều thời gian hơn dự kiến — có thể kết nối internet chậm.
+Bạn có thể chờ hoặc bỏ qua và tiếp tục với chức năng hạn chế.</translation></message>
+ <message><source>Waiting</source><translation>Đang chờ</translation></message>
+ <message><source>Working...</source><translation>Đang xử lý...</translation></message>
+ <message><source>DONE</source><translation>XONG</translation></message>
+ <message><source>FAILED</source><translation>THẤT BẠI</translation></message>
+ <message><source>Elapsed: %1s</source><translation>Đã trôi qua: %1g</translation></message>
+ <message><source>Elapsed: %1m %2s</source><translation>Đã trôi qua: %1p %2g</translation></message>
+ <message><source>Trading workspace</source><translation>Không gian làm việc giao dịch</translation></message>
+ <message><source>Analytics workspace</source><translation>Không gian làm việc phân tích</translation></message>
+ <message><source>trading library list</source><translation>danh sách thư viện giao dịch</translation></message>
+ <message><source>analytics library list</source><translation>danh sách thư viện phân tích</translation></message>
+ <message><source>Everything is installed and ready to go.</source><translation>Tất cả đã được cài đặt và sẵn sàng sử dụng.</translation></message>
+</context>
+<context>
+ <name>fincept::screens::SettingsScreen</name>
+ <message><source>SETTINGS</source><translation>CÀI ĐẶT</translation></message>
+ <message><source>SHELL</source><translation>ỨNG DỤNG</translation></message>
+ <message><source>PROFILE</source><translation>HỒ SƠ</translation></message>
+ <message><source>General</source><translation>Chung</translation></message>
+ <message><source>Appearance</source><translation>Giao diện</translation></message>
+ <message><source>Notifications</source><translation>Thông báo</translation></message>
+ <message><source>Keybindings</source><translation>Phím tắt</translation></message>
+ <message><source>Voice</source><translation>Giọng nói</translation></message>
+ <message><source>Logging</source><translation>Nhật ký</translation></message>
+ <message><source>Developer</source><translation>Nhà phát triển</translation></message>
+ <message><source>Profiles</source><translation>Hồ sơ</translation></message>
+ <message><source>Credentials</source><translation>Thông tin xác thực</translation></message>
+ <message><source>Security</source><translation>Bảo mật</translation></message>
+ <message><source>Data Sources</source><translation>Nguồn dữ liệu</translation></message>
+ <message><source>LLM Config</source><translation>Cấu hình LLM</translation></message>
+ <message><source>MCP Servers</source><translation>Máy chủ MCP</translation></message>
+ <message><source>Python Env</source><translation>Môi trường Python</translation></message>
+ <message><source>Storage &amp; Cache</source><translation>Bộ nhớ &amp; Cache</translation></message>
+</context>
+<context>
+ <name>fincept::screens::GeneralSection</name>
+ <message><source>WINDOW BEHAVIOUR</source><translation>HÀNH VI CỬA SỔ</translation></message>
+ <message><source>Quit application</source><translation>Thoát ứng dụng</translation></message>
+ <message><source>Show Launchpad</source><translation>Hiển thị Launchpad</translation></message>
+ <message><source>On last window close</source><translation>Khi đóng cửa sổ cuối</translation></message>
+ <message><source>LANGUAGE</source><translation>NGÔN NGỮ</translation></message>
+ <message><source>Interface language</source><translation>Ngôn ngữ giao diện</translation></message>
+</context>
+<context>
+ <name>fincept::screens::AppearanceSection</name>
+ <message><source>TYPOGRAPHY</source><translation>KIỂU CHỮ</translation></message>
+ <message><source>Font Size</source><translation>Cỡ chữ</translation></message>
+ <message><source>Font Family</source><translation>Họ phông chữ</translation></message>
+ <message><source>THEME</source><translation>CHỦ ĐỀ</translation></message>
+ <message><source>INTERFACE</source><translation>GIAO DIỆN</translation></message>
+ <message><source>Save Settings</source><translation>Lưu cài đặt</translation></message>
+</context>
+<context>
+ <name>fincept::screens::ProfilesSection</name>
+ <message><source>Profiles</source><translation>Hồ sơ</translation></message>
+ <message><source>ACTIVE</source><translation>ĐANG DÙNG</translation></message>
+ <message><source>Switch</source><translation>Chuyển</translation></message>
+</context>
+<context>
+ <name>fincept::screens::LoggingSection</name>
+ <message><source>LOGGING</source><translation>NHẬT KÝ</translation></message>
+ <message><source>Apply &amp; Save</source><translation>Áp dụng &amp; Lưu</translation></message>
+</context>
+<context>
+ <name>fincept::screens::NotificationsSection</name>
+ <message><source>NOTIFICATION PROVIDERS</source><translation>NHÀ CUNG CẤP THÔNG BÁO</translation></message>
+ <message><source>ALERT TRIGGERS</source><translation>KÍCH HOẠT CẢNH BÁO</translation></message>
+</context>
+<context>
+ <name>fincept::screens::KeybindingsSection</name>
+ <message><source>Apply</source><translation>Áp dụng</translation></message>
+ <message><source>Cancel</source><translation>Hủy</translation></message>
+ <message><source>Reset</source><translation>Đặt lại</translation></message>
+</context>
+<context>
+ <name>fincept::screens::CredentialsSection</name>
+ <message><source>API CREDENTIALS</source><translation>THÔNG TIN XÁC THỰC API</translation></message>
+ <message><source>Save</source><translation>Lưu</translation></message>
+</context>
+<context>
+ <name>fincept::screens::SecuritySection</name>
+ <message><source>PIN AUTHENTICATION</source><translation>XÁC THỰC PIN</translation></message>
+ <message><source>CHANGE PIN</source><translation>ĐỔI PIN</translation></message>
+ <message><source>AUTO-LOCK</source><translation>TỰ ĐỘNG KHÓA</translation></message>
+ <message><source>AUDIT LOG</source><translation>NHẬT KÝ KIỂM TRA</translation></message>
+</context>
+<context>
+ <name>fincept::screens::DataSourcesSection</name>
+ <message><source>DATA SOURCES</source><translation>NGUỒN DỮ LIỆU</translation></message>
+ <message><source>CONNECTIONS</source><translation>KẾT NỐI</translation></message>
+ <message><source>BULK ACTIONS</source><translation>HÀNH ĐỘNG HÀNG LOẠT</translation></message>
+</context>
+<context>
+ <name>fincept::screens::McpServersSection</name>
+ <message><source>MCP SERVERS</source><translation>MÁY CHỦ MCP</translation></message>
+</context>
+<context>
+ <name>fincept::screens::StorageSection</name>
+ <message><source>STORAGE &amp; DATA MANAGEMENT</source><translation>QUẢN LÝ BỘ NHỚ &amp; DỮ LIỆU</translation></message>
+</context>
+<context>
+ <name>fincept::screens::VoiceConfigSection</name>
+ <message><source>VOICE — SPEECH-TO-TEXT &amp; TEXT-TO-SPEECH</source><translation>GIỌNG NÓI — CHUYỂN GIỌNG NÓI THÀNH VĂN BẢN &amp; CHUYỂN VĂN BẢN THÀNH GIỌNG NÓI</translation></message>
+</context>
+<context>
+ <name>fincept::screens::PythonEnvSection</name>
+ <message><source>PYTHON ENVIRONMENTS</source><translation>MÔI TRƯỜNG PYTHON</translation></message>
+</context>
+<context>
+ <name>fincept::screens::LlmConfigSection</name>
+ <message><source>LLM CONFIGURATION</source><translation>CẤU HÌNH LLM</translation></message>
+ <message><source>PROFILES</source><translation>HỒ SƠ</translation></message>
+</context>
+<context>
+ <name>fincept::ui::ToolBar</name>
+ <message><source> LIVE</source><translation> TRỰC TIẾP</translation></message>
+ <message><source>LOGOUT</source><translation>ĐĂNG XUẤT</translation></message>
+ <message><source>FREE</source><translation>MIỄN PHÍ</translation></message>
+ <message><source>File</source><translation>Tệp</translation></message>
+ <message><source>New Window</source><translation>Cửa sổ mới</translation></message>
+ <message><source>Move to Monitor</source><translation>Chuyển sang Màn hình</translation></message>
+ <message><source>(single monitor)</source><translation>(một màn hình)</translation></message>
+ <message><source>New Layout</source><translation>Bố cục mới</translation></message>
+ <message><source>Save Layout</source><translation>Lưu bố cục</translation></message>
+ <message><source>Import Layout</source><translation>Nhập bố cục</translation></message>
+ <message><source>Export Layout</source><translation>Xuất bố cục</translation></message>
+ <message><source>File Manager</source><translation>Trình quản lý tệp</translation></message>
+ <message><source>Refresh All</source><translation>Làm mới tất cả</translation></message>
+ <message><source>Navigate</source><translation>Điều hướng</translation></message>
+ <message><source>Markets &amp; Data</source><translation>Thị trường &amp; Dữ liệu</translation></message>
+ <message><source>Economics</source><translation>Kinh tế</translation></message>
+ <message><source>Trading &amp; Portfolio</source><translation>Giao dịch &amp; Danh mục</translation></message>
+ <message><source>Equity Trading</source><translation>Giao dịch cổ phiếu</translation></message>
+ <message><source>Watchlist</source><translation>Danh sách theo dõi</translation></message>
+ <message><source>Crypto</source><translation>Tiền điện tử</translation></message>
+ <message><source>Research &amp; Intelligence</source><translation>Nghiên cứu &amp; Phân tích</translation></message>
+ <message><source>Geopolitics</source><translation>Địa chính trị</translation></message>
+ <message><source>Tools</source><translation>Công cụ</translation></message>
+ <message><source>Notes</source><translation>Ghi chú</translation></message>
+ <message><source>Forum</source><translation>Diễn đàn</translation></message>
+ <message><source>Support</source><translation>Hỗ trợ</translation></message>
+ <message><source>About</source><translation>Giới thiệu</translation></message>
+ <message><source>View</source><translation>Xem</translation></message>
+ <message><source>Float Panel</source><translation>Bảng nổi</translation></message>
+ <message><source>Dashboard</source><translation>Bảng điều khiển</translation></message>
+ <message><source>Portfolio</source><translation>Danh mục</translation></message>
+ <message><source>Markets</source><translation>Thị trường</translation></message>
+ <message><source>Crypto Trading</source><translation>Giao dịch tiền điện tử</translation></message>
+ <message><source>AI Chat</source><translation>Trò chuyện AI</translation></message>
+ <message><source>Help</source><translation>Trợ giúp</translation></message>
+ <message><source>Logout</source><translation>Đăng xuất</translation></message>
+ <message><source>News</source><translation>Tin tức</translation></message>
+</context>
+<context>
+ <name>fincept::ui::TabBar</name>
+ <message><source>DASHBOARD</source><translation>BẢNG ĐIỀU KHIỂN</translation></message>
+ <message><source>MARKETS</source><translation>THỊ TRƯỜNG</translation></message>
+ <message><source>CRYPTO</source><translation>TIỀN ĐIỆN TỬ</translation></message>
+ <message><source>PORTFOLIO</source><translation>DANH MỤC</translation></message>
+ <message><source>NEWS</source><translation>TIN TỨC</translation></message>
+ <message><source>AI CHAT</source><translation>AI CHAT</translation></message>
+ <message><source>BACKTEST</source><translation>KIỂM THỬ</translation></message>
+ <message><source>ALGO</source><translation>ALGO</translation></message>
+ <message><source>NODES</source><translation>NÚT</translation></message>
+ <message><source>CODE</source><translation>MÃ</translation></message>
+ <message><source>QUANT LAB</source><translation>QUANT LAB</translation></message>
+ <message><source>FORUM</source><translation>DIỄN ĐÀN</translation></message>
+ <message><source>SETTINGS</source><translation>CÀI ĐẶT</translation></message>
+ <message><source>PROFILE</source><translation>HỒ SƠ</translation></message>
+</context>
+<context>
+ <name>fincept::ui::StatusBar</name>
+ <message><source>READY</source><translation>SẴN SÀNG</translation></message>
+ <message><source>BUSY</source><translation>BẬN</translation></message>
+</context>
+<context>
+ <name>fincept::DockScreenRouter</name>
+ <message><source>Dashboard</source><translation>Bảng điều khiển</translation></message>
+ <message><source>Markets</source><translation>Thị trường</translation></message>
+ <message><source>Crypto Trading</source><translation>Giao dịch tiền điện tử</translation></message>
+ <message><source>Equity Trading</source><translation>Giao dịch cổ phiếu</translation></message>
+ <message><source>Portfolio</source><translation>Danh mục</translation></message>
+ <message><source>Watchlist</source><translation>Danh sách theo dõi</translation></message>
+ <message><source>News</source><translation>Tin tức</translation></message>
+ <message><source>AI Chat</source><translation>Trò chuyện AI</translation></message>
+ <message><source>Economics</source><translation>Kinh tế</translation></message>
+ <message><source>Geopolitics</source><translation>Địa chính trị</translation></message>
+ <message><source>Data Sources</source><translation>Nguồn dữ liệu</translation></message>
+ <message><source>File Manager</source><translation>Trình quản lý tệp</translation></message>
+ <message><source>Notes</source><translation>Ghi chú</translation></message>
+ <message><source>Forum</source><translation>Diễn đàn</translation></message>
+ <message><source>Support</source><translation>Hỗ trợ</translation></message>
+ <message><source>About</source><translation>Giới thiệu</translation></message>
+ <message><source>Profile</source><translation>Hồ sơ</translation></message>
+ <message><source>Settings</source><translation>Cài đặt</translation></message>
+ <message><source>Help</source><translation>Trợ giúp</translation></message>
+</context>
+</TS>
diff --git a/fincept-qt/translations/fincept_zh_CN.ts b/fincept-qt/translations/fincept_zh_CN.ts
new file mode 100644
index 000000000..ab7479402
--- /dev/null
+++ b/fincept-qt/translations/fincept_zh_CN.ts
@@ -0,0 +1,562 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1" language="zh_CN" sourcelanguage="en">
+<context>
+ <name>fincept::screens::LoginScreen</name>
+ <message><source>SIGN IN</source><translation>登录</translation></message>
+ <message><source>Access your terminal account</source><translation>登录您的终端账户</translation></message>
+ <message><source>EMAIL</source><translation>邮箱</translation></message>
+ <message><source>[email protected]</source><translation>[email protected]</translation></message>
+ <message><source>PASSWORD</source><translation>密码</translation></message>
+ <message><source>enter password</source><translation>请输入密码</translation></message>
+ <message><source>SHOW</source><translation>显示</translation></message>
+ <message><source>HIDE</source><translation>隐藏</translation></message>
+ <message><source>FORGOT PASSWORD?</source><translation>忘记密码?</translation></message>
+ <message><source> SIGN IN </source><translation> 登录 </translation></message>
+ <message><source> SIGNING IN... </source><translation> 正在登录... </translation></message>
+ <message><source>No account?</source><translation>还没有账户?</translation></message>
+ <message><source>SIGN UP</source><translation>注册</translation></message>
+ <message><source>TWO-FACTOR AUTH</source><translation>双重验证</translation></message>
+ <message><source>SECURE</source><translation>安全</translation></message>
+ <message><source>Enter the 6-digit code from your authenticator</source><translation>请输入验证器中的 6 位数字代码</translation></message>
+ <message><source>VERIFICATION CODE</source><translation>验证码</translation></message>
+ <message><source> VERIFY </source><translation> 验证 </translation></message>
+ <message><source>BACK TO LOGIN</source><translation>返回登录</translation></message>
+ <message><source>SESSION CONFLICT</source><translation>会话冲突</translation></message>
+ <message><source>WARNING</source><translation>警告</translation></message>
+ <message><source> LOG OUT OTHER SESSION &amp; CONTINUE </source><translation> 退出其他会话并继续 </translation></message>
+ <message><source> CANCEL </source><translation> 取消 </translation></message>
+ <message><source>Please enter your password</source><translation>请输入您的密码</translation></message>
+ <message><source>Please enter the code</source><translation>请输入验证码</translation></message>
+</context>
+<context>
+ <name>fincept::screens::RegisterScreen</name>
+ <message><source>CREATE ACCOUNT</source><translation>创建账户</translation></message>
+ <message><source>FIRST NAME</source><translation>名字</translation></message>
+ <message><source>LAST NAME</source><translation>姓氏</translation></message>
+ <message><source>EMAIL</source><translation>邮箱</translation></message>
+ <message><source>CODE</source><translation>区号</translation></message>
+ <message><source>PHONE</source><translation>电话</translation></message>
+ <message><source>PASSWORD</source><translation>密码</translation></message>
+ <message><source>CONFIRM PASSWORD</source><translation>确认密码</translation></message>
+ <message><source>First</source><translation>名</translation></message>
+ <message><source>Last</source><translation>姓</translation></message>
+ <message><source>[email protected]</source><translation>[email protected]</translation></message>
+ <message><source>+1</source><translation>+86</translation></message>
+ <message><source>234 567 8900</source><translation>138 0000 0000</translation></message>
+ <message><source>min 8 characters</source><translation>至少 8 个字符</translation></message>
+ <message><source>re-enter password</source><translation>再次输入密码</translation></message>
+ <message><source> CREATE ACCOUNT </source><translation> 创建账户 </translation></message>
+ <message><source> CREATING... </source><translation> 创建中... </translation></message>
+ <message><source>Already have an account?</source><translation>已有账户?</translation></message>
+ <message><source>SIGN IN</source><translation>登录</translation></message>
+ <message><source>VERIFY EMAIL</source><translation>验证邮箱</translation></message>
+ <message><source>VERIFICATION CODE</source><translation>验证码</translation></message>
+ <message><source>enter code from email</source><translation>请输入邮件中的验证码</translation></message>
+ <message><source> VERIFY </source><translation> 验证 </translation></message>
+ <message><source> VERIFYING... </source><translation> 验证中... </translation></message>
+ <message><source>DIDN&apos;T RECEIVE? RESEND</source><translation>没收到?重新发送</translation></message>
+ <message><source>BACK TO FORM</source><translation>返回表单</translation></message>
+ <message><source>All fields are required</source><translation>所有字段均为必填</translation></message>
+ <message><source>Country code is required (e.g. +1, +91)</source><translation>请填写国家区号(例如 +86、+1)</translation></message>
+ <message><source>Passwords do not match</source><translation>两次输入的密码不一致</translation></message>
+ <message><source>Password must be at least 8 characters</source><translation>密码长度至少为 8 个字符</translation></message>
+ <message><source>Username must be 3-50 characters</source><translation>用户名长度必须为 3 至 50 个字符</translation></message>
+ <message><source>Enter the verification code</source><translation>请输入验证码</translation></message>
+</context>
+<context>
+ <name>fincept::screens::ForgotPasswordScreen</name>
+ <message><source>RESET PASSWORD</source><translation>重置密码</translation></message>
+ <message><source>Enter your email and we&apos;ll send a verification code.</source><translation>请输入您的邮箱,我们将发送验证码。</translation></message>
+ <message><source>EMAIL</source><translation>邮箱</translation></message>
+ <message><source>[email protected]</source><translation>[email protected]</translation></message>
+ <message><source> SEND CODE </source><translation> 发送验证码 </translation></message>
+ <message><source>REMEMBER YOUR PASSWORD? SIGN IN</source><translation>想起密码了?立即登录</translation></message>
+ <message><source>CHECK YOUR EMAIL</source><translation>请查收邮件</translation></message>
+ <message><source>We&apos;ve sent a verification code. Enter it on the next screen to reset your password.</source><translation>验证码已发送。请在下一页输入以重置密码。</translation></message>
+ <message><source> I HAVE THE CODE </source><translation> 我已收到验证码 </translation></message>
+ <message><source>DIDN&apos;T RECEIVE? RESEND</source><translation>没收到?重新发送</translation></message>
+ <message><source>VERIFICATION CODE</source><translation>验证码</translation></message>
+ <message><source>NEW PASSWORD</source><translation>新密码</translation></message>
+ <message><source>CONFIRM PASSWORD</source><translation>确认密码</translation></message>
+ <message><source>enter code from email</source><translation>请输入邮件中的验证码</translation></message>
+ <message><source>min 8 characters</source><translation>至少 8 个字符</translation></message>
+ <message><source>re-enter password</source><translation>再次输入密码</translation></message>
+ <message><source> RESET PASSWORD </source><translation> 重置密码 </translation></message>
+ <message><source>PASSWORD RESET</source><translation>密码已重置</translation></message>
+ <message><source>SUCCESS</source><translation>成功</translation></message>
+ <message><source>Your password has been reset. You can now sign in with your new password.</source><translation>您的密码已重置。现在可以使用新密码登录。</translation></message>
+ <message><source> CONTINUE TO LOGIN </source><translation> 前往登录 </translation></message>
+</context>
+<context>
+ <name>fincept::screens::LockScreen</name>
+ <message><source>SECURITY SETUP</source><translation>安全设置</translation></message>
+ <message><source>REQUIRED</source><translation>必填</translation></message>
+ <message><source>Create a 6-digit PIN to secure your terminal</source><translation>创建 6 位数字 PIN 码以保护您的终端</translation></message>
+ <message><source>This PIN will be required each time you open
+the terminal or after a period of inactivity.</source><translation>每次打开终端或闲置一段时间后
+都需要输入此 PIN 码。</translation></message>
+ <message><source>ENTER PIN</source><translation>输入 PIN 码</translation></message>
+ <message><source>CONFIRM PIN</source><translation>确认 PIN 码</translation></message>
+ <message><source> SET PIN </source><translation> 设置 PIN 码 </translation></message>
+ <message><source>PIN is encrypted and stored locally on this device.
+It cannot be recovered if forgotten.</source><translation>PIN 码已加密并仅保存在此设备上。
+一旦遗忘将无法找回。</translation></message>
+ <message><source>TERMINAL LOCKED</source><translation>终端已锁定</translation></message>
+ <message><source>SECURE</source><translation>安全</translation></message>
+ <message><source>Enter your 6-digit PIN to unlock</source><translation>请输入 6 位 PIN 码以解锁</translation></message>
+ <message><source>PIN</source><translation>PIN 码</translation></message>
+ <message><source> UNLOCK </source><translation> 解锁 </translation></message>
+ <message><source>ACCOUNT LOCKED</source><translation>账户已锁定</translation></message>
+ <message><source>SECURITY</source><translation>安全</translation></message>
+ <message><source>Too many failed PIN attempts.
+
+For your security, the terminal has been locked.
+You must sign in again with your email and password
+to reset your PIN and regain access.</source><translation>PIN 码输入错误次数过多。
+
+出于安全考虑,终端已被锁定。
+请使用您的邮箱和密码重新登录,
+以重置 PIN 码并恢复访问权限。</translation></message>
+ <message><source> SIGN IN AGAIN </source><translation> 重新登录 </translation></message>
+ <message><source>PINs do not match</source><translation>两次输入的 PIN 码不一致</translation></message>
+ <message><source>Enter your PIN</source><translation>请输入您的 PIN 码</translation></message>
+ <message><source>Incorrect PIN</source><translation>PIN 码不正确</translation></message>
+ <message numerus="yes"><source>%n ATTEMPT(S) REMAINING</source><translation><numerusform>剩余 %n 次尝试机会</numerusform></translation></message>
+ <message><source>Locked for %1 — too many failed attempts</source><translation>已锁定 %1 — 错误尝试次数过多</translation></message>
+</context>
+<context>
+ <name>fincept::screens::SetupScreen</name>
+ <message><source>We need to download a few tools and data libraries once.
+This only happens the first time — future launches are instant.</source><translation>我们需要下载一些工具和数据库(仅此一次)。
+仅首次启动时进行 — 之后的启动都将即时完成。</translation></message>
+ <message><source>Download Installer</source><translation>下载安装器</translation></message>
+ <message><source>Downloads the tool that manages everything else (~13 MB)</source><translation>下载用于管理其余组件的工具(约 13 MB)</translation></message>
+ <message><source>Install Python Runtime</source><translation>安装 Python 运行时</translation></message>
+ <message><source>The programming language engine used for all analytics</source><translation>用于所有分析功能的编程语言引擎</translation></message>
+ <message><source>Create Isolated Workspaces</source><translation>创建隔离的工作环境</translation></message>
+ <message><source>Two sandboxed environments to keep library versions conflict-free</source><translation>两个沙盒环境,避免库版本冲突</translation></message>
+ <message><source>Install Trading Libraries</source><translation>安装交易库</translation></message>
+ <message><source>Backtesting, portfolio optimization and legacy quant tools</source><translation>回测、组合优化与传统量化工具</translation></message>
+ <message><source>Install Analytics Libraries</source><translation>安装分析库</translation></message>
+ <message><source>Machine learning, data science and AI agent frameworks</source><translation>机器学习、数据科学与 AI 智能体框架</translation></message>
+ <message><source>Installing to: %1</source><translation>安装到:%1</translation></message>
+ <message><source>Getting your workspace ready</source><translation>正在准备您的工作环境</translation></message>
+ <message><source>Your workspace is fully configured</source><translation>您的工作环境已配置完毕</translation></message>
+ <message><source>Finishing your workspace setup</source><translation>正在完成工作环境配置</translation></message>
+ <message><source>BEGIN SETUP</source><translation>开始安装</translation></message>
+ <message><source>SETTING UP...</source><translation>安装中...</translation></message>
+ <message><source>RETRY SETUP</source><translation>重新安装</translation></message>
+ <message><source>LAUNCH</source><translation>启动</translation></message>
+ <message><source>CONTINUE SETUP</source><translation>继续安装</translation></message>
+ <message><source>ALREADY COMPLETE</source><translation>已完成</translation></message>
+ <message><source>SKIP &amp; CONTINUE</source><translation>跳过并继续</translation></message>
+ <message><source>Takes about 3–5 minutes. Needs an internet connection.</source><translation>大约需要 3–5 分钟。需要互联网连接。</translation></message>
+ <message><source>Setup in progress — please keep the application open</source><translation>正在安装 — 请保持应用程序打开</translation></message>
+ <message><source>Everything is ready! Launching Fincept Terminal...</source><translation>一切就绪!正在启动 Fincept Terminal...</translation></message>
+ <message><source>Only the missing pieces will be downloaded. Needs an internet connection.</source><translation>仅下载缺失部分。需要互联网连接。</translation></message>
+ <message><source>Setup failed: %1</source><translation>安装失败:%1</translation></message>
+ <message><source>Unknown error — see logs for details.</source><translation>未知错误 — 请查看日志了解详情。</translation></message>
+ <message><source>Setup is taking longer than expected — possibly a slow internet connection.
+You can wait or skip and continue with limited functionality.</source><translation>安装耗时超出预期 — 可能是网络较慢。
+您可以继续等待,或跳过并以有限功能继续。</translation></message>
+ <message><source>Waiting</source><translation>等待中</translation></message>
+ <message><source>Working...</source><translation>处理中...</translation></message>
+ <message><source>DONE</source><translation>完成</translation></message>
+ <message><source>FAILED</source><translation>失败</translation></message>
+ <message><source>Elapsed: %1s</source><translation>已用时间:%1 秒</translation></message>
+ <message><source>Elapsed: %1m %2s</source><translation>已用时间:%1 分 %2 秒</translation></message>
+ <message><source>Trading workspace</source><translation>交易工作环境</translation></message>
+ <message><source>Analytics workspace</source><translation>分析工作环境</translation></message>
+ <message><source>trading library list</source><translation>交易库清单</translation></message>
+ <message><source>analytics library list</source><translation>分析库清单</translation></message>
+ <message><source>Everything is installed and ready to go.</source><translation>所有组件均已安装就绪。</translation></message>
+</context>
+<context>
+ <name>fincept::screens::SettingsScreen</name>
+ <message><source>SETTINGS</source><translation>设置</translation></message>
+ <message><source>SHELL</source><translation>应用</translation></message>
+ <message><source>PROFILE</source><translation>配置</translation></message>
+ <message><source>General</source><translation>通用</translation></message>
+ <message><source>Appearance</source><translation>外观</translation></message>
+ <message><source>Notifications</source><translation>通知</translation></message>
+ <message><source>Keybindings</source><translation>快捷键</translation></message>
+ <message><source>Voice</source><translation>语音</translation></message>
+ <message><source>Logging</source><translation>日志</translation></message>
+ <message><source>Developer</source><translation>开发者</translation></message>
+ <message><source>Profiles</source><translation>配置文件</translation></message>
+ <message><source>Credentials</source><translation>凭据</translation></message>
+ <message><source>Security</source><translation>安全</translation></message>
+ <message><source>Data Sources</source><translation>数据源</translation></message>
+ <message><source>LLM Config</source><translation>LLM 配置</translation></message>
+ <message><source>MCP Servers</source><translation>MCP 服务器</translation></message>
+ <message><source>Python Env</source><translation>Python 环境</translation></message>
+ <message><source>Storage &amp; Cache</source><translation>存储与缓存</translation></message>
+</context>
+<context>
+ <name>fincept::screens::GeneralSection</name>
+ <message><source>WINDOW BEHAVIOUR</source><translation>窗口行为</translation></message>
+ <message><source>Quit application</source><translation>退出应用程序</translation></message>
+ <message><source>Show Launchpad</source><translation>显示启动台</translation></message>
+ <message><source>On last window close</source><translation>关闭最后一个窗口时</translation></message>
+ <message><source>Default is Quit. Choose &apos;Show Launchpad&apos; if you want a small portal window to stay open after closing your last terminal window.</source><translation>默认为退出。如果希望关闭最后一个终端窗口后保留小型门户窗口,请选择"显示启动台"。</translation></message>
+ <message><source>LANGUAGE</source><translation>语言</translation></message>
+ <message><source>Interface language</source><translation>界面语言</translation></message>
+ <message><source>Changes apply immediately. English is the source language; all other translations are embedded with the build.</source><translation>更改立即生效。英语为源语言,其他所有翻译均随构建一同嵌入。</translation></message>
+</context>
+<context>
+ <name>fincept::screens::AppearanceSection</name>
+ <message><source>TYPOGRAPHY</source><translation>排版</translation></message>
+ <message><source>Font Size</source><translation>字号</translation></message>
+ <message><source>Font Family</source><translation>字体</translation></message>
+ <message><source>THEME</source><translation>主题</translation></message>
+ <message><source>Content Density</source><translation>内容密度</translation></message>
+ <message><source>Controls padding and spacing throughout the UI.</source><translation>控制整个界面的内边距和间距。</translation></message>
+ <message><source>INTERFACE</source><translation>界面</translation></message>
+ <message><source>Show AI Chat Bubble</source><translation>显示 AI 聊天气泡</translation></message>
+ <message><source>AI Chat Bubble</source><translation>AI 聊天气泡</translation></message>
+ <message><source>Floating chat assistant in the bottom-right corner.</source><translation>右下角的悬浮聊天助手。</translation></message>
+ <message><source>Show Ticker Bar</source><translation>显示行情条</translation></message>
+ <message><source>Ticker Bar</source><translation>行情条</translation></message>
+ <message><source>Live price ticker at the bottom of the screen.</source><translation>屏幕底部的实时价格行情。</translation></message>
+ <message><source>Enable Animations</source><translation>启用动画</translation></message>
+ <message><source>Animations</source><translation>动画</translation></message>
+ <message><source>Fade and transition effects throughout the UI.</source><translation>整个界面的淡入与过渡效果。</translation></message>
+ <message><source>Save Settings</source><translation>保存设置</translation></message>
+</context>
+<context>
+ <name>fincept::screens::DeveloperSection</name>
+ <message><source>Agentic Mode (Experimental)</source><translation>智能体模式(实验性)</translation></message>
+ <message><source>Enable Agentic Mode</source><translation>启用智能体模式</translation></message>
+ <message><source>DataHub Inspector</source><translation>DataHub 检查器</translation></message>
+</context>
+<context>
+ <name>fincept::screens::ProfilesSection</name>
+ <message><source>Profiles</source><translation>配置文件</translation></message>
+ <message><source>All profiles</source><translation>所有配置文件</translation></message>
+ <message><source>ACTIVE</source><translation>使用中</translation></message>
+ <message><source>Switch</source><translation>切换</translation></message>
+ <message><source>Create new profile</source><translation>创建新配置文件</translation></message>
+ <message><source>profile-name (alphanumeric, - and _ only)</source><translation>配置文件名(仅限字母数字、-、_)</translation></message>
+ <message><source>Create &amp; Switch</source><translation>创建并切换</translation></message>
+ <message><source>Active profile: &lt;b&gt;%1&lt;/b&gt;</source><translation>当前配置文件:&lt;b&gt;%1&lt;/b&gt;</translation></message>
+</context>
+<context>
+ <name>fincept::screens::LoggingSection</name>
+ <message><source>LOGGING</source><translation>日志</translation></message>
+ <message><source>Global Log Level</source><translation>全局日志级别</translation></message>
+ <message><source>Minimum level for all tags unless overridden.</source><translation>除非被覆盖,否则适用于所有标签的最低级别。</translation></message>
+ <message><source>Output Format</source><translation>输出格式</translation></message>
+ <message><source>Emit structured JSON lines</source><translation>输出结构化 JSON 行</translation></message>
+ <message><source>Log File</source><translation>日志文件</translation></message>
+ <message><source>Open Log Folder</source><translation>打开日志文件夹</translation></message>
+ <message><source>Copy Path</source><translation>复制路径</translation></message>
+ <message><source>Per-Tag Overrides</source><translation>按标签覆盖</translation></message>
+ <message><source>Tag name</source><translation>标签名称</translation></message>
+ <message><source>Remove</source><translation>删除</translation></message>
+ <message><source>+ Add Tag Override</source><translation>+ 添加标签覆盖</translation></message>
+ <message><source>Apply &amp; Save</source><translation>应用并保存</translation></message>
+</context>
+<context>
+ <name>fincept::screens::NotificationsSection</name>
+ <message><source>NOTIFICATION PROVIDERS</source><translation>通知提供商</translation></message>
+ <message><source>Test Send</source><translation>发送测试</translation></message>
+ <message><source>Sending...</source><translation>正在发送...</translation></message>
+ <message><source>Fincept Test</source><translation>Fincept 测试</translation></message>
+ <message><source>This is a test notification from Fincept Terminal.</source><translation>这是来自 Fincept Terminal 的测试通知。</translation></message>
+ <message><source>✓ Sent successfully</source><translation>✓ 发送成功</translation></message>
+ <message><source>ALERT TRIGGERS</source><translation>提醒触发器</translation></message>
+ <message><source>Price Alerts</source><translation>价格提醒</translation></message>
+ <message><source>News Alerts</source><translation>新闻提醒</translation></message>
+ <message><source>Order Fill Alerts</source><translation>订单成交提醒</translation></message>
+ <message><source>Save All Providers</source><translation>保存所有提供商</translation></message>
+</context>
+<context>
+ <name>fincept::screens::KeybindingsSection</name>
+ <message><source>Rebind: %1</source><translation>重新绑定:%1</translation></message>
+ <message><source>Current: %1</source><translation>当前:%1</translation></message>
+ <message><source>Press new key combination...</source><translation>请按下新的组合键...</translation></message>
+ <message><source>Apply</source><translation>应用</translation></message>
+ <message><source>Cancel</source><translation>取消</translation></message>
+ <message><source>Search actions...</source><translation>搜索操作...</translation></message>
+ <message><source>Reset All to Defaults</source><translation>全部恢复默认</translation></message>
+ <message><source>Reset</source><translation>重置</translation></message>
+</context>
+<context>
+ <name>fincept::screens::CredentialsSection</name>
+ <message><source>API CREDENTIALS</source><translation>API 凭据</translation></message>
+ <message><source>Store API keys securely in the OS keychain. Keys are never written to disk in plain text.</source><translation>将 API 密钥安全地存储于操作系统钥匙串中。密钥不会以明文形式写入磁盘。</translation></message>
+ <message><source>Not set</source><translation>未设置</translation></message>
+ <message><source>Not configured</source><translation>未配置</translation></message>
+ <message><source>Save</source><translation>保存</translation></message>
+ <message><source>Cleared</source><translation>已清除</translation></message>
+ <message><source>•••••••• (saved)</source><translation>•••••••• (已保存)</translation></message>
+ <message><source>Saved ✓</source><translation>已保存 ✓</translation></message>
+ <message><source>Save failed</source><translation>保存失败</translation></message>
+</context>
+<context>
+ <name>fincept::screens::SecuritySection</name>
+ <message><source>PIN AUTHENTICATION</source><translation>PIN 身份验证</translation></message>
+ <message><source>PIN Status</source><translation>PIN 状态</translation></message>
+ <message><source>Failed Attempts</source><translation>失败次数</translation></message>
+ <message><source>CHANGE PIN</source><translation>更改 PIN</translation></message>
+ <message><source>Change PIN</source><translation>更改 PIN</translation></message>
+ <message><source>Cancel</source><translation>取消</translation></message>
+ <message><source>Current PIN</source><translation>当前 PIN</translation></message>
+ <message><source>New PIN</source><translation>新 PIN</translation></message>
+ <message><source>Confirm PIN</source><translation>确认 PIN</translation></message>
+ <message><source>Update PIN</source><translation>更新 PIN</translation></message>
+ <message><source>New PINs do not match</source><translation>两次输入的新 PIN 不一致</translation></message>
+ <message><source>PIN updated successfully</source><translation>PIN 更新成功</translation></message>
+ <message><source>AUTO-LOCK</source><translation>自动锁定</translation></message>
+ <message><source>Enable auto-lock on inactivity</source><translation>无操作时自动锁定</translation></message>
+ <message><source>Auto-Lock</source><translation>自动锁定</translation></message>
+ <message><source>Lock Timeout</source><translation>锁定超时</translation></message>
+ <message><source>1 min</source><translation>1 分钟</translation></message>
+ <message><source>2 min</source><translation>2 分钟</translation></message>
+ <message><source>5 min</source><translation>5 分钟</translation></message>
+ <message><source>10 min</source><translation>10 分钟</translation></message>
+ <message><source>15 min</source><translation>15 分钟</translation></message>
+ <message><source>30 min</source><translation>30 分钟</translation></message>
+ <message><source>60 min</source><translation>60 分钟</translation></message>
+ <message><source>Lock when the window is minimized</source><translation>窗口最小化时锁定</translation></message>
+ <message><source>Lock on Minimize</source><translation>最小化时锁定</translation></message>
+ <message><source>Save Security Settings</source><translation>保存安全设置</translation></message>
+ <message><source>AUDIT LOG</source><translation>审计日志</translation></message>
+ <message><source>Refresh</source><translation>刷新</translation></message>
+ <message><source>CONFIGURED</source><translation>已配置</translation></message>
+ <message><source>NOT SET</source><translation>未设置</translation></message>
+</context>
+<context>
+ <name>fincept::screens::DataSourcesSection</name>
+ <message><source>DATA SOURCES</source><translation>数据源</translation></message>
+ <message><source>OPEN FULL SCREEN</source><translation>打开全屏</translation></message>
+ <message><source>TOTAL</source><translation>总计</translation></message>
+ <message><source>ACTIVE</source><translation>活跃</translation></message>
+ <message><source>INACTIVE</source><translation>未启用</translation></message>
+ <message><source>PROVIDERS</source><translation>提供商</translation></message>
+ <message><source>CONNECTIONS</source><translation>连接</translation></message>
+ <message><source>SOURCE</source><translation>源</translation></message>
+ <message><source>TYPE</source><translation>类型</translation></message>
+ <message><source>CATEGORY</source><translation>分类</translation></message>
+ <message><source>ON</source><translation>启用</translation></message>
+ <message><source>DEL</source><translation>删除</translation></message>
+ <message><source>BULK ACTIONS</source><translation>批量操作</translation></message>
+ <message><source>ENABLE ALL</source><translation>全部启用</translation></message>
+ <message><source>DISABLE ALL</source><translation>全部禁用</translation></message>
+ <message><source>DELETE ALL</source><translation>全部删除</translation></message>
+ <message><source>Delete Connection</source><translation>删除连接</translation></message>
+ <message><source>Disable All</source><translation>全部禁用</translation></message>
+ <message><source>Delete All Connections</source><translation>删除所有连接</translation></message>
+</context>
+<context>
+ <name>fincept::screens::McpServersSection</name>
+ <message><source>MCP SERVERS</source><translation>MCP 服务器</translation></message>
+</context>
+<context>
+ <name>fincept::screens::StorageSection</name>
+ <message><source>STORAGE &amp; DATA MANAGEMENT</source><translation>存储与数据管理</translation></message>
+</context>
+<context>
+ <name>fincept::screens::VoiceConfigSection</name>
+ <message><source>VOICE — SPEECH-TO-TEXT &amp; TEXT-TO-SPEECH</source><translation>语音 — 语音转文字与文字转语音</translation></message>
+ <message><source>SPEECH-TO-TEXT (microphone -&gt; text)</source><translation>语音转文字(麦克风 -&gt; 文字)</translation></message>
+</context>
+<context>
+ <name>fincept::screens::PythonEnvSection</name>
+ <message><source>PYTHON ENVIRONMENTS</source><translation>Python 环境</translation></message>
+</context>
+<context>
+ <name>fincept::screens::LlmConfigSection</name>
+ <message><source>LLM CONFIGURATION</source><translation>LLM 配置</translation></message>
+ <message><source>PROFILES</source><translation>配置文件</translation></message>
+ <message><source>A profile = named LLM config you can assign to any agent or team.</source><translation>配置文件 = 可分配给任何智能体或团队的命名 LLM 配置。</translation></message>
+</context>
+<context>
+ <name>fincept::ui::ToolBar</name>
+ <message><source> | PROFESSIONAL RESEARCH DESK</source><translation> | 专业研究终端</translation></message>
+ <message><source> LIVE</source><translation> 实时</translation></message>
+ <message><source>View Plans &amp; Pricing</source><translation>查看套餐与价格</translation></message>
+ <message><source>CHAT</source><translation>聊天</translation></message>
+ <message><source>Switch to Chat Mode (F9)</source><translation>切换至聊天模式 (F9)</translation></message>
+ <message><source>LOGOUT</source><translation>退出登录</translation></message>
+ <message><source>%1 CR</source><translation>%1 积分</translation></message>
+ <message><source>FREE</source><translation>免费</translation></message>
+ <message><source>File</source><translation>文件</translation></message>
+ <message><source>New Window</source><translation>新建窗口</translation></message>
+ <message><source>Move to Monitor</source><translation>移动到显示器</translation></message>
+ <message><source>(single monitor)</source><translation>(仅一个显示器)</translation></message>
+ <message><source>New Layout</source><translation>新建布局</translation></message>
+ <message><source>Open Layout…</source><translation>打开布局…</translation></message>
+ <message><source>Save Layout</source><translation>保存布局</translation></message>
+ <message><source>Save Layout As…</source><translation>布局另存为…</translation></message>
+ <message><source>Import Layout</source><translation>导入布局</translation></message>
+ <message><source>Export Layout</source><translation>导出布局</translation></message>
+ <message><source>File Manager</source><translation>文件管理器</translation></message>
+ <message><source>Refresh All</source><translation>全部刷新</translation></message>
+ <message><source>Navigate</source><translation>导航</translation></message>
+ <message><source>Markets &amp; Data</source><translation>市场与数据</translation></message>
+ <message><source>Economics</source><translation>经济</translation></message>
+ <message><source>GOVT Data</source><translation>政府数据</translation></message>
+ <message><source>DBnomics</source><translation>DBnomics</translation></message>
+ <message><source>AKShare Data</source><translation>AKShare 数据</translation></message>
+ <message><source>Asia Markets</source><translation>亚洲市场</translation></message>
+ <message><source>Relationship Map</source><translation>关系图谱</translation></message>
+ <message><source>Trading &amp; Portfolio</source><translation>交易与投资组合</translation></message>
+ <message><source>Equity Trading</source><translation>股票交易</translation></message>
+ <message><source>Alpha Arena</source><translation>Alpha 竞技场</translation></message>
+ <message><source>Prediction Markets</source><translation>预测市场</translation></message>
+ <message><source>Derivatives</source><translation>衍生品</translation></message>
+ <message><source>F&amp;&amp;O</source><translation>期货与期权</translation></message>
+ <message><source>Watchlist</source><translation>自选列表</translation></message>
+ <message><source>Crypto</source><translation>加密货币</translation></message>
+ <message><source>Crypto Center</source><translation>加密中心</translation></message>
+ <message><source>Research &amp; Intelligence</source><translation>研究与情报</translation></message>
+ <message><source>Equity Research</source><translation>股票研究</translation></message>
+ <message><source>M&amp;A Analytics</source><translation>并购分析</translation></message>
+ <message><source>Alt. Investments</source><translation>另类投资</translation></message>
+ <message><source>Geopolitics</source><translation>地缘政治</translation></message>
+ <message><source>Maritime</source><translation>航运</translation></message>
+ <message><source>Surface Analytics</source><translation>波动率曲面分析</translation></message>
+ <message><source>Tools</source><translation>工具</translation></message>
+ <message><source>Agent Config</source><translation>智能体配置</translation></message>
+ <message><source>MCP Servers</source><translation>MCP 服务器</translation></message>
+ <message><source>Data Mapping</source><translation>数据映射</translation></message>
+ <message><source>Data Sources</source><translation>数据源</translation></message>
+ <message><source>Report Builder</source><translation>报告生成器</translation></message>
+ <message><source>Excel</source><translation>Excel</translation></message>
+ <message><source>Trade Viz</source><translation>交易可视化</translation></message>
+ <message><source>Notes</source><translation>笔记</translation></message>
+ <message><source>Forum</source><translation>论坛</translation></message>
+ <message><source>Docs</source><translation>文档</translation></message>
+ <message><source>Support</source><translation>支持</translation></message>
+ <message><source>About</source><translation>关于</translation></message>
+ <message><source>View</source><translation>视图</translation></message>
+ <message><source>Component Browser Ctrl+K</source><translation>组件浏览器 Ctrl+K</translation></message>
+ <message><source>Fullscreen F11</source><translation>全屏 F11</translation></message>
+ <message><source>Focus Mode F10</source><translation>专注模式 F10</translation></message>
+ <message><source>Always on Top Ctrl+Shift+T</source><translation>窗口置顶 Ctrl+Shift+T</translation></message>
+ <message><source>Float Panel</source><translation>浮动面板</translation></message>
+ <message><source>Dashboard</source><translation>仪表盘</translation></message>
+ <message><source>News Feed</source><translation>新闻流</translation></message>
+ <message><source>Portfolio</source><translation>投资组合</translation></message>
+ <message><source>Markets</source><translation>市场</translation></message>
+ <message><source>Crypto Trading</source><translation>加密交易</translation></message>
+ <message><source>Algo Trading</source><translation>算法交易</translation></message>
+ <message><source>AI Chat</source><translation>AI 聊天</translation></message>
+ <message><source>Quick Switch</source><translation>快速切换</translation></message>
+ <message><source>Save Workspace</source><translation>保存工作区</translation></message>
+ <message><source>Trading</source><translation>交易</translation></message>
+ <message><source>Research</source><translation>研究</translation></message>
+ <message><source>M&amp;&amp;A Analytics</source><translation>并购分析</translation></message>
+ <message><source>Portfolio View</source><translation>投资组合视图</translation></message>
+ <message><source>Markets View</source><translation>市场视图</translation></message>
+ <message><source>News View</source><translation>新闻视图</translation></message>
+ <message><source>Economics &amp;&amp; Data</source><translation>经济与数据</translation></message>
+ <message><source>Geopolitics View</source><translation>地缘政治视图</translation></message>
+ <message><source>AI &amp;&amp; Quant</source><translation>AI 与量化</translation></message>
+ <message><source>Quant Lab</source><translation>量化实验室</translation></message>
+ <message><source>Tools View</source><translation>工具视图</translation></message>
+ <message><source>Refresh Screen F5</source><translation>刷新屏幕 F5</translation></message>
+ <message><source>Take Screenshot Ctrl+P</source><translation>截屏 Ctrl+P</translation></message>
+ <message><source>Help</source><translation>帮助</translation></message>
+ <message><source>About Fincept</source><translation>关于 Fincept</translation></message>
+ <message><source>Help Center</source><translation>帮助中心</translation></message>
+ <message><source>Contact Us</source><translation>联系我们</translation></message>
+ <message><source>Terms of Service</source><translation>服务条款</translation></message>
+ <message><source>Privacy Policy</source><translation>隐私政策</translation></message>
+ <message><source>Trademarks</source><translation>商标</translation></message>
+ <message><source>Check for Updates</source><translation>检查更新</translation></message>
+ <message><source>Logout</source><translation>退出登录</translation></message>
+ <message><source>News</source><translation>新闻</translation></message>
+</context>
+<context>
+ <name>fincept::ui::TabBar</name>
+ <message><source>DASHBOARD</source><translation>仪表盘</translation></message>
+ <message><source>MARKETS</source><translation>市场</translation></message>
+ <message><source>CRYPTO</source><translation>加密</translation></message>
+ <message><source>PORTFOLIO</source><translation>组合</translation></message>
+ <message><source>NEWS</source><translation>新闻</translation></message>
+ <message><source>AI CHAT</source><translation>AI 聊天</translation></message>
+ <message><source>BACKTEST</source><translation>回测</translation></message>
+ <message><source>ALGO</source><translation>算法</translation></message>
+ <message><source>NODES</source><translation>节点</translation></message>
+ <message><source>CODE</source><translation>代码</translation></message>
+ <message><source>QUANT LAB</source><translation>量化实验室</translation></message>
+ <message><source>QUANTLIB</source><translation>QUANTLIB</translation></message>
+ <message><source>FORUM</source><translation>论坛</translation></message>
+ <message><source>SETTINGS</source><translation>设置</translation></message>
+ <message><source>PROFILE</source><translation>个人资料</translation></message>
+</context>
+<context>
+ <name>fincept::ui::StatusBar</name>
+ <message><source>READY</source><translation>就绪</translation></message>
+ <message><source>BUSY</source><translation>忙碌</translation></message>
+</context>
+<context>
+ <name>fincept::WindowFrame</name>
+ <message><source>Save Layout</source><translation>保存布局</translation></message>
+ <message><source>Layout name:</source><translation>布局名称:</translation></message>
+ <message><source>Import Layout</source><translation>导入布局</translation></message>
+ <message><source>Fincept Layout (*.flayout *.fwsp);;All Files (*)</source><translation>Fincept 布局 (*.flayout *.fwsp);;所有文件 (*)</translation></message>
+ <message><source>Import Failed</source><translation>导入失败</translation></message>
+ <message><source>Export Layout</source><translation>导出布局</translation></message>
+ <message><source>Open or save a layout first, then export it.</source><translation>请先打开或保存一个布局,然后再导出。</translation></message>
+ <message><source>Fincept Layout (*.flayout)</source><translation>Fincept 布局 (*.flayout)</translation></message>
+ <message><source>Export Failed</source><translation>导出失败</translation></message>
+ <message><source>Save Screenshot</source><translation>保存截图</translation></message>
+ <message><source>PNG Images (*.png)</source><translation>PNG 图像 (*.png)</translation></message>
+</context>
+<context>
+ <name>fincept::DockScreenRouter</name>
+ <message><source>Dashboard</source><translation>仪表盘</translation></message>
+ <message><source>Markets</source><translation>市场</translation></message>
+ <message><source>Crypto Trading</source><translation>加密交易</translation></message>
+ <message><source>Equity Trading</source><translation>股票交易</translation></message>
+ <message><source>Algo Trading</source><translation>算法交易</translation></message>
+ <message><source>Backtesting</source><translation>回测</translation></message>
+ <message><source>Portfolio</source><translation>投资组合</translation></message>
+ <message><source>Watchlist</source><translation>自选列表</translation></message>
+ <message><source>News</source><translation>新闻</translation></message>
+ <message><source>AI Chat</source><translation>AI 聊天</translation></message>
+ <message><source>Equity Research</source><translation>股票研究</translation></message>
+ <message><source>Economics</source><translation>经济</translation></message>
+ <message><source>DBnomics</source><translation>DBnomics</translation></message>
+ <message><source>AkShare Data</source><translation>AkShare 数据</translation></message>
+ <message><source>Asia Markets</source><translation>亚洲市场</translation></message>
+ <message><source>Geopolitics</source><translation>地缘政治</translation></message>
+ <message><source>Gov Data</source><translation>政府数据</translation></message>
+ <message><source>Maritime</source><translation>航运</translation></message>
+ <message><source>Prediction Markets</source><translation>预测市场</translation></message>
+ <message><source>Relationship Map</source><translation>关系图谱</translation></message>
+ <message><source>Derivatives</source><translation>衍生品</translation></message>
+ <message><source>Alt Investments</source><translation>另类投资</translation></message>
+ <message><source>M&amp;A Analytics</source><translation>并购分析</translation></message>
+ <message><source>Surface Analytics</source><translation>波动率曲面分析</translation></message>
+ <message><source>QuantLib</source><translation>QuantLib</translation></message>
+ <message><source>AI Quant Lab</source><translation>AI 量化实验室</translation></message>
+ <message><source>Alpha Arena</source><translation>Alpha 竞技场</translation></message>
+ <message><source>Agent Config</source><translation>智能体配置</translation></message>
+ <message><source>MCP Servers</source><translation>MCP 服务器</translation></message>
+ <message><source>Node Editor</source><translation>节点编辑器</translation></message>
+ <message><source>Code Editor</source><translation>代码编辑器</translation></message>
+ <message><source>Excel</source><translation>Excel</translation></message>
+ <message><source>Report Builder</source><translation>报告生成器</translation></message>
+ <message><source>Trade Viz</source><translation>交易可视化</translation></message>
+ <message><source>Data Sources</source><translation>数据源</translation></message>
+ <message><source>Data Mapping</source><translation>数据映射</translation></message>
+ <message><source>File Manager</source><translation>文件管理器</translation></message>
+ <message><source>Notes</source><translation>笔记</translation></message>
+ <message><source>Forum</source><translation>论坛</translation></message>
+ <message><source>Docs</source><translation>文档</translation></message>
+ <message><source>Support</source><translation>支持</translation></message>
+ <message><source>About</source><translation>关于</translation></message>
+ <message><source>Profile</source><translation>个人资料</translation></message>
+ <message><source>Settings</source><translation>设置</translation></message>
+ <message><source>Contact</source><translation>联系</translation></message>
+ <message><source>Terms</source><translation>条款</translation></message>
+ <message><source>Privacy</source><translation>隐私</translation></message>
+ <message><source>Trademarks</source><translation>商标</translation></message>
+ <message><source>Help</source><translation>帮助</translation></message>
+</context>
+</TS>
diff --git a/fincept-qt/translations/fincept_zh_HK.ts b/fincept-qt/translations/fincept_zh_HK.ts
new file mode 100644
index 000000000..4d4b81b0b
--- /dev/null
+++ b/fincept-qt/translations/fincept_zh_HK.ts
@@ -0,0 +1,392 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1" language="zh_HK" sourcelanguage="en">
+<context>
+ <name>fincept::screens::LoginScreen</name>
+ <message><source>SIGN IN</source><translation>登入</translation></message>
+ <message><source>Access your terminal account</source><translation>登入您的終端帳戶</translation></message>
+ <message><source>EMAIL</source><translation>電郵</translation></message>
+ <message><source>[email protected]</source><translation>[email protected]</translation></message>
+ <message><source>PASSWORD</source><translation>密碼</translation></message>
+ <message><source>enter password</source><translation>請輸入密碼</translation></message>
+ <message><source>SHOW</source><translation>顯示</translation></message>
+ <message><source>HIDE</source><translation>隱藏</translation></message>
+ <message><source>FORGOT PASSWORD?</source><translation>忘記密碼?</translation></message>
+ <message><source> SIGN IN </source><translation> 登入 </translation></message>
+ <message><source> SIGNING IN... </source><translation> 正在登入... </translation></message>
+ <message><source>No account?</source><translation>尚未開戶?</translation></message>
+ <message><source>SIGN UP</source><translation>註冊</translation></message>
+ <message><source>TWO-FACTOR AUTH</source><translation>雙重認證</translation></message>
+ <message><source>SECURE</source><translation>安全</translation></message>
+ <message><source>Enter the 6-digit code from your authenticator</source><translation>請輸入驗證器中的 6 位數字碼</translation></message>
+ <message><source>VERIFICATION CODE</source><translation>驗證碼</translation></message>
+ <message><source> VERIFY </source><translation> 驗證 </translation></message>
+ <message><source>BACK TO LOGIN</source><translation>返回登入</translation></message>
+ <message><source>SESSION CONFLICT</source><translation>連線衝突</translation></message>
+ <message><source>WARNING</source><translation>警告</translation></message>
+ <message><source> LOG OUT OTHER SESSION &amp; CONTINUE </source><translation> 登出其他連線並繼續 </translation></message>
+ <message><source> CANCEL </source><translation> 取消 </translation></message>
+ <message><source>Please enter your password</source><translation>請輸入您的密碼</translation></message>
+ <message><source>Please enter the code</source><translation>請輸入驗證碼</translation></message>
+</context>
+<context>
+ <name>fincept::screens::RegisterScreen</name>
+ <message><source>CREATE ACCOUNT</source><translation>開立帳戶</translation></message>
+ <message><source>FIRST NAME</source><translation>名字</translation></message>
+ <message><source>LAST NAME</source><translation>姓氏</translation></message>
+ <message><source>EMAIL</source><translation>電郵</translation></message>
+ <message><source>CODE</source><translation>區號</translation></message>
+ <message><source>PHONE</source><translation>電話</translation></message>
+ <message><source>PASSWORD</source><translation>密碼</translation></message>
+ <message><source>CONFIRM PASSWORD</source><translation>確認密碼</translation></message>
+ <message><source>First</source><translation>名</translation></message>
+ <message><source>Last</source><translation>姓</translation></message>
+ <message><source>[email protected]</source><translation>[email protected]</translation></message>
+ <message><source>+1</source><translation>+852</translation></message>
+ <message><source>234 567 8900</source><translation>9123 4567</translation></message>
+ <message><source>min 8 characters</source><translation>至少 8 個字元</translation></message>
+ <message><source>re-enter password</source><translation>再次輸入密碼</translation></message>
+ <message><source> CREATE ACCOUNT </source><translation> 開立帳戶 </translation></message>
+ <message><source> CREATING... </source><translation> 建立中... </translation></message>
+ <message><source>Already have an account?</source><translation>已有帳戶?</translation></message>
+ <message><source>SIGN IN</source><translation>登入</translation></message>
+ <message><source>VERIFY EMAIL</source><translation>驗證電郵</translation></message>
+ <message><source>VERIFICATION CODE</source><translation>驗證碼</translation></message>
+ <message><source>enter code from email</source><translation>請輸入電郵中的驗證碼</translation></message>
+ <message><source> VERIFY </source><translation> 驗證 </translation></message>
+ <message><source> VERIFYING... </source><translation> 驗證中... </translation></message>
+ <message><source>DIDN&apos;T RECEIVE? RESEND</source><translation>未收到?重新傳送</translation></message>
+ <message><source>BACK TO FORM</source><translation>返回表格</translation></message>
+ <message><source>All fields are required</source><translation>所有欄位均為必填</translation></message>
+ <message><source>Country code is required (e.g. +1, +91)</source><translation>請填寫國家區號(例如 +852、+1)</translation></message>
+ <message><source>Passwords do not match</source><translation>兩次輸入的密碼不一致</translation></message>
+ <message><source>Password must be at least 8 characters</source><translation>密碼長度至少為 8 個字元</translation></message>
+ <message><source>Username must be 3-50 characters</source><translation>使用者名稱長度必須為 3 至 50 個字元</translation></message>
+ <message><source>Enter the verification code</source><translation>請輸入驗證碼</translation></message>
+</context>
+<context>
+ <name>fincept::screens::ForgotPasswordScreen</name>
+ <message><source>RESET PASSWORD</source><translation>重設密碼</translation></message>
+ <message><source>Enter your email and we&apos;ll send a verification code.</source><translation>請輸入您的電郵,我們會傳送驗證碼給您。</translation></message>
+ <message><source>EMAIL</source><translation>電郵</translation></message>
+ <message><source>[email protected]</source><translation>[email protected]</translation></message>
+ <message><source> SEND CODE </source><translation> 傳送驗證碼 </translation></message>
+ <message><source>REMEMBER YOUR PASSWORD? SIGN IN</source><translation>想起密碼了?立即登入</translation></message>
+ <message><source>CHECK YOUR EMAIL</source><translation>請查收電郵</translation></message>
+ <message><source>We&apos;ve sent a verification code. Enter it on the next screen to reset your password.</source><translation>驗證碼已傳送。請在下一頁輸入以重設密碼。</translation></message>
+ <message><source> I HAVE THE CODE </source><translation> 我已收到驗證碼 </translation></message>
+ <message><source>DIDN&apos;T RECEIVE? RESEND</source><translation>未收到?重新傳送</translation></message>
+ <message><source>VERIFICATION CODE</source><translation>驗證碼</translation></message>
+ <message><source>NEW PASSWORD</source><translation>新密碼</translation></message>
+ <message><source>CONFIRM PASSWORD</source><translation>確認密碼</translation></message>
+ <message><source>enter code from email</source><translation>請輸入電郵中的驗證碼</translation></message>
+ <message><source>min 8 characters</source><translation>至少 8 個字元</translation></message>
+ <message><source>re-enter password</source><translation>再次輸入密碼</translation></message>
+ <message><source> RESET PASSWORD </source><translation> 重設密碼 </translation></message>
+ <message><source>PASSWORD RESET</source><translation>密碼已重設</translation></message>
+ <message><source>SUCCESS</source><translation>成功</translation></message>
+ <message><source>Your password has been reset. You can now sign in with your new password.</source><translation>您的密碼已重設。現可使用新密碼登入。</translation></message>
+ <message><source> CONTINUE TO LOGIN </source><translation> 前往登入 </translation></message>
+</context>
+<context>
+ <name>fincept::screens::LockScreen</name>
+ <message><source>SECURITY SETUP</source><translation>安全設定</translation></message>
+ <message><source>REQUIRED</source><translation>必填</translation></message>
+ <message><source>Create a 6-digit PIN to secure your terminal</source><translation>建立 6 位數字 PIN 碼以保護您的終端</translation></message>
+ <message><source>This PIN will be required each time you open
+the terminal or after a period of inactivity.</source><translation>每次開啟終端或閒置一段時間後
+都需要輸入此 PIN 碼。</translation></message>
+ <message><source>ENTER PIN</source><translation>輸入 PIN 碼</translation></message>
+ <message><source>CONFIRM PIN</source><translation>確認 PIN 碼</translation></message>
+ <message><source> SET PIN </source><translation> 設定 PIN 碼 </translation></message>
+ <message><source>PIN is encrypted and stored locally on this device.
+It cannot be recovered if forgotten.</source><translation>PIN 碼已加密並僅儲存於此裝置。
+一旦遺忘將無法復原。</translation></message>
+ <message><source>TERMINAL LOCKED</source><translation>終端已鎖定</translation></message>
+ <message><source>SECURE</source><translation>安全</translation></message>
+ <message><source>Enter your 6-digit PIN to unlock</source><translation>請輸入 6 位 PIN 碼以解鎖</translation></message>
+ <message><source>PIN</source><translation>PIN 碼</translation></message>
+ <message><source> UNLOCK </source><translation> 解鎖 </translation></message>
+ <message><source>ACCOUNT LOCKED</source><translation>帳戶已鎖定</translation></message>
+ <message><source>SECURITY</source><translation>安全</translation></message>
+ <message><source>Too many failed PIN attempts.
+
+For your security, the terminal has been locked.
+You must sign in again with your email and password
+to reset your PIN and regain access.</source><translation>PIN 碼輸入錯誤次數過多。
+
+為保障您的安全,終端已被鎖定。
+請使用您的電郵和密碼重新登入,
+以重設 PIN 碼並回復存取權限。</translation></message>
+ <message><source> SIGN IN AGAIN </source><translation> 重新登入 </translation></message>
+ <message><source>PINs do not match</source><translation>兩次輸入的 PIN 碼不一致</translation></message>
+ <message><source>Enter your PIN</source><translation>請輸入您的 PIN 碼</translation></message>
+ <message><source>Incorrect PIN</source><translation>PIN 碼不正確</translation></message>
+ <message numerus="yes"><source>%n ATTEMPT(S) REMAINING</source><translation><numerusform>剩餘 %n 次嘗試機會</numerusform></translation></message>
+ <message><source>Locked for %1 — too many failed attempts</source><translation>已鎖定 %1 — 錯誤嘗試次數過多</translation></message>
+</context>
+<context>
+ <name>fincept::screens::SetupScreen</name>
+ <message><source>We need to download a few tools and data libraries once.
+This only happens the first time — future launches are instant.</source><translation>我們需要下載一些工具和資料庫(僅此一次)。
+僅首次啟動時進行 — 之後的啟動均即時完成。</translation></message>
+ <message><source>Download Installer</source><translation>下載安裝程式</translation></message>
+ <message><source>Downloads the tool that manages everything else (~13 MB)</source><translation>下載用以管理其餘元件的工具(約 13 MB)</translation></message>
+ <message><source>Install Python Runtime</source><translation>安裝 Python 執行環境</translation></message>
+ <message><source>The programming language engine used for all analytics</source><translation>用於所有分析功能的程式語言引擎</translation></message>
+ <message><source>Create Isolated Workspaces</source><translation>建立獨立工作環境</translation></message>
+ <message><source>Two sandboxed environments to keep library versions conflict-free</source><translation>兩個沙盒環境,避免函式庫版本衝突</translation></message>
+ <message><source>Install Trading Libraries</source><translation>安裝交易函式庫</translation></message>
+ <message><source>Backtesting, portfolio optimization and legacy quant tools</source><translation>回測、投資組合最佳化與傳統量化工具</translation></message>
+ <message><source>Install Analytics Libraries</source><translation>安裝分析函式庫</translation></message>
+ <message><source>Machine learning, data science and AI agent frameworks</source><translation>機器學習、資料科學與 AI 智能代理框架</translation></message>
+ <message><source>Installing to: %1</source><translation>安裝至:%1</translation></message>
+ <message><source>Getting your workspace ready</source><translation>正在準備您的工作環境</translation></message>
+ <message><source>Your workspace is fully configured</source><translation>您的工作環境已完全設定</translation></message>
+ <message><source>Finishing your workspace setup</source><translation>正在完成工作環境設定</translation></message>
+ <message><source>BEGIN SETUP</source><translation>開始安裝</translation></message>
+ <message><source>SETTING UP...</source><translation>安裝中...</translation></message>
+ <message><source>RETRY SETUP</source><translation>重新安裝</translation></message>
+ <message><source>LAUNCH</source><translation>啟動</translation></message>
+ <message><source>CONTINUE SETUP</source><translation>繼續安裝</translation></message>
+ <message><source>ALREADY COMPLETE</source><translation>已完成</translation></message>
+ <message><source>SKIP &amp; CONTINUE</source><translation>略過並繼續</translation></message>
+ <message><source>Takes about 3–5 minutes. Needs an internet connection.</source><translation>大約需要 3–5 分鐘。需要網際網路連線。</translation></message>
+ <message><source>Setup in progress — please keep the application open</source><translation>正在安裝 — 請保持應用程式開啟</translation></message>
+ <message><source>Everything is ready! Launching Fincept Terminal...</source><translation>一切就緒!正在啟動 Fincept Terminal...</translation></message>
+ <message><source>Only the missing pieces will be downloaded. Needs an internet connection.</source><translation>僅下載缺失的部分。需要網際網路連線。</translation></message>
+ <message><source>Setup failed: %1</source><translation>安裝失敗:%1</translation></message>
+ <message><source>Unknown error — see logs for details.</source><translation>未知錯誤 — 請查閱記錄了解詳情。</translation></message>
+ <message><source>Setup is taking longer than expected — possibly a slow internet connection.
+You can wait or skip and continue with limited functionality.</source><translation>安裝耗時超出預期 — 可能是網路速度較慢。
+您可以繼續等待,或略過並以有限功能繼續。</translation></message>
+ <message><source>Waiting</source><translation>等待中</translation></message>
+ <message><source>Working...</source><translation>處理中...</translation></message>
+ <message><source>DONE</source><translation>完成</translation></message>
+ <message><source>FAILED</source><translation>失敗</translation></message>
+ <message><source>Elapsed: %1s</source><translation>已用時間:%1 秒</translation></message>
+ <message><source>Elapsed: %1m %2s</source><translation>已用時間:%1 分 %2 秒</translation></message>
+ <message><source>Trading workspace</source><translation>交易工作環境</translation></message>
+ <message><source>Analytics workspace</source><translation>分析工作環境</translation></message>
+ <message><source>trading library list</source><translation>交易函式庫清單</translation></message>
+ <message><source>analytics library list</source><translation>分析函式庫清單</translation></message>
+ <message><source>Everything is installed and ready to go.</source><translation>所有元件均已安裝完畢,可立即使用。</translation></message>
+</context>
+<context>
+ <name>fincept::screens::SettingsScreen</name>
+ <message><source>SETTINGS</source><translation>設定</translation></message>
+ <message><source>SHELL</source><translation>應用程式</translation></message>
+ <message><source>PROFILE</source><translation>設定檔</translation></message>
+ <message><source>General</source><translation>一般</translation></message>
+ <message><source>Appearance</source><translation>外觀</translation></message>
+ <message><source>Notifications</source><translation>通知</translation></message>
+ <message><source>Keybindings</source><translation>快速鍵</translation></message>
+ <message><source>Voice</source><translation>語音</translation></message>
+ <message><source>Logging</source><translation>日誌</translation></message>
+ <message><source>Developer</source><translation>開發者</translation></message>
+ <message><source>Profiles</source><translation>設定檔</translation></message>
+ <message><source>Credentials</source><translation>憑證</translation></message>
+ <message><source>Security</source><translation>安全</translation></message>
+ <message><source>Data Sources</source><translation>資料來源</translation></message>
+ <message><source>LLM Config</source><translation>LLM 設定</translation></message>
+ <message><source>MCP Servers</source><translation>MCP 伺服器</translation></message>
+ <message><source>Python Env</source><translation>Python 環境</translation></message>
+ <message><source>Storage &amp; Cache</source><translation>儲存與快取</translation></message>
+</context>
+<context>
+ <name>fincept::screens::GeneralSection</name>
+ <message><source>WINDOW BEHAVIOUR</source><translation>視窗行為</translation></message>
+ <message><source>Quit application</source><translation>結束應用程式</translation></message>
+ <message><source>Show Launchpad</source><translation>顯示啟動台</translation></message>
+ <message><source>On last window close</source><translation>關閉最後一個視窗時</translation></message>
+ <message><source>LANGUAGE</source><translation>語言</translation></message>
+ <message><source>Interface language</source><translation>介面語言</translation></message>
+</context>
+<context>
+ <name>fincept::screens::AppearanceSection</name>
+ <message><source>TYPOGRAPHY</source><translation>字型</translation></message>
+ <message><source>Font Size</source><translation>字型大小</translation></message>
+ <message><source>Font Family</source><translation>字型家族</translation></message>
+ <message><source>THEME</source><translation>主題</translation></message>
+ <message><source>INTERFACE</source><translation>介面</translation></message>
+ <message><source>Save Settings</source><translation>儲存設定</translation></message>
+</context>
+<context>
+ <name>fincept::screens::DeveloperSection</name>
+ <message><source>Agentic Mode (Experimental)</source><translation>代理模式(實驗性)</translation></message>
+ <message><source>DataHub Inspector</source><translation>DataHub 檢查器</translation></message>
+</context>
+<context>
+ <name>fincept::screens::ProfilesSection</name>
+ <message><source>Profiles</source><translation>設定檔</translation></message>
+ <message><source>ACTIVE</source><translation>使用中</translation></message>
+ <message><source>Switch</source><translation>切換</translation></message>
+ <message><source>Create new profile</source><translation>建立新設定檔</translation></message>
+</context>
+<context>
+ <name>fincept::screens::LoggingSection</name>
+ <message><source>LOGGING</source><translation>日誌</translation></message>
+ <message><source>Apply &amp; Save</source><translation>套用並儲存</translation></message>
+</context>
+<context>
+ <name>fincept::screens::NotificationsSection</name>
+ <message><source>NOTIFICATION PROVIDERS</source><translation>通知供應商</translation></message>
+ <message><source>ALERT TRIGGERS</source><translation>警報觸發器</translation></message>
+ <message><source>Save All Providers</source><translation>儲存所有供應商</translation></message>
+</context>
+<context>
+ <name>fincept::screens::KeybindingsSection</name>
+ <message><source>Apply</source><translation>套用</translation></message>
+ <message><source>Cancel</source><translation>取消</translation></message>
+ <message><source>Reset</source><translation>重設</translation></message>
+ <message><source>Reset All to Defaults</source><translation>全部還原為預設</translation></message>
+</context>
+<context>
+ <name>fincept::screens::CredentialsSection</name>
+ <message><source>API CREDENTIALS</source><translation>API 憑證</translation></message>
+ <message><source>Save</source><translation>儲存</translation></message>
+ <message><source>Not set</source><translation>未設定</translation></message>
+</context>
+<context>
+ <name>fincept::screens::SecuritySection</name>
+ <message><source>PIN AUTHENTICATION</source><translation>PIN 驗證</translation></message>
+ <message><source>CHANGE PIN</source><translation>變更 PIN</translation></message>
+ <message><source>Change PIN</source><translation>變更 PIN</translation></message>
+ <message><source>Cancel</source><translation>取消</translation></message>
+ <message><source>AUTO-LOCK</source><translation>自動鎖定</translation></message>
+ <message><source>AUDIT LOG</source><translation>稽核日誌</translation></message>
+ <message><source>Refresh</source><translation>重新整理</translation></message>
+</context>
+<context>
+ <name>fincept::screens::DataSourcesSection</name>
+ <message><source>DATA SOURCES</source><translation>資料來源</translation></message>
+ <message><source>CONNECTIONS</source><translation>連線</translation></message>
+ <message><source>BULK ACTIONS</source><translation>批次操作</translation></message>
+</context>
+<context>
+ <name>fincept::screens::McpServersSection</name>
+ <message><source>MCP SERVERS</source><translation>MCP 伺服器</translation></message>
+</context>
+<context>
+ <name>fincept::screens::StorageSection</name>
+ <message><source>STORAGE &amp; DATA MANAGEMENT</source><translation>儲存與資料管理</translation></message>
+</context>
+<context>
+ <name>fincept::screens::VoiceConfigSection</name>
+ <message><source>VOICE — SPEECH-TO-TEXT &amp; TEXT-TO-SPEECH</source><translation>語音 — 語音轉文字與文字轉語音</translation></message>
+</context>
+<context>
+ <name>fincept::screens::PythonEnvSection</name>
+ <message><source>PYTHON ENVIRONMENTS</source><translation>Python 環境</translation></message>
+</context>
+<context>
+ <name>fincept::screens::LlmConfigSection</name>
+ <message><source>LLM CONFIGURATION</source><translation>LLM 設定</translation></message>
+ <message><source>PROFILES</source><translation>設定檔</translation></message>
+</context>
+<context>
+ <name>fincept::ui::ToolBar</name>
+ <message><source> | PROFESSIONAL RESEARCH DESK</source><translation> | 專業研究終端</translation></message>
+ <message><source> LIVE</source><translation> 即時</translation></message>
+ <message><source>View Plans &amp; Pricing</source><translation>查看方案與價格</translation></message>
+ <message><source>CHAT</source><translation>聊天</translation></message>
+ <message><source>Switch to Chat Mode (F9)</source><translation>切換至聊天模式 (F9)</translation></message>
+ <message><source>LOGOUT</source><translation>登出</translation></message>
+ <message><source>%1 CR</source><translation>%1 點數</translation></message>
+ <message><source>FREE</source><translation>免費</translation></message>
+ <message><source>File</source><translation>檔案</translation></message>
+ <message><source>New Window</source><translation>新視窗</translation></message>
+ <message><source>Move to Monitor</source><translation>移至螢幕</translation></message>
+ <message><source>(single monitor)</source><translation>(單一螢幕)</translation></message>
+ <message><source>New Layout</source><translation>新增佈局</translation></message>
+ <message><source>Open Layout…</source><translation>開啟佈局…</translation></message>
+ <message><source>Save Layout</source><translation>儲存佈局</translation></message>
+ <message><source>Save Layout As…</source><translation>佈局另存新檔…</translation></message>
+ <message><source>Import Layout</source><translation>匯入佈局</translation></message>
+ <message><source>Export Layout</source><translation>匯出佈局</translation></message>
+ <message><source>File Manager</source><translation>檔案管理員</translation></message>
+ <message><source>Refresh All</source><translation>全部重新整理</translation></message>
+ <message><source>Navigate</source><translation>導覽</translation></message>
+ <message><source>Markets &amp; Data</source><translation>市場與資料</translation></message>
+ <message><source>Economics</source><translation>經濟</translation></message>
+ <message><source>Asia Markets</source><translation>亞洲市場</translation></message>
+ <message><source>Trading &amp; Portfolio</source><translation>交易與投資組合</translation></message>
+ <message><source>Equity Trading</source><translation>股票交易</translation></message>
+ <message><source>Derivatives</source><translation>衍生品</translation></message>
+ <message><source>Watchlist</source><translation>自選清單</translation></message>
+ <message><source>Crypto</source><translation>加密貨幣</translation></message>
+ <message><source>Research &amp; Intelligence</source><translation>研究與情報</translation></message>
+ <message><source>Equity Research</source><translation>股票研究</translation></message>
+ <message><source>Geopolitics</source><translation>地緣政治</translation></message>
+ <message><source>Tools</source><translation>工具</translation></message>
+ <message><source>Notes</source><translation>筆記</translation></message>
+ <message><source>Forum</source><translation>論壇</translation></message>
+ <message><source>Docs</source><translation>文件</translation></message>
+ <message><source>Support</source><translation>支援</translation></message>
+ <message><source>About</source><translation>關於</translation></message>
+ <message><source>View</source><translation>檢視</translation></message>
+ <message><source>Fullscreen F11</source><translation>全螢幕 F11</translation></message>
+ <message><source>Focus Mode F10</source><translation>專注模式 F10</translation></message>
+ <message><source>Always on Top Ctrl+Shift+T</source><translation>視窗置頂 Ctrl+Shift+T</translation></message>
+ <message><source>Float Panel</source><translation>浮動面板</translation></message>
+ <message><source>Dashboard</source><translation>儀表板</translation></message>
+ <message><source>Portfolio</source><translation>投資組合</translation></message>
+ <message><source>Markets</source><translation>市場</translation></message>
+ <message><source>AI Chat</source><translation>AI 聊天</translation></message>
+ <message><source>Help</source><translation>說明</translation></message>
+ <message><source>About Fincept</source><translation>關於 Fincept</translation></message>
+ <message><source>Logout</source><translation>登出</translation></message>
+ <message><source>News</source><translation>新聞</translation></message>
+</context>
+<context>
+ <name>fincept::ui::TabBar</name>
+ <message><source>DASHBOARD</source><translation>儀表板</translation></message>
+ <message><source>MARKETS</source><translation>市場</translation></message>
+ <message><source>CRYPTO</source><translation>加密</translation></message>
+ <message><source>PORTFOLIO</source><translation>組合</translation></message>
+ <message><source>NEWS</source><translation>新聞</translation></message>
+ <message><source>AI CHAT</source><translation>AI 聊天</translation></message>
+ <message><source>BACKTEST</source><translation>回測</translation></message>
+ <message><source>ALGO</source><translation>演算法</translation></message>
+ <message><source>NODES</source><translation>節點</translation></message>
+ <message><source>CODE</source><translation>程式碼</translation></message>
+ <message><source>QUANT LAB</source><translation>量化實驗室</translation></message>
+ <message><source>FORUM</source><translation>論壇</translation></message>
+ <message><source>SETTINGS</source><translation>設定</translation></message>
+ <message><source>PROFILE</source><translation>個人資料</translation></message>
+</context>
+<context>
+ <name>fincept::ui::StatusBar</name>
+ <message><source>READY</source><translation>就緒</translation></message>
+ <message><source>BUSY</source><translation>忙碌</translation></message>
+</context>
+<context>
+ <name>fincept::DockScreenRouter</name>
+ <message><source>Dashboard</source><translation>儀表板</translation></message>
+ <message><source>Markets</source><translation>市場</translation></message>
+ <message><source>Crypto Trading</source><translation>加密交易</translation></message>
+ <message><source>Equity Trading</source><translation>股票交易</translation></message>
+ <message><source>Portfolio</source><translation>投資組合</translation></message>
+ <message><source>Watchlist</source><translation>自選清單</translation></message>
+ <message><source>News</source><translation>新聞</translation></message>
+ <message><source>AI Chat</source><translation>AI 聊天</translation></message>
+ <message><source>Equity Research</source><translation>股票研究</translation></message>
+ <message><source>Economics</source><translation>經濟</translation></message>
+ <message><source>Asia Markets</source><translation>亞洲市場</translation></message>
+ <message><source>Geopolitics</source><translation>地緣政治</translation></message>
+ <message><source>Derivatives</source><translation>衍生品</translation></message>
+ <message><source>Data Sources</source><translation>資料來源</translation></message>
+ <message><source>File Manager</source><translation>檔案管理員</translation></message>
+ <message><source>Notes</source><translation>筆記</translation></message>
+ <message><source>Forum</source><translation>論壇</translation></message>
+ <message><source>Docs</source><translation>文件</translation></message>
+ <message><source>Support</source><translation>支援</translation></message>
+ <message><source>About</source><translation>關於</translation></message>
+ <message><source>Profile</source><translation>個人資料</translation></message>
+ <message><source>Settings</source><translation>設定</translation></message>
+ <message><source>Contact</source><translation>聯絡</translation></message>
+ <message><source>Privacy</source><translation>隱私</translation></message>
+ <message><source>Trademarks</source><translation>商標</translation></message>
+ <message><source>Help</source><translation>說明</translation></message>
+</context>
+</TS>