# HG changeset patch # User Teemu Piippo # Date 1505670607 -10800 # Node ID 20865458d936b4aa2bd1b94fbc114ef06a6ae794 # Parent 6cc9c3cc91836201b480b0b14d96c6df6ed29d69 Pöö 2 diff -r 6cc9c3cc9183 -r 20865458d936 service.py --- a/service.py Sun Sep 17 20:48:44 2017 +0300 +++ b/service.py Sun Sep 17 20:50:07 2017 +0300 @@ -98,7 +98,7 @@ return render_template( 'stop.html', schedule = schedule, - name = bus_stop.code + ' ' + tr(bus_stop.name, 'bus_stops'), + name = bus_stop.code + ' ' + tr(bus_stop.name, 'bus-stops'), link_to_map = bus_stop.location.link_to_map, region = bus_stop.region, location = bus_stop.location, @@ -138,21 +138,21 @@ 'night': is_night_time(schedule_entry['time']), 'stop_id': schedule_entry['stop'].stop.reference, 'stop_code': schedule_entry['stop'].stop.code, - 'stop_name': tr(schedule_entry['stop'].stop.name, 'pysäkit'), + 'stop_name': tr(schedule_entry['stop'].stop.name, 'bus-stops'), 'imminent': imminent(schedule_entry), }) stops_in_cluster = sorted( ({ 'id': stop.reference, 'code': stop.code, - 'name': tr(stop.name, 'pysäkit'), + 'name': tr(stop.name, 'bus-stops'), } for stop in cluster.stops), key = lambda stop: (len(stop['id']), stop['id']) ) return render_template( 'cluster.html', schedule = schedule, - name = tr(cluster.name, 'paikat', 'pysäkkiryhmät', 'pysäkit'), + name = tr(cluster.name, 'paikat', 'pysäkkiryhmät', 'bus-stops'), link_to_map = cluster.center.link_to_map, location = cluster.center, stops_in_cluster = stops_in_cluster,