Skip to content

Instantly share code, notes, and snippets.

@zackham
Created December 31, 2011 00:01
Show Gist options
  • Save zackham/1542131 to your computer and use it in GitHub Desktop.
Save zackham/1542131 to your computer and use it in GitHub Desktop.
def route_translations
return {
"distance.meters" => t('units.distance_in_words.x_meters'),
"distance.feet" => t('units.distance_in_words.x_feet'),
"distance.km" => t('units.distance_in_words.x_km'),
"distance.miles" => t('units.distance_in_words.x_miles'),
:yes => t('generic.yes'),
:no => t('generic.no'),
:routes => t('resources.routes'),
:new => t('path_names.new'),
:make_route_here => t('routes.make_route_here'),
:show_photos => t('routes.show_photos_in_poi'),
:bike_paths => t('routes.new.bike_paths'),
:bike_paths_desc => t('routes.new.bike_paths_desc'),
:name => t('generic.name'),
:type => t('generic.type'),
:notes => t('generic.notes'),
:description => t('generic.description'),
:attribution => t('generic.attribution'),
:url => t('generic.url'),
:edit => t('generic.edit'),
:view => t('generic.view'),
:cancel => t('generic.cancel'),
:save => t('generic.save'),
:delete => t('generic.delete'),
:view_link => t('routes.new.view_link'),
:view_in_full => t('generic.view_in_full'),
:osm => t('routes.new.osm'),
:osm_cycle => t('routes.new.osm_cycle'),
:arcgis_topo => t('routes.new.arcgis_topo'),
:arcgis_gi => t('routes.new.arcgis_gi'),
:usgs_topo => t('routes.new.usgs_topo'),
:distance => t('generic.distance'),
:elevation_gain => t('generic.elevation_gain'),
:elevation_loss => t('generic.elevation_loss'),
:delete_confirmation => t('messages.delete_conf'),
:click_for_details => t('generic.click_for_details'),
:save_in_map => t('routes.new.save_in_map'),
:route_to_poi => t('routes.new.route_to_poi'),
:route_to_point => t('routes.new.route_to_point'),
:want_as_first_point => t('routes.new.want_as_first_point'),
:want_to_route_here => t('routes.new.want_to_route_here'),
:restricted => t('routes.restricted'),
:cuesheet_types => Cuesheet::TYPES_HASH,
:route_name_required => t('routes.name_required'),
:poi_name_required => t('routes.poi_name_required'),
:logged_in_as => t('routes.new.logged_in_as'),
'sample_graph.distance_in' => t('sample_graph.distance_in'),
'sample_graph.time_from_start' => t('sample_graph.time_from_start'),
'sample_graph.switch_to' => t('sample_graph.switch_to'),
'sample_graph.time' => t('sample_graph.time'),
'sample_graph.distance' => t('sample_graph.distance'),
'sample_graph.miles' => t('sample_graph.miles'),
'sample_graph.km' => t('sample_graph.km'),
'sample_graph.ele' => t('sample_graph.ele'),
'sample_graph.grade' => t('sample_graph.grade'),
'sample_graph.hr' => t('sample_graph.hr'),
'sample_graph.cad' => t('sample_graph.cad'),
'sample_graph.speed' => t('sample_graph.speed'),
'sample_graph.watts' => t('sample_graph.watts'),
'sample_graph.temp' => t('sample_graph.temp'),
'sample_graph.bpm' => t('sample_graph.bpm'),
'sample_graph.rpm' => t('sample_graph.rpm'),
'sample_graph.percent' => t('sample_graph.percent'),
'sample_graph.m' => t('sample_graph.m'),
'sample_graph.ft' => t('sample_graph.ft'),
'sample_graph.kph' => t('sample_graph.kph'),
'sample_graph.mph' => t('sample_graph.mph'),
'sample_graph.deg_c' => t('sample_graph.deg_c'),
'sample_graph.deg_f' => t('sample_graph.deg_f'),
'sample_graph.click_to_zoom_out' => t('sample_graph.click_to_zoom_out'),
'sample_graph.drag_to_zoom_in' => t('sample_graph.drag_to_zoom_in')
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment