feat(client): say where HD graphics is switched, translate the Custom Races patch card

The community launcher owns the Standard/HD choice (Settings -> "HD graphics"; its setup
also offers it), so the Manager cannot toggle it. The client setup dialog now points players
there. The Custom Races client patch status badges, hints and Install/Repair/Uninstall
buttons were English/Russian ternaries; they are now i18n keys in all six locales.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ДмитрийandClaude Sonnet 5.5 committed 2026-11-20 21:08:55 +05:00
1 parent 169d8b8977
commit f5205662a9
9 files changed
+82 -8

No files matched your search

+11
View File
@@ -651,6 +651,17 @@ const de: Partial<Record<keyof typeof en, string>> = {
"client.setup.getLauncher": "Launcher holen (coa-development.org)",
"client.setup.getLauncherHint": "Öffnet die Website der Community im Browser. Lade dort den Launcher herunter, installiere ihn, melde dich mit deinem Konto an und lass ihn das Spiel laden (etwa 43 GB).",
"client.setup.haveHint": "Wähle den Ordner, in den der Launcher das Spiel installiert hat, oder eine andere Kopie des Clients.",
"client.setup.hdHint": "Standard- oder HD-Grafik wählst du im Launcher: Öffne dort die Einstellungen und schalte „HD graphics“ um. Der Manager kann das nicht ändern.",
"races.patch.active": "Client-Patch: Aktiv",
"races.patch.disabled": "Client-Patch: Deaktiviert (.disabled)",
"races.patch.notInstalled": "Client-Patch: Nicht installiert",
"races.patch.partial": "Client-Patch: {a}/{b} MPQ",
"races.patch.partialHint": "Dateien fehlen oder wurden geändert. Repariere den Client-Patch.",
"races.patch.install": "Client-Patch installieren",
"races.patch.repair": "Client-Patch reparieren",
"races.patch.uninstall": "Client-Patch entfernen",
"races.patch.willEnable": "Der Patch ist nach der Installation aktiv.",
"races.patch.willStayOff": "Der Patch bleibt nach der Installation deaktiviert: Das Servermodul ist aus oder fehlt.",
"client.dl.back": "Zurück",
"client.dl.done": "Der Spielclient ist bereit",
"client.dl.doneText": "Er ist mit diesem Server verknüpft. Du kannst auf PLAY drücken.",
+11
View File
@@ -750,6 +750,17 @@ const en = {
"client.setup.getLauncher": "Get the launcher (coa-development.org)",
"client.setup.getLauncherHint": "Opens the community website in your browser. Download and install the launcher there, sign in with your account and let it download the game (about 43 GB).",
"client.setup.haveHint": "Pick the folder the launcher installed the game to, or any other copy of the client.",
"client.setup.hdHint": "Standard or HD graphics is chosen in the launcher: open its Settings and switch \"HD graphics\". The Manager cannot change it.",
"races.patch.active": "Client Patch: Active",
"races.patch.disabled": "Client Patch: Disabled (.disabled)",
"races.patch.notInstalled": "Client Patch: Not Installed",
"races.patch.partial": "Client Patch: {a}/{b} MPQ",
"races.patch.partialHint": "Files are missing or changed. Repair the client patch.",
"races.patch.install": "Install Client Patch",
"races.patch.repair": "Repair Client Patch",
"races.patch.uninstall": "Uninstall Client Patch",
"races.patch.willEnable": "The patch will be enabled after installation.",
"races.patch.willStayOff": "The patch will stay disabled after installation: the server module is off or missing.",
"client.dl.back": "Back",
"client.dl.done": "The game client is ready",
"client.dl.doneText": "It is linked to this server. You can press PLAY.",
+11
View File
@@ -651,6 +651,17 @@ const es: Partial<Record<keyof typeof en, string>> = {
"client.setup.getLauncher": "Obtener el launcher (coa-development.org)",
"client.setup.getLauncherHint": "Abre la web de la comunidad en tu navegador. Descarga e instala allí el launcher, inicia sesión con tu cuenta y deja que descargue el juego (unos 43 GB).",
"client.setup.haveHint": "Elige la carpeta donde el launcher instaló el juego, o cualquier otra copia del cliente.",
"client.setup.hdHint": "Los gráficos estándar o HD se eligen en el launcher: abre sus Ajustes y cambia «HD graphics». El Manager no puede cambiarlo.",
"races.patch.active": "Parche del cliente: Activo",
"races.patch.disabled": "Parche del cliente: Desactivado (.disabled)",
"races.patch.notInstalled": "Parche del cliente: No instalado",
"races.patch.partial": "Parche del cliente: {a}/{b} MPQ",
"races.patch.partialHint": "Faltan archivos o han cambiado. Repara el parche del cliente.",
"races.patch.install": "Instalar parche del cliente",
"races.patch.repair": "Reparar parche del cliente",
"races.patch.uninstall": "Desinstalar parche del cliente",
"races.patch.willEnable": "El parche estará activo después de la instalación.",
"races.patch.willStayOff": "El parche seguirá desactivado después de la instalación: el módulo del servidor está apagado o falta.",
"client.dl.back": "Atrás",
"client.dl.done": "El cliente del juego está listo",
"client.dl.doneText": "Está vinculado a este servidor. Puedes pulsar PLAY.",
+11
View File
@@ -651,6 +651,17 @@ const fr: Partial<Record<keyof typeof en, string>> = {
"client.setup.getLauncher": "Obtenir le lanceur (coa-development.org)",
"client.setup.getLauncherHint": "Ouvre le site de la communauté dans votre navigateur. Téléchargez et installez-y le lanceur, connectez-vous avec votre compte et laissez-le télécharger le jeu (environ 43 Go).",
"client.setup.haveHint": "Choisissez le dossier où le lanceur a installé le jeu, ou toute autre copie du client.",
"client.setup.hdHint": "Les graphismes standard ou HD se choisissent dans le lanceur : ouvrez ses Paramètres et basculez « HD graphics ». Le Manager ne peut pas le modifier.",
"races.patch.active": "Patch client : actif",
"races.patch.disabled": "Patch client : désactivé (.disabled)",
"races.patch.notInstalled": "Patch client : non installé",
"races.patch.partial": "Patch client : {a}/{b} MPQ",
"races.patch.partialHint": "Des fichiers manquent ou ont changé. Réparez le patch client.",
"races.patch.install": "Installer le patch client",
"races.patch.repair": "Réparer le patch client",
"races.patch.uninstall": "Désinstaller le patch client",
"races.patch.willEnable": "Le patch sera activé après l'installation.",
"races.patch.willStayOff": "Le patch restera désactivé après l'installation : le module du serveur est désactivé ou absent.",
"client.dl.back": "Retour",
"client.dl.done": "Le client du jeu est prêt",
"client.dl.doneText": "Il est lié à ce serveur. Vous pouvez appuyer sur PLAY.",
+11
View File
@@ -733,6 +733,17 @@ const ru: Partial<Record<keyof typeof en, string>> = {
"client.setup.getLauncher": "Скачать лаунчер (coa-development.org)",
"client.setup.getLauncherHint": "Откроет сайт сообщества в браузере. Скачайте и установите лаунчер, войдите в свой аккаунт и дайте ему скачать игру (около 43 ГБ).",
"client.setup.haveHint": "Укажите папку, куда лаунчер установил игру, или любую другую копию клиента.",
"client.setup.hdHint": "Стандартная или HD-графика выбирается в лаунчере: откройте его «Настройки» и переключите «HD graphics». Менеджер этого изменить не может.",
"races.patch.active": "Патч клиента: Включен",
"races.patch.disabled": "Патч клиента: Отключен (.disabled)",
"races.patch.notInstalled": "Патч клиента: Не установлен",
"races.patch.partial": "Патч клиента: {a}/{b} MPQ",
"races.patch.partialHint": "Файлы отсутствуют или изменены. Восстановите патч клиента.",
"races.patch.install": "Установить патч клиента",
"races.patch.repair": "Восстановить патч клиента",
"races.patch.uninstall": "Удалить патч клиента",
"races.patch.willEnable": "После установки патч будет включён.",
"races.patch.willStayOff": "После установки патч останется отключённым: модуль сервера выключен или отсутствует.",
"client.dl.back": "Назад",
"client.dl.done": "Клиент игры готов",
"client.dl.doneText": "Он привязан к этому серверу. Можно нажимать PLAY.",
+11
View File
@@ -704,6 +704,17 @@ const zh = {
"client.setup.getLauncher": "获取启动器(coa-development.org)",
"client.setup.getLauncherHint": "在浏览器中打开社区网站。在那里下载并安装启动器,用你的账号登录,让它下载游戏(约 43 GB)。",
"client.setup.haveHint": "选择启动器安装游戏的文件夹,或任何其他客户端副本。",
"client.setup.hdHint": "标准或高清画质在启动器中选择:打开启动器的“设置”,切换“HD graphics”。Manager 无法更改。",
"races.patch.active": "客户端补丁:已启用",
"races.patch.disabled": "客户端补丁:已停用 (.disabled)",
"races.patch.notInstalled": "客户端补丁:未安装",
"races.patch.partial": "客户端补丁:{a}/{b} MPQ",
"races.patch.partialHint": "文件缺失或已被修改。请修复客户端补丁。",
"races.patch.install": "安装客户端补丁",
"races.patch.repair": "修复客户端补丁",
"races.patch.uninstall": "卸载客户端补丁",
"races.patch.willEnable": "安装后补丁将被启用。",
"races.patch.willStayOff": "安装后补丁仍将保持停用:服务器模块已关闭或不存在。",
"client.dl.back": "返回",
"client.dl.done": "游戏客户端已就绪",
"client.dl.doneText": "已成功关联至此服务器。你可以点击“开始游戏”了。",
+1
View File
@@ -85,6 +85,7 @@ export function ClientDialog(props: {
<span className="mt-1 block text-sm text-muted">{t("client.setup.haveHint")}</span>
</button>
</div>
<p className="mt-3 text-xs text-muted">{t("client.setup.hdHint")}</p>
<div className="mt-5 flex justify-end">
<Button variant="ghost" onClick={close}>{t("btn.close")}</Button>
</div>
+8 -8
View File
@@ -282,29 +282,29 @@ export function ModulesPage({ serverId, onChanged, onRegisterGuard }: { serverId
{racesPatchStatus?.state === "enabled" && (
<span className="inline-flex items-center gap-1.5 rounded-full bg-ok/10 px-2.5 py-1 text-xs text-ok border border-ok/30">
<span className="h-1.5 w-1.5 rounded-full bg-ok" />
{locale === "ru" ? "Патч клиента: Включен" : "Client Patch: Active"}
{t("races.patch.active")}
</span>
)}
{racesPatchStatus?.state === "disabled" && (
<span className="inline-flex items-center gap-1.5 rounded-full bg-white/5 px-2.5 py-1 text-xs text-muted border border-white/15" title="MPQ files disabled with .disabled suffix">
<span className="h-1.5 w-1.5 rounded-full bg-muted" />
{locale === "ru" ? "Патч клиента: Отключен (.disabled)" : "Client Patch: Disabled (.disabled)"}
{t("races.patch.disabled")}
</span>
)}
{racesPatchStatus?.state === "not-installed" && (
<span className="inline-flex items-center gap-1.5 rounded-full bg-warn/10 px-2.5 py-1 text-xs text-warn border border-warn/30">
<span className="h-1.5 w-1.5 rounded-full bg-warn" />
{locale === "ru" ? "Патч клиента: Не установлен" : "Client Patch: Not Installed"}
{t("races.patch.notInstalled")}
</span>
)}
{racesPatchStatus?.state === "partially-installed" && (
<span className="inline-flex items-center gap-1.5 rounded-full bg-warn/10 px-2.5 py-1 text-xs text-warn border border-warn/30">
<span className="h-1.5 w-1.5 rounded-full bg-warn" />
{locale === "ru" ? `Патч клиента: ${racesPatchStatus.installedMpqs}/${racesPatchStatus.totalMpqs} MPQ` : `Client Patch: ${racesPatchStatus.installedMpqs}/${racesPatchStatus.totalMpqs} MPQ`}
{t("races.patch.partial", { a: racesPatchStatus.installedMpqs, b: racesPatchStatus.totalMpqs })}
</span>
)}
</div>
{racesPatchStatus?.state === "partially-installed" && <p className="text-xs text-warn">{locale === "ru" ? "Файлы отсутствуют или изменены. Восстановите патч клиента." : "Files are missing or changed. Repair the client patch."}</p>}
{racesPatchStatus?.state === "partially-installed" && <p className="text-xs text-warn">{t("races.patch.partialHint")}</p>}
{(
<Button
size="sm"
@@ -314,11 +314,11 @@ export function ModulesPage({ serverId, onChanged, onRegisterGuard }: { serverId
onClick={() => void installClientPatch()}
>
{racesInstalling && <Loader2 className="mr-1.5 h-3.5 w-3.5 animate-spin" />}
{racesPatchStatus?.state === "not-installed" ? (locale === "ru" ? "Установить патч клиента" : "Install Client Patch") : (locale === "ru" ? "Восстановить патч клиента" : "Repair Client Patch")}
{racesPatchStatus?.state === "not-installed" ? t("races.patch.install") : t("races.patch.repair")}
</Button>
)}
{racesPatchStatus && racesPatchStatus.state !== "not-installed" && <Button size="sm" variant="ghost" disabled={toggling !== null || racesInstalling} onClick={() => void uninstallClientPatch()}>{locale === "ru" ? "Удалить патч клиента" : "Uninstall Client Patch"}</Button>}
<p className="text-xs text-muted">{locale === "ru" ? (m.enabled ? "После установки патч будет включён." : "После установки патч останется отключённым: модуль сервера выключен или отсутствует.") : (m.enabled ? "The patch will be enabled after installation." : "The patch will stay disabled after installation: the server module is off or missing.")}</p>
{racesPatchStatus && racesPatchStatus.state !== "not-installed" && <Button size="sm" variant="ghost" disabled={toggling !== null || racesInstalling} onClick={() => void uninstallClientPatch()}>{t("races.patch.uninstall")}</Button>}
<p className="text-xs text-muted">{t(m.enabled ? "races.patch.willEnable" : "races.patch.willStayOff")}</p>
</div>
)}
</div>