mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 19:04:02 +00:00
i18n: fix the final pre-merge review findings
Fixes the P1 and the confirmed P2 findings of the final review of the
i18n branch.
- CI: the air-quality model no longer imports i18n (portable module),
so check:boundaries passes again.
- Air quality layer: named in the layer panel, HUD and voice; its
Weather card, bands and errors translate. A test keeps the layer-name
table in step with the layer registry.
- Layer statuses that still reached ru/es in English: GNSS, CelesTrak,
Transit loading and feed errors, launches, perimeters, ALPR, ECCC,
wind "field unavailable", Local ADS-B streaming lines.
- Voice and HUD: preset ids show city names ("Fly to San Francisco"),
the HUD city translates, cockpit refusals cover frame, aircraft and
satellite; empty Transit notes translate on the analyst card.
- tn() keeps a caller's formatted count ("12,345 map objects").
- Cyber HUD: the language button no longer covers the bottom-right
card or the cockpit position readout.
- CCTV buttons wrap only in non-English locales; English layout matches
main again.
- Switching language asks first when Provider Settings holds unsaved
keys.
Catalogs: es/ru 2611 messages each, complete.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
fada8b161b
commit
3adce33cc6
43 files changed
+1350
-97
No files matched your search
@@ -79,9 +79,9 @@ html[lang='es'] .cctv-controls {
|
||||
}
|
||||
|
||||
/* A translated label longer than its button wraps inside the button instead
|
||||
of running past the panel edge. English labels fit on one line, so the
|
||||
English layout is unchanged. */
|
||||
.cctv-controls .scene-btn {
|
||||
of running past the panel edge. English keeps its one-line buttons (unguarded,
|
||||
this rule broke AUTO HOP OFF onto two lines). */
|
||||
html:not([lang='en']) .cctv-controls .scene-btn {
|
||||
white-space: normal;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
@@ -1836,9 +1836,11 @@
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Sits above the language picker row in the bottom-right corner
|
||||
(locale-picker.css: 0.9rem inset + one ~2rem button + a gap). */
|
||||
#intel-hud[data-variant='cyber'] .hud-bottom-right {
|
||||
right: 28px;
|
||||
bottom: 28px;
|
||||
bottom: 3.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2735,6 +2737,9 @@
|
||||
|
||||
:root[data-ui-theme='cyber'] body.cockpit-mode .cockpit-position-readout {
|
||||
right: 30px;
|
||||
/* Clears the language picker row it shares the corner with, as in the
|
||||
other themes (locale-picker.css). */
|
||||
bottom: 3.5rem;
|
||||
}
|
||||
|
||||
:root[data-ui-theme='cyber'] body.cockpit-mode .cockpit-help {
|
||||
|
||||
@@ -210,3 +210,10 @@ test('K-44: Recent Imagery readout keeps its English layout', () => {
|
||||
assert.equal(declaration(swap, 'width'), '40px');
|
||||
assert.equal(declaration(swap, 'min-width'), undefined);
|
||||
});
|
||||
|
||||
test('N-13: CCTV control buttons stay on one line in English', () => {
|
||||
assert.equal(
|
||||
unguardedRules(css('cctv.css'), '.cctv-controls .scene-btn').length,
|
||||
0,
|
||||
);
|
||||
});
|
||||
Reference in new issue
Block a user