service.py

changeset 63
20865458d936
parent 61
0c9b09f694f3
child 64
6dbda3b1015f
--- 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,

mercurial