From eb04ce3e48391cf1caab7efeebf78811e40c6fdc Mon Sep 17 00:00:00 2001 From: Nyan404 Date: Sun, 22 Nov 2026 17:09:02 +0300 Subject: [PATCH] Make Russian website copy clearer and more natural --- tests/browser/lu-trainer.cjs | 4 +-- web/404.html | 4 +-- web/admin.html | 16 +++++------ web/applications.html | 16 +++++------ web/calculator.html | 52 ++++++++++++++++++------------------ web/index.html | 9 +++---- web/lu-trainer.html | 44 +++++++++++++++--------------- web/lu-trainer/ui.js | 30 ++++++++++----------- web/sudoku.html | 8 +++--- 9 files changed, 91 insertions(+), 92 deletions(-) diff --git a/tests/browser/lu-trainer.cjs b/tests/browser/lu-trainer.cjs index 6fd0a92..6341769 100644 --- a/tests/browser/lu-trainer.cjs +++ b/tests/browser/lu-trainer.cjs @@ -75,7 +75,7 @@ async function run() { const history = page.locator('#history li'); const assertPosition = async id => assert.deepEqual(await cellIds(page.locator('#scene-grid .current button')),[id]); const assertSelection = async (id, reason = '') => { - assert.equal(await selection.textContent(),`Клетка ${coordinate(id)}${reason ? ` — ${reason}` : ''}`); + assert.equal(await selection.textContent(),`Клетка ${coordinate(id)}${reason ? ` (${reason})` : ''}`); }; const assertAvailable = async ids => { for (const grid of ['scene-grid','map-grid']) { @@ -519,7 +519,7 @@ async function run() { assert.equal(await page.locator('#scene-grid .hint').count(),1); assert.equal(await page.locator('#map-grid .hint').count(),1); assert((await page.locator('#messages').textContent()).includes(hintText)); - assert.equal(await page.locator('#status').textContent(),`Опасностей рядом: ${field.values[hintCell]}. ${hintText} — опасная клетка.`); + assert.equal(await page.locator('#status').textContent(),`Опасностей рядом: ${field.values[hintCell]}. ${hintText} (опасная клетка).`); const revisitHint = async () => { await cell(beforeHint).click(); await cell(hintCell).click(); }; await page.waitForTimeout(1100); await revisitHint(); await page.waitForTimeout(1100); diff --git a/web/404.html b/web/404.html index 7ab3660..4104722 100644 --- a/web/404.html +++ b/web/404.html @@ -14,8 +14,8 @@
- Кот с веником на странице ошибки 404 -
Картинка позаимствована с основного сайта catwar.net
+ Ошибка 404. Кот с веником. +
Картинка с catwar.net
diff --git a/web/admin.html b/web/admin.html index 9d52c16..4c086dd 100644 --- a/web/admin.html +++ b/web/admin.html @@ -123,7 +123,7 @@