New string for the translator database — thread 23908 power display prototype ============================================================================== KEY (already added to src/base.tab by the patch): obj=program_text name=No transformer connected note=factory electricity tab, shown when the plant feeds no network CONTEXT FOR TRANSLATORS Shown in the Electricity tab of a power station's window, on the line where "Usage" appears for a connected plant. It explains why "Power (MW)" reads 0 while "Generation" is positive: the plant is producing, but nothing is connected to take the power. Full tab text for a disconnected plant: Generation: 256 MW Power (MW): 0 No transformer connected FORMAT Pairs below follow the existing .tab layout: the English key on one line, the translation on the next, exactly as "Generation: %.0f MW" / "Generación: %.0f MW" appear today (es.tab:1214-1215). These are SUGGESTIONS for the translator database. The shipped simutrans/text/*.tab files were deliberately NOT edited by the patch - they carry "DO NOT EDIT THIS FILE / USE https://translator.simutrans.com" and are regenerated by tools/get_lang_files.sh. ------------------------------------------------------------------------------ REVIEWED - I would defend these ------------------------------------------------------------------------------ es No transformer connected Sin transformador conectado de No transformer connected Kein Transformator angeschlossen fr No transformer connected Aucun transformateur connecté it No transformer connected Nessun trasformatore collegato pt No transformer connected Nenhum transformador ligado nl No transformer connected Geen transformator aangesloten ca No transformer connected Sense transformador connectat ------------------------------------------------------------------------------ SUGGESTED - a native speaker should confirm before these are accepted ------------------------------------------------------------------------------ pl No transformer connected Brak podłączonego transformatora cz No transformer connected Není připojen žádný transformátor ru No transformer connected Трансформатор не подключён sv No transformer connected Ingen transformator ansluten dk No transformer connected Ingen transformer tilsluttet tr No transformer connected Bağlı transformatör yok ja No transformer connected 変圧器が接続されていません cn No transformer connected 未连接变压器 ------------------------------------------------------------------------------ NOTES ------------------------------------------------------------------------------ Encoding: this file is UTF-8. Several shipped .tab files are Latin-1 (es.tab declares PROP_FONT_FILE Prop-Latin1.bdf), so the accented characters above may need converting on import. The ja/cn/ru entries in particular will only work in languages whose font supports them - which is why they are in the "needs confirmation" group. German is the one worth getting right first, since prissi reads it. The existing entries use "Erzeugung" for Generation and "Auslastung" for Usage (de.tab:1197, :2279), so "Kein Transformator angeschlossen" sits in the same register. IF THE STRING IS REJECTED There is a string-free alternative, recorded in translation-analysis.md: make "Power (MW)" conditional on a net existing, exactly as "Net ID" and "Usage" already are, so a disconnected plant shows only "Generation: 256 MW". One line of code, no new key, no translation work. Nothing here is needed if that route is taken instead.