diff --git a/changelog.d/1699-zh-hant-generated.md b/changelog.d/1699-zh-hant-generated.md new file mode 100644 index 0000000000..81710dc300 --- /dev/null +++ b/changelog.d/1699-zh-hant-generated.md @@ -0,0 +1,4 @@ +- Generate the Traditional Chinese catalog instead of translating it: + `npm run i18n -- --zh-hant` writes `zh-Hant` from `zh-CN` with OpenCC `s2tw` + and its character corrections, and `npm test` fails, naming the key, when + `zh-Hant` is edited by hand (German, @gekh, #1699). diff --git a/changelog.d/1700-i18n-plurals-context.md b/changelog.d/1700-i18n-plurals-context.md new file mode 100644 index 0000000000..6f206ba154 --- /dev/null +++ b/changelog.d/1700-i18n-plurals-context.md @@ -0,0 +1,7 @@ +- Give counts real plural forms in every language: the wildlife count, the + Data Library list, the News time window, the GhostMaps event age and the + bridge radar range now read "1 Tag" and "7 Tage", «0,75 МОР. МИЛИ» and + «12 МОР. МИЛЬ». Street level words "the view centre" in each language's + grammar, the News heading Latest agrees with the news it heads, and FOCUS, + CONFIRMED and the course readout each have their own translation where one + word served two places (German, @gekh, #1700). diff --git a/docs/CURRENT-STATE.md b/docs/CURRENT-STATE.md index f4ac1b135b..b4a78a4f1a 100644 --- a/docs/CURRENT-STATE.md +++ b/docs/CURRENT-STATE.md @@ -5800,7 +5800,9 @@ Shipped locales: **en** (source and fallback), **ar**, **de**, **es**, **fr**, * - **Gate.** `npm run i18n` (and `src/i18n/catalog.test.mjs` under `npm test`) extracts every message and fails on missing, empty, unused, placeholder-mismatched, still-English (plural forms included) or - wrongly-shaped plural entries. + wrongly-shaped plural entries. `zh-Hant` is generated from `zh-CN` + (`npm run i18n -- --zh-hant`: OpenCC `s2tw` through `opencc-js`, then a + fixed list of character corrections), and the gate fails when it differs. - **Not translated by design:** layer ids, share-link and hash parameters, API fields, voice tool schemas, provider names, feed data (callsigns, vessel and station names) and attribution. diff --git a/docs/I18N.md b/docs/I18N.md index cf80ad37b5..4799cded25 100644 --- a/docs/I18N.md +++ b/docs/I18N.md @@ -102,7 +102,8 @@ Call it before views render. `onLocaleChange` listeners word their text again at - **Pass literals.** `t('Close')`, not `t(label)` (unless `label` holds a `msg()` value) and never a template literal with `${…}`. - **Use placeholders, not concatenation.** `t('Flying to {place}…', { place })`, not `t('Flying to') + ' ' + place`. Word order differs between languages. -- **Use `tn()` for counts**, not `count === 1 ? … : …`. Russian has three forms. +- **Give a fallback phrase its own message.** When code has no name to pass and falls back to a phrase ("the view centre", "this spot"), write `t('{source} at the view centre', { source })`, not `t('{source} at {place}', { place: t('the view centre') })`: after a preposition, other languages put the phrase in a case a separately translated phrase does not have. +- **Use `tn()` for counts**, not `count === 1 ? … : …`. Russian has three forms for whole numbers and a fourth for fractions. That includes a number the English writes with a symbol or abbreviation, so both English forms read the same (`tn(hours, 'Last {hours} h', 'Last {hours} h', { hours: formatNumber(hours) })`): other languages inflect the words around it («Última 1 h», «Últimas 24 h»). Fractions take their own form (ru «0,75 МОР. МИЛИ»). - **Translate the label, not the value.** Layer ids, enums, share-link parameters, API fields, voice tool schemas and feed data (callsigns, vessel and place names) stay as they are; translate only the text shown for them. - **No `t()` at module top level.** Keep the English in `msg()` and call `t()` when rendering. - **Numbers and dates** go through `formatNumber`, `formatDate`, `formatRelativeTime` and `formatUtcDayMonth` from `src/i18n/index.js`, which follow the active language. @@ -119,6 +120,8 @@ npm run i18n -- --prune # drop entries whose English no longer exists Changing the English changes the key: the old translation goes unused and the new text shows as missing. Add the translation to every `src/i18n/locales/.json` (or ask a translator), prune, and run `npm test`; it fails until every language is complete. +Do not translate `zh-Hant`: it is generated. After `zh-CN`, run `npm run i18n -- --zh-hant` (see [zh-Hant.md](./translations/zh-Hant.md)). + To see a language, open the app with `?lang=ru`, or use the language picker (the globe button in the bottom-right corner). An empty translation is reported, and so is one left as the English, plural forms included. When English is right on purpose (a code such as CRT, a product name), list it under the language in `src/i18n/same-as-english.json`. diff --git a/docs/TRANSLATORS.md b/docs/TRANSLATORS.md index a1e1083797..48acab2420 100644 --- a/docs/TRANSLATORS.md +++ b/docs/TRANSLATORS.md @@ -36,6 +36,8 @@ npm run i18n -- --prune # drop entries the code no longer uses Changing English text changes its key: the old translation becomes unused and the new text shows as missing. Translate it and prune. +Do not translate `zh-Hant`: it is generated. Translate `zh-CN`, then run `npm run i18n -- --zh-hant` (see [zh-Hant.md](./translations/zh-Hant.md)). + ## Fixing a translation Edit `src/i18n/locales/.json` and run `npm run i18n`. To see your change, open the app with `?lang=`. diff --git a/docs/translations/ar.md b/docs/translations/ar.md index 22d5e5e354..25fe1f1fd9 100644 --- a/docs/translations/ar.md +++ b/docs/translations/ar.md @@ -66,6 +66,7 @@ Every form must keep `{count}`. For one and two, Arabic names the quantity with | call sign | رمز النداء | | vessel, ship | سفينة | | satellite | قمر صناعي | +| CONFIRMED (sightings chip; a landing) | مؤكَّدة / مؤكَّد | | launch (rocket) / space mission | إطلاق / مهمة فضائية | | contact (tracked object) | هدف | | installation, site / mapped | منشأة، موقع / مرسوم | diff --git a/docs/translations/de.md b/docs/translations/de.md index 86032a2389..fcf7de8fe0 100644 --- a/docs/translations/de.md +++ b/docs/translations/de.md @@ -53,6 +53,7 @@ Keep the verb in agreement: «{count} Station meldet» / «{count} Stationen mel | aircraft / flight / military flights | Luftfahrzeug (HUD and short labels: Flugzeug) / Flug / Militärflüge | | vessel, ship | Schiff | | satellite / shell (Starlink) / DENSE | Satellit / Schale / DICHT | +| CURRENTLY OVER (orbit, before a place name) | ÜBERFLUG | | launch (rocket) / launch site / space mission | Start / Startplatz / Raummission | | ascent / replay / payload / stage / downrange | Aufstieg / Replay, Wiedergabe / Nutzlast / Stufe / Downrange | | contact / tracking | Kontakt / Verfolgung | diff --git a/docs/translations/es.md b/docs/translations/es.md index 22a827a64b..2e893d9695 100644 --- a/docs/translations/es.md +++ b/docs/translations/es.md @@ -45,6 +45,8 @@ The `many` form is the `other` text with «de» after the number: «{count} de c | aircraft, plane / flight / military flights | aeronave / vuelo / vuelos militares | | vessel, ship | buque | | satellite / shell (Starlink) / DENSE | satélite / capa / DENSO | +| FOCUS (the held object; the button) | ENFOQUE / ENFOCAR | +| CONFIRMED (sightings chip; a landing) | CONFIRMADOS / CONFIRMADA | | launch (rocket) / launch site / space mission | lanzamiento / lugar de lanzamiento / misión espacial | | ascent / replay / payload / stage | ascenso / repetición / carga útil / etapa | | contact / tracking | contacto / rastreo | diff --git a/docs/translations/fr.md b/docs/translations/fr.md index e2f5069889..9825aa310a 100644 --- a/docs/translations/fr.md +++ b/docs/translations/fr.md @@ -49,6 +49,8 @@ The `many` form is the `other` text with « de » (« d' » before a vowel) afte | aircraft / flight / military flights | aéronef (avion in short copy) / vol / vols militaires | | vessel, ship / tanker (AIS type) | navire / navire-citerne | | satellite / shell (Starlink) / DENSE | satellite / couche de la constellation / DENSE | +| FOCUS (the held object; the button) | CENTRÉ / CENTRER | +| CONFIRMED (sightings chip; a landing) | CONFIRMÉES / CONFIRMÉE | | launch / launch site / space mission | lancement / site de lancement / mission spatiale | | ascent / replay / payload / stage / downrange | ascension / rejeu / charge utile / étage / distance au sol (DIST. SOL) | | contact / tracking / track (HUD) | contact / suivi / piste | diff --git a/docs/translations/he.md b/docs/translations/he.md index f6a7d1b14f..98f4526589 100644 --- a/docs/translations/he.md +++ b/docs/translations/he.md @@ -41,6 +41,8 @@ With {count} shown as a digit, `two` and `other` share the plural noun (2 מצל | aircraft / flight / military flight | מטוס (כלי טיס in class lists) / טיסה / טיסה צבאית | | vessel / ship / ships | אונייה / אוניות | | satellite | לוויין | +| FOCUS (the held object; the button) | מוקד / התמקד | +| CONFIRMED (sightings chip; a landing) | מאושרות / מאושר | | launch (rocket) / space mission | שיגור / משימת חלל | | contact / tracking | מגע / עקיבה | | installation / site | מתקן / אתר | diff --git a/docs/translations/it.md b/docs/translations/it.md index 7229161011..75f7173103 100644 --- a/docs/translations/it.md +++ b/docs/translations/it.md @@ -52,6 +52,9 @@ The `many` form is the `other` text with «di» after the number when a noun fol | aircraft, plane / flight / military flights | aereo / volo / voli militari | | vessel, ship | nave | | satellite / shell (Starlink) / DENSE | satellite / shell / DENSO | +| FOCUS (the held object; the button) | PUNTAMENTO / FOCUS | +| CONFIRMED (sightings chip; a landing) | CONFERMATI / CONFERMATA | +| CURRENTLY OVER (orbit, before a place name) | SORVOLO | | SPARSE / BALANCED / DENSE (detection modes) | RADO / BILANCIATO / DENSO (agree with «overlay») | | broadband (Starlink shell) | a banda larga | | VISUAL (CelesTrak group) | VISIBILI | diff --git a/docs/translations/pt.md b/docs/translations/pt.md index 682c0a3b95..b10cabe784 100644 --- a/docs/translations/pt.md +++ b/docs/translations/pt.md @@ -57,6 +57,9 @@ The `many` form is the `other` text with «de» after the number: «{count} de c | aircraft, plane / flight / military flights | aeronave, avião / voo / voos militares | | vessel, ship / TANKER (AIS class) | embarcação / NAVIO-TANQUE | | satellite / shell (Starlink) / DENSE | satélite / camada orbital / DENSO | +| FOCUS (the held object; the button) | FOCO / FOCAR | +| CONFIRMED (sightings chip; a landing) | CONFIRMADOS / CONFIRMADA | +| CURRENTLY OVER (orbit, before a place name) | SOBREVOO | | SPARSE / BALANCED / DENSE (detection modes) | ESPARSO / EQUILIBRADO / DENSO (o modo) | | launch (rocket) / launch site / space mission | lançamento / local de lançamento / missão espacial | | KM DOWNRANGE / EST. DOWNRANGE | KM DO LOCAL DE LANÇAMENTO / EST. PELA DIST. DO LANÇAMENTO | @@ -89,7 +92,7 @@ The `many` form is the `other` text with «de» after the number: «{count} de c | detection overlay | sobreposição de detecção | | pin (Draw tool) / box (Recent Imagery) | marcador / área | | Cyber (HUD layout, effect) | Ciber | -| heading / course / altitude / ground speed | rumo / curso / altitude / velocidade solo (VELOC. SOLO) | +| heading / course / altitude / ground speed | rumo / curso (a ship's course: rumo) / altitude / velocidade solo (VELOC. SOLO) | | map heading / bearing (compass, north up) | orientação (do mapa) | | HDG / BRG / CRS / FOV / DEST / SPD / RANGE | HDG / BRG / CRS / FOV / DEST / SPD / RANGE (unchanged) | | V/S (vertical speed code) | V/S (unchanged) | diff --git a/docs/translations/ru.md b/docs/translations/ru.md index a44935b716..9073cec3d7 100644 --- a/docs/translations/ru.md +++ b/docs/translations/ru.md @@ -8,7 +8,7 @@ Catalog: `src/i18n/locales/ru.json`. General rules: [TRANSLATORS.md](../TRANSLAT - Sentence case, not Title Case: "Live Flights" → «Рейсы в реальном времени». - Quotes inside Russian text are «ёлочки». Write ё where it belongs: её, ещё, всё. - In short labels, a standard abbreviation with a period beats a wrapped line: НЕОПРЕД., СЛЕД. -- Units: км, м, км/ч, м/с, уз (knots), фт (feet), ч, мин, с; in UPPERCASE text КМ, М, КМ/С, УЗ, ФТ. MW is МВт in any case. `°` and `%` stay. +- Units: км, м, км/ч, м/с, уз (knots), фт (feet), ч, мин, с; in UPPERCASE text КМ, М, КМ/С, УЗ, ФТ. MW is МВт in any case. `°` and `%` stay. Nautical miles on the bridge radar are «мор. миля», a noun that follows the count: «3 МОР. МИЛИ», «12 МОР. МИЛЬ», «0,75 МОР. МИЛИ». ## Plurals diff --git a/docs/translations/sv.md b/docs/translations/sv.md index 39d7d5aeba..3bdc93cc6a 100644 --- a/docs/translations/sv.md +++ b/docs/translations/sv.md @@ -53,6 +53,7 @@ Abbreviated units and codes do not change: «{count} MEDD.». | aircraft / flight / military flights | luftfartyg (short labels: flygplan) / flygning / militärflyg | | vessel, ship | fartyg | | satellite / shell (Starlink) | satellit / skal | +| CONFIRMED (sightings chip; a landing) | BEKRÄFTADE / BEKRÄFTAD | | launch (rocket) / launch site / space mission | uppskjutning / uppskjutningsplats / rymduppdrag | | contact / tracking | kontakt / följning | | installation / site | anläggning / plats | diff --git a/docs/translations/uk.md b/docs/translations/uk.md index 673748f420..58a3817c6b 100644 --- a/docs/translations/uk.md +++ b/docs/translations/uk.md @@ -12,7 +12,7 @@ Translation source: meirm (#312). - The apostrophe is always ʼ (U+02BC): обʼєкт, звʼязок, памʼять. Not ' or ’. - Quotes inside Ukrainian text are «ялинки»; a button or layer name inside a sentence goes in them: Увімкніть «Вуличні знімки». - In short labels, a standard abbreviation with a period beats a wrapped line: ПОПЕР., ДАЛЬН., КАЛІБР. -- Units: км, м, км/год, м/с, вуз (knots), фт (feet), год, хв, с, МГц, дБ, гПа; in UPPERCASE text КМ, М, КМ/С, ВУЗ, ФТ. MW is МВт in any case. `°` and `%` stay. Decimal comma in coordinates written as text: 28,2710° пн. ш. +- Units: км, м, км/год, м/с, вуз (knots), фт (feet), год, хв, с, МГц, дБ, гПа; in UPPERCASE text КМ, М, КМ/С, ВУЗ, ФТ. Nautical miles on the bridge radar are «мор. миля», a noun that follows the count: «3 МОР. МИЛІ», «12 МОР. МИЛЬ», «0,75 МОР. МИЛІ». MW is МВт in any case. `°` and `%` stay. Decimal comma in coordinates written as text: 28,2710° пн. ш. - Coordinates: пн. ш. / пд. ш. / сх. д. / зх. д.; the HUD hemisphere letters are Пн, Пд, Сх, Зх. ## Plurals @@ -45,6 +45,7 @@ A `tn()` entry needs four forms. `Intl.PluralRules('uk')` picks: | aircraft / flight / military flights | літак (short HUD: борт) / рейс / військові рейси | | vessel, ship / vessels | судно / судна (gen. pl. суден) | | satellite | супутник | +| CURRENTLY OVER (orbit, before a place name) | ПРОЛІТ | | launch (rocket) / space mission | запуск / космічна місія | | ascent (rocket) / booster FLIGHT {n} | виведення / ПОЛІТ {n} (not рейс) | | contact / tracking | контакт / стеження | diff --git a/docs/translations/zh-Hant.md b/docs/translations/zh-Hant.md index d44c510c4a..7875ac9ab9 100644 --- a/docs/translations/zh-Hant.md +++ b/docs/translations/zh-Hant.md @@ -2,16 +2,24 @@ Catalog: `src/i18n/locales/zh-Hant.json`. General rules: [TRANSLATORS.md](../TRANSLATORS.md). -`zh-Hant` is the Simplified Chinese catalog (`zh-CN`, credited to abiyeenzo, #914, and EDIT-Aeterna, #979) written in Traditional characters with OpenCC character conversion. Wording and terminology are the same as in `zh-CN`: change a term in [zh-CN.md](./zh-CN.md) and the `zh-CN` catalog first, then convert. Only the script differs. +**Do not translate or edit this catalog: it is generated.** `zh-Hant` is the Simplified Chinese catalog (`zh-CN`, credited to abiyeenzo, #914, and EDIT-Aeterna, #979) written in Traditional characters. Wording and terminology are the same as in `zh-CN`; only the script differs. To add or change an entry, edit [zh-CN.md](./zh-CN.md) and the `zh-CN` catalog, then run: -After `s2tw` conversion, fix the characters OpenCC picks wrongly: 年曆史 → 年歷史, 下遊 → 下游, 並道 → 併道, 發佈 → 發布, 公佈 → 公布, 控制檯 → 控制台, and 周 → 週 where it means a week (1 週/秒). +```sh +npm run i18n -- --zh-hant # rewrite zh-Hant.json from zh-CN.json +``` + +`npm test` fails when `zh-Hant.json` differs from the conversion of `zh-CN.json`, naming the entry, and `npm run i18n -- --missing zh-Hant` points to this command instead of printing a template. + +The command converts with OpenCC `s2tw` ([opencc-js](https://github.com/nk2028/opencc-js), `cn` → `tw`), which changes characters only. Never `s2twp`: it also swaps in Taiwan vocabulary (影片, 伺服器, 載入, 圖示), which this catalog does not use. After the conversion it fixes the characters OpenCC picks wrongly here: 年曆史 → 年歷史, 下遊 → 下游, 並道 → 併道 (only in entries whose English key says merge), 發佈 → 發布, 公佈 → 公布, 宣佈 → 宣布, 控制檯 → 控制台, 箇中 → 個中 (全部 {n} 個中), and 周 → 週 in ` 周/秒` (1 週/秒, weeks per second). OpenCC writes 週 itself in 每週, 本週, 上週, 一週 and 兩週, but not after a number (過去 2 周, {count} 周前): a new string like that needs its own pair. The list is `ZH_HANT_CORRECTIONS` in `scripts/i18n.mjs`; when the conversion picks another wrong character, add the pair there (with a key pattern if it is right only in some entries) and run the command. + +An entry `zh-CN` keeps in English on purpose needs the same line under `zh-Hant` in `src/i18n/same-as-english.json`. ## Style -- Follow [zh-CN.md](./zh-CN.md) for wording, punctuation, spacing, units and the glossary, written in Traditional characters. +- Wording, punctuation, spacing, units and the glossary are those of [zh-CN.md](./zh-CN.md), written in Traditional characters. - Relative-time placeholders may already include 前. In `LIVE · updated {age}`, the caller supplies the complete relative age; do not append another 前. - The picker displays 中文(繁體) / Chinese (Traditional); explicit Hans tags select Simplified Chinese. ## Plurals -`Intl.PluralRules('zh-Hant')` uses only `other`. Keep the measure words of the `zh-CN` entry: 「{count} 架飛機」、「{count} 艘船」. +`Intl.PluralRules('zh-Hant')` uses only `other`. The measure words come from the `zh-CN` entry: 「{count} 架飛機」、「{count} 艘船」. diff --git a/package-lock.json b/package-lock.json index af748fcd3a..b7fc51b14f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -34,6 +34,7 @@ "@vue/test-utils": "^2.5.1", "flag-icons": "7.5.0", "happy-dom": "^20.14.6", + "opencc-js": "1.4.2", "prettier": "3.9.6", "puppeteer": "^25.16.0", "sharp": "^0.35.4", @@ -2990,6 +2991,13 @@ "node": ">= 0.8" } }, + "node_modules/opencc-js": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/opencc-js/-/opencc-js-1.4.2.tgz", + "integrity": "sha512-EdcspgdROiCCZDM+jZR6Pa670xW+EW2QhctPBQ8gRjg6lrx4IHEl+2s+kt5izk/TkxVRgdWuFgaGkaEdIUfdaw==", + "dev": true, + "license": "MIT AND Apache-2.0" + }, "node_modules/pako": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/pako/-/pako-2.1.0.tgz", diff --git a/package.json b/package.json index cc972a4336..b085926e78 100644 --- a/package.json +++ b/package.json @@ -90,6 +90,7 @@ "@vue/test-utils": "^2.5.1", "flag-icons": "7.5.0", "happy-dom": "^20.14.6", + "opencc-js": "1.4.2", "prettier": "3.9.6", "puppeteer": "^25.16.0", "sharp": "^0.35.4", diff --git a/scripts/i18n.mjs b/scripts/i18n.mjs index 7baf43dc22..06464b15cb 100644 --- a/scripts/i18n.mjs +++ b/scripts/i18n.mjs @@ -3,17 +3,21 @@ // npm run i18n check every catalog and find unmarked UI text // npm run i18n -- --prune also drop entries the code no longer uses // npm run i18n -- --missing ru print what ru lacks, as JSON to translate +// npm run i18n -- --zh-hant rewrite zh-Hant from zh-CN (see toZhHant) // // A translation left as the English fails unless src/i18n/same-as-english.json -// lists it. +// lists it. zh-Hant is not translated: it is generated from zh-CN, and the +// check fails when it differs. // // Messages are the English literals passed to t(), tn() and msg() in src/, // plus the markup opted in with data-i18n* in index.html and the Vue views. // It also lists UI text that is not marked at all (see findUnmarked). import { existsSync, readFileSync, writeFileSync } from 'node:fs'; import { execFileSync } from 'node:child_process'; +import { createRequire } from 'node:module'; import path from 'node:path'; import { fileURLToPath } from 'node:url'; +import { isDeepStrictEqual } from 'node:util'; const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); const LOCALES_DIR = path.join(ROOT, 'src/i18n/locales'); @@ -510,10 +514,11 @@ export function readCatalog(locale) { return JSON.parse(readFileSync(catalogPath(locale), 'utf8')); } +/** Sorted: git lists untracked files first, and main needs zh-CN before zh-Hant. */ export function shippedLocales() { - return trackedFiles('src/i18n/locales/*.json').map((file) => - path.basename(file, '.json'), - ); + return trackedFiles('src/i18n/locales/*.json') + .map((file) => path.basename(file, '.json')) + .sort(); } /** Messages a locale keeps exactly as in English, on purpose. */ @@ -532,7 +537,9 @@ const blank = (value) => value.trim() === ''; const hasLetters = (value) => /\p{L}{2}/u.test(value.replace(/\{[^}]*\}/g, '')); const STILL_ENGLISH = (text, locale) => - `"${text}" is still English: translate it, or list it under "${locale}" in src/i18n/same-as-english.json`; + locale === ZH_HANT + ? `"${text}" is still English: translate it in ${ZH_HANT_SOURCE} and run ${ZH_HANT_COMMAND}, or list it under "${ZH_HANT}" in src/i18n/same-as-english.json as under "${ZH_HANT_SOURCE}"` + : `"${text}" is still English: translate it, or list it under "${locale}" in src/i18n/same-as-english.json`; /** * Compare one catalog with the extracted messages. @@ -619,16 +626,138 @@ export function missingTemplate(locale, catalog, messages) { return out; } +// zh-Hant is zh-CN in Traditional characters (docs/translations/zh-Hant.md): +// the same wording, only the script differs. OpenCC s2tw (opencc-js, cn → tw) +// converts characters only; s2twp would also swap in Taiwan vocabulary +// (影片, 伺服器, 載入), which the catalog does not use. +const ZH_HANT = 'zh-Hant'; +const ZH_HANT_SOURCE = 'zh-CN'; +const ZH_HANT_COMMAND = 'npm run i18n -- --zh-hant'; + +// Characters s2tw picks wrongly in this text, replaced after the conversion. +// A pair with a third item applies only to entries whose English key matches it. +const ZH_HANT_CORRECTIONS = [ + ['年曆史', '年歷史'], + ['下遊', '下游'], + // 併道 is merging lanes; elsewhere 並 (and) stays before 道路, 道謝 and the like. + ['並道', '併道', /\bmerge\b/i], + ['發佈', '發布'], + ['公佈', '公布'], + ['宣佈', '宣布'], + ['控制檯', '控制台'], + // 個 after a count ({n} 个中, of {n}), not the literary 箇中. + ['箇中', '個中'], + // 周 as a week: the time-lapse speed in weeks per second. + [' 周/秒', ' 週/秒'], +]; + +let s2tw; + +// Loaded on first use, so extracting messages needs no node_modules +// (stale-index.test.mjs); main reports a missing package as a zh-Hant error. +function converter() { + try { + s2tw ??= createRequire(import.meta.url)('opencc-js/cn2t').Converter({ + from: 'cn', + to: 'tw', + }); + } catch (error) { + if (error.code !== 'MODULE_NOT_FOUND') throw error; + throw new Error('opencc-js is not installed: run npm ci', { cause: error }); + } + return s2tw; +} + +export function toZhHant(text, key = '') { + return ZH_HANT_CORRECTIONS.reduce( + (out, [wrong, right, keys]) => + !keys || keys.test(key) ? out.replaceAll(wrong, right) : out, + converter()(text), + ); +} + +/** The zh-Hant catalog for a zh-CN catalog: the same keys in the same order. */ +export function zhHantCatalog(zhCN) { + const convert = (entry, text) => { + if (typeof entry === 'string') return toZhHant(entry, text); + if (entry && typeof entry === 'object') + return Object.fromEntries( + Object.entries(entry).map(([category, form]) => [ + category, + convert(form, text), + ]), + ); + return entry; + }; + return Object.fromEntries( + Object.entries(zhCN).map(([text, entry]) => [text, convert(entry, text)]), + ); +} + +/** + * Where a zh-Hant catalog is not the conversion of the zh-CN one. + * @param {Set} [reported] Keys already reported missing from zh-Hant. + * @returns {string[]} One error per entry, naming its key. + */ +export function checkZhHant(zhCN, zhHant, reported = new Set()) { + const expected = zhHantCatalog(zhCN); + const fix = `zh-Hant is generated: edit ${ZH_HANT_SOURCE}, then run ${ZH_HANT_COMMAND}`; + const errors = []; + for (const [text, entry] of Object.entries(expected)) { + if (!Object.hasOwn(zhHant, text)) { + if (!reported.has(text)) + errors.push(`"${text}" is in ${ZH_HANT_SOURCE} but not here. ${fix}`); + } else if (!isDeepStrictEqual(zhHant[text], entry)) + errors.push( + `"${text}" is ${JSON.stringify(zhHant[text])}, not ${ZH_HANT_SOURCE} converted (${JSON.stringify(entry)}). ${fix}`, + ); + } + for (const text of Object.keys(zhHant)) { + if (!Object.hasOwn(expected, text)) + errors.push(`"${text}" is not in ${ZH_HANT_SOURCE}. ${fix}`); + } + const order = Object.keys(expected); + const keys = Object.keys(zhHant); + if (!errors.length && keys.length === order.length) { + const at = order.findIndex((text, i) => keys[i] !== text); + if (at >= 0) + errors.push( + `entries leave the ${ZH_HANT_SOURCE} order at "${order[at]}": run ${ZH_HANT_COMMAND}`, + ); + } + return errors; +} + +const serialize = (catalog) => `${JSON.stringify(catalog, null, 2)}\n`; + +export function writeZhHant() { + const catalog = zhHantCatalog(readCatalog(ZH_HANT_SOURCE)); + writeFileSync(catalogPath(ZH_HANT), serialize(catalog)); + return Object.keys(catalog).length; +} + function main(args) { const messages = extractMessages(); const missingFor = args.includes('--missing') ? args[args.indexOf('--missing') + 1] : null; + if (missingFor?.toLowerCase() === ZH_HANT.toLowerCase()) { + console.error( + `${ZH_HANT} is generated, not translated: add the entries to ${ZH_HANT_SOURCE} (npm run i18n -- --missing ${ZH_HANT_SOURCE}), then run ${ZH_HANT_COMMAND}`, + ); + return 1; + } if (missingFor) { const out = missingTemplate(missingFor, readCatalog(missingFor), messages); console.log(JSON.stringify(out, null, 2)); return 0; } + if (args.includes('--zh-hant')) { + const count = writeZhHant(); + console.log( + `${ZH_HANT}: wrote ${count} entries converted from ${ZH_HANT_SOURCE}`, + ); + } let failed = false; for (const locale of shippedLocales()) { let catalog = readCatalog(locale); @@ -637,10 +766,7 @@ function main(args) { catalog = Object.fromEntries( Object.entries(catalog).filter(([text]) => messages.has(text)), ); - writeFileSync( - catalogPath(locale), - `${JSON.stringify(catalog, null, 2)}\n`, - ); + writeFileSync(catalogPath(locale), serialize(catalog)); console.log(`${locale}: pruned ${stale.length} unused entries`); } else if (stale.length) { failed = true; @@ -649,11 +775,24 @@ function main(args) { ); for (const text of stale) console.log(` ${JSON.stringify(text)}`); } + // shippedLocales() is sorted, so --prune has already pruned zh-CN. + const zhCN = locale === ZH_HANT ? readCatalog(ZH_HANT_SOURCE) : null; + if (zhCN) { + try { + errors.push(...checkZhHant(zhCN, catalog, new Set(missing))); + } catch (error) { + if (error.cause?.code !== 'MODULE_NOT_FOUND') throw error; + errors.push(error.message); + } + } if (missing.length) { failed = true; - console.log( - `${locale}: ${missing.length} missing (npm run i18n -- --missing ${locale}):`, - ); + const fill = !zhCN + ? `npm run i18n -- --missing ${locale}` + : missing.every((text) => Object.hasOwn(zhCN, text)) + ? `run ${ZH_HANT_COMMAND}` + : `add them to ${ZH_HANT_SOURCE}, then ${ZH_HANT_COMMAND}`; + console.log(`${locale}: ${missing.length} missing (${fill}):`); for (const text of missing) console.log(` ${JSON.stringify(text)} ${messages.get(text).where}`); } diff --git a/src/i18n/catalog.test.mjs b/src/i18n/catalog.test.mjs index 8107a86e96..1b35c41417 100644 --- a/src/i18n/catalog.test.mjs +++ b/src/i18n/catalog.test.mjs @@ -3,13 +3,16 @@ import assert from 'node:assert/strict'; import { checkCatalog, + checkZhHant, extractMessages, findUnmarked, markedTemplate, readCatalog, shippedLocales, + toZhHant, unmarkedMarkup, unmarkedScript, + zhHantCatalog, } from '../../scripts/i18n.mjs'; import { LOCALES } from './locale.js'; @@ -36,6 +39,95 @@ for (const locale of shippedLocales()) { }); } +test('zh-Hant is zh-CN converted to Traditional characters (npm run i18n -- --zh-hant)', () => { + assert.deepEqual( + checkZhHant(readCatalog('zh-CN'), readCatalog('zh-Hant')), + [], + ); +}); + +test('toZhHant converts characters, not vocabulary, and fixes what s2tw picks wrongly', () => { + // s2twp would write 影片, 伺服器 and 載入; zh-Hant keeps the zh-CN words. + assert.equal(toZhHant('视频'), '視頻'); + assert.equal(toZhHant('服务器'), '服務器'); + assert.equal(toZhHant('加载'), '加載'); + assert.equal(toZhHant('50 年历史'), '50 年歷史'); + assert.equal(toZhHant('发布于 {date}'), '發布於 {date}'); + assert.equal(toZhHant('1 周/秒'), '1 週/秒'); + assert.equal(toZhHant('已宣布紧急情况'), '已宣布緊急情況'); + assert.equal(toZhHant('全部 {n} 个中'), '全部 {n} 個中'); + // 併道 only where the English key is about merging. + assert.equal(toZhHant('前方并道路段', 'Merge ahead'), '前方併道路段'); + assert.equal( + toZhHant('事故并道路封闭', 'Crash, road closed'), + '事故並道路封閉', + ); + assert.equal(toZhHant('挥手并道谢', 'Waved and thanked'), '揮手並道謝'); + assert.deepEqual( + zhHantCatalog({ + 'Merge {direction} onto {road}': '{direction}并道,进入 {road}', + 'maneuver|Merge': '并道', + 'Closed and apologized': '已关闭并道歉', + }), + { + 'Merge {direction} onto {road}': '{direction}併道,進入 {road}', + 'maneuver|Merge': '併道', + 'Closed and apologized': '已關閉並道歉', + }, + ); +}); + +test('checkZhHant names each entry that is not the conversion of zh-CN', () => { + const zhCN = { + Video: '视频', + Server: '服务器', + '{count} ships': { other: '{count} 艘船' }, + }; + const generated = zhHantCatalog(zhCN); + assert.deepEqual(generated, { + Video: '視頻', + Server: '服務器', + '{count} ships': { other: '{count} 艘船' }, + }); + assert.deepEqual(checkZhHant(zhCN, generated), []); + + const fix = + 'zh-Hant is generated: edit zh-CN, then run npm run i18n -- --zh-hant'; + const { Server, ...withoutServer } = generated; + assert.deepEqual( + checkZhHant(zhCN, { + ...withoutServer, + Video: '影片', + '{count} ships': { other: '{count} 艘船隻' }, + Extra: '多餘', + }), + [ + `"Video" is "影片", not zh-CN converted ("視頻"). ${fix}`, + `"Server" is in zh-CN but not here. ${fix}`, + `"{count} ships" is {"other":"{count} 艘船隻"}, not zh-CN converted ({"other":"{count} 艘船"}). ${fix}`, + `"Extra" is not in zh-CN. ${fix}`, + ], + ); + assert.deepEqual(checkZhHant(zhCN, { Server, ...withoutServer }), [ + 'entries leave the zh-CN order at "Video": run npm run i18n -- --zh-hant', + ]); + // A key checkCatalog already lists as missing is not reported twice. + assert.deepEqual(checkZhHant(zhCN, withoutServer, new Set(['Server'])), []); +}); + +test('a zh-Hant entry still in English points to zh-CN and its same-as-English line', () => { + const fixture = new Map([['Bloom', { plural: false }]]); + const errors = (locale) => + checkCatalog(locale, { Bloom: 'Bloom' }, fixture, new Set()).errors; + assert.deepEqual(errors('zh-Hant'), [ + '"Bloom" is still English: translate it in zh-CN and run npm run i18n -- --zh-hant, or list it under "zh-Hant" in src/i18n/same-as-english.json as under "zh-CN"', + ]); + assert.match( + errors('zh-CN')[0], + /^"Bloom" is still English: translate it, or/, + ); +}); + test('every UI string is marked for translation or kept on purpose (npm run i18n)', () => { assert.deepEqual( findUnmarked().map(({ where, text }) => `${where} ${text}`), diff --git a/src/i18n/locales/ar.json b/src/i18n/locales/ar.json index e5a59048d0..6b4c761e7d 100644 --- a/src/i18n/locales/ar.json +++ b/src/i18n/locales/ar.json @@ -77,8 +77,22 @@ "{severity} only": "{severity} فقط", "All categories": "كل الفئات", "Reading the news…": "جارٍ قراءة الأخبار…", - "News, last {hours} hours": "الأخبار، الساعات الأخيرة: {hours}", - "Last {hours} h": "آخر {hours} س", + "News, last {hours} hours": { + "zero": "الأخبار، آخر {hours} ساعة", + "one": "الأخبار، آخر ساعة ({hours})", + "two": "الأخبار، آخر ساعتين ({hours})", + "few": "الأخبار، آخر {hours} ساعات", + "many": "الأخبار، آخر {hours} ساعة", + "other": "الأخبار، آخر {hours} ساعة" + }, + "Last {hours} h": { + "zero": "آخر {hours} ساعة", + "one": "آخر ساعة ({hours})", + "two": "آخر ساعتين ({hours})", + "few": "آخر {hours} ساعات", + "many": "آخر {hours} ساعة", + "other": "آخر {hours} ساعة" + }, "Time window": "الفترة الزمنية", "Conflicts": "النزاعات", "Local": "محلي", @@ -87,9 +101,23 @@ "Hotspots": "بؤر ساخنة", "Severity": "الخطورة", "Category": "الفئة", - "Nothing reported near here in the last {hours} h": "لم يُبلَّغ عن شيء قريب من هنا في آخر {hours} س", + "Nothing reported near here in the last {hours} h": { + "zero": "لم يُبلَّغ عن شيء قريب من هنا في آخر {hours} ساعة", + "one": "لم يُبلَّغ عن شيء قريب من هنا في آخر ساعة ({hours})", + "two": "لم يُبلَّغ عن شيء قريب من هنا في آخر ساعتين ({hours})", + "few": "لم يُبلَّغ عن شيء قريب من هنا في آخر {hours} ساعات", + "many": "لم يُبلَّغ عن شيء قريب من هنا في آخر {hours} ساعة", + "other": "لم يُبلَّغ عن شيء قريب من هنا في آخر {hours} ساعة" + }, "Latest news": "آخر الأخبار", - "No news matches these filters in the last {hours} h": "لا أخبار تطابق هذه المرشحات في آخر {hours} س", + "No news matches these filters in the last {hours} h": { + "zero": "لا أخبار تطابق هذه المرشحات في آخر {hours} ساعة", + "one": "لا أخبار تطابق هذه المرشحات في آخر ساعة ({hours})", + "two": "لا أخبار تطابق هذه المرشحات في آخر ساعتين ({hours})", + "few": "لا أخبار تطابق هذه المرشحات في آخر {hours} ساعات", + "many": "لا أخبار تطابق هذه المرشحات في آخر {hours} ساعة", + "other": "لا أخبار تطابق هذه المرشحات في آخر {hours} ساعة" + }, "Load older news": "تحميل أخبار أقدم", "How to read the map": "كيف تقرأ الخريطة", "Colour: severity · icon: type of event": "اللون: الخطورة · الرمز: نوع الحدث", @@ -259,7 +287,14 @@ "ALTITUDE": "الارتفاع", "CONTACT": "الهدف", "CONTACTS · 250 KM": "الأهداف · 250 كم", - "RINGS {spacing} NM": "الحلقات كل {spacing} ميل بحري", + "RINGS {spacing} NM": { + "zero": "الحلقات كل {spacing} ميل بحري", + "one": "الحلقات كل ميل بحري ({spacing})", + "two": "الحلقات كل ميلين بحريين ({spacing})", + "few": "الحلقات كل {spacing} أميال بحرية", + "many": "الحلقات كل {spacing} ميلًا بحريًا", + "other": "الحلقات كل {spacing} ميل بحري" + }, "{count} CONTACTS": { "zero": "لا أهداف ({count})", "one": "هدف واحد ({count})", @@ -388,7 +423,14 @@ "ROUTE DATA UNAVAILABLE": "بيانات المسار غير متاحة", "CONTACT NAVIGATION OFF": "التنقل بين الأهداف متوقف", "THE BRIDGE STAYS WITH THE SELECTED VESSEL": "تبقى غرفة القيادة مع السفينة المحددة", - "{range} NM": "{range} ميل بحري", + "{range} NM": { + "zero": "{range} ميل بحري", + "one": "ميل بحري واحد ({range})", + "two": "ميلان بحريان ({range})", + "few": "{range} أميال بحرية", + "many": "{range} ميلًا بحريًا", + "other": "{range} ميل بحري" + }, "AIS DESTINATION · CREW REPORTED": "وجهة AIS · أبلغ عنها الطاقم", "FROM": "من", "TO": "إلى", @@ -472,6 +514,7 @@ "Current style: {style} — click for next": "النمط الحالي: {style} — انقر للتالي", "TRACK ACQUIRED": "تم التقاط الهدف", "{label} · COURSE {heading}°": "{label} · المسار {heading}°", + "vessel|{label} · COURSE {heading}°": "{label} · المسار {heading}°", "{label} · HEADING {heading}°": "{label} · الاتجاه {heading}°", "{label} · NO HEADING": "{label} · لا اتجاه", "{label} · NADIR VIEW": "{label} · عرض باتجاه النظير", @@ -673,6 +716,7 @@ "NEAREST": "الأقرب", "CCTV camera": "كاميرا CCTV", "FOCUS": "تركيز", + "site status|FOCUS": "تركيز", "COVERAGE OFF": "التغطية متوقفة", "AUTO HOP OFF": "التنقل التلقائي متوقف", "PROJECTION ON": "الإسقاط مفعّل", @@ -1065,6 +1109,7 @@ "awaiting first AIS message…": "بانتظار أول رسالة AIS…", "EST. DOWNRANGE": "تقدير على امتداد المسار", "CONFIRMED": "مؤكَّد", + "sightings filter|CONFIRMED": "مؤكَّدة", "PAD / RTLS": "منصة الإطلاق / RTLS", "Pick a shape, then click the map.": "اختر شكلًا، ثم انقر على الخريطة.", "Enter to place the pin, Esc to cancel.": "Enter لوضع الدبوس، وEsc للإلغاء.", @@ -2541,7 +2586,7 @@ "RESUME": "استئناف", "Clear reading": "مسح القراءة", "Observed history": "سجل الأرصاد", - "Latest": "الأحدث", + "news list|Latest": "الأحدث", "Imagery on Esri · Google 3D returns when cleared": "الصور على Esri · تعود Google 3D عند المسح", "Point the camera at the ground to use the view": "وجّه الكاميرا نحو الأرض لاستخدام العرض", "That point cannot anchor a box": "لا يمكن تثبيت منطقة على تلك النقطة", @@ -3710,7 +3755,14 @@ "Photo of {name}": "صورة {name}", "Acartia": "Acartia", "CC BY 4.0": "CC BY 4.0", - "{count} sightings in view": "المشاهدات في نطاق العرض: {count}", + "{count} sightings in view": { + "zero": "{count} مشاهدة في نطاق العرض", + "one": "مشاهدة واحدة ({count}) في نطاق العرض", + "two": "مشاهدتان ({count}) في نطاق العرض", + "few": "{count} مشاهدات في نطاق العرض", + "many": "{count} مشاهدة في نطاق العرض", + "other": "{count} مشاهدة في نطاق العرض" + }, "Close sighting": "إغلاق المشاهدة", "Wildlife observed within 48 h (whales 7 d). Color and badge glyph show the taxon group. Sensitive species are shown only as 0.2° cells; Salish Sea marine mammal reports via Acartia are rounded to 0.01°. Not a census.": "حياة برية شوهدت خلال 48 ساعة (الحيتان 7 أيام). يوضح اللون ورمز الشارة المجموعة التصنيفية. تُعرض الأنواع الحساسة في خلايا بحجم 0.2° فقط؛ وتُقرّب مشاهدات الثدييات البحرية في بحر ساليش عبر Acartia إلى 0.01°. ليست إحصاءً شاملًا.", "Open {name} on iNaturalist": "فتح {name} على iNaturalist", @@ -3721,20 +3773,37 @@ "{days}d": "{days} ي", "All markers": "كل العلامات", "Show markers of every age": "عرض العلامات من جميع الأعمار", - "Maximum event age: {days}d; undated markers are kept": "الحد الأقصى لعمر الحدث: {days} ي؛ تبقى العلامات غير المؤرخة ظاهرة", + "Maximum event age: {days}d; undated markers are kept": { + "zero": "الحد الأقصى لعمر الحدث: {days} يوم؛ تبقى العلامات غير المؤرخة ظاهرة", + "one": "الحد الأقصى لعمر الحدث: يوم واحد ({days})؛ تبقى العلامات غير المؤرخة ظاهرة", + "two": "الحد الأقصى لعمر الحدث: يومان ({days})؛ تبقى العلامات غير المؤرخة ظاهرة", + "few": "الحد الأقصى لعمر الحدث: {days} أيام؛ تبقى العلامات غير المؤرخة ظاهرة", + "many": "الحد الأقصى لعمر الحدث: {days} يومًا؛ تبقى العلامات غير المؤرخة ظاهرة", + "other": "الحد الأقصى لعمر الحدث: {days} يوم؛ تبقى العلامات غير المؤرخة ظاهرة" + }, "event age filter|All": "الكل", "Event age": "عمر الحدث", - "Event age: {days}d · undated kept": "عمر الحدث: {days} ي · غير المؤرخة تبقى ظاهرة", + "Event age: {days}d · undated kept": { + "zero": "عمر الحدث: {days} يوم · غير المؤرخة تبقى ظاهرة", + "one": "عمر الحدث: يوم واحد ({days}) · غير المؤرخة تبقى ظاهرة", + "two": "عمر الحدث: يومان ({days}) · غير المؤرخة تبقى ظاهرة", + "few": "عمر الحدث: {days} أيام · غير المؤرخة تبقى ظاهرة", + "many": "عمر الحدث: {days} يومًا · غير المؤرخة تبقى ظاهرة", + "other": "عمر الحدث: {days} يوم · غير المؤرخة تبقى ظاهرة" + }, "Close camera preview": "إغلاق معاينة الكاميرا", "Refresh map still": "تحديث صورة الخريطة الثابتة", "The map still uses a separate request and may show a different moment.": "تستخدم صورة الخريطة طلبًا منفصلًا وقد تعرض لحظة مختلفة.", "Video plays from Québec 511, which sees your IP address.": "يُشغَّل الفيديو من Québec 511، الذي يرى عنوان IP الخاص بك.", "Press OPEN to load the photo": "اضغط «فتح» لتحميل الصورة", "Captured {month}": "التُقطت في {month}", - "this spot": "هذا الموضع", "the view centre": "مركز العرض", "{source} at {place}": "{source} في {place}", + "{source} at this spot": "{source} في هذا الموضع", + "{source} at the view centre": "{source} في مركز العرض", "Street level at {place}": "مستوى الشارع في {place}", + "Street level at this spot": "مستوى الشارع في هذا الموضع", + "Street level at the view centre": "مستوى الشارع في مركز العرض", "Switching map": "جارٍ تبديل الخريطة", "Opening imagery": "جارٍ فتح الصور", "Street View is ready: press {open} to load it": "Street View جاهز: اضغط «{open}» لتحميله", @@ -3946,7 +4015,14 @@ "REMOVE ALL": "إزالة الكل", "Confirm: remove every added entry from Data Layers": "تأكيد: إزالة كل الإدخالات المُضافة من طبقات البيانات", "Remove every added entry from Data Layers": "إزالة كل الإدخالات المُضافة من طبقات البيانات", - "Showing {shown} of {total}": "عرض {shown} من {total}", + "Showing {shown} of {total}": { + "zero": "عرض {shown} من {total}", + "one": "عرض {shown} من {total}", + "two": "عرض {shown} من {total}", + "few": "عرض {shown} من {total}", + "many": "عرض {shown} من {total}", + "other": "عرض {shown} من {total}" + }, "BROWSE DATA LIBRARY": "تصفّح مكتبة البيانات", "Atmosphere": "الغلاف الجوي", "Day and night": "الليل والنهار", diff --git a/src/i18n/locales/de.json b/src/i18n/locales/de.json index 2625ff156d..80ae71838f 100644 --- a/src/i18n/locales/de.json +++ b/src/i18n/locales/de.json @@ -65,8 +65,14 @@ "{severity} only": "Nur {severity}", "All categories": "Alle Kategorien", "Reading the news…": "Nachrichten werden gelesen…", - "News, last {hours} hours": "Nachrichten, letzte {hours} h", - "Last {hours} h": "Letzte {hours} h", + "News, last {hours} hours": { + "one": "Nachrichten der letzten {hours} Stunde", + "other": "Nachrichten der letzten {hours} Stunden" + }, + "Last {hours} h": { + "one": "Letzte {hours} h", + "other": "Letzte {hours} h" + }, "Time window": "Zeitraum", "Conflicts": "Konflikte", "Local": "Lokal", @@ -75,9 +81,15 @@ "Hotspots": "Brennpunkte", "Severity": "Schweregrad", "Category": "Kategorie", - "Nothing reported near here in the last {hours} h": "In den letzten {hours} h nichts in der Nähe gemeldet", + "Nothing reported near here in the last {hours} h": { + "one": "In der letzten {hours} h nichts in der Nähe gemeldet", + "other": "In den letzten {hours} h nichts in der Nähe gemeldet" + }, "Latest news": "Neueste Nachrichten", - "No news matches these filters in the last {hours} h": "Keine Nachrichten der letzten {hours} h passen zu diesen Filtern", + "No news matches these filters in the last {hours} h": { + "one": "Keine Nachrichten der letzten {hours} h passen zu diesen Filtern", + "other": "Keine Nachrichten der letzten {hours} h passen zu diesen Filtern" + }, "Load older news": "Ältere Nachrichten laden", "How to read the map": "So liest man die Karte", "Colour: severity · icon: type of event": "Farbe: Schweregrad · Symbol: Art des Ereignisses", @@ -197,6 +209,7 @@ "Previous — prior visited contact in the 250 km window": "Zurück: zuvor besuchter Kontakt im 250-km-Fenster", "PREVIOUS": "ZURÜCK", "FOCUS": "FOKUS", + "site status|FOCUS": "FOKUS", "Next — nearest unvisited contact in the 250 km window": "Weiter: nächstgelegener unbesuchter Kontakt im 250-km-Fenster", "NEXT": "WEITER", "Open-source mapped/observed context. Missing broadcasts, unloaded map areas, or unmapped sites are not evidence of absence.": "Kontext aus offenen Quellen, kartiert/beobachtet. Fehlende Funksignale, nicht geladene Kartenbereiche oder nicht kartierte Standorte sind kein Beleg für Abwesenheit.", @@ -301,7 +314,7 @@ "ORBITAL VELOCITY": "BAHNGESCHWINDIGKEIT", "SUB-SATELLITE POINT": "SUBSATELLITENPUNKT", "NORTH UP": "NORDEN OBEN", - "CURRENTLY OVER": "AKTUELL ÜBER", + "CURRENTLY OVER": "ÜBERFLUG", "{division}, {country}": "{division}, {country}", "{region} · near {place}": "{region} · nahe {place}", "NORAD {id}": "NORAD {id}", @@ -560,7 +573,10 @@ "ROUTE DATA UNAVAILABLE": "ROUTENDATEN NICHT VERFÜGBAR", "CONTACT NAVIGATION OFF": "KONTAKTNAVIGATION AUS", "THE BRIDGE STAYS WITH THE SELECTED VESSEL": "DIE BRÜCKE BLEIBT BEIM GEWÄHLTEN SCHIFF", - "{range} NM": "{range} SM", + "{range} NM": { + "one": "{range} SM", + "other": "{range} SM" + }, "AIS DESTINATION · CREW REPORTED": "AIS-ZIEL · VON DER BESATZUNG GEMELDET", "DEST {bearing}": "DEST {bearing}", "Disable cockpit weather effects": "Cockpit-Wettereffekte deaktivieren", @@ -606,6 +622,7 @@ "Reclassify as TR-3B": "Als TR-3B umklassifizieren", "TRACK ACQUIRED": "TRACK ERFASST", "{label} · COURSE {heading}°": "{label} · KURS {heading}°", + "vessel|{label} · COURSE {heading}°": "{label} · KURS {heading}°", "{label} · HEADING {heading}°": "{label} · STEUERKURS {heading}°", "{label} · NO HEADING": "{label} · KEIN STEUERKURS", "{label} · NADIR VIEW": "{label} · NADIRANSICHT", @@ -838,7 +855,10 @@ "Contact cockpit summary": "Cockpit-Zusammenfassung des Kontakts", "CONTACT": "KONTAKT", "CONTACTS · 250 KM": "KONTAKTE · 250 KM", - "RINGS {spacing} NM": "RINGE {spacing} SM", + "RINGS {spacing} NM": { + "one": "RINGE {spacing} SM", + "other": "RINGE {spacing} SM" + }, "{count} CONTACTS": { "one": "{count} KONTAKT", "other": "{count} KONTAKTE" @@ -2401,7 +2421,7 @@ "RESUME": "FORTSETZEN", "Clear reading": "Wert ausblenden", "Observed history": "Beobachteter Verlauf", - "Latest": "Neueste", + "news list|Latest": "Neueste", "Imagery on Esri · Google 3D returns when cleared": "Bilder auf Esri · nach LÖSCHEN wieder Google 3D", "Point the camera at the ground to use the view": "Kamera auf den Boden richten, um die Ansicht zu verwenden", "That point cannot anchor a box": "Dieser Punkt kann keinen Bereich verankern", @@ -3126,6 +3146,7 @@ "Left panels": "Linke Bereiche", "Right panels": "Rechte Bereiche", "CONFIRMED": "BESTÄTIGT", + "sightings filter|CONFIRMED": "BESTÄTIGT", "PAD / RTLS": "STARTPLATZ / RTLS", "fire confidence filter|All": "Alle", "fire confidence filter|Nominal+": "Mittel+", @@ -3386,7 +3407,10 @@ "Photo of {name}": "Foto von {name}", "Acartia": "Acartia", "CC BY 4.0": "CC BY 4.0", - "{count} sightings in view": "Beobachtungen im Bild: {count}", + "{count} sightings in view": { + "one": "{count} Beobachtung im Bild", + "other": "{count} Beobachtungen im Bild" + }, "Close sighting": "Beobachtung schließen", "Wildlife observed within 48 h (whales 7 d). Color and badge glyph show the taxon group. Sensitive species are shown only as 0.2° cells; Salish Sea marine mammal reports via Acartia are rounded to 0.01°. Not a census.": "In den letzten 48 h beobachtete Wildtiere (Wale 7 Tage). Farbe und Symbol der Markierung zeigen die Artengruppe. Empfindliche Arten erscheinen nur als 0,2°-Zellen; Acartia-Meldungen zu Meeressäugern aus der Salish-See werden auf 0,01° gerundet. Keine Bestandszählung.", "Open {name} on iNaturalist": "{name} auf iNaturalist öffnen", @@ -3397,20 +3421,29 @@ "{days}d": "{days} T", "All markers": "Alle Markierungen", "Show markers of every age": "Markierungen jeden Alters anzeigen", - "Maximum event age: {days}d; undated markers are kept": "Maximales Ereignisalter: {days} T; undatierte Markierungen bleiben erhalten", + "Maximum event age: {days}d; undated markers are kept": { + "one": "Maximales Ereignisalter: {days} Tag; undatierte Markierungen bleiben erhalten", + "other": "Maximales Ereignisalter: {days} Tage; undatierte Markierungen bleiben erhalten" + }, "event age filter|All": "Alle", "Event age": "Ereignisalter", - "Event age: {days}d · undated kept": "Ereignisalter: {days} T · undatierte bleiben", + "Event age: {days}d · undated kept": { + "one": "Ereignisalter: {days} Tag · undatierte bleiben", + "other": "Ereignisalter: {days} Tage · undatierte bleiben" + }, "Close camera preview": "Kameravorschau schließen", "Refresh map still": "Kartenstandbild aktualisieren", "The map still uses a separate request and may show a different moment.": "Das Kartenstandbild wird separat abgerufen und kann einen anderen Moment zeigen.", "Video plays from Québec 511, which sees your IP address.": "Das Video wird von Québec 511 abgespielt; die IP-Adresse ist für diesen Anbieter sichtbar.", "Press OPEN to load the photo": "Auf ÖFFNEN klicken, um das Foto zu laden", "Captured {month}": "Aufgenommen im {month}", - "this spot": "diese Stelle", "the view centre": "die Bildmitte", "{source} at {place}": "{source}: {place}", + "{source} at this spot": "{source} an dieser Stelle", + "{source} at the view centre": "{source} in der Bildmitte", "Street level at {place}": "Straßenebene: {place}", + "Street level at this spot": "Straßenebene an dieser Stelle", + "Street level at the view centre": "Straßenebene in der Bildmitte", "Switching map": "Karte wird gewechselt", "Opening imagery": "Bilder werden geöffnet", "Street View is ready: press {open} to load it": "Street View ist bereit: Auf {open} klicken, um es zu laden", @@ -3598,7 +3631,10 @@ "REMOVE ALL": "ALLE ENTFERNEN", "Confirm: remove every added entry from Data Layers": "Bestätigen: alle hinzugefügten Einträge aus Datenebenen entfernen", "Remove every added entry from Data Layers": "Alle hinzugefügten Einträge aus Datenebenen entfernen", - "Showing {shown} of {total}": "{shown} von {total} angezeigt", + "Showing {shown} of {total}": { + "one": "{shown} von {total} angezeigt", + "other": "{shown} von {total} angezeigt" + }, "BROWSE DATA LIBRARY": "DATENBIBLIOTHEK DURCHSUCHEN", "Atmosphere": "Atmosphäre", "Day and night": "Tag und Nacht", diff --git a/src/i18n/locales/es.json b/src/i18n/locales/es.json index 40b463854b..5178fe730c 100644 --- a/src/i18n/locales/es.json +++ b/src/i18n/locales/es.json @@ -68,8 +68,16 @@ "{severity} only": "Solo {severity}", "All categories": "Todas las categorías", "Reading the news…": "Leyendo las noticias…", - "News, last {hours} hours": "Noticias desde hace {hours} h", - "Last {hours} h": "Desde hace {hours} h", + "News, last {hours} hours": { + "one": "Noticias de la última {hours} hora", + "many": "Noticias de las últimas {hours} de horas", + "other": "Noticias de las últimas {hours} horas" + }, + "Last {hours} h": { + "one": "Última {hours} h", + "many": "Últimas {hours} h", + "other": "Últimas {hours} h" + }, "Time window": "Periodo", "Conflicts": "Conflictos", "Local": "Local", @@ -78,9 +86,17 @@ "Hotspots": "Focos", "Severity": "Gravedad", "Category": "Categoría", - "Nothing reported near here in the last {hours} h": "No hay noticias cerca de aquí desde hace {hours} h", + "Nothing reported near here in the last {hours} h": { + "one": "No hay noticias cerca de aquí en la última {hours} h", + "many": "No hay noticias cerca de aquí en las últimas {hours} h", + "other": "No hay noticias cerca de aquí en las últimas {hours} h" + }, "Latest news": "Últimas noticias", - "No news matches these filters in the last {hours} h": "Desde hace {hours} h no hay noticias que coincidan con estos filtros", + "No news matches these filters in the last {hours} h": { + "one": "En la última {hours} h no hay noticias que coincidan con estos filtros", + "many": "En las últimas {hours} h no hay noticias que coincidan con estos filtros", + "other": "En las últimas {hours} h no hay noticias que coincidan con estos filtros" + }, "Load older news": "Cargar noticias anteriores", "How to read the map": "Cómo leer el mapa", "Colour: severity · icon: type of event": "Color: gravedad · icono: tipo de suceso", @@ -138,7 +154,11 @@ "ALTITUDE": "ALTITUD", "CONTACT": "CONTACTO", "CONTACTS · 250 KM": "CONTACTOS · 250 KM", - "RINGS {spacing} NM": "ANILLOS {spacing} MN", + "RINGS {spacing} NM": { + "one": "ANILLOS {spacing} MN", + "many": "ANILLOS {spacing} MN", + "other": "ANILLOS {spacing} MN" + }, "{count} CONTACTS": { "one": "{count} CONTACTO", "many": "{count} DE CONTACTOS", @@ -265,7 +285,11 @@ "ROUTE DATA UNAVAILABLE": "DATOS DE RUTA NO DISPONIBLES", "CONTACT NAVIGATION OFF": "NAVEGACIÓN DE CONTACTOS DESACTIVADA", "THE BRIDGE STAYS WITH THE SELECTED VESSEL": "EL PUENTE PERMANECE EN EL BUQUE SELECCIONADO", - "{range} NM": "{range} MN", + "{range} NM": { + "one": "{range} MN", + "many": "{range} MN", + "other": "{range} MN" + }, "AIS DESTINATION · CREW REPORTED": "DESTINO AIS · NOTIFICADO POR LA TRIPULACIÓN", "FROM": "DESDE", "TO": "HACIA", @@ -351,6 +375,7 @@ "Current style: {style} — click for next": "Estilo actual: {style} — haz clic para el siguiente", "TRACK ACQUIRED": "RASTREO ADQUIRIDO", "{label} · COURSE {heading}°": "{label} · RUMBO {heading}°", + "vessel|{label} · COURSE {heading}°": "{label} · RUMBO {heading}°", "{label} · HEADING {heading}°": "{label} · PROA {heading}°", "{label} · NO HEADING": "{label} · PROA N/D", "{label} · NADIR VIEW": "{label} · VISTA AL NADIR", @@ -545,6 +570,7 @@ "NEAREST": "MÁS CERCANA", "CCTV camera": "Cámara CCTV", "FOCUS": "ENFOCAR", + "site status|FOCUS": "ENFOQUE", "COVERAGE OFF": "COBERTURA DESACTIVADA", "AUTO HOP OFF": "SALTO AUTO: NO", "PROJECTION ON": "PROYECCIÓN ACTIVADA", @@ -900,6 +926,7 @@ "awaiting first AIS message…": "esperando el primer mensaje AIS…", "EST. DOWNRANGE": "DIST. ESTIMADA", "CONFIRMED": "CONFIRMADA", + "sightings filter|CONFIRMED": "CONFIRMADOS", "PAD / RTLS": "PLATAFORMA / RTLS", "MISSION CONTROL · FIRST LAUNCH": "CENTRO DE MANDO · PRIMER INICIO", "Choose your first view": "Elige tu primera vista", @@ -1664,7 +1691,7 @@ "Station unavailable after directory refresh": "Emisora no disponible tras actualizar el directorio", "Clear reading": "Borrar lectura", "Observed history": "Historial observado", - "Latest": "Último", + "news list|Latest": "Últimas", "S on another day replaces it · × unpins": "S en otro día lo reemplaza · × quita la fijación", "← → preview · S shows the focused day": "← → vista previa · S muestra el día enfocado", "Recent imagery": "Imágenes recientes", @@ -3467,7 +3494,11 @@ "Photo of {name}": "Foto de {name}", "Acartia": "Acartia", "CC BY 4.0": "CC BY 4.0", - "{count} sightings in view": "Avistamientos a la vista: {count}", + "{count} sightings in view": { + "one": "{count} avistamiento a la vista", + "many": "{count} de avistamientos a la vista", + "other": "{count} avistamientos a la vista" + }, "Close sighting": "Cerrar avistamiento", "Wildlife observed within 48 h (whales 7 d). Color and badge glyph show the taxon group. Sensitive species are shown only as 0.2° cells; Salish Sea marine mammal reports via Acartia are rounded to 0.01°. Not a census.": "Fauna y flora observadas en las últimas 48 h (cetáceos 7 días). El color y el símbolo de la insignia indican el grupo taxonómico. Las especies sensibles solo se muestran en celdas de 0,2°; los informes de mamíferos marinos de Acartia en el mar de Salish se redondean a 0,01°. No es un censo.", "Open {name} on iNaturalist": "Abrir {name} en iNaturalist", @@ -3478,20 +3509,31 @@ "{days}d": "{days} d", "All markers": "Todos los marcadores", "Show markers of every age": "Mostrar marcadores de cualquier antigüedad", - "Maximum event age: {days}d; undated markers are kept": "Antigüedad máxima: {days} d; se conservan los marcadores sin fecha", + "Maximum event age: {days}d; undated markers are kept": { + "one": "Antigüedad máxima: {days} día; se conservan los marcadores sin fecha", + "many": "Antigüedad máxima: {days} de días; se conservan los marcadores sin fecha", + "other": "Antigüedad máxima: {days} días; se conservan los marcadores sin fecha" + }, "event age filter|All": "Todos", "Event age": "Antigüedad", - "Event age: {days}d · undated kept": "Antigüedad: {days} d · se conservan los marcadores sin fecha", + "Event age: {days}d · undated kept": { + "one": "Antigüedad: {days} día · se conservan los marcadores sin fecha", + "many": "Antigüedad: {days} de días · se conservan los marcadores sin fecha", + "other": "Antigüedad: {days} días · se conservan los marcadores sin fecha" + }, "Close camera preview": "Cerrar vista previa de la cámara", "Refresh map still": "Actualizar imagen fija del mapa", "The map still uses a separate request and may show a different moment.": "La imagen del mapa usa una solicitud independiente y puede mostrar otro momento.", "Video plays from Québec 511, which sees your IP address.": "El vídeo se reproduce desde Québec 511, que ve tu dirección IP.", "Press OPEN to load the photo": "Pulsa ABRIR para cargar la foto", "Captured {month}": "Capturada en {month}", - "this spot": "este punto", "the view centre": "el centro de la vista", "{source} at {place}": "{source} en {place}", + "{source} at this spot": "{source} en este punto", + "{source} at the view centre": "{source} en el centro de la vista", "Street level at {place}": "A pie de calle en {place}", + "Street level at this spot": "A pie de calle en este punto", + "Street level at the view centre": "A pie de calle en el centro de la vista", "Switching map": "Cambiando de mapa", "Opening imagery": "Abriendo imágenes", "Street View is ready: press {open} to load it": "Street View está listo: pulsa {open} para cargarlo", @@ -3665,7 +3707,11 @@ "switch on a dataset to load features": "activa un conjunto de datos para cargar elementos", "Data Library at a glance": "La biblioteca de datos de un vistazo", "Map features": "Elementos del mapa", - "Showing {shown} of {total}": "Mostrando {shown} de {total}", + "Showing {shown} of {total}": { + "one": "Mostrando {shown} de {total}", + "many": "Mostrando {shown} de {total}", + "other": "Mostrando {shown} de {total}" + }, "Datasets": "Conjuntos de datos", "Themes": "Temas", "zoom in to load this layer": "acércate para cargar esta capa", diff --git a/src/i18n/locales/fr.json b/src/i18n/locales/fr.json index 70239d7418..df4bd75222 100644 --- a/src/i18n/locales/fr.json +++ b/src/i18n/locales/fr.json @@ -68,8 +68,16 @@ "{severity} only": "{severity} uniquement", "All categories": "Toutes les catégories", "Reading the news…": "Lecture des actualités…", - "News, last {hours} hours": "Actualités sur {hours} h", - "Last {hours} h": "Sur {hours} h", + "News, last {hours} hours": { + "one": "Actualités de la dernière {hours} heure", + "many": "Actualités des dernières {hours} d'heures", + "other": "Actualités des dernières {hours} heures" + }, + "Last {hours} h": { + "one": "Dernière {hours} h", + "many": "Dernières {hours} h", + "other": "Dernières {hours} h" + }, "Time window": "Période", "Conflicts": "Conflits", "Local": "Local", @@ -78,9 +86,17 @@ "Hotspots": "Foyers", "Severity": "Gravité", "Category": "Catégorie", - "Nothing reported near here in the last {hours} h": "Rien de signalé près d'ici en {hours} h", + "Nothing reported near here in the last {hours} h": { + "one": "Rien de signalé près d'ici cette dernière {hours} h", + "many": "Rien de signalé près d'ici ces dernières {hours} h", + "other": "Rien de signalé près d'ici ces dernières {hours} h" + }, "Latest news": "Dernières actualités", - "No news matches these filters in the last {hours} h": "Aucune actualité ne correspond à ces filtres sur {hours} h", + "No news matches these filters in the last {hours} h": { + "one": "Aucune actualité de la dernière {hours} h ne correspond à ces filtres", + "many": "Aucune actualité des dernières {hours} h ne correspond à ces filtres", + "other": "Aucune actualité des dernières {hours} h ne correspond à ces filtres" + }, "Load older news": "Charger des actualités plus anciennes", "How to read the map": "Comment lire la carte", "Colour: severity · icon: type of event": "Couleur : gravité · icône : type d'événement", @@ -584,6 +600,7 @@ "Previous — prior visited contact in the 250 km window": "Précédent — contact visité précédemment dans la fenêtre de 250 km", "PREVIOUS": "PRÉC.", "FOCUS": "CENTRER", + "site status|FOCUS": "CENTRÉ", "Next — nearest unvisited contact in the 250 km window": "Suivant — contact non visité le plus proche dans la fenêtre de 250 km", "NEXT": "SUIV.", "Named areas ({n})": "Zones nommées ({n})", @@ -1831,7 +1848,11 @@ "ROUTE DATA UNAVAILABLE": "DONNÉES DE ROUTE INDISPONIBLES", "CONTACT NAVIGATION OFF": "NAVIGATION DES CONTACTS DÉSACTIVÉE", "THE BRIDGE STAYS WITH THE SELECTED VESSEL": "LA PASSERELLE RESTE SUR LE NAVIRE SÉLECTIONNÉ", - "{range} NM": "{range} NM", + "{range} NM": { + "one": "{range} NM", + "many": "{range} NM", + "other": "{range} NM" + }, "AIS DESTINATION · CREW REPORTED": "DESTINATION AIS · DÉCLARÉE PAR L'ÉQUIPAGE", "DEST {bearing}": "DEST {bearing}", "Disable cockpit weather effects": "Désactiver les effets météo du cockpit", @@ -1879,6 +1900,7 @@ "Reclassify as TR-3B": "Reclasser en TR-3B", "TRACK ACQUIRED": "PISTE ACQUISE", "{label} · COURSE {heading}°": "{label} · ROUTE {heading}°", + "vessel|{label} · COURSE {heading}°": "{label} · ROUTE {heading}°", "{label} · HEADING {heading}°": "{label} · CAP {heading}°", "{label} · NO HEADING": "{label} · SANS CAP", "{label} · NADIR VIEW": "{label} · VUE AU NADIR", @@ -2148,7 +2170,7 @@ "Radio lifecycle is uncertain — use Enable or Disable to reconcile": "État de la Radio incertain — utilisez Activer ou Désactiver pour le rétablir", "Clear reading": "Effacer le relevé", "Observed history": "Historique des observations", - "Latest": "Dernière", + "news list|Latest": "Dernières", "Imagery on Esri · Google 3D returns when cleared": "Sur Esri · EFFACER rétablit Google 3D", "Point the camera at the ground to use the view": "Orientez la caméra vers le sol pour utiliser la vue", "That point cannot anchor a box": "Ce point ne peut pas ancrer une zone", @@ -2874,7 +2896,11 @@ "Contact cockpit summary": "Résumé cockpit du contact", "CONTACT": "CONTACT", "CONTACTS · 250 KM": "CONTACTS · 250 KM", - "RINGS {spacing} NM": "CERCLES {spacing} NM", + "RINGS {spacing} NM": { + "one": "CERCLES {spacing} NM", + "many": "CERCLES {spacing} NM", + "other": "CERCLES {spacing} NM" + }, "{count} CONTACTS": { "one": "{count} CONTACT", "many": "{count} DE CONTACTS", @@ -3201,6 +3227,7 @@ "Left panels": "Panneaux de gauche", "Right panels": "Panneaux de droite", "CONFIRMED": "CONFIRMÉE", + "sightings filter|CONFIRMED": "CONFIRMÉES", "PAD / RTLS": "PAS DE TIR / RTLS", "fire confidence filter|All": "Toutes", "fire confidence filter|Nominal+": "Nominale+", @@ -3467,7 +3494,11 @@ "Photo of {name}": "Photo : {name}", "Acartia": "Acartia", "CC BY 4.0": "CC BY 4.0", - "{count} sightings in view": "Observations dans la vue : {count}", + "{count} sightings in view": { + "one": "{count} observation dans la vue", + "many": "{count} d'observations dans la vue", + "other": "{count} observations dans la vue" + }, "Close sighting": "Fermer l'observation", "Wildlife observed within 48 h (whales 7 d). Color and badge glyph show the taxon group. Sensitive species are shown only as 0.2° cells; Salish Sea marine mammal reports via Acartia are rounded to 0.01°. Not a census.": "Faune observée au cours des dernières 48 h (cétacés 7 jours). La couleur et le pictogramme du badge indiquent le groupe taxonomique. Les espèces sensibles sont limitées à des cellules de 0,2° ; les signalements de mammifères marins en mer des Salish provenant d'Acartia sont arrondis à 0,01°. Pas un recensement.", "Open {name} on iNaturalist": "Ouvrir {name} sur iNaturalist", @@ -3478,20 +3509,31 @@ "{days}d": "{days} j", "All markers": "Tous les marqueurs", "Show markers of every age": "Afficher les marqueurs de tout âge", - "Maximum event age: {days}d; undated markers are kept": "Ancienneté maximale : {days} j ; marqueurs sans date conservés", + "Maximum event age: {days}d; undated markers are kept": { + "one": "Ancienneté maximale : {days} j ; marqueurs sans date conservés", + "many": "Ancienneté maximale : {days} j ; marqueurs sans date conservés", + "other": "Ancienneté maximale : {days} j ; marqueurs sans date conservés" + }, "event age filter|All": "Tous", "Event age": "Ancienneté", - "Event age: {days}d · undated kept": "Ancienneté : {days} j · marqueurs sans date conservés", + "Event age: {days}d · undated kept": { + "one": "Ancienneté : {days} j · marqueurs sans date conservés", + "many": "Ancienneté : {days} j · marqueurs sans date conservés", + "other": "Ancienneté : {days} j · marqueurs sans date conservés" + }, "Close camera preview": "Fermer l'aperçu de la caméra", "Refresh map still": "Actualiser l'image fixe sur la carte", "The map still uses a separate request and may show a different moment.": "L'image fixe de la carte utilise une requête distincte et peut montrer un autre moment.", "Video plays from Québec 511, which sees your IP address.": "La vidéo est lue depuis Québec 511, qui voit votre adresse IP.", "Press OPEN to load the photo": "Appuyez sur OUVRIR pour charger la photo", "Captured {month}": "Prise en {month}", - "this spot": "cet endroit", "the view centre": "le centre de la vue", "{source} at {place}": "{source} : {place}", + "{source} at this spot": "{source} à cet endroit", + "{source} at the view centre": "{source} au centre de la vue", "Street level at {place}": "Niveau rue : {place}", + "Street level at this spot": "Niveau rue à cet endroit", + "Street level at the view centre": "Niveau rue au centre de la vue", "Switching map": "Changement de carte", "Opening imagery": "Ouverture des images", "Street View is ready: press {open} to load it": "Street View est prêt : appuyez sur {open} pour le charger", @@ -3685,7 +3727,11 @@ "REMOVE ALL": "TOUT RETIRER", "Confirm: remove every added entry from Data Layers": "Confirmer : retirer du panneau Couches toutes les entrées ajoutées", "Remove every added entry from Data Layers": "Retirer du panneau Couches toutes les entrées ajoutées", - "Showing {shown} of {total}": "Affichées : {shown} sur {total}", + "Showing {shown} of {total}": { + "one": "{shown} sur {total} affichée", + "many": "{shown} sur {total} affichées", + "other": "{shown} sur {total} affichées" + }, "BROWSE DATA LIBRARY": "PARCOURIR LA BIBLIOTHÈQUE DE DONNÉES", "Atmosphere": "Atmosphère", "Day and night": "Jour et nuit", diff --git a/src/i18n/locales/he.json b/src/i18n/locales/he.json index 762569775c..63f34c0c57 100644 --- a/src/i18n/locales/he.json +++ b/src/i18n/locales/he.json @@ -478,6 +478,7 @@ "PREVIOUS": "הקודם", "Previous — prior visited contact in the 250 km window": "הקודם — מגע שכבר ביקרת בו בחלון של 250 ק\"מ", "FOCUS": "התמקד", + "site status|FOCUS": "מוקד", "NEXT": "הבא", "Next — nearest unvisited contact in the 250 km window": "הבא — המגע הקרוב ביותר שלא ביקרת בו בחלון של 250 ק\"מ", "Named areas ({n})": "אזורים בעלי שם ({n})", @@ -830,6 +831,7 @@ "ORBIT REPLAY · {mission}": "שחזור מסלול · {mission}", "PAUSED · {title}": "מושהה · {title}", "CONFIRMED": "מאושר", + "sightings filter|CONFIRMED": "מאושרות", "PAD / RTLS": "כן שיגור / RTLS", "UNSPECIFIED": "לא צוין", "{value} KM DOWNRANGE": "{value} ק\"מ לאורך המסלול", @@ -1267,7 +1269,11 @@ "Wildlife observed within 48 h (whales 7 d). Color and badge glyph show the taxon group. Sensitive species are shown only as 0.2° cells; Salish Sea marine mammal reports via Acartia are rounded to 0.01°. Not a census.": "חיות בר נצפו ב-48 השעות האחרונות (לווייתנים · 7 ימים). הצבע וגליף התג מציגים את קבוצת הטקסון. מינים רגישים מוצגים כתאי 0.2° בלבד; דיווחי יונקי הים של Salish Sea דרך Acartia מעוגלים ל-0.01°. אינו מפקד אוכלוסין.", "iNaturalist contributors · Acartia {count} (Salish Sea) · licences per record": "תורמי iNaturalist · Acartia {count} (Salish Sea) · רישיונות לכל רשומה", "iNaturalist contributors · licences per record": "תורמי iNaturalist · רישיונות לכל רשומה", - "{count} sightings in view": "{count} תצפיות בתצוגה", + "{count} sightings in view": { + "one": "{count} תצפית בתצוגה", + "two": "{count} תצפיות בתצוגה", + "other": "{count} תצפיות בתצוגה" + }, "Zoom in for local sightings": "התקרב לתצפיות מקומיות", "No recent sightings in view": "אין תצפיות אחרונות בתצוגה", "Acartia feed unavailable": "פיד Acartia אינו זמין", @@ -1736,6 +1742,7 @@ "SOURCE STATUS UNAVAILABLE": "מצב המקור אינו זמין", "TRACK ACQUIRED": "המעקב ננעל", "{label} · COURSE {heading}°": "{label} · מהלך {heading}°", + "vessel|{label} · COURSE {heading}°": "{label} · מהלך {heading}°", "Context could not restore every layer; try again": "ההקשר לא שיחזר את כל השכבות; נסה שוב", "No selected data layers": "אין שכבות נתונים נבחרות", "{count} data layers could not be cleared": { @@ -1993,7 +2000,7 @@ "READY": "מוכן", "Clear reading": "ניקוי הקריאה", "Observed history": "היסטוריה נצפית", - "Latest": "האחרונה", + "news list|Latest": "האחרונות", "Imagery on Esri · Google 3D returns when cleared": "צילומים ב-Esri · Google 3D חוזר כשמנקים", "Point the camera at the ground to use the view": "כוון את המצלמה אל הקרקע כדי להשתמש בתצוגה", "That point cannot anchor a box": "אין אפשרות לעגן תיבה באותה נקודה", @@ -3232,9 +3239,17 @@ "event age filter|All": "הכול", "{days}d": "{days} ימ׳", "Show markers of every age": "הצגת סמנים בכל גיל", - "Maximum event age: {days}d; undated markers are kept": "גיל אירוע מרבי: {days} ימ׳; סמנים ללא תאריך נשמרים", + "Maximum event age: {days}d; undated markers are kept": { + "one": "גיל אירוע מרבי: {days} יום; סמנים ללא תאריך נשמרים", + "two": "גיל אירוע מרבי: {days} ימים; סמנים ללא תאריך נשמרים", + "other": "גיל אירוע מרבי: {days} ימים; סמנים ללא תאריך נשמרים" + }, "All markers": "כל הסמנים", - "Event age: {days}d · undated kept": "גיל האירוע: {days} ימ׳ · ללא תאריך נשמרים", + "Event age: {days}d · undated kept": { + "one": "גיל האירוע: {days} יום · ללא תאריך נשמרים", + "two": "גיל האירוע: {days} ימים · ללא תאריך נשמרים", + "other": "גיל האירוע: {days} ימים · ללא תאריך נשמרים" + }, "30-DAY MISSION INDEX UNAVAILABLE": "רשימת המשימות ל-30 יום אינה זמינה", "STATIONS": "תחנות", "Crewed stations and the craft that visit them": "תחנות מאוישות והחלליות המבקרות בהן", @@ -3270,7 +3285,11 @@ "LIVE AIS": "AIS חי", "CONTACT NAVIGATION OFF": "ניווט המגעים כבוי", "THE BRIDGE STAYS WITH THE SELECTED VESSEL": "הגשר נשאר עם האונייה הנבחרת", - "{range} NM": "{range} NM", + "{range} NM": { + "one": "{range} NM", + "two": "{range} NM", + "other": "{range} NM" + }, "AIS DESTINATION · CREW REPORTED": "יעד AIS · דווח על ידי הצוות", "FWD": "קדימה", "AFT": "אחורה", @@ -3289,10 +3308,13 @@ "Video plays from Québec 511, which sees your IP address.": "הווידאו זורם מ-Québec 511, שרואה את כתובת ה-IP שלך.", "Press OPEN to load the photo": "לחץ על \"פתח\" כדי לטעון את התמונה", "Captured {month}": "צולם ב-{month}", - "this spot": "המקום הזה", "the view centre": "מרכז התצוגה", "{source} at {place}": "{source}: {place}", + "{source} at this spot": "{source} במקום הזה", + "{source} at the view centre": "{source} במרכז התצוגה", "Street level at {place}": "צילומי רחוב: {place}", + "Street level at this spot": "צילומי רחוב במקום הזה", + "Street level at the view centre": "צילומי רחוב במרכז התצוגה", "Switching map": "מחליף מפה", "Opening imagery": "פותח צילומים", "Street View is ready: press {open} to load it": "Street View מוכן: לחץ על \"{open}\" כדי לטעון אותו", @@ -3352,7 +3374,11 @@ "Zoom in (+)": "התקרבות (+)", "Zoom to the imaging sensor swath": "זום אל רצועת הסריקה של חיישן הצילום", "SENSOR": "חיישן", - "RINGS {spacing} NM": "טבעות {spacing} NM", + "RINGS {spacing} NM": { + "one": "טבעות {spacing} NM", + "two": "טבעות {spacing} NM", + "other": "טבעות {spacing} NM" + }, "{count} CONTACTS": { "one": "{count} מגע", "two": "{count} מגעים", @@ -3481,20 +3507,36 @@ "{severity} and above": "{severity} ומעלה", "{severity} only": "{severity} בלבד", "All categories": "כל הקטגוריות", - "Last {hours} h": "{hours} שע׳ אחורה", + "Last {hours} h": { + "one": "השעה האחרונה ({hours})", + "two": "{hours} שע׳ אחרונות", + "other": "{hours} שע׳ אחרונות" + }, "News from {area}": "חדשות מ-{area}", "Within {km} km of the view centre": "בטווח {km} ק\"מ ממרכז התצוגה", "Reading the news…": "קורא את החדשות…", - "News, last {hours} hours": "חדשות, {hours} שע׳ אחורה", + "News, last {hours} hours": { + "one": "חדשות, השעה האחרונה ({hours})", + "two": "חדשות, {hours} השעות האחרונות", + "other": "חדשות, {hours} השעות האחרונות" + }, "Time window": "חלון זמן", "News sections": "מדורי חדשות", "Hotspots": "מוקדים", "Severity": "חומרה", "Category": "קטגוריה", "Zoom in to see local news": "התקרב כדי לראות חדשות מקומיות", - "Nothing reported near here in the last {hours} h": "לא דווח דבר בסביבה בחלון של {hours} שע׳", + "Nothing reported near here in the last {hours} h": { + "one": "לא דווח דבר בסביבה בשעה האחרונה ({hours})", + "two": "לא דווח דבר בסביבה ב־{hours} השעות האחרונות", + "other": "לא דווח דבר בסביבה ב־{hours} השעות האחרונות" + }, "Latest news": "חדשות אחרונות", - "No news matches these filters in the last {hours} h": "אין חדשות התואמות למסננים אלה בחלון של {hours} שע׳", + "No news matches these filters in the last {hours} h": { + "one": "אין חדשות התואמות למסננים אלה בשעה האחרונה ({hours})", + "two": "אין חדשות התואמות למסננים אלה ב־{hours} השעות האחרונות", + "other": "אין חדשות התואמות למסננים אלה ב־{hours} השעות האחרונות" + }, "Load older news": "טעינת חדשות ישנות יותר", "How to read the map": "איך לקרוא את המפה", "Colour: severity · icon: type of event": "צבע: חומרה · סמל: סוג האירוע", @@ -3685,7 +3727,11 @@ "REMOVE ALL": "הסרת הכול", "Confirm: remove every added entry from Data Layers": "אישור: הסרת כל הפריטים שנוספו משכבות נתונים", "Remove every added entry from Data Layers": "הסרת כל הפריטים שנוספו משכבות נתונים", - "Showing {shown} of {total}": "מוצגים {shown} מתוך {total}", + "Showing {shown} of {total}": { + "one": "מוצג {shown} מתוך {total}", + "two": "מוצגים {shown} מתוך {total}", + "other": "מוצגים {shown} מתוך {total}" + }, "BROWSE DATA LIBRARY": "עיון בספריית הנתונים", "Atmosphere": "אטמוספרה", "Day and night": "יום ולילה", diff --git a/src/i18n/locales/it.json b/src/i18n/locales/it.json index 547d705a83..20bb94c30c 100644 --- a/src/i18n/locales/it.json +++ b/src/i18n/locales/it.json @@ -68,8 +68,16 @@ "{severity} only": "Solo {severity}", "All categories": "Tutte le categorie", "Reading the news…": "Lettura delle notizie…", - "News, last {hours} hours": "Notizie, periodo in ore: {hours}", - "Last {hours} h": "Periodo: {hours} h", + "News, last {hours} hours": { + "one": "Notizie dell'ultima {hours} ora", + "many": "Notizie delle ultime {hours} di ore", + "other": "Notizie delle ultime {hours} ore" + }, + "Last {hours} h": { + "one": "Ultima {hours} h", + "many": "Ultime {hours} h", + "other": "Ultime {hours} h" + }, "Time window": "Periodo", "Conflicts": "Conflitti", "Local": "Locale", @@ -78,9 +86,17 @@ "Hotspots": "Focolai", "Severity": "Gravità", "Category": "Categoria", - "Nothing reported near here in the last {hours} h": "Nessuna segnalazione qui vicino · periodo: {hours} h", + "Nothing reported near here in the last {hours} h": { + "one": "Nessuna segnalazione qui vicino nell'ultima {hours} h", + "many": "Nessuna segnalazione qui vicino nelle ultime {hours} h", + "other": "Nessuna segnalazione qui vicino nelle ultime {hours} h" + }, "Latest news": "Ultime notizie", - "No news matches these filters in the last {hours} h": "Nessuna notizia corrisponde a questi filtri · periodo: {hours} h", + "No news matches these filters in the last {hours} h": { + "one": "Nessuna notizia dell'ultima {hours} h corrisponde a questi filtri", + "many": "Nessuna notizia delle ultime {hours} h corrisponde a questi filtri", + "other": "Nessuna notizia delle ultime {hours} h corrisponde a questi filtri" + }, "Load older news": "Carica notizie precedenti", "How to read the map": "Come leggere la mappa", "Colour: severity · icon: type of event": "Colore: gravità · icona: tipo di evento", @@ -584,6 +600,7 @@ "Previous — prior visited contact in the 250 km window": "Precedente — contatto visitato in precedenza nella finestra di 250 km", "PREVIOUS": "PREC", "FOCUS": "FOCUS", + "site status|FOCUS": "PUNTAMENTO", "Next — nearest unvisited contact in the 250 km window": "Successivo — contatto non visitato più vicino nella finestra di 250 km", "NEXT": "SUCC", "Named areas ({n})": "Aree con nome ({n})", @@ -939,7 +956,7 @@ "ORBITAL VELOCITY": "VELOCITÀ ORBITALE", "SUB-SATELLITE POINT": "PUNTO SUBSATELLITARE", "NORTH UP": "NORD IN ALTO", - "CURRENTLY OVER": "ATTUALMENTE SOPRA", + "CURRENTLY OVER": "SORVOLO", "{division}, {country}": "{division}, {country}", "{region} · near {place}": "{region} · vicino a {place}", "NORAD {id}": "NORAD {id}", @@ -1831,7 +1848,11 @@ "ROUTE DATA UNAVAILABLE": "DATI ROTTA NON DISPONIBILI", "CONTACT NAVIGATION OFF": "NAVIGAZIONE CONTATTI DISATTIVATA", "THE BRIDGE STAYS WITH THE SELECTED VESSEL": "LA PLANCIA RESTA SULLA NAVE SELEZIONATA", - "{range} NM": "{range} MN", + "{range} NM": { + "one": "{range} MN", + "many": "{range} MN", + "other": "{range} MN" + }, "AIS DESTINATION · CREW REPORTED": "DESTINAZIONE AIS · DICHIARATA DALL'EQUIPAGGIO", "DEST {bearing}": "DEST {bearing}", "Disable cockpit weather effects": "Disattiva gli effetti meteo del cockpit", @@ -1879,6 +1900,7 @@ "Reclassify as TR-3B": "Riclassifica come TR-3B", "TRACK ACQUIRED": "TRACCIA ACQUISITA", "{label} · COURSE {heading}°": "{label} · ROTTA {heading}°", + "vessel|{label} · COURSE {heading}°": "{label} · ROTTA {heading}°", "{label} · HEADING {heading}°": "{label} · PRUA {heading}°", "{label} · NO HEADING": "{label} · PRUA N/D", "{label} · NADIR VIEW": "{label} · VISTA AL NADIR", @@ -2148,7 +2170,7 @@ "Radio lifecycle is uncertain — use Enable or Disable to reconcile": "Il ciclo di vita della Radio è incerto: usa Attiva o Disattiva per riconciliare", "Clear reading": "Cancella la lettura", "Observed history": "Storico osservato", - "Latest": "Più recente", + "news list|Latest": "Più recenti", "Imagery on Esri · Google 3D returns when cleared": "Immagini su Esri · Google 3D torna con CANCELLA", "Point the camera at the ground to use the view": "Punta la camera verso il suolo per usare la vista", "That point cannot anchor a box": "Quel punto non può ancorare un riquadro", @@ -2874,7 +2896,11 @@ "Contact cockpit summary": "Riepilogo contatto del cockpit", "CONTACT": "CONTATTO", "CONTACTS · 250 KM": "CONTATTI · 250 KM", - "RINGS {spacing} NM": "CERCHI {spacing} MN", + "RINGS {spacing} NM": { + "one": "CERCHI {spacing} MN", + "many": "CERCHI {spacing} MN", + "other": "CERCHI {spacing} MN" + }, "{count} CONTACTS": { "one": "{count} CONTATTO", "many": "{count} DI CONTATTI", @@ -3201,6 +3227,7 @@ "Left panels": "Pannelli a sinistra", "Right panels": "Pannelli a destra", "CONFIRMED": "CONFERMATA", + "sightings filter|CONFIRMED": "CONFERMATI", "PAD / RTLS": "RAMPA / RTLS", "fire confidence filter|All": "Tutti", "fire confidence filter|Nominal+": "Nominale+", @@ -3467,7 +3494,11 @@ "Photo of {name}": "Foto di {name}", "Acartia": "Acartia", "CC BY 4.0": "CC BY 4.0", - "{count} sightings in view": "Avvistamenti nella vista: {count}", + "{count} sightings in view": { + "one": "{count} avvistamento nella vista", + "many": "{count} di avvistamenti nella vista", + "other": "{count} avvistamenti nella vista" + }, "Close sighting": "Chiudi avvistamento", "Wildlife observed within 48 h (whales 7 d). Color and badge glyph show the taxon group. Sensitive species are shown only as 0.2° cells; Salish Sea marine mammal reports via Acartia are rounded to 0.01°. Not a census.": "Fauna osservata nelle ultime 48 h (cetacei 7 giorni). Colore e simbolo del contrassegno indicano il gruppo tassonomico. Le specie sensibili sono mostrate solo in celle di 0,2°; le segnalazioni di mammiferi marini di Acartia nel mar dei Salish sono arrotondate a 0,01°. Non è un censimento.", "Open {name} on iNaturalist": "Apri {name} su iNaturalist", @@ -3478,20 +3509,31 @@ "{days}d": "{days} g", "All markers": "Tutti i marcatori", "Show markers of every age": "Mostra i marcatori di qualsiasi età", - "Maximum event age: {days}d; undated markers are kept": "Età massima degli eventi: {days} g; marcatori senza data mantenuti", + "Maximum event age: {days}d; undated markers are kept": { + "one": "Età massima degli eventi: {days} giorno; marcatori senza data mantenuti", + "many": "Età massima degli eventi: {days} di giorni; marcatori senza data mantenuti", + "other": "Età massima degli eventi: {days} giorni; marcatori senza data mantenuti" + }, "event age filter|All": "Tutti", "Event age": "Età degli eventi", - "Event age: {days}d · undated kept": "Età degli eventi: {days} g · senza data mantenuti", + "Event age: {days}d · undated kept": { + "one": "Età degli eventi: {days} giorno · senza data mantenuti", + "many": "Età degli eventi: {days} di giorni · senza data mantenuti", + "other": "Età degli eventi: {days} giorni · senza data mantenuti" + }, "Close camera preview": "Chiudi anteprima della telecamera", "Refresh map still": "Aggiorna immagine fissa sulla mappa", "The map still uses a separate request and may show a different moment.": "L'immagine sulla mappa usa una richiesta separata e può mostrare un momento diverso.", "Video plays from Québec 511, which sees your IP address.": "Il video viene riprodotto da Québec 511, che vede il tuo indirizzo IP.", "Press OPEN to load the photo": "Premi APRI per caricare la foto", "Captured {month}": "Scattata: {month}", - "this spot": "questo punto", "the view centre": "il centro della vista", "{source} at {place}": "{source}: {place}", + "{source} at this spot": "{source} in questo punto", + "{source} at the view centre": "{source} al centro della vista", "Street level at {place}": "Vista stradale: {place}", + "Street level at this spot": "Vista stradale in questo punto", + "Street level at the view centre": "Vista stradale al centro della vista", "Switching map": "Cambio mappa", "Opening imagery": "Apertura delle immagini", "Street View is ready: press {open} to load it": "Street View è pronto: premi {open} per caricarlo", @@ -3685,7 +3727,11 @@ "REMOVE ALL": "RIMUOVI TUTTO", "Confirm: remove every added entry from Data Layers": "Conferma: rimuovi da Livelli dati tutte le voci aggiunte", "Remove every added entry from Data Layers": "Rimuovi da Livelli dati tutte le voci aggiunte", - "Showing {shown} of {total}": "Mostrati: {shown} su {total}", + "Showing {shown} of {total}": { + "one": "{shown} di {total} mostrata", + "many": "{shown} di {total} mostrate", + "other": "{shown} di {total} mostrate" + }, "BROWSE DATA LIBRARY": "ESPLORA LIBRERIA DATI", "Atmosphere": "Atmosfera", "Day and night": "Giorno e notte", diff --git a/src/i18n/locales/ja.json b/src/i18n/locales/ja.json index 7476f0d021..28f6828e5d 100644 --- a/src/i18n/locales/ja.json +++ b/src/i18n/locales/ja.json @@ -62,8 +62,12 @@ "{severity} only": "{severity}のみ", "All categories": "すべてのカテゴリ", "Reading the news…": "ニュースを読み込み中…", - "News, last {hours} hours": "直近{hours}時間のニュース", - "Last {hours} h": "直近{hours}時間", + "News, last {hours} hours": { + "other": "直近{hours}時間のニュース" + }, + "Last {hours} h": { + "other": "直近{hours}時間" + }, "Time window": "期間", "Conflicts": "紛争", "Local": "ローカル", @@ -72,9 +76,13 @@ "Hotspots": "ホットスポット", "Severity": "深刻度", "Category": "カテゴリ", - "Nothing reported near here in the last {hours} h": "直近{hours}時間、この付近の報道はありません", + "Nothing reported near here in the last {hours} h": { + "other": "直近{hours}時間、この付近の報道はありません" + }, "Latest news": "最新ニュース", - "No news matches these filters in the last {hours} h": "直近{hours}時間で条件に合うニュースはありません", + "No news matches these filters in the last {hours} h": { + "other": "直近{hours}時間で条件に合うニュースはありません" + }, "Load older news": "以前のニュースを読み込む", "How to read the map": "地図の見方", "Colour: severity · icon: type of event": "色:深刻度 · アイコン:出来事の種類", @@ -564,6 +572,7 @@ "Previous — prior visited contact in the 250 km window": "前へ:250 km圏内で直前に訪れたコンタクト", "PREVIOUS": "前へ", "FOCUS": "フォーカス", + "site status|FOCUS": "フォーカス", "Next — nearest unvisited contact in the 250 km window": "次へ:250 km圏内で最も近い未訪問のコンタクト", "NEXT": "次へ", "Named areas ({n})": "名前付きエリア({n})", @@ -1775,7 +1784,9 @@ "ROUTE DATA UNAVAILABLE": "経路データなし", "CONTACT NAVIGATION OFF": "コンタクトナビゲーション オフ", "THE BRIDGE STAYS WITH THE SELECTED VESSEL": "ブリッジは選択中の船舶に固定", - "{range} NM": "{range}海里", + "{range} NM": { + "other": "{range}海里" + }, "AIS DESTINATION · CREW REPORTED": "AIS目的地 · 乗組員入力", "DEST {bearing}": "目的地 {bearing}", "Disable cockpit weather effects": "コックピットの天候エフェクトを無効にする", @@ -1821,6 +1832,7 @@ "Reclassify as TR-3B": "TR-3Bに再分類", "TRACK ACQUIRED": "追跡開始", "{label} · COURSE {heading}°": "{label} · 対地針路 {heading}°", + "vessel|{label} · COURSE {heading}°": "{label} · 対地針路 {heading}°", "{label} · HEADING {heading}°": "{label} · 船首方位 {heading}°", "{label} · NO HEADING": "{label} · 船首方位なし", "{label} · NADIR VIEW": "{label} · 直下視", @@ -2074,7 +2086,7 @@ "Radio lifecycle is uncertain — use Enable or Disable to reconcile": "ラジオのライフサイクルが不明確です。有効化または無効化で再調整してください", "Clear reading": "読み取り値を消去", "Observed history": "観測履歴", - "Latest": "最新", + "news list|Latest": "最新", "Imagery on Esri · Google 3D returns when cleared": "画像はEsri上に表示 · 消去するとGoogle 3Dに戻ります", "Point the camera at the ground to use the view": "このビューを使うにはカメラを地面に向けてください", "That point cannot anchor a box": "その地点は範囲の基点にできません", @@ -2724,7 +2736,9 @@ "Contact cockpit summary": "コンタクトのコックピット概要", "CONTACT": "コンタクト", "CONTACTS · 250 KM": "コンタクト · 250 km", - "RINGS {spacing} NM": "距離環 {spacing}海里", + "RINGS {spacing} NM": { + "other": "距離環 {spacing}海里" + }, "{count} CONTACTS": { "other": "コンタクト {count}件" }, @@ -3051,6 +3065,7 @@ "Left panels": "左パネル", "Right panels": "右パネル", "CONFIRMED": "確認済み", + "sightings filter|CONFIRMED": "確認済み", "PAD / RTLS": "射場 / RTLS", "fire confidence filter|All": "すべて", "fire confidence filter|Nominal+": "中以上", @@ -3305,7 +3320,9 @@ "Photo of {name}": "{name}の写真", "Acartia": "Acartia", "CC BY 4.0": "CC BY 4.0", - "{count} sightings in view": "表示範囲に{count}件の目撃情報", + "{count} sightings in view": { + "other": "表示範囲に{count}件の目撃情報" + }, "Close sighting": "目撃情報を閉じる", "Wildlife observed within 48 h (whales 7 d). Color and badge glyph show the taxon group. Sensitive species are shown only as 0.2° cells; Salish Sea marine mammal reports via Acartia are rounded to 0.01°. Not a census.": "過去48時間以内に観察された野生生物(クジラ類は7日間)。色とバッジのアイコンは分類群を表します。保護が必要な種は0.2°のセルとしてのみ表示し、セイリッシュ海のAcartiaによる海生哺乳類の目撃情報は0.01°に丸めます。個体数調査ではありません。", "Open {name} on iNaturalist": "iNaturalistで{name}を開く", @@ -3316,20 +3333,27 @@ "{days}d": "{days}日", "All markers": "すべてのマーカー", "Show markers of every age": "日付にかかわらずすべてのマーカーを表示", - "Maximum event age: {days}d; undated markers are kept": "イベントの最大経過日数:{days}日。日付のないマーカーは保持", + "Maximum event age: {days}d; undated markers are kept": { + "other": "イベントの最大経過日数:{days}日。日付のないマーカーは保持" + }, "event age filter|All": "すべて", "Event age": "経過日数", - "Event age: {days}d · undated kept": "経過日数:{days}日以内 · 日付なしは保持", + "Event age: {days}d · undated kept": { + "other": "経過日数:{days}日以内 · 日付なしは保持" + }, "Close camera preview": "カメラのプレビューを閉じる", "Refresh map still": "地図上の静止画を更新", "The map still uses a separate request and may show a different moment.": "地図上の静止画は別のリクエストで取得されるため、異なる時点を表示する場合があります。", "Video plays from Québec 511, which sees your IP address.": "動画はQuébec 511から再生され、お使いのIPアドレスはQuébec 511側から見えます。", "Press OPEN to load the photo": "[開く]を押して写真を読み込む", "Captured {month}": "{month}撮影", - "this spot": "この地点", "the view centre": "表示中心", "{source} at {place}": "{place}の{source}", + "{source} at this spot": "この地点の{source}", + "{source} at the view centre": "表示中心の{source}", "Street level at {place}": "{place}のストリートレベル", + "Street level at this spot": "この地点のストリートレベル", + "Street level at the view centre": "表示中心のストリートレベル", "Switching map": "地図を切り替え中", "Opening imagery": "画像を開いています", "Street View is ready: press {open} to load it": "ストリートビューの準備ができました:[{open}]を押して読み込んでください", @@ -3511,7 +3535,9 @@ "REMOVE ALL": "すべて削除", "Confirm: remove every added entry from Data Layers": "確認:追加したすべての項目をデータレイヤーから削除", "Remove every added entry from Data Layers": "追加したすべての項目をデータレイヤーから削除", - "Showing {shown} of {total}": "{total}件中{shown}件を表示", + "Showing {shown} of {total}": { + "other": "{total}件中{shown}件を表示" + }, "BROWSE DATA LIBRARY": "データライブラリを見る", "Atmosphere": "大気", "Day and night": "昼と夜", diff --git a/src/i18n/locales/pt.json b/src/i18n/locales/pt.json index e7332e6a8c..ea88f139f9 100644 --- a/src/i18n/locales/pt.json +++ b/src/i18n/locales/pt.json @@ -68,8 +68,16 @@ "{severity} only": "Apenas {severity}", "All categories": "Todas as categorias", "Reading the news…": "Lendo as notícias…", - "News, last {hours} hours": "Notícias de até {hours} h atrás", - "Last {hours} h": "Até {hours} h atrás", + "News, last {hours} hours": { + "one": "Notícias da última {hours} hora", + "many": "Notícias das últimas {hours} de horas", + "other": "Notícias das últimas {hours} horas" + }, + "Last {hours} h": { + "one": "Última {hours} h", + "many": "Últimas {hours} h", + "other": "Últimas {hours} h" + }, "Time window": "Período", "Conflicts": "Conflitos", "Local": "Local", @@ -78,9 +86,17 @@ "Hotspots": "Focos", "Severity": "Gravidade", "Category": "Categoria", - "Nothing reported near here in the last {hours} h": "Nada noticiado aqui perto desde {hours} h atrás", + "Nothing reported near here in the last {hours} h": { + "one": "Nada noticiado aqui perto na última {hours} h", + "many": "Nada noticiado aqui perto nas últimas {hours} h", + "other": "Nada noticiado aqui perto nas últimas {hours} h" + }, "Latest news": "Últimas notícias", - "No news matches these filters in the last {hours} h": "Nenhuma notícia de até {hours} h atrás corresponde a estes filtros", + "No news matches these filters in the last {hours} h": { + "one": "Nenhuma notícia da última {hours} h corresponde a estes filtros", + "many": "Nenhuma notícia das últimas {hours} h corresponde a estes filtros", + "other": "Nenhuma notícia das últimas {hours} h corresponde a estes filtros" + }, "Load older news": "Carregar notícias anteriores", "How to read the map": "Como ler o mapa", "Colour: severity · icon: type of event": "Cor: gravidade · ícone: tipo de evento", @@ -584,6 +600,7 @@ "Previous — prior visited contact in the 250 km window": "Anterior — contato visitado anteriormente na janela de 250 km", "PREVIOUS": "ANT.", "FOCUS": "FOCAR", + "site status|FOCUS": "FOCO", "Next — nearest unvisited contact in the 250 km window": "Próximo — contato não visitado mais próximo na janela de 250 km", "NEXT": "PRÓX.", "Named areas ({n})": "Áreas com nome ({n})", @@ -937,7 +954,7 @@ "ORBITAL VELOCITY": "VELOCIDADE ORBITAL", "SUB-SATELLITE POINT": "PONTO SUBSATÉLITE", "NORTH UP": "NORTE PARA CIMA", - "CURRENTLY OVER": "SOBREVOANDO AGORA", + "CURRENTLY OVER": "SOBREVOO", "{division}, {country}": "{division}, {country}", "{region} · near {place}": "{region} · perto de {place}", "NORAD {id}": "NORAD {id}", @@ -1831,7 +1848,11 @@ "ROUTE DATA UNAVAILABLE": "DADOS DE ROTA INDISPONÍVEIS", "CONTACT NAVIGATION OFF": "NAVEGAÇÃO DE CONTATOS DESLIGADA", "THE BRIDGE STAYS WITH THE SELECTED VESSEL": "O PASSADIÇO PERMANECE NA EMBARCAÇÃO SELECIONADA", - "{range} NM": "{range} MN", + "{range} NM": { + "one": "{range} MN", + "many": "{range} MN", + "other": "{range} MN" + }, "AIS DESTINATION · CREW REPORTED": "DESTINO AIS · INFORMADO PELA TRIPULAÇÃO", "DEST {bearing}": "DEST {bearing}", "Disable cockpit weather effects": "Desativar efeitos de clima na cabine", @@ -1878,7 +1899,8 @@ "Restore real aircraft": "Restaurar a aeronave real", "Reclassify as TR-3B": "Reclassificar como TR-3B", "TRACK ACQUIRED": "RASTRO ADQUIRIDO", - "{label} · COURSE {heading}°": "{label} · RUMO {heading}°", + "{label} · COURSE {heading}°": "{label} · CURSO {heading}°", + "vessel|{label} · COURSE {heading}°": "{label} · RUMO {heading}°", "{label} · HEADING {heading}°": "{label} · PROA {heading}°", "{label} · NO HEADING": "{label} · SEM PROA", "{label} · NADIR VIEW": "{label} · VISTA AO NADIR", @@ -2148,7 +2170,7 @@ "Radio lifecycle is uncertain — use Enable or Disable to reconcile": "O ciclo de vida do rádio é incerto — use Ativar ou Desativar para reconciliar", "Clear reading": "Limpar leitura", "Observed history": "Histórico observado", - "Latest": "Mais recente", + "news list|Latest": "Mais recentes", "Imagery on Esri · Google 3D returns when cleared": "Imagens sobre o Esri · LIMPAR restaura o Google 3D", "Point the camera at the ground to use the view": "Aponte a câmera para o chão para usar a vista", "That point cannot anchor a box": "Esse ponto não pode ancorar uma área", @@ -2876,7 +2898,11 @@ "Contact cockpit summary": "Resumo do contato na cabine", "CONTACT": "CONTATO", "CONTACTS · 250 KM": "CONTATOS · 250 KM", - "RINGS {spacing} NM": "ANÉIS {spacing} MN", + "RINGS {spacing} NM": { + "one": "ANÉIS {spacing} MN", + "many": "ANÉIS {spacing} MN", + "other": "ANÉIS {spacing} MN" + }, "{count} CONTACTS": { "one": "{count} CONTATO", "many": "{count} DE CONTATOS", @@ -3201,6 +3227,7 @@ "Left panels": "Painéis à esquerda", "Right panels": "Painéis à direita", "CONFIRMED": "CONFIRMADA", + "sightings filter|CONFIRMED": "CONFIRMADOS", "PAD / RTLS": "PLATAFORMA / RTLS", "fire confidence filter|All": "Todas", "fire confidence filter|Nominal+": "Nominal+", @@ -3467,7 +3494,11 @@ "Photo of {name}": "Foto de {name}", "Acartia": "Acartia", "CC BY 4.0": "CC BY 4.0", - "{count} sightings in view": "Avistamentos na vista: {count}", + "{count} sightings in view": { + "one": "{count} avistamento na vista", + "many": "{count} de avistamentos na vista", + "other": "{count} avistamentos na vista" + }, "Close sighting": "Fechar avistamento", "Wildlife observed within 48 h (whales 7 d). Color and badge glyph show the taxon group. Sensitive species are shown only as 0.2° cells; Salish Sea marine mammal reports via Acartia are rounded to 0.01°. Not a census.": "Vida selvagem observada nas últimas 48 h (cetáceos 7 dias). A cor e o símbolo do emblema indicam o grupo taxonômico. Espécies sensíveis aparecem apenas em células de 0,2°; os relatos de mamíferos marinhos do mar de Salish via Acartia são arredondados para 0,01°. Não é um censo.", "Open {name} on iNaturalist": "Abrir {name} no iNaturalist", @@ -3478,20 +3509,31 @@ "{days}d": "{days} d", "All markers": "Todos os marcadores", "Show markers of every age": "Mostrar marcadores de qualquer idade", - "Maximum event age: {days}d; undated markers are kept": "Idade máxima do evento: {days} d; marcadores sem data são mantidos", + "Maximum event age: {days}d; undated markers are kept": { + "one": "Idade máxima do evento: {days} dia; marcadores sem data são mantidos", + "many": "Idade máxima do evento: {days} de dias; marcadores sem data são mantidos", + "other": "Idade máxima do evento: {days} dias; marcadores sem data são mantidos" + }, "event age filter|All": "Todos", "Event age": "Idade do evento", - "Event age: {days}d · undated kept": "Idade do evento: {days} d · sem data mantidos", + "Event age: {days}d · undated kept": { + "one": "Idade do evento: {days} dia · sem data mantidos", + "many": "Idade do evento: {days} de dias · sem data mantidos", + "other": "Idade do evento: {days} dias · sem data mantidos" + }, "Close camera preview": "Fechar prévia da câmera", "Refresh map still": "Atualizar imagem fixa no mapa", "The map still uses a separate request and may show a different moment.": "A imagem no mapa usa uma solicitação separada e pode mostrar outro momento.", "Video plays from Québec 511, which sees your IP address.": "O vídeo é reproduzido a partir do Québec 511, que vê o seu endereço IP.", "Press OPEN to load the photo": "Clique em ABRIR para carregar a foto", "Captured {month}": "Capturada em {month}", - "this spot": "este ponto", "the view centre": "o centro da vista", "{source} at {place}": "{source}: {place}", + "{source} at this spot": "{source} neste ponto", + "{source} at the view centre": "{source} no centro da vista", "Street level at {place}": "Nível da rua: {place}", + "Street level at this spot": "Nível da rua neste ponto", + "Street level at the view centre": "Nível da rua no centro da vista", "Switching map": "Mudando de mapa", "Opening imagery": "Abrindo imagens", "Street View is ready: press {open} to load it": "O Street View está pronto: clique em {open} para carregar", @@ -3685,7 +3727,11 @@ "REMOVE ALL": "REMOVER TUDO", "Confirm: remove every added entry from Data Layers": "Confirmar: remover de \"Camadas de dados\" todas as entradas adicionadas", "Remove every added entry from Data Layers": "Remover de \"Camadas de dados\" todas as entradas adicionadas", - "Showing {shown} of {total}": "Mostrando {shown} de {total}", + "Showing {shown} of {total}": { + "one": "Mostrando {shown} de {total}", + "many": "Mostrando {shown} de {total}", + "other": "Mostrando {shown} de {total}" + }, "BROWSE DATA LIBRARY": "EXPLORAR BIBLIOTECA DE DADOS", "Atmosphere": "Atmosfera", "Day and night": "Dia e noite", diff --git a/src/i18n/locales/ru.json b/src/i18n/locales/ru.json index acf8697aff..ede804a5d6 100644 --- a/src/i18n/locales/ru.json +++ b/src/i18n/locales/ru.json @@ -71,8 +71,18 @@ "{severity} only": "Только: {severity}", "All categories": "Все категории", "Reading the news…": "Читаем новости…", - "News, last {hours} hours": "Новости за последние {hours} ч", - "Last {hours} h": "За {hours} ч", + "News, last {hours} hours": { + "one": "Новости за последний {hours} час", + "few": "Новости за последние {hours} часа", + "many": "Новости за последние {hours} часов", + "other": "Новости за последние {hours} часа" + }, + "Last {hours} h": { + "one": "За {hours} ч", + "few": "За {hours} ч", + "many": "За {hours} ч", + "other": "За {hours} ч" + }, "Time window": "Период", "Conflicts": "Конфликты", "Local": "Местные", @@ -81,9 +91,19 @@ "Hotspots": "Горячие точки", "Severity": "Тяжесть", "Category": "Категория", - "Nothing reported near here in the last {hours} h": "За последние {hours} ч поблизости ничего не сообщалось", + "Nothing reported near here in the last {hours} h": { + "one": "За последний {hours} ч поблизости ничего не сообщалось", + "few": "За последние {hours} ч поблизости ничего не сообщалось", + "many": "За последние {hours} ч поблизости ничего не сообщалось", + "other": "За последние {hours} ч поблизости ничего не сообщалось" + }, "Latest news": "Последние новости", - "No news matches these filters in the last {hours} h": "За последние {hours} ч нет новостей по этим фильтрам", + "No news matches these filters in the last {hours} h": { + "one": "За последний {hours} ч нет новостей по этим фильтрам", + "few": "За последние {hours} ч нет новостей по этим фильтрам", + "many": "За последние {hours} ч нет новостей по этим фильтрам", + "other": "За последние {hours} ч нет новостей по этим фильтрам" + }, "Load older news": "Загрузить более ранние новости", "How to read the map": "Как читать карту", "Colour: severity · icon: type of event": "Цвет: тяжесть · значок: тип события", @@ -178,6 +198,7 @@ "Previous — prior visited contact in the 250 km window": "Назад — предыдущий посещённый контакт в радиусе 250 км", "PREVIOUS": "ПРЕД.", "FOCUS": "ФОКУС", + "site status|FOCUS": "ФОКУС", "Next — nearest unvisited contact in the 250 km window": "Далее — ближайший непосещённый контакт в радиусе 250 км", "NEXT": "СЛЕД.", "Open-source mapped/observed context. Missing broadcasts, unloaded map areas, or unmapped sites are not evidence of absence.": "Контекст из открытых источников. Отсутствие трансляций, незагруженные области карты или неотмеченные объекты — не доказательство отсутствия.", @@ -345,6 +366,7 @@ "Cancel replay": "Отменить повтор", "EST. DOWNRANGE": "РАСЧЁТ ПО ТРАССЕ", "CONFIRMED": "ПОДТВЕРЖДЕНО", + "sightings filter|CONFIRMED": "ПОДТВЕРЖДЕНО", "PAD / RTLS": "ПЛОЩАДКА / RTLS", "PLANNED · ": "ПЛАН · ", "SUPPLIED TRAJECTORY POINTS": "ПРЕДОСТАВЛЕННЫЕ ТОЧКИ ТРАЕКТОРИИ", @@ -546,7 +568,12 @@ "ROUTE DATA UNAVAILABLE": "ДАННЫЕ МАРШРУТА НЕДОСТУПНЫ", "CONTACT NAVIGATION OFF": "НАВИГАЦИЯ ПО КОНТАКТАМ ВЫКЛЮЧЕНА", "THE BRIDGE STAYS WITH THE SELECTED VESSEL": "МОСТИК ОСТАЁТСЯ НА ВЫБРАННОМ СУДНЕ", - "{range} NM": "{range} МОР. МИЛ.", + "{range} NM": { + "one": "{range} МОР. МИЛЯ", + "few": "{range} МОР. МИЛИ", + "many": "{range} МОР. МИЛЬ", + "other": "{range} МОР. МИЛИ" + }, "AIS DESTINATION · CREW REPORTED": "ПУНКТ НАЗНАЧЕНИЯ AIS · УКАЗАН ЭКИПАЖЕМ", "DEST {bearing}": "НАЗН. {bearing}", "Disable cockpit weather effects": "Выключить погодные эффекты кабины", @@ -592,6 +619,7 @@ "Select flight {title}": "Выбрать рейс {title}", "TRACK ACQUIRED": "ЦЕЛЬ ЗАХВАЧЕНА", "{label} · COURSE {heading}°": "{label} · ПУТЕВОЙ УГОЛ {heading}°", + "vessel|{label} · COURSE {heading}°": "{label} · ПУТЕВОЙ УГОЛ {heading}°", "{label} · HEADING {heading}°": "{label} · КУРС {heading}°", "{label} · NO HEADING": "{label} · НЕТ КУРСА", "{label} · NADIR VIEW": "{label} · ВИД В НАДИР", @@ -843,7 +871,12 @@ "EXIT BRIDGE": "ВЫЙТИ С МОСТИКА", "EXIT ORBIT": "ВЫЙТИ С ОРБИТЫ", "CONTACTS · 250 KM": "КОНТАКТЫ · 250 КМ", - "RINGS {spacing} NM": "КОЛЬЦА {spacing} МОР. МИЛ.", + "RINGS {spacing} NM": { + "one": "КОЛЬЦА {spacing} МОР. МИЛЯ", + "few": "КОЛЬЦА {spacing} МОР. МИЛИ", + "many": "КОЛЬЦА {spacing} МОР. МИЛЬ", + "other": "КОЛЬЦА {spacing} МОР. МИЛИ" + }, "{count} CONTACTS": { "one": "{count} КОНТАКТ", "few": "{count} КОНТАКТА", @@ -1694,7 +1727,7 @@ "Station unavailable after directory refresh": "Станция недоступна после обновления каталога", "Clear reading": "Очистить показания", "Observed history": "История наблюдений", - "Latest": "Последние", + "news list|Latest": "Последние", "S on another day replaces it · × unpins": "S в другой день заменяет его · × открепляет", "← → preview · S shows the focused day": "← → просмотр · S показывает выбранный день", "Recent imagery": "Свежие снимки", @@ -3548,7 +3581,12 @@ "Photo of {name}": "Фото: {name}", "Acartia": "Acartia", "CC BY 4.0": "CC BY 4.0", - "{count} sightings in view": "Наблюдений в кадре: {count}", + "{count} sightings in view": { + "one": "{count} наблюдение в кадре", + "few": "{count} наблюдения в кадре", + "many": "{count} наблюдений в кадре", + "other": "{count} наблюдения в кадре" + }, "Close sighting": "Закрыть наблюдение", "Wildlife observed within 48 h (whales 7 d). Color and badge glyph show the taxon group. Sensitive species are shown only as 0.2° cells; Salish Sea marine mammal reports via Acartia are rounded to 0.01°. Not a census.": "Наблюдения живой природы за 48 ч (китообразные — 7 дней). Цвет и символ значка обозначают таксономическую группу. Уязвимые виды показаны только ячейками 0,2°; сообщения Acartia о морских млекопитающих моря Селиш округлены до 0,01°. Это не учёт численности.", "Open {name} on iNaturalist": "Открыть {name} в iNaturalist", @@ -3559,20 +3597,33 @@ "{days}d": "{days} дн.", "All markers": "Все метки", "Show markers of every age": "Показать метки любого возраста", - "Maximum event age: {days}d; undated markers are kept": "Максимальный возраст события: {days} дн.; метки без даты остаются", + "Maximum event age: {days}d; undated markers are kept": { + "one": "Максимальный возраст события: {days} дн.; метки без даты остаются", + "few": "Максимальный возраст события: {days} дн.; метки без даты остаются", + "many": "Максимальный возраст события: {days} дн.; метки без даты остаются", + "other": "Максимальный возраст события: {days} дн.; метки без даты остаются" + }, "event age filter|All": "Все", "Event age": "Возраст события", - "Event age: {days}d · undated kept": "Возраст события: {days} дн. · метки без даты остаются", + "Event age: {days}d · undated kept": { + "one": "Возраст события: {days} дн. · метки без даты остаются", + "few": "Возраст события: {days} дн. · метки без даты остаются", + "many": "Возраст события: {days} дн. · метки без даты остаются", + "other": "Возраст события: {days} дн. · метки без даты остаются" + }, "Close camera preview": "Закрыть просмотр камеры", "Refresh map still": "Обновить кадр на карте", "The map still uses a separate request and may show a different moment.": "Кадр на карте запрашивается отдельно и может показывать другой момент.", "Video plays from Québec 511, which sees your IP address.": "Видео воспроизводится с Québec 511, который видит ваш IP-адрес.", "Press OPEN to load the photo": "Нажмите ОТКРЫТЬ, чтобы загрузить снимок", "Captured {month}": "Снято: {month}", - "this spot": "эта точка", "the view centre": "центр вида", "{source} at {place}": "{source}: {place}", + "{source} at this spot": "{source} в этой точке", + "{source} at the view centre": "{source} в центре вида", "Street level at {place}": "Уличные снимки: {place}", + "Street level at this spot": "Уличные снимки в этой точке", + "Street level at the view centre": "Уличные снимки в центре вида", "Switching map": "Смена карты", "Opening imagery": "Открытие снимков", "Street View is ready: press {open} to load it": "Просмотр улиц готов: нажмите {open}, чтобы загрузить", @@ -3752,7 +3803,12 @@ "switch on a dataset to load features": "включите набор данных, чтобы загрузить объекты", "Data Library at a glance": "Библиотека данных вкратце", "Map features": "Объекты на карте", - "Showing {shown} of {total}": "Показано {shown} из {total}", + "Showing {shown} of {total}": { + "one": "Показано {shown} из {total}", + "few": "Показано {shown} из {total}", + "many": "Показано {shown} из {total}", + "other": "Показано {shown} из {total}" + }, "Datasets": "Наборы данных", "Themes": "Темы", "zoom in to load this layer": "приблизьте, чтобы загрузить этот слой", diff --git a/src/i18n/locales/sv.json b/src/i18n/locales/sv.json index 82f1ae30cb..c9a4c32849 100644 --- a/src/i18n/locales/sv.json +++ b/src/i18n/locales/sv.json @@ -67,18 +67,30 @@ "{severity} and above": "{severity} och uppåt", "{severity} only": "Endast ”{severity}”", "All categories": "Alla kategorier", - "Last {hours} h": "Senaste {hours} h", + "Last {hours} h": { + "one": "Senaste {hours} h", + "other": "Senaste {hours} h" + }, "Reading the news…": "Läser in nyheterna …", - "News, last {hours} hours": "Nyheter, senaste {hours} h", + "News, last {hours} hours": { + "one": "Nyheter, senaste {hours} h", + "other": "Nyheter, senaste {hours} h" + }, "Time window": "Tidsfönster", "News sections": "Nyhetssektioner", "Hotspots": "Oroshärdar", "Severity": "Allvarlighetsgrad", "Category": "Kategori", "Zoom in to see local news": "Zooma in för att se lokala nyheter", - "Nothing reported near here in the last {hours} h": "Inget rapporterat i närheten senaste {hours} h", + "Nothing reported near here in the last {hours} h": { + "one": "Inget rapporterat i närheten senaste {hours} h", + "other": "Inget rapporterat i närheten senaste {hours} h" + }, "Latest news": "Senaste nyheterna", - "No news matches these filters in the last {hours} h": "Inga nyheter matchar filtren senaste {hours} h", + "No news matches these filters in the last {hours} h": { + "one": "Inga nyheter matchar filtren senaste {hours} h", + "other": "Inga nyheter matchar filtren senaste {hours} h" + }, "Load older news": "Ladda äldre nyheter", "How to read the map": "Så läses kartan", "Colour: severity · icon: type of event": "Färg: allvarlighetsgrad · ikon: typ av händelse", @@ -197,6 +209,7 @@ "Previous — prior visited contact in the 250 km window": "Förra – senast besökta kontakt inom 250 km", "PREVIOUS": "FÖRRA", "FOCUS": "FOKUS", + "site status|FOCUS": "FOKUS", "Next — nearest unvisited contact in the 250 km window": "Nästa – närmaste obesökta kontakt inom 250 km", "NEXT": "NÄSTA", "Open-source mapped/observed context. Missing broadcasts, unloaded map areas, or unmapped sites are not evidence of absence.": "Kartlagd/observerad kontext från öppna källor. Uteblivna sändningar, kartområden som inte har laddats eller platser som inte är kartlagda bevisar inte att något saknas.", @@ -566,6 +579,7 @@ "Reclassify as TR-3B": "Klassa om som TR-3B", "TRACK ACQUIRED": "SPÅR LÅST", "{label} · COURSE {heading}°": "{label} · FÄRDRIKTNING {heading}°", + "vessel|{label} · COURSE {heading}°": "{label} · FÄRDRIKTNING {heading}°", "Context could not restore every layer; try again": "Läget ”Kontext” kunde inte återställa alla lager – försök igen", "No selected data layers": "Inga valda datalager", "{count} data layers could not be cleared": { @@ -2323,7 +2337,7 @@ "RESUME": "FORTSÄTT", "Clear reading": "Rensa avläsningen", "Observed history": "Observerad historik", - "Latest": "Senaste", + "news list|Latest": "Senaste", "Imagery on Esri · Google 3D returns when cleared": "Bilder på Esri · Google 3D återkommer när de rensas", "Point the camera at the ground to use the view": "Rikta kameran mot marken för att använda vyn", "That point cannot anchor a box": "Den punkten kan inte förankra ett område", @@ -3043,6 +3057,7 @@ "Left panels": "Vänstra paneler", "Right panels": "Högra paneler", "CONFIRMED": "BEKRÄFTAD", + "sightings filter|CONFIRMED": "BEKRÄFTADE", "PAD / RTLS": "RAMP / RTLS", "fire confidence filter|All": "Alla", "fire confidence filter|Nominal+": "Normal+", @@ -3303,7 +3318,10 @@ "Photo of {name}": "Foto av {name}", "Acartia": "Acartia", "CC BY 4.0": "CC BY 4.0", - "{count} sightings in view": "Observationer i vyn: {count}", + "{count} sightings in view": { + "one": "{count} observation i vyn", + "other": "{count} observationer i vyn" + }, "Close sighting": "Stäng observationen", "Wildlife observed within 48 h (whales 7 d). Color and badge glyph show the taxon group. Sensitive species are shown only as 0.2° cells; Salish Sea marine mammal reports via Acartia are rounded to 0.01°. Not a census.": "Djur, växter och svampar observerade de senaste 48 h (valar 7 d). Färg och symbol visar artgruppen. Känsliga arter visas bara som rutor på 0,2°; rapporter om marina däggdjur i Salish Sea via Acartia avrundas till 0,01°. Ingen inventering.", "Open {name} on iNaturalist": "Öppna {name} på iNaturalist", @@ -3314,20 +3332,29 @@ "{days}d": "{days} d", "All markers": "Alla markörer", "Show markers of every age": "Visa markörer oavsett ålder", - "Maximum event age: {days}d; undated markers are kept": "Högsta ålder på händelser: {days} d; markörer utan datum behålls", + "Maximum event age: {days}d; undated markers are kept": { + "one": "Högsta ålder på händelser: {days} d; markörer utan datum behålls", + "other": "Högsta ålder på händelser: {days} d; markörer utan datum behålls" + }, "event age filter|All": "Alla", "Event age": "Händelsernas ålder", - "Event age: {days}d · undated kept": "Händelsernas ålder: {days} d · utan datum behålls", + "Event age: {days}d · undated kept": { + "one": "Händelsernas ålder: {days} d · utan datum behålls", + "other": "Händelsernas ålder: {days} d · utan datum behålls" + }, "Close camera preview": "Stäng förhandsvisningen av kameran", "Refresh map still": "Uppdatera stillbilden på kartan", "The map still uses a separate request and may show a different moment.": "Stillbilden på kartan hämtas separat och kan visa ett annat ögonblick.", "Video plays from Québec 511, which sees your IP address.": "Videon spelas upp från Québec 511, som ser din IP-adress.", "Press OPEN to load the photo": "Tryck på ÖPPNA för att ladda fotot", "Captured {month}": "Tagen {month}", - "this spot": "den här platsen", "the view centre": "vyns mitt", "{source} at {place}": "{source} vid {place}", + "{source} at this spot": "{source} på den här platsen", + "{source} at the view centre": "{source} i vyns mitt", "Street level at {place}": "Gatunivå vid {place}", + "Street level at this spot": "Gatunivå på den här platsen", + "Street level at the view centre": "Gatunivå i vyns mitt", "Switching map": "Byter karta", "Opening imagery": "Öppnar bilder", "Street View is ready: press {open} to load it": "Street View är redo: tryck på {open} för att ladda den", @@ -3361,7 +3388,10 @@ "LIVE AIS": "LIVE-AIS", "CONTACT NAVIGATION OFF": "KONTAKTNAVIGERING AV", "THE BRIDGE STAYS WITH THE SELECTED VESSEL": "BRYGGAN STANNAR PÅ DET VALDA FARTYGET", - "{range} NM": "{range} NM", + "{range} NM": { + "one": "{range} NM", + "other": "{range} NM" + }, "AIS DESTINATION · CREW REPORTED": "AIS-DESTINATION · ANGIVEN AV BESÄTTNINGEN", "{label} · NADIR VIEW": "{label} · NADIRVY", "SITES STANDBY": "PLATSER I VÄNTLÄGE", @@ -3440,7 +3470,10 @@ "Zoom in (+)": "Zooma in (+)", "Zoom to the imaging sensor swath": "Zooma till sensorns avbildningsstråk", "SENSOR": "SENSOR", - "RINGS {spacing} NM": "RINGAR {spacing} NM", + "RINGS {spacing} NM": { + "one": "RINGAR {spacing} NM", + "other": "RINGAR {spacing} NM" + }, "{count} CONTACTS": { "one": "{count} KONTAKT", "other": "{count} KONTAKTER" @@ -3598,7 +3631,10 @@ "REMOVE ALL": "TA BORT ALLA", "Confirm: remove every added entry from Data Layers": "Bekräfta: ta bort alla tillagda poster från Datalager", "Remove every added entry from Data Layers": "Ta bort alla tillagda poster från Datalager", - "Showing {shown} of {total}": "Visar {shown} av {total}", + "Showing {shown} of {total}": { + "one": "Visar {shown} av {total}", + "other": "Visar {shown} av {total}" + }, "BROWSE DATA LIBRARY": "BLÄDDRA I DATABIBLIOTEKET", "Atmosphere": "Atmosfär", "Day and night": "Dag och natt", diff --git a/src/i18n/locales/uk.json b/src/i18n/locales/uk.json index 31c6abe2f9..cc46dc2891 100644 --- a/src/i18n/locales/uk.json +++ b/src/i18n/locales/uk.json @@ -71,8 +71,18 @@ "{severity} only": "Лише {severity}", "All categories": "Усі категорії", "Reading the news…": "Читаємо новини…", - "News, last {hours} hours": "Новини за {hours} год", - "Last {hours} h": "За {hours} год", + "News, last {hours} hours": { + "one": "Новини за останню {hours} годину", + "few": "Новини за останні {hours} години", + "many": "Новини за останні {hours} годин", + "other": "Новини за останні {hours} години" + }, + "Last {hours} h": { + "one": "За {hours} год", + "few": "За {hours} год", + "many": "За {hours} год", + "other": "За {hours} год" + }, "Time window": "Період", "Conflicts": "Конфлікти", "Local": "Місцеві", @@ -81,9 +91,19 @@ "Hotspots": "Гарячі точки", "Severity": "Тяжкість", "Category": "Категорія", - "Nothing reported near here in the last {hours} h": "За {hours} год поблизу нічого не повідомлялося", + "Nothing reported near here in the last {hours} h": { + "one": "За останню {hours} год поблизу нічого не повідомлялося", + "few": "За останні {hours} год поблизу нічого не повідомлялося", + "many": "За останні {hours} год поблизу нічого не повідомлялося", + "other": "За останні {hours} год поблизу нічого не повідомлялося" + }, "Latest news": "Останні новини", - "No news matches these filters in the last {hours} h": "За {hours} год немає новин за цими фільтрами", + "No news matches these filters in the last {hours} h": { + "one": "За останню {hours} год немає новин за цими фільтрами", + "few": "За останні {hours} год немає новин за цими фільтрами", + "many": "За останні {hours} год немає новин за цими фільтрами", + "other": "За останні {hours} год немає новин за цими фільтрами" + }, "Load older news": "Завантажити давніші новини", "How to read the map": "Як читати карту", "Colour: severity · icon: type of event": "Колір: тяжкість · значок: тип події", @@ -594,6 +614,7 @@ "Previous — prior visited contact in the 250 km window": "Назад — попередній переглянутий контакт у радіусі 250 км", "PREVIOUS": "НАЗАД", "FOCUS": "ФОКУС", + "site status|FOCUS": "ФОКУС", "Next — nearest unvisited contact in the 250 km window": "Далі — найближчий ще не переглянутий контакт у радіусі 250 км", "NEXT": "ДАЛІ", "Named areas ({n})": "Іменовані зони ({n})", @@ -954,7 +975,7 @@ "ORBITAL VELOCITY": "ОРБІТАЛЬНА ШВИДКІСТЬ", "SUB-SATELLITE POINT": "ПІДСУПУТНИКОВА ТОЧКА", "NORTH UP": "ПІВНІЧ УГОРІ", - "CURRENTLY OVER": "ЗАРАЗ НАД", + "CURRENTLY OVER": "ПРОЛІТ", "{division}, {country}": "{division}, {country}", "{region} · near {place}": "{region} · поблизу: {place}", "NORAD {id}": "NORAD {id}", @@ -1858,7 +1879,12 @@ "ROUTE DATA UNAVAILABLE": "ДАНІ МАРШРУТУ НЕДОСТУПНІ", "CONTACT NAVIGATION OFF": "НАВІГАЦІЮ КОНТАКТАМИ ВИМКНЕНО", "THE BRIDGE STAYS WITH THE SELECTED VESSEL": "МІСТОК ЗАЛИШАЄТЬСЯ НА ВИБРАНОМУ СУДНІ", - "{range} NM": "{range} МОР. МИЛ.", + "{range} NM": { + "one": "{range} МОР. МИЛЯ", + "few": "{range} МОР. МИЛІ", + "many": "{range} МОР. МИЛЬ", + "other": "{range} МОР. МИЛІ" + }, "AIS DESTINATION · CREW REPORTED": "ПРИЗНАЧЕННЯ AIS · ВКАЗАНО ЕКІПАЖЕМ", "DEST {bearing}": "ПРИЗН. {bearing}", "Disable cockpit weather effects": "Вимкнути погодні ефекти кабіни", @@ -1907,6 +1933,7 @@ "Reclassify as TR-3B": "Перекласифікувати як TR-3B", "TRACK ACQUIRED": "ТРЕК ЗАХОПЛЕНО", "{label} · COURSE {heading}°": "{label} · ШЛЯХОВИЙ КУТ {heading}°", + "vessel|{label} · COURSE {heading}°": "{label} · ШЛЯХОВИЙ КУТ {heading}°", "{label} · HEADING {heading}°": "{label} · КУРС {heading}°", "{label} · NO HEADING": "{label} · НЕМАЄ КУРСУ", "{label} · NADIR VIEW": "{label} · ВИГЛЯД У НАДИР", @@ -2184,7 +2211,7 @@ "Radio lifecycle is uncertain — use Enable or Disable to reconcile": "Стан радіо невизначений — звірте через «Увімкнути» або «Вимкнути»", "Clear reading": "Очистити покази", "Observed history": "Історія спостережень", - "Latest": "Останні", + "news list|Latest": "Останні", "Imagery on Esri · Google 3D returns when cleared": "Підкладка: Esri · скидання поверне Google 3D", "Point the camera at the ground to use the view": "Наведіть камеру на землю, щоб вибрати видиму область", "That point cannot anchor a box": "Від цієї точки не можна побудувати область", @@ -2948,7 +2975,12 @@ "Contact cockpit summary": "Зведення контакту в кабіні", "CONTACT": "КОНТАКТ", "CONTACTS · 250 KM": "КОНТАКТИ · 250 КМ", - "RINGS {spacing} NM": "КІЛЬЦЯ {spacing} МОР. МИЛ.", + "RINGS {spacing} NM": { + "one": "КІЛЬЦЯ {spacing} МОР. МИЛЯ", + "few": "КІЛЬЦЯ {spacing} МОР. МИЛІ", + "many": "КІЛЬЦЯ {spacing} МОР. МИЛЬ", + "other": "КІЛЬЦЯ {spacing} МОР. МИЛІ" + }, "{count} CONTACTS": { "one": "{count} КОНТАКТ", "few": "{count} КОНТАКТИ", @@ -3289,6 +3321,7 @@ "Left panels": "Ліві панелі", "Right panels": "Праві панелі", "CONFIRMED": "ПІДТВЕРДЖЕНО", + "sightings filter|CONFIRMED": "ПІДТВЕРДЖЕНО", "PAD / RTLS": "МІСЦЕ ЗАПУСКУ / RTLS", "Name of {name}": "Назва: {name}", "Change the colour of {name}": "Змінити колір: {name}", @@ -3548,7 +3581,12 @@ "Photo of {name}": "Фото {name}", "Acartia": "Acartia", "CC BY 4.0": "CC BY 4.0", - "{count} sightings in view": "Спостережень у кадрі: {count}", + "{count} sightings in view": { + "one": "{count} спостереження в кадрі", + "few": "{count} спостереження в кадрі", + "many": "{count} спостережень у кадрі", + "other": "{count} спостереження в кадрі" + }, "Close sighting": "Закрити спостереження", "Wildlife observed within 48 h (whales 7 d). Color and badge glyph show the taxon group. Sensitive species are shown only as 0.2° cells; Salish Sea marine mammal reports via Acartia are rounded to 0.01°. Not a census.": "Спостереження живої природи за 48 год (китоподібні — 7 днів). Колір і символ значка позначають таксономічну групу. Вразливі види показано лише комірками 0,2°; повідомлення Acartia про морських ссавців моря Селіш округлено до 0,01°. Не перепис.", "Open {name} on iNaturalist": "Відкрити {name} в iNaturalist", @@ -3559,20 +3597,33 @@ "{days}d": "{days} дн", "All markers": "Усі мітки", "Show markers of every age": "Показати мітки будь-якого віку", - "Maximum event age: {days}d; undated markers are kept": "Максимальний вік події: {days} дн; мітки без дати залишаються", + "Maximum event age: {days}d; undated markers are kept": { + "one": "Максимальний вік події: {days} дн; мітки без дати залишаються", + "few": "Максимальний вік події: {days} дн; мітки без дати залишаються", + "many": "Максимальний вік події: {days} дн; мітки без дати залишаються", + "other": "Максимальний вік події: {days} дн; мітки без дати залишаються" + }, "event age filter|All": "Усі", "Event age": "Вік події", - "Event age: {days}d · undated kept": "Вік події: {days} дн · мітки без дати залишаються", + "Event age: {days}d · undated kept": { + "one": "Вік події: {days} дн · мітки без дати залишаються", + "few": "Вік події: {days} дн · мітки без дати залишаються", + "many": "Вік події: {days} дн · мітки без дати залишаються", + "other": "Вік події: {days} дн · мітки без дати залишаються" + }, "Close camera preview": "Закрити перегляд камери", "Refresh map still": "Оновити кадр на карті", "The map still uses a separate request and may show a different moment.": "Кадр на карті запитується окремо та може показувати інший момент.", "Video plays from Québec 511, which sees your IP address.": "Відео відтворюється з Québec 511, який бачить вашу IP-адресу.", "Press OPEN to load the photo": "Натисніть «ВІДКРИТИ», щоб завантажити фото", "Captured {month}": "Знято: {month}", - "this spot": "це місце", "the view centre": "центр карти", "{source} at {place}": "{source}: {place}", + "{source} at this spot": "{source} у цьому місці", + "{source} at the view centre": "{source} у центрі карти", "Street level at {place}": "Вуличні знімки: {place}", + "Street level at this spot": "Вуличні знімки в цьому місці", + "Street level at the view centre": "Вуличні знімки в центрі карти", "Switching map": "Перемикання карти", "Opening imagery": "Відкриття знімків", "Street View is ready: press {open} to load it": "Перегляд вулиць готовий: натисніть «{open}», щоб завантажити", @@ -3772,7 +3823,12 @@ "REMOVE ALL": "ВИДАЛИТИ ВСЕ", "Confirm: remove every added entry from Data Layers": "Підтвердити: видалити всі додані записи з «Шарів даних»", "Remove every added entry from Data Layers": "Видалити всі додані записи з «Шарів даних»", - "Showing {shown} of {total}": "Показано {shown} з {total}", + "Showing {shown} of {total}": { + "one": "Показано {shown} з {total}", + "few": "Показано {shown} з {total}", + "many": "Показано {shown} з {total}", + "other": "Показано {shown} з {total}" + }, "BROWSE DATA LIBRARY": "ВІДКРИТИ БІБЛІОТЕКУ ДАНИХ", "Atmosphere": "Атмосфера", "Day and night": "День і ніч", diff --git a/src/i18n/locales/zh-CN.json b/src/i18n/locales/zh-CN.json index b57cd731da..419a3b0243 100644 --- a/src/i18n/locales/zh-CN.json +++ b/src/i18n/locales/zh-CN.json @@ -62,8 +62,12 @@ "{severity} only": "仅{severity}", "All categories": "所有类别", "Reading the news…": "正在读取新闻…", - "News, last {hours} hours": "最近 {hours} 小时的新闻", - "Last {hours} h": "最近 {hours} 小时", + "News, last {hours} hours": { + "other": "最近 {hours} 小时的新闻" + }, + "Last {hours} h": { + "other": "最近 {hours} 小时" + }, "Time window": "时间范围", "Conflicts": "冲突", "Local": "本地", @@ -72,9 +76,13 @@ "Hotspots": "热点", "Severity": "严重程度", "Category": "类别", - "Nothing reported near here in the last {hours} h": "最近 {hours} 小时附近无报道", + "Nothing reported near here in the last {hours} h": { + "other": "最近 {hours} 小时附近无报道" + }, "Latest news": "最新新闻", - "No news matches these filters in the last {hours} h": "最近 {hours} 小时没有符合这些筛选条件的新闻", + "No news matches these filters in the last {hours} h": { + "other": "最近 {hours} 小时没有符合这些筛选条件的新闻" + }, "Load older news": "加载更早的新闻", "How to read the map": "如何解读地图", "Colour: severity · icon: type of event": "颜色:严重程度 · 图标:事件类型", @@ -563,6 +571,7 @@ "Previous — prior visited contact in the 250 km window": "上一个:250 km 范围内先前访问过的目标", "PREVIOUS": "上一个", "FOCUS": "聚焦", + "site status|FOCUS": "聚焦", "Next — nearest unvisited contact in the 250 km window": "下一个:250 km 范围内最近的未访问目标", "NEXT": "下一个", "Named areas ({n})": "已命名区域({n})", @@ -927,6 +936,7 @@ "Cancel replay": "取消回放", "EST. DOWNRANGE": "预估落点距离", "CONFIRMED": "已确认", + "sightings filter|CONFIRMED": "已确认", "PAD / RTLS": "发射台 / RTLS", "PLANNED · ": "计划 · ", "SUPPLIED TRAJECTORY POINTS": "提供的轨迹点", @@ -1749,7 +1759,9 @@ "ROUTE DATA UNAVAILABLE": "航线数据不可用", "CONTACT NAVIGATION OFF": "目标导航已关闭", "THE BRIDGE STAYS WITH THE SELECTED VESSEL": "驾驶台保持在所选船舶上", - "{range} NM": "{range} 海里", + "{range} NM": { + "other": "{range} 海里" + }, "AIS DESTINATION · CREW REPORTED": "AIS 目的地 · 船员申报", "DEST {bearing}": "目的地 {bearing}", "Disable cockpit weather effects": "停用座舱天气效果", @@ -1795,6 +1807,7 @@ "Reclassify as TR-3B": "重新归类为 TR-3B", "TRACK ACQUIRED": "已获取航迹", "{label} · COURSE {heading}°": "{label} · 对地航向 {heading}°", + "vessel|{label} · COURSE {heading}°": "{label} · 对地航向 {heading}°", "{label} · HEADING {heading}°": "{label} · 船首向 {heading}°", "{label} · NO HEADING": "{label} · 无船首向", "{label} · NADIR VIEW": "{label} · 天底视图", @@ -2044,7 +2057,7 @@ "Radio lifecycle is uncertain — use Enable or Disable to reconcile": "电台生命周期状态不确定——请使用“启用”或“停用”进行核对", "Clear reading": "清除读数", "Observed history": "观测历史", - "Latest": "最新", + "news list|Latest": "最新", "Imagery on Esri · Google 3D returns when cleared": "影像显示在 Esri 底图上 · 清除后恢复 Google 3D", "Point the camera at the ground to use the view": "将相机对准地面才能使用当前视野", "That point cannot anchor a box": "该点无法作为框选锚点", @@ -2623,7 +2636,9 @@ "Contact cockpit summary": "目标座舱摘要", "CONTACT": "目标", "CONTACTS · 250 KM": "目标 · 250 km", - "RINGS {spacing} NM": "距标圈 {spacing} 海里", + "RINGS {spacing} NM": { + "other": "距标圈 {spacing} 海里" + }, "{count} CONTACTS": { "other": "{count} 个目标" }, @@ -3305,7 +3320,9 @@ "Photo of {name}": "{name} 的照片", "Acartia": "Acartia", "CC BY 4.0": "CC BY 4.0", - "{count} sightings in view": "视野内有 {count} 次目击", + "{count} sightings in view": { + "other": "视野内有 {count} 次目击" + }, "Close sighting": "关闭目击记录", "Wildlife observed within 48 h (whales 7 d). Color and badge glyph show the taxon group. Sensitive species are shown only as 0.2° cells; Salish Sea marine mammal reports via Acartia are rounded to 0.01°. Not a census.": "近 48 小时内观察到的野生生物(鲸类为 7 天)。颜色与徽章图标表示分类群。敏感物种仅以 0.2° 网格显示;Acartia 提供的萨利希海海洋哺乳动物目击位置四舍五入到 0.01°。并非种群普查。", "Open {name} on iNaturalist": "在 iNaturalist 上打开 {name}", @@ -3316,20 +3333,27 @@ "{days}d": "{days} 天", "All markers": "所有标记", "Show markers of every age": "显示所有时间的标记", - "Maximum event age: {days}d; undated markers are kept": "仅显示 {days} 天内的事件;保留无日期标记", + "Maximum event age: {days}d; undated markers are kept": { + "other": "仅显示 {days} 天内的事件;保留无日期标记" + }, "event age filter|All": "全部", "Event age": "事件时间", - "Event age: {days}d · undated kept": "事件时间:{days} 天内 · 保留无日期标记", + "Event age: {days}d · undated kept": { + "other": "事件时间:{days} 天内 · 保留无日期标记" + }, "Close camera preview": "关闭摄像头预览", "Refresh map still": "刷新地图静止画面", "The map still uses a separate request and may show a different moment.": "地图静止画面通过单独的请求获取,可能显示不同的时刻。", "Video plays from Québec 511, which sees your IP address.": "视频从 Québec 511 播放,Québec 511 会看到你的 IP 地址。", "Press OPEN to load the photo": "点击“打开”加载照片", "Captured {month}": "拍摄于 {month}", - "this spot": "此处", "the view centre": "视野中心", "{source} at {place}": "{place} 的 {source}", + "{source} at this spot": "此处的 {source}", + "{source} at the view centre": "视图中心的 {source}", "Street level at {place}": "{place} 的街景", + "Street level at this spot": "此处的街景", + "Street level at the view centre": "视图中心的街景", "Switching map": "正在切换地图", "Opening imagery": "正在打开影像", "Street View is ready: press {open} to load it": "街景已就绪:点击“{open}”加载", @@ -3511,7 +3535,9 @@ "REMOVE ALL": "全部移除", "Confirm: remove every added entry from Data Layers": "确认:从数据图层中移除所有已添加条目", "Remove every added entry from Data Layers": "从数据图层中移除所有已添加条目", - "Showing {shown} of {total}": "显示 {shown} / {total}", + "Showing {shown} of {total}": { + "other": "显示 {shown} / {total}" + }, "BROWSE DATA LIBRARY": "浏览数据资源库", "Atmosphere": "大气", "Day and night": "昼夜", diff --git a/src/i18n/locales/zh-Hant.json b/src/i18n/locales/zh-Hant.json index 96513b0130..bd9603fe57 100644 --- a/src/i18n/locales/zh-Hant.json +++ b/src/i18n/locales/zh-Hant.json @@ -62,8 +62,12 @@ "{severity} only": "僅{severity}", "All categories": "所有類別", "Reading the news…": "正在讀取新聞…", - "News, last {hours} hours": "最近 {hours} 小時的新聞", - "Last {hours} h": "最近 {hours} 小時", + "News, last {hours} hours": { + "other": "最近 {hours} 小時的新聞" + }, + "Last {hours} h": { + "other": "最近 {hours} 小時" + }, "Time window": "時間範圍", "Conflicts": "衝突", "Local": "本地", @@ -72,9 +76,13 @@ "Hotspots": "熱點", "Severity": "嚴重程度", "Category": "類別", - "Nothing reported near here in the last {hours} h": "最近 {hours} 小時附近無報道", + "Nothing reported near here in the last {hours} h": { + "other": "最近 {hours} 小時附近無報道" + }, "Latest news": "最新新聞", - "No news matches these filters in the last {hours} h": "最近 {hours} 小時沒有符合這些篩選條件的新聞", + "No news matches these filters in the last {hours} h": { + "other": "最近 {hours} 小時沒有符合這些篩選條件的新聞" + }, "Load older news": "加載更早的新聞", "How to read the map": "如何解讀地圖", "Colour: severity · icon: type of event": "顏色:嚴重程度 · 圖標:事件類型", @@ -563,6 +571,7 @@ "Previous — prior visited contact in the 250 km window": "上一個:250 km 範圍內先前訪問過的目標", "PREVIOUS": "上一個", "FOCUS": "聚焦", + "site status|FOCUS": "聚焦", "Next — nearest unvisited contact in the 250 km window": "下一個:250 km 範圍內最近的未訪問目標", "NEXT": "下一個", "Named areas ({n})": "已命名區域({n})", @@ -612,6 +621,7 @@ "Cyclone advisories unavailable": "氣旋公告不可用", "Cyclone data unavailable": "氣旋數據不可用", "Potential tropical cyclone": "潛在熱帶氣旋", + "Post-tropical cyclone": "後熱帶氣旋", "Hurricane": "颶風", "Tropical storm": "熱帶風暴", "Tropical depression": "熱帶低壓", @@ -709,11 +719,15 @@ "Merge onto {road}": "併入 {road}", "maneuver|Merge": "併道", "Take the ramp on the {direction} onto {road}": "{direction}駛入匝道,進入 {road}", + "Take the ramp {direction} onto {road}": "{direction}駛入匝道,進入 {road}", "Take the ramp on the {direction}": "{direction}駛入匝道", + "Take the ramp {direction}": "{direction}駛入匝道", "Take the ramp onto {road}": "駛入匝道,進入 {road}", "Take the ramp": "駛入匝道", "Take the exit on the {direction} onto {road}": "從出口{direction}駛出,進入 {road}", + "Take the exit {direction} onto {road}": "從出口{direction}駛出,進入 {road}", "Take the exit on the {direction}": "從出口{direction}駛出", + "Take the exit {direction}": "從出口{direction}駛出", "Take the exit onto {road}": "從出口駛出,進入 {road}", "Take the exit": "從出口駛出", "At the roundabout, take the {exit} exit onto {road}": "在環島從{exit}出口駛出,進入 {road}", @@ -922,6 +936,7 @@ "Cancel replay": "取消回放", "EST. DOWNRANGE": "預估落點距離", "CONFIRMED": "已確認", + "sightings filter|CONFIRMED": "已確認", "PAD / RTLS": "發射臺 / RTLS", "PLANNED · ": "計劃 · ", "SUPPLIED TRAJECTORY POINTS": "提供的軌跡點", @@ -1598,6 +1613,9 @@ "LIVE SIGNALS": "實時信號", "CCTV layer unavailable": "CCTV 圖層不可用", "Link copied!": "鏈接已複製!", + "Link shared": "鏈接已分享", + "This share link can't be opened": "無法打開此分享鏈接", + "Shared vessel is unavailable": "分享的船舶不可用", "Copy failed": "複製失敗", "Return map to straight-down view": "將地圖恢復為垂直俯視", "Tilt map to oblique view": "將地圖傾斜至斜視角", @@ -1741,7 +1759,9 @@ "ROUTE DATA UNAVAILABLE": "航線數據不可用", "CONTACT NAVIGATION OFF": "目標導航已關閉", "THE BRIDGE STAYS WITH THE SELECTED VESSEL": "駕駛臺保持在所選船舶上", - "{range} NM": "{range} 海里", + "{range} NM": { + "other": "{range} 海里" + }, "AIS DESTINATION · CREW REPORTED": "AIS 目的地 · 船員申報", "DEST {bearing}": "目的地 {bearing}", "Disable cockpit weather effects": "停用座艙天氣效果", @@ -1787,6 +1807,7 @@ "Reclassify as TR-3B": "重新歸類為 TR-3B", "TRACK ACQUIRED": "已獲取航跡", "{label} · COURSE {heading}°": "{label} · 對地航向 {heading}°", + "vessel|{label} · COURSE {heading}°": "{label} · 對地航向 {heading}°", "{label} · HEADING {heading}°": "{label} · 船首向 {heading}°", "{label} · NO HEADING": "{label} · 無船首向", "{label} · NADIR VIEW": "{label} · 天底視圖", @@ -1951,6 +1972,8 @@ "ORBIT": "環繞", "Location not found": "未找到位置", "Search failed": "搜索失敗", + "Check the spelling and press Enter to search again.": "請檢查拼寫,然後按 Enter 重新搜索。", + "Press Enter to try again.": "按 Enter 重試。", "Detailed outline unavailable": "無法獲取詳細輪廓", "Fly to a POI first": "請先飛往一個 POI", "Reset to full globe view": "重置為完整地球視圖", @@ -2034,7 +2057,7 @@ "Radio lifecycle is uncertain — use Enable or Disable to reconcile": "電臺生命週期狀態不確定——請使用“啟用”或“停用”進行核對", "Clear reading": "清除讀數", "Observed history": "觀測歷史", - "Latest": "最新", + "news list|Latest": "最新", "Imagery on Esri · Google 3D returns when cleared": "影像顯示在 Esri 底圖上 · 清除後恢復 Google 3D", "Point the camera at the ground to use the view": "將相機對準地面才能使用當前視野", "That point cannot anchor a box": "該點無法作為框選錨點", @@ -2326,7 +2349,7 @@ "Release Space to send": "鬆開空格鍵發送", "Hold Space to talk": "按住空格鍵說話", "Ask or command": "提問或下達指令", - "Voice is disabled in Stories.": "故事模式下語音控制已停用。", + "Voice is disabled in Stories.": "故事模式下語音控制已禁用。", "Voice off": "語音已關閉", "VOICE UNAVAILABLE": "語音不可用", "VOICE ACTIVE": "語音已啟用", @@ -2613,7 +2636,9 @@ "Contact cockpit summary": "目標座艙摘要", "CONTACT": "目標", "CONTACTS · 250 KM": "目標 · 250 km", - "RINGS {spacing} NM": "距標圈 {spacing} 海里", + "RINGS {spacing} NM": { + "other": "距標圈 {spacing} 海里" + }, "{count} CONTACTS": { "other": "{count} 個目標" }, @@ -2971,16 +2996,6 @@ "Search": "搜索", "More": "更多", "Panels": "面板", - "Post-tropical cyclone": "後熱帶氣旋", - "Take the ramp {direction} onto {road}": "{direction}駛入匝道,進入 {road}", - "Take the ramp {direction}": "{direction}駛入匝道", - "Take the exit {direction} onto {road}": "從出口{direction}駛出,進入 {road}", - "Take the exit {direction}": "從出口{direction}駛出", - "Link shared": "鏈接已分享", - "This share link can't be opened": "無法打開此分享鏈接", - "Shared vessel is unavailable": "分享的船舶不可用", - "Check the spelling and press Enter to search again.": "請檢查拼寫,然後按 Enter 重新搜索。", - "Press Enter to try again.": "按 Enter 重試。", "Recent speech": "最近語音", "Voice Settings": "語音設置", "Preview": "預覽", @@ -3019,8 +3034,19 @@ "other": "{count} 個地標" }, "S2 Underground publishes these KMZ products to GitHub. New uploads are detected within seconds and replace the previous edition automatically. Click a marker for its report.": "S2 Underground 在 GitHub 發布這些 KMZ 產品。新上傳的內容會在數秒內被檢測到,並自動替換舊版本。點擊標記查看報告。", - "routing busy — too many routes at once": "路線服務繁忙:同時請求的路線過多", - "route proxy error": "路線代理出錯", + "fire confidence filter|All": "全部", + "fire confidence filter|Nominal+": "中+", + "fire confidence filter|High": "高", + "Every detection — many of the strongest fires are rated low confidence": "所有火點探測——許多強度最高的火點被評為低置信度", + "Nominal and high confidence detections": "中、高置信度的火點探測", + "High confidence detections only": "僅高置信度的火點探測", + "Fire intensity (FRP)": "火勢強度(FRP)", + "≥ {value} MW": "≥ {value} MW", + "Confidence": "置信度", + "Minimum fire radiative power, megawatts": "最小火輻射功率(兆瓦)", + "fire intensity filter|All": "全部", + "Detection confidence": "探測置信度", + "{shown} of {total} shown": "顯示 {shown} / {total}", "{lower} to {upper}": "{lower} 至 {upper}", "Up to {upper}": "最高 {upper}", "From {lower}": "最低 {lower}", @@ -3033,6 +3059,8 @@ "Prohibited": "禁區", "Restricted": "限制區", "Prohibited & Restricted Airspace": "禁區與限制區空域", + "routing busy — too many routes at once": "路線服務繁忙:同時請求的路線過多", + "route proxy error": "路線代理出錯", "AUTHORING": "創作", "Create and edit scenes": "創建和編輯場景", "SCENE": "場景", @@ -3058,19 +3086,6 @@ "Download this scene as JSON or an asset bundle": "將此場景下載為 JSON 或資源包", "Left panels": "左側面板", "Right panels": "右側面板", - "fire confidence filter|All": "全部", - "fire confidence filter|Nominal+": "中+", - "fire confidence filter|High": "高", - "Every detection — many of the strongest fires are rated low confidence": "所有火點探測——許多強度最高的火點被評為低置信度", - "Nominal and high confidence detections": "中、高置信度的火點探測", - "High confidence detections only": "僅高置信度的火點探測", - "Fire intensity (FRP)": "火勢強度(FRP)", - "≥ {value} MW": "≥ {value} MW", - "Confidence": "置信度", - "Minimum fire radiative power, megawatts": "最小火輻射功率(兆瓦)", - "fire intensity filter|All": "全部", - "Detection confidence": "探測置信度", - "{shown} of {total} shown": "顯示 {shown} / {total}", "UTILITIES": "工具", "Exit cockpit to fly to a drawing": "請先退出座艙,再飛往已繪製的形狀", "Directions, drawing and your own files": "路線導航、繪製和你自己的文件", @@ -3305,7 +3320,9 @@ "Photo of {name}": "{name} 的照片", "Acartia": "Acartia", "CC BY 4.0": "CC BY 4.0", - "{count} sightings in view": "視野內有 {count} 次目擊", + "{count} sightings in view": { + "other": "視野內有 {count} 次目擊" + }, "Close sighting": "關閉目擊記錄", "Wildlife observed within 48 h (whales 7 d). Color and badge glyph show the taxon group. Sensitive species are shown only as 0.2° cells; Salish Sea marine mammal reports via Acartia are rounded to 0.01°. Not a census.": "近 48 小時內觀察到的野生生物(鯨類為 7 天)。顏色與徽章圖標表示分類群。敏感物種僅以 0.2° 網格顯示;Acartia 提供的薩利希海海洋哺乳動物目擊位置四捨五入到 0.01°。並非種群普查。", "Open {name} on iNaturalist": "在 iNaturalist 上打開 {name}", @@ -3316,20 +3333,27 @@ "{days}d": "{days} 天", "All markers": "所有標記", "Show markers of every age": "顯示所有時間的標記", - "Maximum event age: {days}d; undated markers are kept": "僅顯示 {days} 天內的事件;保留無日期標記", + "Maximum event age: {days}d; undated markers are kept": { + "other": "僅顯示 {days} 天內的事件;保留無日期標記" + }, "event age filter|All": "全部", "Event age": "事件時間", - "Event age: {days}d · undated kept": "事件時間:{days} 天內 · 保留無日期標記", + "Event age: {days}d · undated kept": { + "other": "事件時間:{days} 天內 · 保留無日期標記" + }, "Close camera preview": "關閉攝像頭預覽", "Refresh map still": "刷新地圖靜止畫面", "The map still uses a separate request and may show a different moment.": "地圖靜止畫面通過單獨的請求獲取,可能顯示不同的時刻。", "Video plays from Québec 511, which sees your IP address.": "視頻從 Québec 511 播放,Québec 511 會看到你的 IP 地址。", "Press OPEN to load the photo": "點擊“打開”加載照片", "Captured {month}": "拍攝於 {month}", - "this spot": "此處", "the view centre": "視野中心", "{source} at {place}": "{place} 的 {source}", + "{source} at this spot": "此處的 {source}", + "{source} at the view centre": "視圖中心的 {source}", "Street level at {place}": "{place} 的街景", + "Street level at this spot": "此處的街景", + "Street level at the view centre": "視圖中心的街景", "Switching map": "正在切換地圖", "Opening imagery": "正在打開影像", "Street View is ready: press {open} to load it": "街景已就緒:點擊“{open}”加載", @@ -3511,7 +3535,9 @@ "REMOVE ALL": "全部移除", "Confirm: remove every added entry from Data Layers": "確認:從數據圖層中移除所有已添加條目", "Remove every added entry from Data Layers": "從數據圖層中移除所有已添加條目", - "Showing {shown} of {total}": "顯示 {shown} / {total}", + "Showing {shown} of {total}": { + "other": "顯示 {shown} / {total}" + }, "BROWSE DATA LIBRARY": "瀏覽數據資源庫", "Atmosphere": "大氣", "Day and night": "晝夜", @@ -3522,7 +3548,7 @@ "The globe stopped drawing": "地球已停止繪製", "The browser took back the globe's 3D graphics. Layers and controls still work, but the map cannot draw until the page reloads.": "瀏覽器收回了地球的 3D 圖形。圖層和控件仍可使用,但在重新加載頁面之前地圖無法繪製。", "Rendering stopped after an error. Layers and controls still work, but the map is not updating.": "渲染因錯誤而停止。圖層和控件仍可使用,但地圖不再更新。", - "Reset view reloads the app without the view restored from the address bar.": "「重置視圖」會重新加載應用,不使用從地址欄恢復的視圖。", + "Reset view reloads the app without the view restored from the address bar.": "“重置視圖”會重新加載應用,不使用從地址欄恢復的視圖。", "Reload": "重新加載", "Retry": "重試", "Reset view": "重置視圖", @@ -3532,26 +3558,26 @@ "Funicular": "纜索鐵路", "Gondola": "纜車", "Move panels back beside the rail": "將面板移回側欄旁", - "Move panels over the rail, to the edge": "將面板移到側欄上方,貼齊邊緣", + "Move panels over the rail, to the edge": "將面板移到側欄上方,貼靠邊緣", "panel|VISUAL": "視覺", "Look": "外觀", "Overlay": "疊加層", "Effects": "效果", "Scope opacity": "視域不透明度", "How dark the scope shades the view outside the keyhole": "視域遮罩使視域之外的畫面變暗的程度", - "Reset to default": "還原預設", - "Reset Visual to its defaults: Normal look, HUD, scope, labels and effects": "將視覺還原為預設設定:常規外觀、HUD、視域、標籤和效果", + "Reset to default": "恢復默認", + "Reset Visual to its defaults: Normal look, HUD, scope, labels and effects": "將視覺恢復為默認設置:常規外觀、HUD、視域、標籤和效果", "All layers": "全部圖層", "On": "已開啟", "Off": "已關閉", - "Search layers": "搜尋圖層", + "Search layers": "搜索圖層", "Filter layers": "篩選圖層", "Status": "狀態", - "Search layers…": "搜尋圖層…", + "Search layers…": "搜索圖層…", "Layer groups": "圖層分組", - "Jump to {name}": "跳至{name}", - "No layers match": "沒有符合的圖層", - "A GEV scene, played on the live globe.": "在即時地球上播放的 GEV 場景。", + "Jump to {name}": "跳轉到{name}", + "No layers match": "沒有匹配的圖層", + "A GEV scene, played on the live globe.": "在實時地球上播放的 GEV 場景。", "Drag the map to explore · Resume any time": "拖動地圖進行探索 · 隨時可繼續", "Region": "地區", "Europe": "歐洲", @@ -3587,13 +3613,13 @@ "Filters": "篩選", "Search stories": "搜索故事", "Search stories, places, creators": "搜索故事、地點、創作者", - "Clear search": "清除搜尋", + "Clear search": "清除搜索", "Topics": "主題", "Filter stories": "篩選故事", "Show {count} stories": { "other": "顯示 {count} 個故事" }, - "No stories match": "沒有符合的故事", + "No stories match": "沒有匹配的故事", "Try another word or clear the filters.": "請換個關鍵詞或清除篩選。", "Clear all": "全部清除", "STORY": "故事", @@ -3614,12 +3640,12 @@ "Share": "分享", "Back to GEV": "返回 GEV", "Chapter {n}": "第 {n} 章", - "Context. Swipe up or press to open": "背景資訊。上滑或按下以打開", - "Context. Swipe down or press to close": "背景資訊。下滑或按下以關閉", + "Context. Swipe up or press to open": "背景信息。上滑或按下以打開", + "Context. Swipe down or press to close": "背景信息。下滑或按下以關閉", "Search this story": "在此故事中搜索", - "Voice search (not in this build)": "語音搜索 (此版本不支援)", + "Voice search (not in this build)": "語音搜索 (此版本不支持)", "Search results": "搜索結果", - "Nothing in this story matches.": "此故事中沒有符合項目。", + "Nothing in this story matches.": "此故事中沒有匹配項。", "Chapters": "章節", "now": "現在", "About": "簡介", @@ -3643,25 +3669,25 @@ "Minimise card": "最小化卡片", "Expand card": "展開卡片", "Card pages": "卡片頁面", - "Resize context panel": "調整背景資訊面板大小", - "Swipe up for context": "上滑查看背景資訊", + "Resize context panel": "調整背景信息面板大小", + "Swipe up for context": "上滑查看背景信息", "Chapter start": "章節開始", "Story time": "故事時間", "chapter": "章節", "Key moment: {label}": "關鍵時刻:{label}", "Exit expanded map": "退出放大地圖", "Expand map": "放大地圖", - "Exit cockpit to open Stories": "請先退出座艙,再開啟故事", - "Stories could not load. Check the connection and try again.": "無法載入故事。請檢查網路連線後重試。", + "Exit cockpit to open Stories": "請先退出座艙,再打開故事", + "Stories could not load. Check the connection and try again.": "無法加載故事。請檢查網絡連接後重試。", "Shot {n} of {total}": "鏡頭 {n}/{total}", "GEV scene": "GEV 場景", - "SAVE TO STORIES": "儲存到 STORIES", + "SAVE TO STORIES": "保存到 STORIES", "REMOVE FROM STORIES": "從 STORIES 移除", "Show this scene on the Stories page": "在 Stories 頁面顯示此場景", "Take this scene off the Stories page": "將此場景從 Stories 頁面移除", - "Saved to Stories": "已儲存到 Stories", + "Saved to Stories": "已保存到 Stories", "Removed from Stories": "已從 Stories 移除", - "A scene you made in GEV, played on the live globe.": "你在 GEV 中製作的場景,在即時地球上播放。", + "A scene you made in GEV, played on the live globe.": "你在 GEV 中製作的場景,在實時地球上播放。", "Floods": "洪水", "Wildfires": "山火", "Storms": "風暴", @@ -3670,20 +3696,20 @@ "Space": "太空", "Conflict": "衝突", "Climate": "氣候", - "Switch to Esri World Imagery to capture a thumbnail": "請切換至 Esri World Imagery 以擷取縮圖", - "Thumbnail could not be captured": "無法擷取縮圖", - "Thumbnail captured": "已擷取縮圖", + "Switch to Esri World Imagery to capture a thumbnail": "請切換至 Esri World Imagery 以截取縮略圖", + "Thumbnail could not be captured": "無法截取縮略圖", + "Thumbnail captured": "已截取縮略圖", "Stories tags": "故事標籤", - "Story thumbnail": "故事縮圖", - "Use the current view as the Stories card image": "將目前檢視用作故事卡片圖片", - "Aircraft positions come from ADS-B: the OpenSky Network’s worldwide snapshot, with adsb.lol where OpenSky has none.": "飛機位置來自 ADS-B:OpenSky Network 的全球快照,OpenSky 沒有資料的地方由 adsb.lol 補充。", - "Live-flight fallback (ODbL 1.0)": "即時航班備用來源 (ODbL 1.0)", - "Satellite orbits are propagated from CelesTrak’s current element sets.": "衛星軌道根據 CelesTrak 目前的軌道根數推算。", - "Earthquakes come from the U.S. Geological Survey’s live feed.": "地震資料來自美國地質調查局 (USGS) 的即時資料流。", + "Story thumbnail": "故事縮略圖", + "Use the current view as the Stories card image": "將當前視圖用作故事卡片圖片", + "Aircraft positions come from ADS-B: the OpenSky Network’s worldwide snapshot, with adsb.lol where OpenSky has none.": "飛機位置來自 ADS-B:OpenSky Network 的全球快照,OpenSky 沒有數據的地方由 adsb.lol 補充。", + "Live-flight fallback (ODbL 1.0)": "實時航班備用來源 (ODbL 1.0)", + "Satellite orbits are propagated from CelesTrak’s current element sets.": "衛星軌道根據 CelesTrak 當前的軌道根數推算。", + "Earthquakes come from the U.S. Geological Survey’s live feed.": "地震數據來自美國地質調查局 (USGS) 的實時數據流。", "Traffic": "交通", - "Road traffic; live congestion needs your own TomTom key.": "道路交通;即時壅塞需要你自己的 TomTom 金鑰。", - "Live traffic flow, with your own key": "即時交通流量,需使用你自己的金鑰", - "Live air traffic around the world: the Atlantic, Europe, Japan and San Francisco.": "全球即時空中交通:大西洋、歐洲、日本和舊金山。", + "Road traffic; live congestion needs your own TomTom key.": "道路交通;實時擁堵需要你自己的 TomTom 密鑰。", + "Live traffic flow, with your own key": "實時交通流量,需使用你自己的密鑰", + "Live air traffic around the world: the Atlantic, Europe, Japan and San Francisco.": "全球實時空中交通:大西洋、歐洲、日本和舊金山。", "The Atlantic": "大西洋", "Western Europe": "西歐", "Japan": "日本", @@ -3694,30 +3720,30 @@ "Over Africa": "非洲上空", "Over Tokyo": "東京上空", "Over Paris": "巴黎上空", - "Recent earthquakes in the thermal look: California, Japan, New Zealand and off Portugal.": "熱成像風格下的近期地震:加利福尼亞、日本、紐西蘭和葡萄牙外海。", + "Recent earthquakes in the thermal look: California, Japan, New Zealand and off Portugal.": "熱成像風格下的近期地震:加利福尼亞、日本、新西蘭和葡萄牙近海。", "California": "加利福尼亞", - "New Zealand": "紐西蘭", - "Off Portugal": "葡萄牙外海", + "New Zealand": "新西蘭", + "Off Portugal": "葡萄牙近海", "Flights, satellites and traffic together over New York, Los Angeles and London.": "紐約、洛杉磯和倫敦上空的航班、衛星與交通。", "New York, closer": "紐約,更近", "New York, closer still": "紐約,再近一些", - "Every live layer at once, pulling back from Tokyo to the whole planet.": "同時顯示所有即時圖層,從東京拉遠到整個地球。", + "Every live layer at once, pulling back from Tokyo to the whole planet.": "同時顯示所有實時圖層,從東京拉遠到整個地球。", "Tokyo, pulling back": "東京,拉遠", "Japan and East Asia": "日本與東亞", "South China Sea": "南海", "The whole globe": "整個地球", "The 26 August 2026 Bhote Koshi outburst flood in Nepal, followed down the valley to Trishuli.": "2026 年 8 月 26 日尼泊爾 Bhote Koshi 潰決洪水,沿河谷而下追蹤至 Trishuli。", "Reconstructed flood path (CC BY-NC 4.0)": "重建的洪水路徑 (CC BY-NC 4.0)", - "THUMBNAIL": "縮圖", - "Worldwide live-flight snapshot (non-commercial research and education licence)": "全球即時航班快照(非商業研究與教育授權)", - "Satellite element sets and catalogue (U.S. government data)": "衛星軌道根數與目錄(美國政府資料)", - "Satellite operators, owners and purposes": "衛星營運者、擁有者與用途", - "Earthquake feed (U.S. public domain)": "地震資料流(美國公有領域)", + "THUMBNAIL": "縮略圖", + "Worldwide live-flight snapshot (non-commercial research and education licence)": "全球實時航班快照(非商業研究與教育許可)", + "Satellite element sets and catalogue (U.S. government data)": "衛星軌道根數與目錄(美國政府數據)", + "Satellite operators, owners and purposes": "衛星運營者、所有者與用途", + "Earthquake feed (U.S. public domain)": "地震數據流(美國公有領域)", "Historical and post-event satellite imagery (CC BY-NC 4.0)": "歷史與事件後衛星影像 (CC BY-NC 4.0)", - "A visualization of the 26 August 2026 Bhote Koshi outburst flood, not an official hazard model. The historical (2021) and post-event views are Vantor WorldView imagery; the river’s path is GeoPera’s reconstruction. Witness clips link to their original posts, and their capture times are unverified.": "這是 2026 年 8 月 26 日 Bhote Koshi 潰決洪水的視覺化,並非官方災害模型。歷史(2021 年)與事件後畫面為 Vantor WorldView 影像;河流路徑為 GeoPera 的重建結果。目擊者影片連結到其原始貼文,拍攝時間未經核實。", - "That story is not available here": "該故事在此處無法使用", + "A visualization of the 26 August 2026 Bhote Koshi outburst flood, not an official hazard model. The historical (2021) and post-event views are Vantor WorldView imagery; the river’s path is GeoPera’s reconstruction. Witness clips link to their original posts, and their capture times are unverified.": "這是 2026 年 8 月 26 日 Bhote Koshi 潰決洪水的可視化,並非官方災害模型。歷史(2021 年)與事件後視圖為 Vantor WorldView 影像;河流路徑為 GeoPera 的重建結果。目擊者視頻鏈接到其原始帖子,拍攝時間未經核實。", + "That story is not available here": "該故事在此處不可用", "DRAFT": "草稿", - "A draft, not saved as a story yet. Use SAVE TO STORIES in AUTHORING to save it.": "尚未儲存為故事的草稿。在「創作」中使用「儲存到 STORIES」即可儲存。", + "A draft, not saved as a story yet. Use SAVE TO STORIES in AUTHORING to save it.": "尚未保存為故事的草稿。在“創作”中使用“保存到 STORIES”即可保存。", "Heading to next stop": "前往下一站", "Arriving at a stop": "即將到站", "Stopped at a stop": "停靠站點", @@ -3728,12 +3754,12 @@ "Flight level": "飛行高度層", "Mach": "馬赫", "Squawk {code}": "應答機編碼 {code}", - "Signal": "訊號", + "Signal": "信號", "Civilian, in the air": "民用,空中", "Military, in the air": "軍用,空中", "On the ground": "地面", "Motion": "運動", - "Operator": "營運商", + "Operator": "運營商", "Last reported": "最近報告", "Crowding": "擁擠程度", "Class": "類別", @@ -3746,7 +3772,7 @@ "Wildfire": "野火", "{n} acres": "{n} 英畝", "{n}% contained": "已控制 {n}%", - "prescribed burn": "計畫燒除", + "prescribed burn": "計劃燒除", "{count} satellite fire hits": { "other": "{count} 個衛星火點" }, @@ -3762,45 +3788,45 @@ "Snow showers": "陣雪", "Thunderstorm": "雷暴", "Mixed conditions": "天氣多變", - "Search {name} and nearby": "搜尋 {name} 及附近", - "Search what is in view": "搜尋視野內內容", - "Close Context search": "關閉態勢搜尋", - "Search in Context": "在態勢中搜尋", - "Close search": "關閉搜尋", + "Search {name} and nearby": "搜索 {name} 及附近", + "Search what is in view": "搜索視野內內容", + "Close Context search": "關閉態勢搜索", + "Search in Context": "在態勢中搜索", + "Close search": "關閉搜索", "Shrink Context back to a panel": "將態勢縮回面板", "Expand Context to a full-height column": "將態勢展開為全高欄", - "Context tabs": "態勢分頁", + "Context tabs": "態勢標籤頁", "Inspector": "檢查器", "Properties": "屬性", "Level": "等級", "Last {n} min": "最近 {n} 分鐘", "Just now": "剛剛", - "Since selected": "自選取起", + "Since selected": "自選中起", "Altitude": "高度", "Heading": "航向", - "Field of view": "視野", - "Camera frame": "攝影機畫面", - "Acquiring frame…": "正在取得畫面…", - "Show a bigger view": "放大檢視", - "Camera view": "攝影機視圖", - "More info": "更多資訊", + "Field of view": "視場", + "Camera frame": "攝像頭畫面", + "Acquiring frame…": "正在獲取畫面…", + "Show a bigger view": "放大查看", + "Camera view": "攝像頭視圖", + "More info": "更多信息", "{n} s ago": "{n} 秒前", "{n} min ago": "{n} 分鐘前", "{n} h ago": "{n} 小時前", "{n} d ago": "{n} 天前", - "Out of feed · last reading": "已離開資料源 · 最後讀數", + "Out of feed · last reading": "已離開數據源 · 最後讀數", "Live · {age}": "實時 · {age}", "{n} m": "{n} m", "{n} km": "{n} km", "updated {age}": "更新於 {age}", - "Selected on the map": "地圖上的選取項", + "Selected on the map": "地圖上的選中項", "Close card": "關閉卡片", "{n}% flown": "已飛 {n}%", "to go": "剩餘", - "The scheduled route for this flight number does not match where the plane is; it may be another leg of the same flight.": "該航班號的計畫航線與飛機位置不符,可能是同一航班的另一航段。", - "Scheduled · unverified: does not match where the plane is": "計畫 · 未核實:與飛機位置不符", - "Nothing in this item’s details matches “{text}”.": "此項詳情中沒有與「{text}」相符的內容。", - "Matching details": "相符的詳情", + "The scheduled route for this flight number does not match where the plane is; it may be another leg of the same flight.": "該航班號的計劃航線與飛機位置不符,可能是同一航班的另一航段。", + "Scheduled · unverified: does not match where the plane is": "計劃 · 未核實:與飛機位置不符", + "Nothing in this item’s details matches “{text}”.": "此項詳情中沒有與“{text}”匹配的內容。", + "Matching details": "匹配的詳情", "Enter orbital view": "進入軌道視圖", "Enter Cockpit": "進入座艙", "Fly to": "飛往", @@ -3816,10 +3842,10 @@ "Conditions here": "此處狀況", "feels {n}°": "體感 {n}°", "Reading conditions here…": "正在讀取此處狀況…", - "No weather reading here.": "此處沒有天氣資料。", + "No weather reading here.": "此處沒有天氣數據。", "Local solar time": "當地太陽時", "Nearby radius": "附近半徑", - "How far out the nearby lists look": "附近清單的範圍", + "How far out the nearby lists look": "附近列表的範圍", "Hazards within {radius}": "{radius} 內的災害", "Turns the layer on": "開啟該圖層", "No earthquakes, tropical storms or wildfires reported within {radius}.": "{radius} 內未報告地震、熱帶風暴或野火。", @@ -3837,29 +3863,29 @@ "{things} in view from {layers}": "視野內有來自 {layers} 的 {things}", "{n} km up": "高 {n} km", "{n} m up": "高 {n} m", - "This view": "目前視圖", + "This view": "當前視圖", "Day": "白天", "Twilight": "晨昏", "Night": "夜間", "Daylight": "日照", "sun {n}°": "太陽 {n}°", - "Of {n} read, {total} loaded": "讀取 {n} 個,已載入 {total} 個", + "Of {n} read, {total} loaded": "讀取 {n} 個,已加載 {total} 個", "Of all {n}": "全部 {n} 個中", "Of {n} in view": "視野內 {n} 個中", "Error": "錯誤", "Stale": "已過時", "In view": "視野內", "Globe view": "地球視圖", - "Nothing selected": "未選取任何內容", - "Worldwide now": "全球目前", + "Nothing selected": "未選中任何內容", + "Worldwide now": "全球當前", "Turn on {name}": "開啟 {name}", - "{n} loaded": "已載入 {n}", + "{n} loaded": "已加載 {n}", "{n} in view": "視野內 {n}", "Turn off {name}": "關閉 {name}", "Camera height": "相機高度", - "Nothing in view matches “{text}”.": "視野內沒有與「{text}」相符的內容。", - "Nothing from the layers that are on is in view here. Zoom out to see more.": "已開啟的圖層在此處視野內沒有內容。縮小以檢視更多。", - "No loaded layer has anything in view. Turn some on in Data Layers.": "已載入的圖層在視野內都沒有內容。請在數據圖層中開啟一些。", + "Nothing in view matches “{text}”.": "視野內沒有與“{text}”匹配的內容。", + "Nothing from the layers that are on is in view here. Zoom out to see more.": "已開啟的圖層在此處視野內沒有內容。縮小以查看更多。", + "No loaded layer has anything in view. Turn some on in Data Layers.": "已加載的圖層在視野內都沒有內容。請在數據圖層中開啟一些。", "Places in view": "視野內的地點", "Show here": "在此顯示", "Ask GEV what's here": "問問 GEV 這裡有什麼", @@ -3867,19 +3893,19 @@ "vessel": "船舶", "launch": "發射", "fire": "火點", - "Fire detection": "火點偵測", + "Fire detection": "火點探測", "fire perimeter": "火場範圍", "earthquake": "地震", "storm": "風暴", - "air quality station": "空氣品質站", + "air quality station": "空氣質量站", "installation": "設施", "dam": "水壩", - "data centre": "資料中心", + "data centre": "數據中心", "place": "地點", "vehicle": "車輛", "bike station": "單車站", - "plate reader": "車牌辨識器", - "camera": "攝影機", + "plate reader": "車牌識別器", + "camera": "攝像頭", "airspace": "空域", "sighting": "目擊", "Callsign": "呼號", @@ -3897,8 +3923,8 @@ "Place": "地點", "Fire power": "火點功率", "Satellite": "衛星", - "Sensor": "感測器", - "Detected": "偵測時間", + "Sensor": "傳感器", + "Detected": "探測時間", "Contained": "已控制", "Discovered": "發現時間", "Basin": "海域", @@ -3936,7 +3962,7 @@ "Typhoon": "颱風", "Super typhoon": "超強颱風", "Tropical cyclone": "熱帶氣旋", - "Prescribed burn": "計畫燒除", + "Prescribed burn": "計劃燒除", "Atlantic": "大西洋", "Eastern Pacific": "東太平洋", "Central Pacific": "中太平洋", @@ -3973,7 +3999,7 @@ "Emergency: {kind}": "緊急情況:{kind}", "Emergency declared": "已宣布緊急情況", "Tsunami warning issued": "已發布海嘯警報", - "VFR, no flight plan": "VFR,無飛行計畫", + "VFR, no flight plan": "VFR,無飛行計劃", "VFR conspicuity": "VFR 識別碼", "IFR, no code yet": "IFR,尚未分配編碼", "Hijack": "劫機", @@ -3981,12 +4007,12 @@ "Descending {n} ft/min": "下降 {n} ft/min", "Cruising, level": "巡航,平飛", "Airliners": "客機", - "Widebodies": "廣體機", + "Widebodies": "寬體機", "Business jets": "公務機", "Helicopters": "直升機", "Turboprops": "渦槳飛機", - "Fast jets": "高速噴射機", - "Four-engine jets": "四發噴射機", + "Fast jets": "高速噴氣機", + "Four-engine jets": "四發噴氣機", "M6 and above": "M6 及以上", "M5 to 6": "M5 至 6", "M4 to 5": "M4 至 5", diff --git a/src/i18n/zh-hant-cli.test.mjs b/src/i18n/zh-hant-cli.test.mjs new file mode 100644 index 0000000000..47b7e62664 --- /dev/null +++ b/src/i18n/zh-hant-cli.test.mjs @@ -0,0 +1,145 @@ +// The zh-Hant branches of `npm run i18n` (main in scripts/i18n.mjs), run in a +// throwaway repository like stale-index.test.mjs. +import { test } from 'node:test'; +import assert from 'node:assert/strict'; +import { execFileSync, spawnSync } from 'node:child_process'; +import { + copyFileSync, + mkdirSync, + mkdtempSync, + readFileSync, + rmSync, + symlinkSync, + writeFileSync, +} from 'node:fs'; +import { createRequire } from 'node:module'; +import { tmpdir } from 'node:os'; +import path from 'node:path'; +import { fileURLToPath } from 'node:url'; + +const REPO = path.resolve( + path.dirname(fileURLToPath(import.meta.url)), + '../..', +); +const json = (catalog) => `${JSON.stringify(catalog, null, 2)}\n`; + +function sandbox(zhCN, { modules = true } = {}) { + const root = mkdtempSync(path.join(tmpdir(), 'zh-hant-cli-')); + const write = (file, text) => { + mkdirSync(path.dirname(path.join(root, file)), { recursive: true }); + writeFileSync(path.join(root, file), text); + }; + mkdirSync(path.join(root, 'scripts')); + copyFileSync( + path.join(REPO, 'scripts/i18n.mjs'), + path.join(root, 'scripts/i18n.mjs'), + ); + if (modules) { + // The package wherever node finds it, from its dist/umd entry; a junction + // needs no symlink privilege on Windows. + const entry = createRequire(import.meta.url).resolve('opencc-js/cn2t'); + mkdirSync(path.join(root, 'node_modules')); + symlinkSync( + path.resolve(path.dirname(entry), '../..'), + path.join(root, 'node_modules/opencc-js'), + 'junction', + ); + } + write('.gitignore', 'node_modules\n'); + write('src/a.js', "export const a = [t('Video'), t('Server')];\n"); + write('src/i18n/same-as-english.json', '{}\n'); + write('src/i18n/locales/zh-CN.json', json(zhCN)); + const git = (...args) => + execFileSync('git', args, { cwd: root, encoding: 'utf8' }); + git('init', '-q'); + return { + git, + write, + read: (file) => readFileSync(path.join(root, file), 'utf8'), + run: (...args) => + spawnSync(process.execPath, ['scripts/i18n.mjs', ...args], { + cwd: root, + encoding: 'utf8', + }), + done: () => rmSync(root, { recursive: true, force: true }), + }; +} + +const ZH_CN = { Video: '视频', Server: '服务器' }; +const ZH_HANT = { Video: '視頻', Server: '服務器' }; + +test('--missing zh-Hant points to --zh-hant instead of printing a template', () => { + const box = sandbox(ZH_CN); + try { + for (const locale of ['zh-Hant', 'zh-hant']) { + const result = box.run('--missing', locale); + assert.equal(result.status, 1); + assert.equal(result.stdout, ''); + assert.match(result.stderr, /then run npm run i18n -- --zh-hant/); + } + } finally { + box.done(); + } +}); + +test('--zh-hant writes zh-CN converted, in its key order, indent 2 and a final newline', () => { + const box = sandbox(ZH_CN); + try { + const result = box.run('--zh-hant'); + assert.equal(result.status, 0, result.stdout + result.stderr); + assert.equal(box.read('src/i18n/locales/zh-Hant.json'), json(ZH_HANT)); + assert.match(result.stdout, /zh-Hant: 2 messages, complete/); + } finally { + box.done(); + } +}); + +test('--prune drops a stale entry from both catalogs, whichever git lists first', () => { + const box = sandbox({ ...ZH_CN, Old: '旧' }); + try { + // zh-CN tracked and zh-Hant not: git ls-files lists zh-Hant first. + box.git('add', '-A'); + box.run('--zh-hant'); + const result = box.run('--prune'); + assert.equal(result.status, 0, result.stdout + result.stderr); + assert.match(result.stdout, /zh-CN: pruned 1 unused entries/); + assert.match(result.stdout, /zh-Hant: pruned 1 unused entries/); + assert.equal(box.read('src/i18n/locales/zh-Hant.json'), json(ZH_HANT)); + } finally { + box.done(); + } +}); + +test('a missing zh-Hant entry says to add it to zh-CN only when zh-CN lacks it too', () => { + for (const [zhCN, fill] of [ + [ZH_CN, 'run npm run i18n -- --zh-hant'], + [{ Video: '视频' }, 'add them to zh-CN, then npm run i18n -- --zh-hant'], + ]) { + const box = sandbox(zhCN); + try { + box.write('src/i18n/locales/zh-Hant.json', json({ Video: '視頻' })); + const result = box.run(); + assert.equal(result.status, 1); + assert.ok( + result.stdout.includes(`zh-Hant: 1 missing (${fill}):`), + result.stdout, + ); + } finally { + box.done(); + } + } +}); + +test('without node_modules the zh-Hant check says to install and the other checks still run', () => { + const box = sandbox(ZH_CN, { modules: false }); + try { + box.write('src/i18n/locales/zh-Hant.json', json(ZH_HANT)); + box.write('index.html', '

Unmarked words

\n'); + const result = box.run(); + assert.equal(result.status, 1); + assert.match(result.stdout, /zh-Hant: .*run npm ci/); + assert.match(result.stdout, /1 UI strings not marked for translation/); + } finally { + box.done(); + } +}); diff --git a/src/layers/ghostMaps/index.js b/src/layers/ghostMaps/index.js index 9332622411..df94883845 100644 --- a/src/layers/ghostMaps/index.js +++ b/src/layers/ghostMaps/index.js @@ -857,9 +857,12 @@ export function createGhostMapsLayer({ title: days === null ? t('Show markers of every age') - : t('Maximum event age: {days}d; undated markers are kept', { - days: formatNumber(days), - }), + : tn( + days, + 'Maximum event age: {days}d; undated markers are kept', + 'Maximum event age: {days}d; undated markers are kept', + { days: formatNumber(days) }, + ), active: days === _ageDays, onClick: () => setAgeDays(days), })), @@ -894,7 +897,7 @@ export function createGhostMapsLayer({ }; }), legend: [], - info: `${_ageDays === null ? t('All markers') : t('Event age: {days}d · undated kept', { days: formatNumber(_ageDays) })} · ${info}`, + info: `${_ageDays === null ? t('All markers') : tn(_ageDays, 'Event age: {days}d · undated kept', 'Event age: {days}d · undated kept', { days: formatNumber(_ageDays) })} · ${info}`, infoTitle: t( 'S2 Underground publishes these KMZ products to GitHub. New uploads are detected within seconds and replace the previous edition automatically. Click a marker for its report.', ), diff --git a/src/layers/ghostMaps/lifecycle.test.mjs b/src/layers/ghostMaps/lifecycle.test.mjs index 7bba31645d..675bdefa24 100644 --- a/src/layers/ghostMaps/lifecycle.test.mjs +++ b/src/layers/ghostMaps/lifecycle.test.mjs @@ -1,5 +1,6 @@ import assert from 'node:assert/strict'; import test from 'node:test'; +import { setLocale } from '../../i18n/index.js'; import { createGhostMapsLayer } from './index.js'; import { bindFakeDraw } from '../../testSupport/fakeDrawPort.mjs'; import { GHOSTMAPS_PRODUCTS, GHOSTMAPS_LATEST_DROP } from './catalog.js'; @@ -310,6 +311,35 @@ test('age controls default to seven days and widening restores filtered and expi assert.equal(ageChip(layer, null).active, true); }); +test('the event age agrees with its number of days', async (t) => { + t.after(() => setLocale('en')); + const { layer, viewer } = fixture(t, { reports: [{ name: 'Undated' }] }); + await layer.update(viewer); + const info = () => + layer.getRowControls().info.split(' · ').slice(0, 2).join(' · '); + assert.equal( + ageChip(layer, 1).title, + 'Maximum event age: 1d; undated markers are kept', + ); + setLocale('de'); + assert.equal( + ageChip(layer, 1).title, + 'Maximales Ereignisalter: 1 Tag; undatierte Markierungen bleiben erhalten', + ); + assert.equal( + ageChip(layer, 7).title, + 'Maximales Ereignisalter: 7 Tage; undatierte Markierungen bleiben erhalten', + ); + assert.equal(info(), 'Ereignisalter: 7 Tage · undatierte bleiben'); + await ageChip(layer, 1).onClick(); + assert.equal(info(), 'Ereignisalter: 1 Tag · undatierte bleiben'); + setLocale('es'); + assert.equal( + info(), + 'Antigüedad: 1 día · se conservan los marcadores sin fecha', + ); +}); + test('age preferences persist independently of product choices and reject invalid storage', async (t) => { const values = new Map([['gev.ghostmaps.products', '["cip"]']]); const storage = { diff --git a/src/layers/launches/missionStatus.i18n.test.mjs b/src/layers/launches/missionStatus.i18n.test.mjs index 8826d0d36e..7d3b2e572b 100644 --- a/src/layers/launches/missionStatus.i18n.test.mjs +++ b/src/layers/launches/missionStatus.i18n.test.mjs @@ -69,3 +69,38 @@ test('the mission panel translates only the fallback status', (t) => { assert.equal(shownStatus(UNKNOWN_LAUNCH_STATUS), 'Desconocido'); assert.equal(shownStatus('Launch Successful'), 'Launch Successful'); }); + +test('a confirmed landing position is worded apart from the CONFIRMED sightings chip', (t) => { + t.after(() => setLocale('en')); + const position = () => + createPanel({ + state: { + _selectedLaunchId: 'mission-1', + _launches: [ + { + id: 'mission-1', + name: 'Example', + status: 'Launch Successful', + payloads: [], + recoveryStages: [ + { + name: 'B1080', + endpoint: { lat: 28.41, lon: -80.6, accuracy: 'CONFIRMED' }, + }, + ], + }, + ], + _replayTracks: new Map(), + }, + parts: { + overlays: { shortMissionLabel: (name) => name }, + policyHelpers: { missionPathPresentation: () => ({}) }, + replay: { presentReplay: () => ({}) }, + }, + }).presentMission().stages[0].position; + assert.match(position(), / · CONFIRMED$/); + // One landing, singular: sv BEKRÄFTAD, where the sightings chip says + // BEKRÄFTADE. + setLocale('sv'); + assert.match(position(), / · BEKRÄFTAD$/); +}); diff --git a/src/layers/wildlifeSightings/acquisition.test.mjs b/src/layers/wildlifeSightings/acquisition.test.mjs index 3cb5cd4f73..daad1f53c4 100644 --- a/src/layers/wildlifeSightings/acquisition.test.mjs +++ b/src/layers/wildlifeSightings/acquisition.test.mjs @@ -544,7 +544,7 @@ test('retention never revives an incumbent card after the observation window exp test('all heights and the sampled fallback use the same sightings-in-view count label', () => { const h = harness(); h.state.renderedRows = [sighting]; - assert.equal(h.layer.getStats().countLabel, '1 sightings in view'); + assert.equal(h.layer.getStats().countLabel, '1 sighting in view'); h.state.sightingCount = 2000; assert.equal(h.layer.getStats().count, 2000); assert.equal( @@ -562,6 +562,32 @@ test('all heights and the sampled fallback use the same sightings-in-view count } }); +test('the sightings count takes the plural form of its number', (t) => { + t.after(() => setLocale('en')); + const h = harness(); + const label = (count) => { + h.state.sightingCount = count; + return h.layer.getStats().countLabel; + }; + setLocale('ru'); + assert.equal(label(1), '1 наблюдение в кадре'); + assert.equal(label(3), '3 наблюдения в кадре'); + assert.equal(label(5), '5 наблюдений в кадре'); + setLocale('de'); + assert.equal(label(1), '1 Beobachtung im Bild'); + assert.equal(label(2000), '2.000 Beobachtungen im Bild'); +}); + +test('the CONFIRMED chip names the sightings, apart from a confirmed launch landing', (t) => { + t.after(() => setLocale('en')); + const h = harness(); + assert.equal(h.chip('quality-confirmed').label, 'CONFIRMED'); + setLocale('sv'); + assert.equal(h.chip('quality-confirmed').label, 'BEKRÄFTADE'); + setLocale('es'); + assert.equal(h.chip('quality-confirmed').label, 'CONFIRMADOS'); +}); + test('a stale fallback with a failed-refresh deadline remains DEGRADED, retryable and dated to the cached data', async () => { const h = harness({ getSnapshotDetail: async () => ({ diff --git a/src/layers/wildlifeSightings/controls.js b/src/layers/wildlifeSightings/controls.js index 84b8b862ae..b0499931a8 100644 --- a/src/layers/wildlifeSightings/controls.js +++ b/src/layers/wildlifeSightings/controls.js @@ -1,4 +1,4 @@ -import { t, formatNumber, translateKnown } from '../../i18n/index.js'; +import { t, tn, formatNumber, translateKnown } from '../../i18n/index.js'; import { msg } from '../../i18n/marker.js'; import { translateFeedError } from '../../ui/statusText.js'; import { wildlifeIconicGroup } from './model.js'; @@ -138,7 +138,8 @@ export function createControls({ state, services, parts }) { const chips = [ chip({ id: WILDLIFE_CONFIRMED_CHIP_ID, - label: t('CONFIRMED'), + // The sightings, plural; a launch landing is CONFIRMED alone. + label: t('CONFIRMED', { context: 'sightings filter' }), title: t('Show only community-confirmed (research-grade) sightings'), params: { confirmed: confirmedFailed ? state.confirmed : !state.confirmed, @@ -215,9 +216,12 @@ export function createControls({ state, services, parts }) { stale: state.stale, loading, refreshing, - countLabel: t('{count} sightings in view', { - count: formatNumber(count), - }), + countLabel: tn( + count, + '{count} sighting in view', + '{count} sightings in view', + { count: formatNumber(count) }, + ), loadingLabel: loading ? t('loading...') : refreshing diff --git a/src/layers/wildlifeSightings/ownership.test.mjs b/src/layers/wildlifeSightings/ownership.test.mjs index 057c805196..c7ab130a0f 100644 --- a/src/layers/wildlifeSightings/ownership.test.mjs +++ b/src/layers/wildlifeSightings/ownership.test.mjs @@ -1936,7 +1936,7 @@ test('unavailable grids fail closed to visible sampled sprites without a global assert.equal(h.clicks.collection.values[0].id, 'wildlife:inat:1'); assert.ok(h.clicks.collection.values[0].size[0] * 0.5 >= 8); assert.equal(h.layer.getStats().count, 1); - assert.match(h.layer.getStats().countLabel, /sightings in view/); + assert.equal(h.layer.getStats().countLabel, '1 sighting in view'); assert.equal(h.layer.getStats().partial, undefined); assert.equal(layerFeedState(h.layer.getStats()), 'degraded'); assert.match(h.layer.getStats().error, /Malformed iNaturalist grid response/); @@ -1973,7 +1973,7 @@ test('an oversized view coarsens to a complete grid within the six-tile cap', as await h.update(); assert.equal(h.clicks.collection.values.length, 1); assert.equal(h.clicks.collection.values[0].id, 'wildlife:inat:1'); - assert.match(h.layer.getStats().countLabel, /sightings in view/); + assert.match(h.layer.getStats().countLabel, /sightings? in view/); assert.equal(layerFeedState(h.layer.getStats()), 'nominal'); h.layer.destroy(); }); diff --git a/src/ui/cockpitBridge.test.mjs b/src/ui/cockpitBridge.test.mjs index e7ecb36d2a..69a0e64fff 100644 --- a/src/ui/cockpitBridge.test.mjs +++ b/src/ui/cockpitBridge.test.mjs @@ -7,6 +7,7 @@ import assert from 'node:assert/strict'; import { createPinia } from 'pinia'; import { createApp, defineComponent, h, nextTick } from 'vue'; import { CockpitViewController } from './cockpitController.js'; +import { setLocale } from '../i18n/index.js'; import { useCockpitStore } from './stores/cockpit.js'; import CockpitView from './views/CockpitView.vue'; import ContextView from './views/ContextView.vue'; @@ -413,6 +414,33 @@ test('the bridge radar shows nearby ships without its own and steps its range', assert.ok(!$('#cockpit-radar') || $('#cockpit-radar').hidden); }); +test('the radar range and ring spacing agree with their distance (ru)', async (t) => { + const { $, cockpit } = fixture(t); + t.after(() => setLocale('en')); + setLocale('ru'); + cockpit.enter(); + await settle(); + const shown = () => [ + $('#cockpit-radar-range').textContent.trim(), + $('.cockpit-radar-rings').textContent.trim(), + ]; + // The ring spacing is a fraction at the short ranges: Intl.PluralRules + // gives 0.75 and 1.5 the form of their own. + const expected = [ + ['3 МОР. МИЛИ', 'КОЛЬЦА 0,75 МОР. МИЛИ'], + ['6 МОР. МИЛЬ', 'КОЛЬЦА 1,5 МОР. МИЛИ'], + ['12 МОР. МИЛЬ', 'КОЛЬЦА 3 МОР. МИЛИ'], + ['24 МОР. МИЛИ', 'КОЛЬЦА 6 МОР. МИЛЬ'], + ]; + for (const [index, labels] of expected.entries()) { + if (index) { + $('#cockpit-radar-range').click(); + await settle(); + } + assert.deepEqual(shown(), labels); + } +}); + test('contact navigation does not jump ship from the bridge', async (t) => { const { cockpit, navigations } = fixture(t); cockpit.enter(); @@ -1276,6 +1304,18 @@ test('a ship with no true heading is held, and labelled, on its course', async ( signals.some(([, , , detail]) => /COURSE 095°/.test(detail)), JSON.stringify(signals), ); + // A ship's course has a word of its own: pt RUMO, an aircraft's CURSO. + t.after(() => setLocale('en')); + setLocale('pt'); + signals.length = 0; + cockpit.exit(); + await settle(); + cockpit.enter(); + await settle(); + assert.ok( + signals.some(([, , , detail]) => /· RUMO 095°$/.test(detail)), + JSON.stringify(signals), + ); }); test('both entries name the subject the same way', async () => { diff --git a/src/ui/cockpitInstruments.js b/src/ui/cockpitInstruments.js index 62cb0e6ec0..3837022dd5 100644 --- a/src/ui/cockpitInstruments.js +++ b/src/ui/cockpitInstruments.js @@ -1,5 +1,5 @@ /** Instrument values, routes and vision controls for the Cockpit controller. */ -import { formatNumber, t } from '../i18n/index.js'; +import { formatNumber, t, tn } from '../i18n/index.js'; import { COCKPIT_VISION_MODES, normalizeCockpitVisionMode, @@ -525,7 +525,10 @@ export function updateRadar(info) { ); this.publishRadar({ ...picture, - rangeLabel: t('{range} NM', { range: formatNumber(rangeNm) }), + // A plural, as the ring spacing is: ru «3 МОР. МИЛИ», «12 МОР. МИЛЬ». + rangeLabel: tn(rangeNm, '{range} NM', '{range} NM', { + range: formatNumber(rangeNm), + }), }); } diff --git a/src/ui/cockpitOrbitalFocus.test.mjs b/src/ui/cockpitOrbitalFocus.test.mjs index 73cc3505c7..836d6e8d99 100644 --- a/src/ui/cockpitOrbitalFocus.test.mjs +++ b/src/ui/cockpitOrbitalFocus.test.mjs @@ -24,6 +24,7 @@ import { fakeInput, } from '../input/testDoubles.mjs'; import { CockpitViewController } from './cockpitController.js'; +import { setLocale, t as translate } from '../i18n/index.js'; import { useCockpitStore } from './stores/cockpit.js'; import { useHudStore } from './stores/hud.js'; import CockpitView from './views/CockpitView.vue'; @@ -572,6 +573,18 @@ test('a site row turns the camera onto it, holds it, and reads its off-nadir ang assert.match(held.className, /^track actionable$/); assert.match(held.detail, /^FOCUS · BASE · OFF-NADIR/); assert.equal(siteRow(scene, 'alpha').getAttribute('aria-label'), 'Release the camera from Camp Alpha'); + // The held site's FOCUS is a status, worded apart from the FOCUS command. + t.after(() => setLocale('en')); + setLocale('es'); + await refreshRows(scene); + const heldEs = rows(scene).find((row) => row.target?.id === SITES.alpha.id); + assert.match(heldEs.detail, /^ENFOQUE · /); + assert.match( + $('#cockpit-orbital-focus').textContent, + /^ENFOQUE · /, + 'the card names the held site with the same word', + ); + assert.equal(translate('FOCUS'), 'ENFOCAR', 'the command keeps its verb'); }); test('another site row switches the focus; the held site row ends it', async (t) => { diff --git a/src/ui/cockpitOrbitalSignals.js b/src/ui/cockpitOrbitalSignals.js index c01bd56a2b..49818ea691 100644 --- a/src/ui/cockpitOrbitalSignals.js +++ b/src/ui/cockpitOrbitalSignals.js @@ -132,7 +132,8 @@ function siteRows(info, { settled = true } = {}) { }), }); const words = [installationClassLabel(site.class), angle]; - if (focused) words.unshift(t('FOCUS')); + // A status, as on the focus card, not the command: es «ENFOQUE», not «ENFOCAR». + if (focused) words.unshift(t('FOCUS', { context: 'site status' })); return { key: `site:${site.id}`, // The held site reads as the subject does. diff --git a/src/ui/cockpitPresence.test.mjs b/src/ui/cockpitPresence.test.mjs index fa1f4663b5..330edecfcb 100644 --- a/src/ui/cockpitPresence.test.mjs +++ b/src/ui/cockpitPresence.test.mjs @@ -7,6 +7,7 @@ import assert from 'node:assert/strict'; import { createPinia } from 'pinia'; import { createApp, defineComponent, h, nextTick } from 'vue'; import { CockpitViewController } from './cockpitController.js'; +import { setLocale } from '../i18n/index.js'; import { useCockpitStore } from './stores/cockpit.js'; import CockpitView from './views/CockpitView.vue'; import ContextView from './views/ContextView.vue'; @@ -260,3 +261,16 @@ test('entering asks for a panel layout before Vue shows the cards', async (t) => await new Promise((resolve) => setTimeout(resolve, 50)); assert.deepEqual(laid, ['context', 'signals']); }); + +test('an aircraft is acquired on its CURSO in Portuguese; a ship keeps RUMO', async (t) => { + const { cockpit } = fixture(t); + t.after(() => setLocale('en')); + setLocale('pt'); + const signals = []; + cockpit.pushCockpitSignal = (...args) => signals.push(args); + cockpit.enter(); + await nextTick(); + const acquired = signals.find(([key]) => key === 'track'); + assert.ok(acquired, JSON.stringify(signals)); + assert.equal(acquired[3], 'UAL123 · CURSO 092°'); +}); diff --git a/src/ui/cockpitTrackingController.js b/src/ui/cockpitTrackingController.js index 8e3868bb7d..47bea48701 100644 --- a/src/ui/cockpitTrackingController.js +++ b/src/ui/cockpitTrackingController.js @@ -683,9 +683,11 @@ export function enter({ kind = null } = {}) { 'track', t('TRACK ACQUIRED'), // A ship with no true heading is held on its course over ground; one - // with neither is named without a direction. + // with neither is named without a direction. A ship's course has a + // word of its own: pt «RUMO», where an aircraft's is «CURSO». info.trackSource === 'course' ? t('{label} · COURSE {heading}°', { + context: 'vessel', label: info.name, heading: trackHeading, }) diff --git a/src/ui/news/NewsFeed.vue b/src/ui/news/NewsFeed.vue index 47e55c10f0..4c608f0fbd 100644 --- a/src/ui/news/NewsFeed.vue +++ b/src/ui/news/NewsFeed.vue @@ -1,6 +1,6 @@