diff --git a/application/editormode.h b/application/editormode.h index 954696032..8502b8194 100644 --- a/application/editormode.h +++ b/application/editormode.h @@ -3424,6 +3424,15 @@ class editor_mode : public application_mode, private editor_track::observer, pri void track_rename(TTrack &Track, std::string const &Name); void render_model_windows(); std::string model_label(TTrack const *Track) const; + layout::network const &model_network() const; + // what the last command came to as the user reads it: the reasons and the notes of the norms in the language of the editor + std::string model_shown() const; + // a message of the model or of the norms, English as they make it, in the language of the editor + static std::string model_tr(std::string const &Text); + // the reasons of a refusal as the user reads them, the BLOCK limits of the norms of them formatted here + static std::string model_reasons_shown(layout::outcome const &Outcome); + static std::string model_notice_shown(layout::notice const &Notice); + bool m_model_delete_confirmed{false}; // the old delete let through, the scenarios looked through selftest_result selftest_dispatch(std::string const &command, std::istringstream &words); void selftest_step(); diff --git a/application/editormodelay.cpp b/application/editormodelay.cpp index 3d267ff7e..fbdbb220f 100644 --- a/application/editormodelay.cpp +++ b/application/editormodelay.cpp @@ -2078,7 +2078,7 @@ void editor_mode::lay_finish(editor_track::snap_target const &End) if (model_refused() || made.empty()) { tool.laid_now = false; - tool.status = model_message(); + tool.status = model_shown(); if (End.track != nullptr && false == tool.points.empty()) { tool.points.pop_back(); @@ -2091,7 +2091,7 @@ void editor_mode::lay_finish(editor_track::snap_target const &End) if (End.track != nullptr) first_step_done(first_step::join); lay_told(length, made.size()); - tool.status += "\n" + model_message(); + tool.status += "\n" + model_shown(); for (auto const ¬ice : model_notices()) tool.status += "\n" + notice; m_node = made.back(); diff --git a/application/editormodemodel.cpp b/application/editormodemodel.cpp index e70c2644d..a84ba2852 100644 --- a/application/editormodemodel.cpp +++ b/application/editormodemodel.cpp @@ -16,6 +16,7 @@ http://mozilla.org/MPL/2.0/. #include "stdafx.h" #include "application/editormode.h" +#include "application/editormodemodel.h" #include "application/editormodeselftest.h" #include "application/editormodeshared.h" #include "application/editoruilayer.h" @@ -43,6 +44,7 @@ http://mozilla.org/MPL/2.0/. #include #include #include +#include #include namespace @@ -119,48 +121,10 @@ void expectation(bool const Passed, std::string const &What, std::string const & } // namespace -// what waits for the user's answer in a window of its own -struct model_question +std::string model_surface_of(TTrack const &Track) { - enum class kind - { - none, - hand, // the lines changed by hand: written over, or the change by hand kept - waiting, // the scenarios using the map being looked through, before the tracks named go - scenarios // the scenarios naming the tracks: taken away anyway, or not - }; - kind what{kind::none}; - std::set lines; - std::vector names; // the tracks to go - std::vector users; - std::function answer; // true: written over, taken away anyway - bool rename{false}; // the tracks named are to be renamed, not taken away - bool opened{false}; -}; - -struct editor_model -{ - project::session session; - bool tried{false}; // the project opened for the scenery, or failed to - std::string error; - std::unordered_map tracks; - project::index_cache index; - std::filesystem::path store; // the file the index is kept in between the sessions, none for the self-tests - model_question question; - // the line the route design is open on, its vertices as the model has them - struct plan_link - { - layout::line_id line{layout::line_id::none}; - std::vector vertices; - alignment::design original; - double split{-1.0}; // the chainage the split field holds, below 0 the middle of the line - } plan; - std::string message; // what the last command came to: why it was refused, or what the norms tell of it - bool refused{false}; - std::vector notices; - std::vector> written; // by the save under way, the texts written - std::map marks; // the self-test's copies of the network, for expect modelsame -}; + return surface_of(Track); +} void editor_model_deleter::operator()(editor_model *Model) const { @@ -186,7 +150,7 @@ std::string editor_mode::model_message() const std::vector editor_mode::model_notices() const { - return model().notices; + return model().shown_notices; } std::string editor_mode::model_error() const @@ -194,6 +158,127 @@ std::string editor_mode::model_error() const return model().error; } +layout::network const &editor_mode::model_network() const +{ + return model().session.network(); +} + +std::string editor_mode::model_shown() const +{ + return model().shown; +} + +namespace +{ + +// the format of the catalogue of the editor with {1}, {2}... put in its place: the words of the message the model made +std::string filled(std::string Format, std::vector const &Arguments) +{ + for (std::size_t i = 0; i < Arguments.size(); ++i) + { + auto const mark{"{" + std::to_string(i + 1) + "}"}; + for (auto at{Format.find(mark)}; at != std::string::npos; at = Format.find(mark, at + Arguments[i].size())) + Format.replace(at, mark.size(), Arguments[i]); + } + return Format; +} + +// a message of the model as the editor shows it: the English of the model matched against its forms, the form of the catalogue of the +// editor (STR) filled with the numbers and the names; the parts the forms leave as {sub} shown so in turn +struct message_form +{ + std::regex pattern; + char const *format; // with {1}, {2}... for the groups of the pattern + std::vector nested; // the group is a message of its own, shown so +}; + +std::vector const &message_forms() +{ + static std::vector const forms{ + // the norms: a BLOCK limit along a line, a finding + {std::regex{R"(^line (\d+) at ([-\d.]+) m: (.+)$)"}, STRN("line {1} at {2} m: {3}"), {false, false, true}}, + {std::regex{R"(^(.+?) ([-\d.e+]+), the limit ([-\d.e+]+) \((.+)\)$)"}, STRN("{1} {2}, the limit {3} ({4})"), {true, false, false, false}}, + {std::regex{R"(^(.+?) ([-\d.e+]+), the limit ([-\d.e+]+)$)"}, STRN("{1} {2}, the limit {3}"), {true, false, false}}, + // the turnouts + {std::regex{R"(^turnout (\d+) \((.+?)\): (.+)$)"}, STRN("turnout {1} ({2}): {3}"), {false, false, true}}, + {std::regex{R"(^bent into R (\d+) m in a main track, where no switch of 1:9\.403 nor steeper than 1:9 is bent \(11\.4 pkt 4\)$)"}, + STRN("bent into R {1} m in a main track, where no switch of 1:9.403 nor steeper than 1:9 is bent (11.4 pkt 4)"), {false}}, + {std::regex{R"(^(.+) is ([\d.]+) m long: it doesn't fit into line (\d+) \(([\d.]+) m long\) with its start at ([-\d.]+) m$)"}, + STRN("{1} is {2} m long: it doesn't fit into line {3} ({4} m long) with its start at {5} m"), {false, false, false, false, false}}, + {std::regex{R"(^line (\d+) is a track of turnout (\d+): move it, change it or take it out$)"}, STRN("line {1} is a track of turnout {2}: move it, change it or take it out"), {false, false}}, + // the crossovers + {std::regex{R"(^the second turnout doesn't fit into line (\d+) at ([-\d.]+) m$)"}, STRN("the second turnout doesn't fit into line {1} at {2} m"), {false, false}}, + {std::regex{R"(^the line between the turnouts is ([\d.]+) m long, the norms ask for ([\d.]+) m between two turnouts at ([\d.]+) km/h \(ST-T1-A6 11\.3 pkt 7\)$)"}, + STRN("the line between the turnouts is {1} m long, the norms ask for {2} m between two turnouts at {3} km/h (ST-T1-A6 11.3 pkt 7)"), {false, false, false}}, + {std::regex{R"(^the lines are ([\d.]+) m apart along the crossover \(to ([\d.]+) m\), (.+) needs ([\d.]+) m \(ST-T1-A6 tab\. 11\.2 and the straight between its turnouts\)$)"}, + STRN("the lines are {1} m apart along the crossover (to {2} m), {3} needs {4} m (ST-T1-A6 tab. 11.2 and the straight between its turnouts)"), {false, false, false, false}}, + {std::regex{R"(^no ordinary turnout of the catalogue fits lines ([\d.]+) m apart; (.+) needs them ([\d.]+) m apart$)"}, + STRN("no ordinary turnout of the catalogue fits lines {1} m apart; {2} needs them {3} m apart"), {false, false, false}}, + {std::regex{R"(^(.+) fits lines ([\d.]+) m apart, at ([\d.]+) km/h; (.+) needs them ([\d.]+) m apart$)"}, STRN("{1} fits lines {2} m apart, at {3} km/h; {4} needs them {5} m apart"), + {false, false, false, false, false}}, + {std::regex{R"(^proposed: (.+)$)"}, STRN("proposed: {1}"), {true}}, + // the lines and the nodes + {std::regex{R"(^line (\d+): (.+)$)"}, STRN("line {1}: {2}"), {false, true}}, + {std::regex{R"(^vertex (\d+): (.+)$)"}, STRN("vertex {1}: {2}"), {false, true}}, + {std::regex{R"(^([-\d.]+) m is inside a transition curve whose parts wouldn't be curves of its kind; split on a straight or an arc$)"}, + STRN("{1} m is inside a transition curve whose parts wouldn't be curves of its kind; split on a straight or an arc"), {false}}, + {std::regex{R"(^([-\d.]+) m is inside the vertical curve at ([-\d.]+) m$)"}, STRN("{1} m is inside the vertical curve at {2} m"), {false, false}}, + {std::regex{R"(^line (\d+) meets node (\d+) at an angle of ([\d.]+) deg$)"}, STRN("line {1} meets node {2} at an angle of {3} deg"), {false, false, false}}, + {std::regex{R"(^the grade breaks by ([\d.]+) per mille at node (\d+) with no vertical curve$)"}, STRN("the grade breaks by {1} per mille at node {2} with no vertical curve"), {false, false}}, + {std::regex{R"(^the cant steps by ([\d.]+) mm at node (\d+) where line (\d+) meets it$)"}, STRN("the cant steps by {1} mm at node {2} where line {3} meets it"), {false, false, false}}, + {std::regex{R"(^the grade break at ([-\d.]+) m isn't between the one before it and the end of the line, ([\d.]+) m long$)"}, + STRN("the grade break at {1} m isn't between the one before it and the end of the line, {2} m long"), {false, false}}, + {std::regex{R"(^the vertical curves at ([-\d.]+) m and ([-\d.]+) m overlap by ([\d.]+) m$)"}, STRN("the vertical curves at {1} m and {2} m overlap by {3} m"), {false, false, false}}, + {std::regex{R"(^the curves of vertex (\d+) and vertex (\d+) overlap by ([\d.]+) m$)"}, STRN("the curves of vertex {1} and vertex {2} overlap by {3} m"), {false, false, false}}, + {std::regex{R"(^the transition curves turn ([\d.]+) rad, more than the ([\d.]+) rad the tangents do$)"}, STRN("the transition curves turn {1} rad, more than the {2} rad the tangents do"), + {false, false}}, + {std::regex{R"(^node (\d+) isn't the free end of a line$)"}, STRN("node {1} isn't the free end of a line"), {false}}, + // of the editor's own + {std::regex{R"(^the end of the line at ([-\d.]+) m, its node at ([-\d.]+) m: a line of the model keeps the heights of its nodes$)"}, + STRN("the end of the line at {1} m, its node at {2} m: a line of the model keeps the heights of its nodes"), {false, false}}, + {std::regex{R"(^the spacing in the curve at vertex (\d+) isn't widened by (\d+) mm: its transitions can't take it$)"}, + STRN("the spacing in the curve at vertex {1} isn't widened by {2} mm: its transitions can't take it"), {false, false}}, + {std::regex{R"(^the curve at vertex (\d+) would be of a radius of ([-\d.]+) m alongside$)"}, STRN("the curve at vertex {1} would be of a radius of {2} m alongside"), {false, false}}, + {std::regex{R"(^a spacing of ([\d.]+) m$)"}, STRN("a spacing of {1} m"), {false}}, + }; + return forms; +} + +} // namespace + +std::string editor_mode::model_tr(std::string const &Text) +{ + if (Text.empty()) + return Text; + // a whole message the catalogue of the editor has + if (auto const whole{STR(Text)}; whole != Text) + return whole; + for (auto const &form : message_forms()) + { + std::smatch found; + if (false == std::regex_match(Text, found, form.pattern)) + continue; + std::vector arguments; + for (std::size_t i = 1; i < found.size(); ++i) + arguments.push_back(i - 1 < form.nested.size() && form.nested[i - 1] ? model_tr(found[i].str()) : found[i].str()); + return filled(STR(form.format), arguments); + } + return Text; +} + +std::string editor_mode::model_reasons_shown(layout::outcome const &Outcome) +{ + std::string result; + for (auto const &reason : Outcome.reasons) + result += (result.empty() ? "" : "\n") + model_tr(reason); + return result; +} + +std::string editor_mode::model_notice_shown(layout::notice const &Notice) +{ + return model_tr(Notice.text); +} + void editor_mode::model_forget(scene::basic_node const *Node) { if (m_model != nullptr) @@ -348,18 +433,24 @@ void editor_mode::model_told(layout::outcome const &Outcome, bool const Refused, { model().refused = Refused; model().notices.clear(); + model().shown_notices.clear(); if (Refused) { - model().message = STR("Refused, nothing changed:"); + model().message = "Refused, nothing changed:"; for (auto const &reason : Outcome.reasons) model().message += "\n" + reason; + model().shown = STR("Refused, nothing changed:") + "\n" + model_reasons_shown(Outcome); WriteLog("Editor: model: " + editor_selftest::one_line(model().message), logtype::generic); return; } model().message = What; + model().shown = What; for (auto const ¬ice : Outcome.notices) if (std::ranges::find(model().notices, notice.text) == model().notices.end()) + { model().notices.push_back(notice.text); + model().shown_notices.push_back(model_notice_shown(notice)); + } WriteLog("Editor: model: " + What + (model().notices.empty() ? std::string{} : " · " + std::to_string(model().notices.size()) + " notices of the norms"), logtype::generic); } @@ -509,6 +600,8 @@ void editor_mode::model_history(std::uint64_t const Token, bool const Undo) WriteLog(format("Editor: model: the step %llu can't be %s: the history of the model went out of step with the editor's", static_cast(Token), Undo ? "taken back" : "brought again"), logtype::generic); model().message.clear(); model().notices.clear(); + model().shown.clear(); + model().shown_notices.clear(); model().refused = false; } @@ -728,9 +821,13 @@ bool editor_mode::model_plan_apply() context.done = [this, line](std::vector const &) { auto const message{model().message}; auto const notices{model().notices}; + auto const shown{model().shown}; + auto const shown_notices{model().shown_notices}; route_from_model(line); model().message = message; model().notices = notices; + model().shown = shown; + model().shown_notices = shown_notices; }; model_run(std::move(commands), std::move(context)); return true; @@ -813,12 +910,16 @@ bool editor_mode::model_plan_convert(std::string &Why) context.done = [this](std::vector const &Created) { auto const message{model().message}; auto const notices{model().notices}; + auto const shown{model().shown}; + auto const shown_notices{model().shown_notices}; if (auto const *managed{Created.empty() ? nullptr : model_track(Created.front())}) route_from_model(managed->line); else route_drop(); model().message = message; model().notices = notices; + model().shown = shown; + model().shown_notices = shown_notices; }; model_run({line}, context); }); @@ -833,13 +934,13 @@ void editor_mode::render_model_plan() return; ImGui::TextColored(ImVec4(0.45f, 0.85f, 0.55f, 1.0f), "%s", format(STR_C("Line %s (managed)"), line_name(line).c_str()).c_str()); item_tooltip("A line of the model of the track geometry: its changes are applied as commands of the model, checked against the norms, its tracks made anew"); - if (false == model().message.empty()) + if (false == model().shown.empty()) { ImGui::PushTextWrapPos(0.0f); if (model().refused) - ImGui::TextColored(ImVec4(1.0f, 0.35f, 0.3f, 1.0f), "%s", model().message.c_str()); + ImGui::TextColored(ImVec4(1.0f, 0.35f, 0.3f, 1.0f), "%s", model().shown.c_str()); else - ImGui::TextDisabled("%s", model().message.c_str()); + ImGui::TextDisabled("%s", model().shown.c_str()); ImGui::PopTextWrapPos(); } // the quality line: what the norms warn of, or would have otherwise @@ -847,7 +948,7 @@ void editor_mode::render_model_plan() { ImGui::PushTextWrapPos(0.0f); ImGui::TextColored(ImVec4(1.0f, 0.75f, 0.25f, 1.0f), "%s", format(STR_P("The norms: %zu note", "The norms: %zu notes", static_cast(model().notices.size())), model().notices.size()).c_str()); - for (auto const ¬ice : model().notices) + for (auto const ¬ice : model().shown_notices) ImGui::BulletText("%s", notice.c_str()); ImGui::PopTextWrapPos(); } @@ -1353,10 +1454,14 @@ editor_mode::selftest_result editor_mode::selftest_model(std::string const &comm words >> mode; std::getline(words, text); text.erase(0, text.find_first_not_of(' ')); + // as the model told it, or as the user reads it in the language of the editor auto message{model().message}; for (auto const ¬ice : model().notices) message += "\n" + notice; - auto const holds{message.find(text) != std::string::npos}; + auto shown{model().shown}; + for (auto const ¬ice : model().shown_notices) + shown += "\n" + notice; + auto const holds{message.find(text) != std::string::npos || shown.find(text) != std::string::npos}; expectation(holds == (mode == "holds"), "modelmessage " + mode + " " + text, editor_selftest::one_line(message), (mode == "holds" ? "holding " : "lacking ") + text); return selftest_result::handled; } diff --git a/application/editormodemodel.h b/application/editormodemodel.h new file mode 100644 index 000000000..3a37dbf86 --- /dev/null +++ b/application/editormodemodel.h @@ -0,0 +1,75 @@ +/* +This Source Code Form is subject to the +terms of the Mozilla Public License, v. +2.0. If a copy of the MPL was not +distributed with this file, You can +obtain one at +http://mozilla.org/MPL/2.0/. +*/ + +#pragma once + +// The state of the editing through the model of the track geometry (stage E4), shared by the files of it: editormodemodel.cpp, the project +// and the lines; editormodemodelturnout.cpp, the turnouts; editormodemodeledit.cpp, the grade line, the curves and the parallel track. + +#include "application/editormode.h" +#include "editor/project/projectSession.hpp" +#include "editor/project/scenarioIndexCache.hpp" + +#include +#include +#include +#include +#include +#include +#include + +// what the entry of the track has between its length and its path (the width ... the visibility with the materials); empty where it isn't +// a plain track +std::string model_surface_of(TTrack const &Track); + +// what waits for the user's answer in a window of its own +struct model_question +{ + enum class kind + { + none, + hand, // the lines changed by hand: written over, or the change by hand kept + waiting, // the scenarios using the map being looked through, before the tracks named go + scenarios // the scenarios naming the tracks: taken away anyway, or not + }; + kind what{kind::none}; + std::set lines; + std::vector names; // the tracks to go + std::vector users; + std::function answer; // true: written over, taken away anyway + bool rename{false}; // the tracks named are to be renamed, not taken away + bool opened{false}; +}; + +struct editor_model +{ + project::session session; + bool tried{false}; // the project opened for the scenery, or failed to + std::string error; + std::unordered_map tracks; + project::index_cache index; + std::filesystem::path store; // the file the index is kept in between the sessions, none for the self-tests + model_question question; + // the line the route design is open on, its vertices as the model has them + struct plan_link + { + layout::line_id line{layout::line_id::none}; + std::vector vertices; + alignment::design original; + double split{-1.0}; // the chainage the split field holds, below 0 the middle of the line + } plan; + std::string message; // what the last command came to: why it was refused, or what the norms tell of it + bool refused{false}; + std::vector notices; + std::vector> written; // by the save under way, the texts written + std::map marks; // the self-test's copies of the network, for expect modelsame + std::string shown; // the message as the user reads it, in the language of the editor + std::vector shown_notices; // the notices so +}; + diff --git a/lang/editor_pl.po b/lang/editor_pl.po index 587133caa..4f0f73d78 100644 --- a/lang/editor_pl.po +++ b/lang/editor_pl.po @@ -15065,3 +15065,125 @@ msgstr "Po zmianie nazwy scenariusze stracą to, do czego odwołują się w mapi msgid "Rename anyway" msgstr "Zmień nazwę mimo to" + +# scenery editor: the turnouts, the grade line, the curves and the parallel track of the lines of the model (E4b), the messages of the model + +msgid "line {1} at {2} m: {3}" +msgstr "linia {1} w {2} m: {3}" + +msgid "{1} {2}, the limit {3} ({4})" +msgstr "{1} {2}, limit {3} ({4})" + +msgid "{1} {2}, the limit {3}" +msgstr "{1} {2}, limit {3}" + +msgid "turnout {1} ({2}): {3}" +msgstr "rozjazd {1} ({2}): {3}" + +msgid "bent into R {1} m in a main track, where no switch of 1:9.403 nor steeper than 1:9 is bent (11.4 pkt 4)" +msgstr "łukowany do R {1} m w torze głównym, gdzie nie łukuje się rozjazdów 1:9,403 ani bardziej stromych niż 1:9 (11.4 pkt 4)" + +msgid "{1} is {2} m long: it doesn't fit into line {3} ({4} m long) with its start at {5} m" +msgstr "{1} ma {2} m: nie mieści się w linii {3} (długość {4} m) z początkiem w {5} m" + +msgid "line {1} is a track of turnout {2}: move it, change it or take it out" +msgstr "linia {1} jest torem rozjazdu {2}: przesuń go, zmień albo usuń" + +msgid "the second turnout doesn't fit into line {1} at {2} m" +msgstr "drugi rozjazd nie mieści się w linii {1} w {2} m" + +msgid "the line between the turnouts is {1} m long, the norms ask for {2} m between two turnouts at {3} km/h (ST-T1-A6 11.3 pkt 7)" +msgstr "wstawka między rozjazdami ma {1} m, normy wymagają {2} m między dwoma rozjazdami przy {3} km/h (ST-T1-A6 11.3 pkt 7)" + +msgid "the lines are {1} m apart along the crossover (to {2} m), {3} needs {4} m (ST-T1-A6 tab. 11.2 and the straight between its turnouts)" +msgstr "rozstaw linii wzdłuż połączenia {1} m (do {2} m), {3} wymaga {4} m (ST-T1-A6 tab. 11.2 i prosta między rozjazdami)" + +msgid "no ordinary turnout of the catalogue fits lines {1} m apart; {2} needs them {3} m apart" +msgstr "żaden rozjazd zwyczajny z katalogu nie pasuje do rozstawu {1} m; {2} wymaga rozstawu {3} m" + +msgid "{1} fits lines {2} m apart, at {3} km/h; {4} needs them {5} m apart" +msgstr "{1} pasuje do rozstawu {2} m, przy {3} km/h; {4} wymaga rozstawu {5} m" + +msgid "proposed: {1}" +msgstr "propozycja: {1}" + +msgid "line {1}: {2}" +msgstr "linia {1}: {2}" + +msgid "vertex {1}: {2}" +msgstr "wierzchołek {1}: {2}" + +msgid "{1} m is inside a transition curve whose parts wouldn't be curves of its kind; split on a straight or an arc" +msgstr "{1} m wypada w krzywej przejściowej, której części nie byłyby krzywymi tego rodzaju; dziel na prostej albo na łuku" + +msgid "{1} m is inside the vertical curve at {2} m" +msgstr "{1} m wypada w łuku pionowym przy {2} m" + +msgid "line {1} meets node {2} at an angle of {3} deg" +msgstr "linia {1} dochodzi do węzła {2} pod kątem {3}°" + +msgid "the grade breaks by {1} per mille at node {2} with no vertical curve" +msgstr "pochylenie załamuje się o {1}‰ w węźle {2} bez łuku pionowego" + +msgid "the cant steps by {1} mm at node {2} where line {3} meets it" +msgstr "przechyłka skacze o {1} mm w węźle {2}, gdzie dochodzi linia {3}" + +msgid "the grade break at {1} m isn't between the one before it and the end of the line, {2} m long" +msgstr "załom niwelety w {1} m nie leży między poprzednim a końcem linii o długości {2} m" + +msgid "the vertical curves at {1} m and {2} m overlap by {3} m" +msgstr "łuki pionowe w {1} m i {2} m zachodzą na siebie o {3} m" + +msgid "the curves of vertex {1} and vertex {2} overlap by {3} m" +msgstr "łuki wierzchołków {1} i {2} zachodzą na siebie o {3} m" + +msgid "the transition curves turn {1} rad, more than the {2} rad the tangents do" +msgstr "krzywe przejściowe skręcają o {1} rad, więcej niż {2} rad między stycznymi" + +msgid "node {1} isn't the free end of a line" +msgstr "węzeł {1} nie jest wolnym końcem linii" + +msgid "the end of the line at {1} m, its node at {2} m: a line of the model keeps the heights of its nodes" +msgstr "koniec linii na wysokości {1} m, jej węzeł na {2} m: linia modelu zachowuje wysokości swoich węzłów" + +msgid "the spacing in the curve at vertex {1} isn't widened by {2} mm: its transitions can't take it" +msgstr "rozstaw w łuku przy wierzchołku {1} nie jest poszerzony o {2} mm: jego krzywe przejściowe na to nie pozwalają" + +msgid "the curve at vertex {1} would be of a radius of {2} m alongside" +msgstr "łuk przy wierzchołku {1} miałby obok promień {2} m" + +msgid "a spacing of {1} m" +msgstr "rozstaw {1} m" + +msgid "step of the cant deficiency" +msgstr "skok niedomiaru przechyłki" + +msgid "rate of the cant change" +msgstr "prędkość zmiany przechyłki" + +msgid "rate of the cant deficiency change" +msgstr "prędkość zmiany niedomiaru przechyłki" + +msgid "element length" +msgstr "długość elementu" + +msgid "transition length" +msgstr "długość krzywej przejściowej" + +msgid "transition shift" +msgstr "przesunięcie łuku" + +msgid "least cant" +msgstr "najmniejsza przechyłka" + +msgid "vertical radius" +msgstr "promień łuku pionowego" + +msgid "element between steps" +msgstr "element między skokami" + +msgid "arc across a profile boundary" +msgstr "łuk na granicy profili" + +msgid "element between turnouts" +msgstr "wstawka między rozjazdami"