From: Tom Hughes Date: Tue, 9 Jun 2009 21:50:37 +0000 (+0000) Subject: Merge 15722:15806 from head and adjust new views to rails 2 style names. X-Git-Tag: live~6850^2~20 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/edaddbedaec78a252e988e2271962407e64483fd?hp=-c Merge 15722:15806 from head and adjust new views to rails 2 style names. --- edaddbedaec78a252e988e2271962407e64483fd diff --combined app/controllers/changeset_controller.rb index 8c20ddb4d,ca42751d3..d7f3d39c8 --- a/app/controllers/changeset_controller.rb +++ b/app/controllers/changeset_controller.rb @@@ -255,54 -255,79 +255,54 @@@ class ChangesetController < Application # list edits (open changesets) in reverse chronological order def list conditions = conditions_nonempty - - - # @changesets = Changeset.find(:all, :order => "closed_at DESC", :conditions => ['closed_at < ?', DateTime.now], :limit=> 20) - - - #@edit_pages, @edits = paginate(:changesets, - # :include => [:user, :changeset_tags], - # :conditions => conditions, - # :order => "changesets.created_at DESC", - # :per_page => 20) - # - - @edits = Changeset.find(:all, - :order => "changesets.created_at DESC", - :conditions => conditions, - :limit => 20) - - end - - ## - # list edits (changesets) belonging to a user - def list_user - user = User.find_by_display_name(params[:display_name], :conditions => {:visible => true}) - - if user - @display_name = user.display_name - if not user.data_public? and @user != user - @edits = nil - render - else - conditions = cond_merge conditions, ['user_id = ?', user.id] - conditions = cond_merge conditions, conditions_nonempty - @edit_pages, @edits = paginate(:changesets, - :include => [:user, :changeset_tags], - :conditions => conditions, - :order => "changesets.created_at DESC", - :per_page => 20) + + if params[:display_name] + user = User.find_by_display_name(params[:display_name], :conditions => { :visible => true }) + + if user + if user.data_public? or user == @user + conditions = cond_merge conditions, ['user_id = ?', user.id] + else + conditions = cond_merge conditions, ['false'] + end - elsif params[:format] == 'rhtml' ++ elsif request.format == :html + @title = t 'user.no_such_user.title' + @not_found_user = params[:display_name] + render :template => 'user/no_such_user', :status => :not_found end - else - @not_found_user = params[:display_name] - render :template => 'user/no_such_user', :status => :not_found end - end - - ## - # list changesets in a bbox - def list_bbox - # support 'bbox' param or alternatively 'minlon', 'minlat' etc - if params['bbox'] - bbox = params['bbox'] - elsif params['minlon'] and params['minlat'] and params['maxlon'] and params['maxlat'] - bbox = h(params['minlon']) + ',' + h(params['minlat']) + ',' + h(params['maxlon']) + ',' + h(params['maxlat']) + + if params[:bbox] + bbox = params[:bbox] + elsif params[:minlon] and params[:minlat] and params[:maxlon] and params[:maxlat] + bbox = params[:minlon] + ',' + params[:minlat] + ',' + params[:maxlon] + ',' + params[:maxlat] + end + + if bbox + conditions = cond_merge conditions, conditions_bbox(bbox) + bbox = BoundingBox.from_s(bbox) + bbox_link = "#{bbox.to_s}" + end + + @title = t 'changeset.list.title' + + if user and bbox + @description = t 'changeset.list.description_user_bbox', :user => user.display_name, :bbox => bbox_link + elsif user + @description = t 'changeset.list.description_user', :user => user.display_name + elsif bbox + @description = t 'changeset.list.description_bbox', :bbox => bbox_link else - #TODO: fix bugs in location determination for history tab (and other tabs) then uncomment this redirect - #redirect_to :action => 'list' - - # For now just render immediately, and skip the db - render - return + @description = t 'changeset.list.description' end - - conditions = conditions_bbox(bbox); - conditions = cond_merge conditions, conditions_nonempty - + @edit_pages, @edits = paginate(:changesets, :include => [:user, :changeset_tags], :conditions => conditions, :order => "changesets.created_at DESC", :per_page => 20) - - @bbox = sanitise_boundaries(bbox.split(/,/)) unless bbox==nil end - + private #------------------------------------------------------------ # utility functions below. diff --combined app/views/changeset/_changeset.html.erb index 314510eb8,6ec1de43c..314510eb8 --- a/app/views/changeset/_changeset.html.erb +++ b/app/views/changeset/_changeset.html.erb @@@ -14,7 -14,7 +14,7 @@@ <%if showusername %> <% if changeset.user.data_public? %> - <%= link_to h(changeset.user.display_name), :controller => "changeset", :action => "list_user", :display_name => changeset.user.display_name %> + <%= link_to h(changeset.user.display_name), :controller => "changeset", :action => "list", :display_name => changeset.user.display_name %> <% else %> <%= t'changeset.changeset.anonymous' %> <% end %> @@@ -25,7 -25,7 +25,7 @@@ <% if changeset.tags['comment'] %> <%= h(changeset.tags['comment']) %> <% else %> - <%= t'changeset.changeset.no_comment' %> + <%= t'changeset.changeset.no_comment' %> <% end %> diff --combined app/views/changeset/_changeset_paging_nav.html.erb index 94edfc31e,b8ac1a65f..94edfc31e --- a/app/views/changeset/_changeset_paging_nav.html.erb +++ b/app/views/changeset/_changeset_paging_nav.html.erb @@@ -1,4 -1,3 +1,4 @@@ +

