A POP in a retired city says why it can't open

buildPop returned without a word for a city that is off the map (the small
Brazilian towns retired in 3d469d9), so the agent API reported no_effect
with no toast. It now toasts that the city is off the map and names the
nearest open city in its country to build in instead, and its dry run
reports that as blocked. An old save that kept a POP there is unchanged.
This commit is contained in:
Charlie Allom 2026-11-04 22:46:10 +10:00
parent 3fd44908af
commit 4b554f2ecb
No known key found for this signature in database
11 changed files with 50 additions and 5 deletions

View file

@ -3,6 +3,7 @@
// Style: informal "du"; networking terms stay English (Peering, Transit, Dark Fiber, Wave, Port, POP, IX…), but
// plain "fiber" is "Glasfaser" and "fiber pair" is "Faserpaar". The add-strings skill has the full style notes.
(window.I18N=window.I18N||{}).de={
"action_helpers.city_is_off_the_map_small":"<b>{city} ist nicht mehr auf der Karte.</b><br>Kleine Städte so nah an einer größeren gibt es in neuen Spielen nicht mehr. Bau stattdessen in {near}.",
"action_helpers.light_fiber_pair_n_price":"Faserpaar {n} beleuchten <small>{price}</small>",
"action_helpers.light_fiber_pair_n_price_mo":"Faserpaar {n} beleuchten <small>{price} + {mo}/Monat</small>",
"action_helpers.n_fiber_pairs_lit_the_trench":"{n} Faserpaare beleuchtet, der Graben ist voll",

View file

@ -1,6 +1,7 @@
// Spanish: the translation of every label in src/i18n/en.js. One entry per line, sorted by label; plurals are
// {"one":…,"other":…}. Add or change entries with scripts/i18n-add.js, check with npm run i18n:check.
(window.I18N=window.I18N||{}).es={
"action_helpers.city_is_off_the_map_small":"<b>{city} ya no está en el mapa.</b><br>Las ciudades pequeñas tan cerca de una más grande ya no aparecen en partidas nuevas. Construye en {near}.",
"action_helpers.light_fiber_pair_n_price":"Iluminar el par de fibra {n} <small>{price}</small>",
"action_helpers.light_fiber_pair_n_price_mo":"Iluminar el par de fibra {n} <small>{price} + {mo}/mes</small>",
"action_helpers.n_fiber_pairs_lit_the_trench":"{n} pares de fibra iluminados, la zanja está llena",

View file

@ -1,6 +1,7 @@
// French: the translation of every label in src/i18n/en.js. One entry per line, sorted by label; plurals are
// {"one":…,"other":…}. Add or change entries with scripts/i18n-add.js, check with npm run i18n:check.
(window.I18N=window.I18N||{}).fr={
"action_helpers.city_is_off_the_map_small":"<b>{city} n’est plus sur la carte.</b><br>Les petites villes aussi proches d’une plus grande ne figurent plus dans les nouvelles parties. Construis plutôt à {near}.",
"action_helpers.light_fiber_pair_n_price":"Allumer la paire {n} <small>{price}</small>",
"action_helpers.light_fiber_pair_n_price_mo":"Allumer la paire {n} <small>{price} + {mo}/mois</small>",
"action_helpers.n_fiber_pairs_lit_the_trench":"{n} paires de fibres allumées, la tranchée est pleine",

View file

@ -1,6 +1,7 @@
// Italian: the translation of every label in src/i18n/en.js. One entry per line, sorted by label; plurals are
// {"one":…,"other":…}. Add or change entries with scripts/i18n-add.js, check with npm run i18n:check.
(window.I18N=window.I18N||{}).it={
"action_helpers.city_is_off_the_map_small":"<b>{city} non è più sulla mappa.</b><br>Le città piccole così vicine a una più grande non ci sono più nelle nuove partite. Costruisci invece a {near}.",
"action_helpers.light_fiber_pair_n_price":"Accendi la coppia {n} <small>{price}</small>",
"action_helpers.light_fiber_pair_n_price_mo":"Accendi la coppia {n} <small>{price} + {mo}/mese</small>",
"action_helpers.n_fiber_pairs_lit_the_trench":"{n} coppie di fibre accese, il cavidotto è pieno",

View file

@ -1,6 +1,7 @@
// Portuguese (Brazil). Keys are the English text exactly as passed to tr()/trn()/N_() in src/ (or as it stands
// in its data-i18n markup, aria-label or title); sorted; check with: npm run i18n:check, add with scripts/i18n-add.js
(window.I18N=window.I18N||{}).pt={
"action_helpers.city_is_off_the_map_small":"<b>{city} saiu do mapa.</b><br>Cidades pequenas tão perto de uma maior não entram mais em jogos novos. Construa em {near}.",
"action_helpers.light_fiber_pair_n_price":"Acender par {n} <small>{price}</small>",
"action_helpers.light_fiber_pair_n_price_mo":"Acender par {n} <small>{price} + {mo}/mês</small>",
"action_helpers.n_fiber_pairs_lit_the_trench":"{n} pares de fibras acesos, a vala está cheia",