Skip to content

Commit

Permalink
Merge branch 'master' into registre-arrets/premier-modele
Browse files Browse the repository at this point in the history
  • Loading branch information
thbar authored Jan 20, 2025
2 parents 52dbc1c + 4897113 commit e187dbf
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<p>
<%= dgettext("validations-explanations", "UnusableTrip") %>
</p>
<table class="table">
<tr>
<th><%= dgettext("validations-explanations", "Object type") %></th>
<th><%= dgettext("validations-explanations", "Object ID") %></th>
</tr>

<%= for issue <- @issues do %>
<tr>
<td><%= issue["object_type"] %></td>
<td><%= issue["object_id"] %></td>
</tr>
<% end %>
</table>
3 changes: 2 additions & 1 deletion apps/transport/lib/transport_web/views/resource_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ defmodule TransportWeb.ResourceView do
"MissingId" => "_missing_id_issue.html",
"MissingName" => "_missing_name_issue.html",
"SubFolder" => "_subfolder_issue.html",
"NegativeStopDuration" => "_negative_stop_duration_issue.html"
"NegativeStopDuration" => "_negative_stop_duration_issue.html",
"UnusableTrip" => "_unusable_trip.html"
},
Transport.Validators.GTFSTransport.issue_type(issues.entries),
"_generic_issue.html"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,7 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "Details for debugging purposes"
msgstr ""

#, elixir-autogen, elixir-format
msgid "UnusableTrip"
msgstr "A trip must visit more than one stop in stop_times.txt to be usable by passengers for boarding and alighting."
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,7 @@ msgstr "Emplacement inconnu"
#, elixir-autogen, elixir-format
msgid "Details for debugging purposes"
msgstr "Détails à fin de débogage"

#, elixir-autogen, elixir-format
msgid "UnusableTrip"
msgstr "Un trajet doit passer par plus d’un arrêt dans stop_times.txt pour être utilisable par les voyageurs à la montée ou la descente."
4 changes: 4 additions & 0 deletions apps/transport/priv/gettext/validations-explanations.pot
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,7 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "Details for debugging purposes"
msgstr ""

#, elixir-autogen, elixir-format
msgid "UnusableTrip"
msgstr ""
4 changes: 2 additions & 2 deletions apps/transport/priv/zfe_ids.csv
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ siren;code;epci_principal;autres_siren
247200132;LE MANS;Le Mans Métropole;
200093201;LILLE;Métropole Européenne de Lille;
248719312;LIMOGES;Limoges Métropole;
200046977;LYON;Métropole de Lyon;
200046977;LYON;Métropole de Lyon;256900994
200054807;MARSEILLE-AIX EN PROVENCE;Métropole Aix-Marseille-Provence;
200039865;METZ;Metz Métropole;
243400017;MONTPELLIER;Montpellier Méditerranée Métropole;
Expand All @@ -40,5 +40,5 @@ siren;code;epci_principal;autres_siren
246700488;STRASBOURG;Eurométropole de Strasbourg;
248300543;TOULON;Métropole Toulon Provence Méditerranée;
253100986;TOULOUSE;Toulouse métropole;243100518
243700754;TOURS;Tours Métropole Val de Loire;
243700754;TOURS;Tours Métropole Val de Loire;200085108
245901160;VALENCIENNES;Valenciennes métropole;

0 comments on commit e187dbf

Please sign in to comment.