<% current_page = @edit_pages.current_page %> <%= t'changeset.changeset_paging_nav.showing_page' %> @@@ -17,4 -16,3 +17,4 @@@ if @edit_pages.page_count > <% end %> +

diff --combined app/views/changeset/list.html.erb index c3d88bf6e,cfe4afd3f..c3d88bf6e --- a/app/views/changeset/list.html.erb +++ b/app/views/changeset/list.html.erb @@@ -1,12 -1,7 +1,12 @@@ -

<%= t'changeset.list.recent_changes' %>

-

<%= t'changeset.list.recently_edited_changesets' %>

+

<%= @title %>

+

<%= @description %>

-<%= render :partial => 'changesets' %> +<%= render :partial => 'changeset_paging_nav' %> +<%= render :partial => 'changesets', :locals => { :showusername => !params.has_key?(:display_name) } %> +<%= render :partial => 'changeset_paging_nav' %> -

<%= t'changeset.list.for_more_changesets' %>

-
+<%= rss_link_to params.merge({ :format => 'rxml' }) %> + +<% content_for :head do %> +<%= auto_discovery_link_tag :atom, params.merge({ :format => 'rxml' }) %> +<% end %> diff --combined app/views/changeset/list.rss.builder index 0251367fc,000000000..0251367fc mode 100644,000000..100644 --- a/app/views/changeset/list.rss.builder +++ b/app/views/changeset/list.rss.builder @@@ -1,47 -1,0 +1,47 @@@ +xml.rss("version" => "2.0", + "xmlns:geo" => "http://www.w3.org/2003/01/geo/wgs84_pos#", + "xmlns:georss" => "http://www.georss.org/georss") do + xml.channel do + xml.title @title + xml.description @description + xml.link url_for(params.merge({ :only_path => false })) + xml.image do + xml.url "http://www.openstreetmap.org/images/mag_map-rss2.0.png" + xml.title "OpenStreetMap" + xml.width "100" + xml.height "100" + xml.link url_for(params.merge({ :only_path => false })) + end + + for changeset in @edits + xml.item do + xml.title t('browse.changeset.title') + " " + h(changeset.id) + xml.link url_for(:controller => 'browse', :action => "changeset", :id => changeset.id, :only_path => false) + xml.guid url_for(:controller => 'browse', :action => "changeset", :id => changeset.id, :only_path => false) + if changeset.user.data_public? + xml.author changeset.user.display_name + end + if changeset.tags['comment'] + xml.description changeset.tags['comment'] + end + xml.pubDate changeset.created_at.to_s(:rfc822) + if changeset.user.data_public? + xml.comments url_for(:controller => "message", :action => "new", :id => changeset.user.id, :only_path => false) + end + + unless changeset.min_lat.nil? + minlon = changeset.min_lon/GeoRecord::SCALE.to_f + minlat = changeset.min_lat/GeoRecord::SCALE.to_f + maxlon = changeset.max_lon/GeoRecord::SCALE.to_f + maxlat = changeset.max_lat/GeoRecord::SCALE.to_f + + # See http://georss.org/Encodings#Geometry + lower_corner = "#{minlat} #{minlon}" + upper_corner = "#{maxlat} #{maxlon}" + + xml.georss :box, lower_corner + " " + upper_corner + end + end + end + end +end diff --combined app/views/layouts/site.html.erb index 7cefc59d8,779ff6cb3..37d2b1962 --- a/app/views/layouts/site.html.erb +++ b/app/views/layouts/site.html.erb @@@ -1,5 -1,5 +1,5 @@@ - + <%= javascript_include_tag 'prototype' %> <%= javascript_include_tag 'site' %> @@@ -9,7 -9,7 +9,7 @@@ <%= tag("link", { :rel => "search", :type => "application/opensearchdescription+xml", :title => "OpenStreetMap Search", :href => "/opensearch/osm.xml" }) %> <%= tag("meta", { :name => "description", :content => "OpenStreetMap is the free wiki world map." }) %> <%= yield :head %> - OpenStreetMap<%= ' | '+ h(@title) if @title %> + <%= t 'layouts.project_name.title' %><%= ' | '+ h(@title) if @title %>
@@@ -22,14 -22,18 +22,18 @@@ <% if @user and @user.id %> - <%= t 'layouts.welcome_user', :user_link => (link_to h(@user.display_name), {:controller => 'user', :action => 'view', :display_name => @user.display_name}) %> | - <% @inbox_weight = 'bold' if @user.new_messages.size > 0 %> + <%= t 'layouts.welcome_user', :user_link => (link_to h(@user.display_name), {:controller => 'user', :action => 'view', :display_name => @user.display_name}, :title => t('layouts.welcome_user_link_tooltip')) %> | <%= yield :greeting %> - <%= link_to t('layouts.inbox', :size => @user.new_messages.size), {:controller => 'message', :action => 'inbox', :display_name => @user.display_name}, {:style => "font-weight: #{@inbox_weight};" } %> | - <%= link_to t('layouts.logout'), {:controller => 'user', :action => 'logout', :referer => request.request_uri}, {:id => 'logoutanchor'}%> - <% else %> - <%= link_to t('layouts.log_in'), {:controller => 'user', :action => 'login', :referer => request.request_uri}, {:id => 'loginanchor'}%> | - <%= link_to t('layouts.sign_up'), {:controller => 'user', :action => 'new'}, {:id => 'registeranchor'} %> + <% + inbox_attributes = {} + inbox_attributes[:class] = 'greeting-bar-unread' if @user.new_messages.size > 0 + inbox_attributes[:title] = t 'layouts.inbox_tooltip', :count => @user.new_messages.size + %> + <%= link_to t('layouts.inbox', :count => @user.new_messages.size), {:controller => 'message', :action => 'inbox', :display_name => @user.display_name}, inbox_attributes %> | + <%= link_to t('layouts.logout'), {:controller => 'user', :action => 'logout', :referer => request.request_uri}, {:id => 'logoutanchor', :title => t('layouts.logout_tooltip')}%> + <% else %> + <%= link_to t('layouts.log_in'), {:controller => 'user', :action => 'login', :referer => request.request_uri}, {:id => 'loginanchor', :title => t('layouts.log_in_tooltip')} %> | + <%= link_to t('layouts.sign_up'), {:controller => 'user', :action => 'new'}, {:id => 'registeranchor', :title => t('layouts.sign_up_tooltip')} %> <% end %> @@@ -43,14 -47,14 +47,14 @@@ traceclass = '' viewclass = 'active' if params['controller'] == 'site' and params['action'] == 'index' editclass = 'active' if params['controller'] == 'site' and params['action'] == 'edit' - historyclass = 'active' if params['controller'] == 'changeset' and params['action'] == 'list_bbox' + historyclass = 'active' if params['controller'] == 'changeset' and params['action'] == 'list' exportclass = 'active' if params['controller'] == 'site' and params['action'] == 'export' traceclass = 'active' if params['controller'] == 'trace' diaryclass = 'active' if params['controller'] == 'diary_entry' %>
  • <%= link_to t('layouts.view'), {:controller => 'site', :action => 'index'}, {:id => 'viewanchor', :title => t('layouts.view_tooltip'), :class => viewclass} %>
  • <%= link_to t('layouts.edit'), {:controller => 'site', :action => 'edit'}, {:id => 'editanchor', :title => t('layouts.edit_tooltip'), :class => editclass} %>
  • -
  • <%= link_to t('layouts.history'), {:controller => 'changeset', :action => 'list_bbox' }, {:id => 'historyanchor', :title => t('layouts.history_tooltip'), :class => historyclass} %>
  • +
  • <%= link_to t('layouts.history'), {:controller => 'changeset', :action => 'list' }, {:id => 'historyanchor', :title => t('layouts.history_tooltip'), :class => historyclass} %>
  • <% if params['controller'] == 'site' and (params['action'] == 'index' or params['action'] == 'export') %>
  • <%= link_to_remote t('layouts.export'), {:url => {:controller => 'export', :action => 'start'}}, {:id => 'exportanchor', :title => t('layouts.export_tooltip'), :class => exportclass, :href => url_for(:controller => 'site', :action => 'export')} %>
  • <% else %> @@@ -65,8 -69,8 +69,8 @@@ @@@ -81,8 -85,8 +85,8 @@@

    <%= t 'layouts.intro_3', - :ucl => 'UCL VR Centre', - :bytemark => 'bytemark' %> + :ucl => link_to(t('layouts.intro_3_ucl'), "http://www.vr.ucl.ac.uk"), + :bytemark => link_to(t('layouts.intro_3_bytemark'), "http://www.bytemark.co.uk") %>

    <% end %> @@@ -103,9 -107,9 +107,9 @@@ <% end %>
    - <%= t 'layouts.help_wiki' %>
    - <%= t 'layouts.news_blog' %>
    - <%= t 'layouts.shop' %>
    + <%= t 'layouts.help_wiki' %>
    + <%= t 'layouts.news_blog' %>
    + <%= t 'layouts.shop' %>
    <%= yield :left_menu %>
    diff --combined app/views/layouts/site.rss.builder index 90198e8f4,000000000..90198e8f4 mode 100644,000000..100644 --- a/app/views/layouts/site.rss.builder +++ b/app/views/layouts/site.rss.builder @@@ -1,2 -1,0 +1,2 @@@ +xml.instruct! +xml << yield diff --combined app/views/user/view.html.erb index 7113fc39c,36bba478c..6e54fbebb --- a/app/views/user/view.html.erb +++ b/app/views/user/view.html.erb @@@ -4,14 -4,14 +4,14 @@@ <%= link_to t('user.view.my diary'), :controller => 'diary_entry', :action => 'list', :display_name => @user.display_name %> | <%= link_to t('user.view.new diary entry'), :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %> - | <%= link_to t('user.view.my edits'), :controller => 'changeset', :action => 'list', :display_name => @user.display_name, :format => 'rhtml' %> -| <%= link_to t('user.view.my edits'), :controller => 'changeset', :action => 'list_user', :display_name => @user.display_name %> ++| <%= link_to t('user.view.my edits'), :controller => 'changeset', :action => 'list', :display_name => @user.display_name %> | <%= link_to t('user.view.my traces'), :controller => 'trace', :action=>'mine' %> | <%= link_to t('user.view.my settings'), :controller => 'user', :action => 'account', :display_name => @user.display_name %> <% else %> <%= link_to t('user.view.send message'), :controller => 'message', :action => 'new', :user_id => @this_user.id %> | <%= link_to t('user.view.diary'), :controller => 'diary_entry', :action => 'list', :display_name => @this_user.display_name %> - | <%= link_to t('user.view.edits'), :controller => 'changeset', :action => 'list', :display_name => @this_user.display_name, :format => 'rhtml' %> -| <%= link_to t('user.view.edits'), :controller => 'changeset', :action => 'list_user', :display_name => @this_user.display_name %> ++| <%= link_to t('user.view.edits'), :controller => 'changeset', :action => 'list', :display_name => @this_user.display_name %> | <%= link_to t('user.view.traces'), :controller => 'trace', :action => 'view', :display_name => @this_user.display_name %> | <% if @user and @user.is_friends_with?(@this_user) %> <%= link_to t('user.view.remove as friend'), :controller => 'user', :action => 'remove_friend', :display_name => @this_user.display_name %> @@@ -71,7 -71,7 +71,7 @@@ <% end %> <%= link_to h(@friend.display_name), :controller => 'user', :action => 'view', :display_name => @friend.display_name %> - <% if @friend.home_lon and @friend.home_lat %><%= t 'user.view.km away', :distance => @this_user.distance(@friend).round %><% end %> + <% if @friend.home_lon and @friend.home_lat %><%= t 'user.view.km away', :count => @this_user.distance(@friend).round %><% end %> (<%= link_to t('user.view.send message'), :controller => 'message', :action => 'new', :user_id => @friend.id %>) <%end%> @@@ -93,7 -93,7 +93,7 @@@ <% @this_user.nearby.each do |nearby| %> <%= link_to h(nearby.display_name), :controller => 'user', :action => 'view', :display_name => nearby.display_name %> - <%= t 'user.view.km away', :distance => @this_user.distance(nearby).round %> + <%= t 'user.view.km away', :count => @this_user.distance(nearby).round %> (<%= link_to t('user.view.send message'), :controller => 'message', :action => 'new', :user_id => nearby.id %>) <% end %> diff --combined config/locales/en.yml index d46245ad1,6e42e0306..fe5f0f926 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@@ -1,4 -1,6 +1,6 @@@ en: + html: + dir: ltr activerecord: # Translates all the model names, which is used in error handling on the web site models: @@@ -89,9 -91,9 +91,9 @@@ no_bounding_box: "No bounding box has been stored for this changeset." show_area_box: "Show Area Box" box: "box" - has_nodes: "Has the following {{node_count}} nodes:" - has_ways: "Has the following {{way_count}} ways:" - has_relations: "Has the following {{relation_count}} relations:" + has_nodes: "Has the following {{count}} nodes:" + has_ways: "Has the following {{count}} ways:" + has_relations: "Has the following {{count}} relations:" common_details: edited_at: "Edited at:" edited_by: "Edited by:" @@@ -145,20 -147,21 +147,21 @@@ view_data: "View data for current map view" manually_select: "Manually select a different area" start_rjs: + data_layer_name: "Data" data_frame_title: "Data" zoom_or_select: "Zoom in or select an area of the map to view" drag_a_box: "Drag a box on the map to select an area" manually_select: "Manually select a different area" - loaded_an_area_with_num_features: "You have loaded an area which contains {{num_features}} features. In general, some browsers may not cope well with displaying this quantity of data. Generally, browsers work best at displaying less than 100 features at a time: doing anything else may make your browser slow/unresponsive. If you are sure you want to display this data, you may do so by clicking the button below." + loaded_an_area_with_num_features: "You have loaded an area which contains [[num_features]] features. In general, some browsers may not cope well with displaying this quantity of data. Generally, browsers work best at displaying less than 100 features at a time: doing anything else may make your browser slow/unresponsive. If you are sure you want to display this data, you may do so by clicking the button below." load_data: "Load Data" - unable_to_load_size: "Unable to load: Bounding box size of {{bbox_size}} is too large (must be smaller than {{max_bbox_size}})" + unable_to_load_size: "Unable to load: Bounding box size of [[bbox_size]] is too large (must be smaller than {{max_bbox_size}})" loading: "Loading..." show_history: "Show History" wait: "Wait..." - history_for_feature: "History for {{feature}}" + history_for_feature: "History for [[feature]]" details: "Details" private_user: "private user" - edited_by_user_at_timestamp: "Edited by {{user}} at {{timestamp}}" + edited_by_user_at_timestamp: "Edited by [[user]] at [[timestamp]]" object_list: heading: "Object list" back: "Display object list" @@@ -170,13 -173,13 +173,13 @@@ details: "Details" selected: type: - node: "Node {{id}}" - way: "Way {{id}}" + node: "Node [[id]]" + way: "Way [[id]]" # There's no 'relation' type because it isn't represented in OpenLayers history: type: - node: "Node {{id}}" - way: "Way {{id}}" + node: "Node [[id]]" + way: "Way [[id]]" # There's no 'relation' type because it isn't represented in OpenLayers tag_details: tags: "Tags:" @@@ -217,12 -220,27 +220,12 @@@ user: "User" comment: "Comment" area: "Area" - list_bbox: - history: "History" - changesets_within_the_area: "Changesets within the area:" - show_area_box: "show area box" - no_changesets: "No changesets" - all_changes_everywhere: "For all changes everywhere see {{recent_changes_link}}" - recent_changes: "Recent Changes" - no_area_specified: "No area specified" - first_use_view: "First use the {{view_tab_link}} to pan and zoom to an area of interest, then click the history tab." - view_the_map: "view the map" - view_tab: "view tab" - alternatively_view: "Alternatively, view all {{recent_changes_link}}" list: - recent_changes: "Recent Changes" - recently_edited_changesets: "Recently edited changesets:" - for_more_changesets: "For more changesets, select a user and view their edits, or see the editing 'history' of a specific area." - list_user: - edits_by_username: "Edits by {{username_link}}" - no_visible_edits_by: "No visible edits by {{name}}." - for_all_changes: "For changes by all users see {{recent_changes_link}}" - recent_changes: "Recent Changes" + title: "Changesets" + description: "Recent edits" + description_user: "Recent edits by {{user}}" + description_bbox: "Recent edits within {{bbox}}" + description_user_bbox: "Recent edits by {{user}} within {{bbox}}" diary_entry: new: title: New Diary Entry @@@ -307,11 -325,28 +310,28 @@@ type_from_source: "{{type}} from {{source_link}}" no_results: "No results found" layouts: + project_name: + # in + title: OpenStreetMap + # in <h1> + h1: OpenStreetMap + logo: + alt_text: OpenStreetMap logo welcome_user: "Welcome, {{user_link}}" - inbox: "inbox ({{size}})" + welcome_user_link_tooltip: Your user page + home: home + home_tooltip: Go to home location + inbox: "inbox ({{count}})" + inbox_tooltip: + zero: Your inbox contains no unread messages + one: Your inbox contians 1 unread message + other: Your inbox contains {{count}} unread messages logout: logout + logout_tooltip: "Log out" log_in: log in + log_in_tooltip: Log in with an existing account sign_up: sign up + sign_up_tooltip: Create an account for editing view: View view_tooltip: View maps edit: Edit @@@ -328,14 -363,19 +348,19 @@@ intro_1: "OpenStreetMap is a free editable map of the whole world. It is made by people like you." intro_2: "OpenStreetMap allows you to view, edit and use geographical data in a collaborative way from anywhere on Earth." intro_3: "OpenStreetMap's hosting is kindly supported by the {{ucl}} and {{bytemark}}." + intro_3_ucl: "UCL VR Centre" + intro_3_bytemark: "bytemark" osm_offline: "The OpenStreetMap database is currently offline while essential database maintenance work is carried out." osm_read_only: "The OpenStreetMap database is currently in read-only mode while essential database maintenance work is carried out." donate: "Support OpenStreetMap by {{link}} to the Hardware Upgrade Fund." donate_link_text: donating help_wiki: "Help & Wiki" + help_wiki_tooltip: "Help & Wiki site for the project" help_wiki_url: "http://wiki.openstreetmap.org" news_blog: "News blog" + news_blog_tooltip: "News blog about OpenStreetMap, free geographical data, etc." shop: Shop + shop_tooltip: Shop with branded OpenStreetMap shop_url: http://wiki.openstreetmap.org/wiki/Merchandise sotm: 'Come to the 2009 OpenStreetMap Conference, The State of the Map, July 10-12 in Amsterdam!' alt_donation: Make a Donation @@@ -359,6 -399,23 +384,23 @@@ subject: "[OpenStreetMap] {{user}} added you as a friend" had_added_you: "{{user}} has added you as a friend on OpenStreetMap." see_their_profile: "You can see their profile at {{userurl}} and add them as a friend too if you wish." + gpx_notification: + greeting: "Hi," + your_gpx_file: "It looks like your GPX file" + with_description: "with the description" + and_the_tags: "and the following tags:" + and_no_tags: "and no tags." + failure: + subject: "[OpenStreetMap] GPX Import failure" + failed_to_import: "failed to import. Here's the error:" + more_info_1: "More information about GPX import failures and how to avoid" + more_info_2: "them can be found at:" + import_failures_url: "http://wiki.openstreetmap.org/wiki/GPX_Import_Failures" + success: + subject: "[OpenStreetMap] GPX Import success" + loaded_successfully: | + loaded successfully with {{trace_points}} out of a possible + {{possible_points}} points. signup_confirm: subject: "[OpenStreetMap] Confirm your email address" signup_confirm_plain: @@@ -476,12 -533,16 +518,16 @@@ as_unread: "Message marked as unread" site: index: - home: "home" js_1: "You are either using a browser that doesn't support javascript, or you have disabled javascript." js_2: "OpenStreetMap uses javascript for its slippy map." js_3: 'You may want to try the <a href="http://tah.openstreetmap.org/Browse/">Tiles@Home static tile browser</a> if you are unable to enable javascript.' permalink: Permalink - license: "Licensed under the Creative Commons Attribution-Share Alike 2.0 license by the OpenStreetMap project and its contributors." + license: + notice: "Licensed under the {{license_name}} license by the {{project_name}} and its contributors." + license_name: "Creative Commons Attribution-Share Alike 2.0" + license_url: "http://creativecommons.org/licenses/by-sa/2.0/" + project_name: "OpenStreetMap project" + project_url: "http://openstreetmap.org" edit: not_public: "You haven't set your edits to be public." not_public_description: "You can no longer edit the map unless you do so. You can set your edits as public from your {{user_page}}." @@@ -502,6 -563,7 +548,7 @@@ search_help: "examples: 'Alkmaar', 'Regent Street, Cambridge', 'CB2 5AQ', or 'post offices near Lünen' <a href='http://wiki.openstreetmap.org/wiki/Search'>more examples...</a>" key: map_key: "Map key" + map_key_tooltip: "Map key for the mapnik rendering at this zoom level" trace: create: upload_trace: "Upload GPS Trace" @@@ -646,7 -708,7 +693,7 @@@ settings_link_text: settings your friends: Your friends no friends: You have not added any friends yet. - km away: "{{distance}}km away" + km away: "{{count}}km away" nearby users: "Nearby users: " no nearby users: "There are no users who admit to mapping nearby yet." change your settings: change your settings diff --combined config/routes.rb index 721cb5e11,4b1161012..6656d0cd5 --- a/config/routes.rb +++ b/config/routes.rb @@@ -73,7 -73,7 +73,7 @@@ ActionController::Routing::Routes.draw map.connect "api/#{API_VERSION}/swf/trackpoints", :controller =>'swf', :action =>'trackpoints' # Data browsing - map.connect '/browse', :controller => 'changeset', :action => 'list', :format => 'rhtml' + map.connect '/browse', :controller => 'changeset', :action => 'list' map.connect '/browse/start', :controller => 'browse', :action => 'start' map.connect '/browse/way/:id', :controller => 'browse', :action => 'way', :id => /\d+/ map.connect '/browse/way/:id/history', :controller => 'browse', :action => 'way_history', :id => /\d+/ @@@ -82,15 -82,13 +82,15 @@@ map.connect '/browse/relation/:id', :controller => 'browse', :action => 'relation', :id => /\d+/ map.connect '/browse/relation/:id/history', :controller => 'browse', :action => 'relation_history', :id => /\d+/ map.connect '/browse/changeset/:id', :controller => 'browse', :action => 'changeset', :id => /\d+/ - map.connect '/browse/changesets', :controller => 'changeset', :action => 'list', :format => 'rhtml' - map.connect '/browse/changesets/rss', :controller => 'changeset', :action => 'list', :format => 'rxml' + map.connect '/browse/changesets', :controller => 'changeset', :action => 'list' ++ map.connect '/browse/changesets/rss', :controller => 'changeset', :action => 'list', :format => :rss # web site - map.root :controller => 'site', :action => 'index', :format => 'rhtml' + map.root :controller => 'site', :action => 'index' map.connect '/', :controller => 'site', :action => 'index' map.connect '/edit', :controller => 'site', :action => 'edit' - map.connect '/history', :controller => 'changeset', :action => 'list', :format => 'rhtml' - map.connect '/history/rss', :controller => 'changeset', :action => 'list', :format => 'rxml' - map.connect '/history', :controller => 'changeset', :action => 'list_bbox' ++ map.connect '/history', :controller => 'changeset', :action => 'list' ++ map.connect '/history/rss', :controller => 'changeset', :action => 'list', :format => :rss map.connect '/export', :controller => 'site', :action => 'export' map.connect '/login', :controller => 'user', :action => 'login' map.connect '/logout', :controller => 'user', :action => 'logout' @@@ -144,8 -142,7 +144,8 @@@ # user pages map.connect '/user/:display_name', :controller => 'user', :action => 'view' - map.connect '/user/:display_name/edits', :controller => 'changeset', :action => 'list', :format => 'rhtml' - map.connect '/user/:display_name/edits/rss', :controller => 'changeset', :action => 'list', :format => 'rxml' - map.connect '/user/:display_name/edits', :controller => 'changeset', :action => 'list_user' ++ map.connect '/user/:display_name/edits', :controller => 'changeset', :action => 'list' ++ map.connect '/user/:display_name/edits/rss', :controller => 'changeset', :action => 'list', :format =>:rss map.connect '/user/:display_name/make_friend', :controller => 'user', :action => 'make_friend' map.connect '/user/:display_name/remove_friend', :controller => 'user', :action => 'remove_friend' map.connect '/user/:display_name/diary', :controller => 'diary_entry', :action => 'list'