Merge branch 'master' into redesign

Conflicts:
	vendor/assets/leaflet/leaflet.hash.js
	vendor/assets/leaflet/leaflet.js
This commit is contained in:
John Firebaugh 2013-11-19 09:42:47 -08:00
commit 44629832dd
28 changed files with 940 additions and 717 deletions

View file

@ -9,14 +9,13 @@ folder 'vendor/assets' do
end end
folder 'leaflet' do folder 'leaflet' do
file 'leaflet.js', 'http://cdn.leafletjs.com/leaflet-0.6.3/leaflet-src.js' file 'leaflet.js', 'http://cdn.leafletjs.com/leaflet-0.7/leaflet-src.js'
file 'leaflet.css', 'http://cdn.leafletjs.com/leaflet-0.6.3/leaflet.css' file 'leaflet.css', 'http://cdn.leafletjs.com/leaflet-0.7/leaflet.css'
file 'leaflet.ie.css', 'http://cdn.leafletjs.com/leaflet-0.6.3/leaflet.ie.css'
[ 'layers.png', 'layers-2x.png', [ 'layers.png', 'layers-2x.png',
'marker-icon.png', 'marker-icon-2x.png', 'marker-icon.png', 'marker-icon-2x.png',
'marker-shadow.png' ].each do |image| 'marker-shadow.png' ].each do |image|
file "images/#{image}", "http://cdn.leafletjs.com/leaflet-0.6.3/images/#{image}" file "images/#{image}", "http://cdn.leafletjs.com/leaflet-0.7/images/#{image}"
end end
from 'git://github.com/kajic/leaflet-locationfilter.git' do from 'git://github.com/kajic/leaflet-locationfilter.git' do

View file

@ -9,11 +9,7 @@ class ApplicationController < ActionController::Base
if session[:user] if session[:user]
@user = User.where(:id => session[:user]).where("status IN ('active', 'confirmed', 'suspended')").first @user = User.where(:id => session[:user]).where("status IN ('active', 'confirmed', 'suspended')").first
if @user.display_name != cookies["_osm_username"] if @user.status == "suspended"
logger.info "Session user '#{@user.display_name}' does not match cookie user '#{cookies['_osm_username']}'"
reset_session
@user = nil
elsif @user.status == "suspended"
session.delete(:user) session.delete(:user)
session_expires_automatically session_expires_automatically

View file

@ -7,6 +7,7 @@ class UserController < ApplicationController
before_filter :authorize_web, :except => [:api_read, :api_details, :api_gpx_files] before_filter :authorize_web, :except => [:api_read, :api_details, :api_gpx_files]
before_filter :set_locale, :except => [:api_read, :api_details, :api_gpx_files] before_filter :set_locale, :except => [:api_read, :api_details, :api_gpx_files]
before_filter :require_user, :only => [:account, :go_public, :make_friend, :remove_friend] before_filter :require_user, :only => [:account, :go_public, :make_friend, :remove_friend]
before_filter :require_self, :only => [:account]
before_filter :check_database_readable, :except => [:login, :api_read, :api_details, :api_gpx_files] before_filter :check_database_readable, :except => [:login, :api_read, :api_details, :api_gpx_files]
before_filter :check_database_writable, :only => [:new, :account, :confirm, :confirm_email, :lost_password, :reset_password, :go_public, :make_friend, :remove_friend] before_filter :check_database_writable, :only => [:new, :account, :confirm, :confirm_email, :lost_password, :reset_password, :go_public, :make_friend, :remove_friend]
before_filter :check_api_readable, :only => [:api_read, :api_details, :api_gpx_files] before_filter :check_api_readable, :only => [:api_read, :api_details, :api_gpx_files]
@ -338,7 +339,6 @@ class UserController < ApplicationController
token.destroy token.destroy
session[:user] = user.id session[:user] = user.id
cookies.permanent["_osm_username"] = user.display_name
redirect_to referer || welcome_path redirect_to referer || welcome_path
end end
@ -377,7 +377,6 @@ class UserController < ApplicationController
end end
token.destroy token.destroy
session[:user] = @user.id session[:user] = @user.id
cookies.permanent["_osm_username"] = @user.display_name
redirect_to :action => 'account', :display_name => @user.display_name redirect_to :action => 'account', :display_name => @user.display_name
else else
flash[:error] = t 'user.confirm_email.failure' flash[:error] = t 'user.confirm_email.failure'
@ -638,8 +637,6 @@ private
## ##
# process a successful login # process a successful login
def successful_login(user) def successful_login(user)
cookies.permanent["_osm_username"] = user.display_name
session[:user] = user.id session[:user] = user.id
session_expires_after 28.days if session[:remember_me] session_expires_after 28.days if session[:remember_me]
@ -727,8 +724,6 @@ private
if user.save if user.save
set_locale set_locale
cookies.permanent["_osm_username"] = user.display_name
if user.new_email.blank? or user.new_email == user.email if user.new_email.blank? or user.new_email == user.email
flash.now[:notice] = t 'user.account.flash update success' flash.now[:notice] = t 'user.account.flash update success'
else else
@ -769,6 +764,14 @@ private
end end
end end
##
# require that the user in the URL is the logged in user
def require_self
if params[:display_name] != @user.display_name
render :text => "", :status => :forbidden
end
end
## ##
# ensure that there is a "this_user" instance variable # ensure that there is a "this_user" instance variable
def lookup_user_by_id def lookup_user_by_id

View file

@ -4,9 +4,6 @@
<meta charset="utf-8"> <meta charset="utf-8">
<title>OpenStreetMap Embedded</title> <title>OpenStreetMap Embedded</title>
<%= stylesheet_link_tag "embed", :media=> "screen" %> <%= stylesheet_link_tag "embed", :media=> "screen" %>
<!--[if IE]>
<%= stylesheet_link_tag "leaflet.ie", :media=> "screen" %>
<![endif]-->
<%= javascript_include_tag "embed" %> <%= javascript_include_tag "embed" %>
</head> </head>
<body> <body>

View file

@ -8,7 +8,6 @@
<%= stylesheet_link_tag "print-#{dir}", :media => "print" %> <%= stylesheet_link_tag "print-#{dir}", :media => "print" %>
<%= stylesheet_link_tag "leaflet-all", :media => "screen, print" %> <%= stylesheet_link_tag "leaflet-all", :media => "screen, print" %>
<!--[if IE]> <!--[if IE]>
<%= stylesheet_link_tag "leaflet.ie" %>
<%= stylesheet_link_tag "large-#{dir}", :media => "screen" %> <%= stylesheet_link_tag "large-#{dir}", :media => "screen" %>
<![endif]--> <![endif]-->
<%= favicon_link_tag "favicon.ico" %> <%= favicon_link_tag "favicon.ico" %>

View file

@ -11,6 +11,7 @@
# Author: CygnusOlor # Author: CygnusOlor
# Author: Daswaldhorn # Author: Daswaldhorn
# Author: Diebuche # Author: Diebuche
# Author: Dieterdreist
# Author: Fujnky # Author: Fujnky
# Author: Grille chompa # Author: Grille chompa
# Author: Holger # Author: Holger
@ -2067,7 +2068,7 @@ de:
questions: questions:
paragraph_1_html: "Falls Du zusätzliche Hilfe beim Mapping brauchst oder etwas nicht klar ist, gibt es zusätzliche\nHilfe auf <a href='http://help.openstreetmap.org/'>der Hilfe-Seite</a>." paragraph_1_html: "Falls Du zusätzliche Hilfe beim Mapping brauchst oder etwas nicht klar ist, gibt es zusätzliche\nHilfe auf <a href='http://help.openstreetmap.org/'>der Hilfe-Seite</a>."
title: Fragen? title: Fragen?
start_mapping: Beginne mit dem Berarbeiten der Karte start_mapping: Beginne mit dem Bearbeiten der Karte
title: Willkommen! title: Willkommen!
whats_on_the_map: whats_on_the_map:
off_html: "Was <em>nicht</em> in die Datenbank gehört sind subjektive Daten wie Bewertungen, nicht mehr aktuelle\nhistorische Fakten oder nicht real existierende Dinge. Ausserdem ist es wichtig, nichts von\nanderen Quellen (auch nicht aus Papierkarten) zu kopieren, da OpenStreetMap das Urheberrecht sehr ernst nimmt." off_html: "Was <em>nicht</em> in die Datenbank gehört sind subjektive Daten wie Bewertungen, nicht mehr aktuelle\nhistorische Fakten oder nicht real existierende Dinge. Ausserdem ist es wichtig, nichts von\nanderen Quellen (auch nicht aus Papierkarten) zu kopieren, da OpenStreetMap das Urheberrecht sehr ernst nimmt."

View file

@ -3,6 +3,7 @@
# Export driver: syck-pecl # Export driver: syck-pecl
# Author: Erdemaslancan # Author: Erdemaslancan
# Author: Gorizon # Author: Gorizon
# Author: Marmase
# Author: Mirzali # Author: Mirzali
diq: diq:
activerecord: activerecord:
@ -572,7 +573,7 @@ diq:
community_blogs: Blogê Cemaeti community_blogs: Blogê Cemaeti
documentation: Dokumentasyon documentation: Dokumentasyon
edit: Timar ke edit: Timar ke
help: Peşti help: Desteg
history: Ravêrden history: Ravêrden
intro_1: OpenStreetMap yew xeritey dınyayo u merduma hemın rê belaso. intro_1: OpenStreetMap yew xeritey dınyayo u merduma hemın rê belaso.
intro_2_download: ronayış intro_2_download: ronayış
@ -694,6 +695,7 @@ diq:
where_am_i: Edo kotideya? where_am_i: Edo kotideya?
sidebar: sidebar:
close: Racnê close: Racnê
search_results: Neticeya geyrayışi
time: time:
formats: formats:
friendly: "%e %B %Y seate %H:%M" friendly: "%e %B %Y seate %H:%M"
@ -730,7 +732,7 @@ diq:
trackable: SEYRKERDENEN trackable: SEYRKERDENEN
view_map: Xeriti Bımocnê view_map: Xeriti Bımocnê
trace_form: trace_form:
help: Peşti help: Desteg
tags: "Etiketi:" tags: "Etiketi:"
upload_button: Bar ke upload_button: Bar ke
visibility: Vinayîşî visibility: Vinayîşî

View file

@ -51,7 +51,7 @@ el:
languages: Γλώσσες languages: Γλώσσες
pass_crypt: Κωδικός pass_crypt: Κωδικός
models: models:
acl: Πρόσβαση στη λίστα ελέγχου acl: Πρόσβαση στη Λίστα Ελέγχου
changeset: Ομάδα Αλλαγών changeset: Ομάδα Αλλαγών
changeset_tag: Ετικέτα Ομάδας Αλλαγών changeset_tag: Ετικέτα Ομάδας Αλλαγών
country: Χώρα country: Χώρα
@ -140,7 +140,7 @@ el:
note: Προβολή της σημείωσης σε μεγαλύτερο χάρτη. note: Προβολή της σημείωσης σε μεγαλύτερο χάρτη.
relation: Προβολή της σχέσης σε μεγαλύτερο χάρτη relation: Προβολή της σχέσης σε μεγαλύτερο χάρτη
way: Προβολή της διαδρομής σε μεγαλύτερο χάρτη. way: Προβολή της διαδρομής σε μεγαλύτερο χάρτη.
loading: Φόρτωση... loading: Φόρτωση σε εξέλιξη...
navigation: navigation:
all: all:
next_changeset_tooltip: Επόμενη ομάδα αλλαγών next_changeset_tooltip: Επόμενη ομάδα αλλαγών
@ -213,11 +213,11 @@ el:
view_history: Προβολή ιστορικού view_history: Προβολή ιστορικού
relation_details: relation_details:
members: "Μέλη:" members: "Μέλη:"
part_of: "Μέρος του:" part_of: "Μέλος του:"
relation_history: relation_history:
download_xml: Λήψη XML download_xml: Λήψη XML
relation_history: Ιστορικό Σχέσης relation_history: Ιστορικό Σχέσης
relation_history_title: "Ιστορικό σχέσης: %{relation_name}" relation_history_title: "Ιστορικό Σχέσης: %{relation_name}"
view_details: Προβολή λεπτομερειών view_details: Προβολή λεπτομερειών
relation_member: relation_member:
entry: "%{type} %{name}" entry: "%{type} %{name}"
@ -235,9 +235,9 @@ el:
history_for_feature: Ιστορικό για %{feature} history_for_feature: Ιστορικό για %{feature}
load_data: Φόρτωση δεδομένων load_data: Φόρτωση δεδομένων
loaded_an_area_with_num_features: "Έχετε φορτώσει μια περιοχή που περιέχει %{num_features} χαρακτηριστικά. Γενικά, μερικοί browsers μπορεί να μην αντέχουν να δείξουν τόσα πολλά στοιχεία. Γενικά, οι browsers δουλεύουν καλύτερα δείχνοντας λιγότερα από %{max_features} χαρακτηριστικά τη φορά: με οτιδήποτε άλλο ο browser μπορεί να γίνει αργός ή να μην αντιδρά. Αν είστε σίγουρος ότι θέλετε να δείτε αυτά τα δεδομένα, κάντε κλικ στο παρακάτω κουμπί." loaded_an_area_with_num_features: "Έχετε φορτώσει μια περιοχή που περιέχει %{num_features} χαρακτηριστικά. Γενικά, μερικοί browsers μπορεί να μην αντέχουν να δείξουν τόσα πολλά στοιχεία. Γενικά, οι browsers δουλεύουν καλύτερα δείχνοντας λιγότερα από %{max_features} χαρακτηριστικά τη φορά: με οτιδήποτε άλλο ο browser μπορεί να γίνει αργός ή να μην αντιδρά. Αν είστε σίγουρος ότι θέλετε να δείτε αυτά τα δεδομένα, κάντε κλικ στο παρακάτω κουμπί."
loading: Φόρτωση... loading: Φόρτωση σε εξέλιξη...
manually_select: Χειροκίνητη επιλογή διαφορετικής περιοχής manually_select: Χειροκίνητη επιλογή διαφορετικής περιοχής
notes_layer_name: Περιήγηση στις Σημειώσεις notes_layer_name: Περιήγηση Σημειώσεων
object_list: object_list:
api: Ανάκτηση περιοχής από το API api: Ανάκτηση περιοχής από το API
back: Πίσω στον κατάλογο αντικειμένων back: Πίσω στον κατάλογο αντικειμένων
@ -256,11 +256,11 @@ el:
way: Διαδρομή way: Διαδρομή
private_user: ιδιωτικός χρήστης private_user: ιδιωτικός χρήστης
show_areas: Εμφάνιση περιοχών show_areas: Εμφάνιση περιοχών
show_history: Προβολή ιστορικού show_history: Προβολή Ιστορικού
unable_to_load_size: "Δεν είναι δυνατή η φόρτωση: το μέγεθος %{bbox_size} του πλαισίου οριοθέτησης είναι πολύ μεγάλο (πρέπει να είναι μικρότερο από %{max_bbox_size})" unable_to_load_size: "Δεν είναι δυνατή η φόρτωση: το μέγεθος %{bbox_size} του πλαισίου οριοθέτησης είναι πολύ μεγάλο (πρέπει να είναι μικρότερο από %{max_bbox_size})"
view_data: Προβολή δεδομένων στην τρέχουσα προβολή του χάρτη view_data: Δείτε δεδομένα σχετικά με την τρέχουσα προβολή του χάρτη
wait: Αναμονή... wait: Αναμονή...
zoom_or_select: Μεγέθυνση ή επιλογή περιοχής του χάρτη προς εμφάνιση zoom_or_select: Μεγεθυνθείτε ή επιλέξτε την περιοχή του χάρτη προς εμφάνιση
tag_details: tag_details:
tags: "Ετικέτες:" tags: "Ετικέτες:"
wiki_link: wiki_link:
@ -493,9 +493,11 @@ el:
search: search:
title: title:
ca_postcode: Αποτελέσματα από <a href="http://geocoder.ca/">Geocoder.CA</a> ca_postcode: Αποτελέσματα από <a href="http://geocoder.ca/">Geocoder.CA</a>
geonames: Αποτελέσματα από <a href="http://www.geonames.org/">GeoNames</a> geonames: Αποτελέσματα από το <a href="http://www.geonames.org/">GeoNames</a>
latlon: <a href="http://openstreetmap.org/">Εσωτερικά</a> αποτελέσματα geonames_reverse: Αποτελέσματα από το <a href="http://www.geonames.org/">GeoNames</a>
osm_nominatim: Αποτελέσματα από <a href="http://nominatim.openstreetmap.org/">OpenStreetMap Nominatim</a> latlon: Αποτελέσματα από την <a href="http://openstreetmap.org/">εσωτερική</a> βάση δεδομένων
osm_nominatim: Αποτελέσματα από το <a href="http://nominatim.openstreetmap.org/">OpenStreetMap Nominatim</a>
osm_nominatim_reverse: Αποτελέσματα από το <a href="http://nominatim.openstreetmap.org/">OpenStreetMap Nominatim</a>
uk_postcode: Αποτέλεσμα από <a href="http://www.npemap.org.uk/">NPEMap / FreeThe Postcode</a> uk_postcode: Αποτέλεσμα από <a href="http://www.npemap.org.uk/">NPEMap / FreeThe Postcode</a>
us_postcode: Αποτελέσματα από <a href="http://geocoder.us/">Geocoder.us</a> us_postcode: Αποτελέσματα από <a href="http://geocoder.us/">Geocoder.us</a>
search_osm_nominatim: search_osm_nominatim:
@ -1081,7 +1083,7 @@ el:
alt_text: Λογότυπο OpenStreetMap alt_text: Λογότυπο OpenStreetMap
logout: Αποσύνδεση logout: Αποσύνδεση
make_a_donation: make_a_donation:
text: Κάντε μια Δωρεά text: Στηρίξτε μας
title: Υποστήριξε το OpenStreetMap με δωρεά χρημάτων title: Υποστήριξε το OpenStreetMap με δωρεά χρημάτων
osm_offline: Η βάση δεδομένων του OpenStreetMap είναι προσωρινά εκτός λειτουργίας λόγω εργασιών συντήρησης της βάσης δεδομένων. osm_offline: Η βάση δεδομένων του OpenStreetMap είναι προσωρινά εκτός λειτουργίας λόγω εργασιών συντήρησης της βάσης δεδομένων.
osm_read_only: Η βάση δεδομένων του OpenStreetMap είναι προσωρινά σε λειτουργία "μόνο για ανάγνωση" λόγω εργασιών συντήρησης της βάσης δεδομένων. osm_read_only: Η βάση δεδομένων του OpenStreetMap είναι προσωρινά σε λειτουργία "μόνο για ανάγνωση" λόγω εργασιών συντήρησης της βάσης δεδομένων.
@ -1453,6 +1455,7 @@ el:
track: Χωματόδρομος track: Χωματόδρομος
tram: tram:
1: τραμ 1: τραμ
trunk: Αυτοκινητόδρομος
tunnel: Διακεκομμένο περίβλημα = σήραγγα tunnel: Διακεκομμένο περίβλημα = σήραγγα
unclassified: Αταξινόμητη Οδός unclassified: Αταξινόμητη Οδός
unsurfaced: Δρόμος χωρίς Επίστρωση unsurfaced: Δρόμος χωρίς Επίστρωση

View file

@ -1026,7 +1026,7 @@ et:
confirm: "Enne kasutajakonto loomist peame saama kinnituse, et see taotlus tuli sinult ja selleks klõpsa alloleval lingil:" confirm: "Enne kasutajakonto loomist peame saama kinnituse, et see taotlus tuli sinult ja selleks klõpsa alloleval lingil:"
created: Keegi (loodetavasti sina) lõi äsja %{site_url} kasutajakonto. created: Keegi (loodetavasti sina) lõi äsja %{site_url} kasutajakonto.
greeting: Tere! greeting: Tere!
subject: "[OpenStreetMap] Tere tulemast OpenStreetMap-i" subject: "[OpenStreetMap] Tere tulemast OpenStreetMap'i"
welcome: Peale seda, kui oled kinnitanud enda konto pakume sulle lisainfot, et saaksid kasutamist hõlpsalt alustada. welcome: Peale seda, kui oled kinnitanud enda konto pakume sulle lisainfot, et saaksid kasutamist hõlpsalt alustada.
oauth: oauth:
oauthorize: oauthorize:
@ -1352,16 +1352,22 @@ et:
failed: Vabandust, kasutaja %{name} sõbraks lisamine ebaõnnestus. failed: Vabandust, kasutaja %{name} sõbraks lisamine ebaõnnestus.
success: "%{name} on nüüd sinu sõber." success: "%{name} on nüüd sinu sõber."
new: new:
about:
header: Vaba ja muudetav
html: "<p>Erinevalt teistest kaartidest on OpenStreetMap loodud samade inimeste poolt nagu sina ja igaüks võib seda parandada, täiendada, alla laadida ja kasutada.</p>\n<p>Registreeru, et alustada kaardi täiendamist. Me saadama sulle meili, et saaksid kinnitada oma kasutajakonto.</p>"
confirm email address: "Kinnita e-posti aadress:" confirm email address: "Kinnita e-posti aadress:"
confirm password: "Kinnita parool:" confirm password: "Kinnita parool:"
continue: Registreeru continue: Registreeru
display name: "Kuvatav nimi:" display name: "Kuvatav nimi:"
display name description: Avalikult kuvatud kasutajanimi. Seda saate muuta hiljem eelistustes. display name description: Avalikult kuvatud kasutajanimi. Seda saate muuta hiljem eelistustes.
email address: "E-posti aadress:" email address: "E-posti aadress:"
license_agreement: Oma kasutajakonto kinnitamiseks pead nõustuma <a href="http://www.osmfoundation.org/wiki/License/Contributor_Terms">kaastöö tingimustega</a>.
not displayed publicly: Ei näidata avalikult (vaata <a href="http://wiki.openstreetmap.org/wiki/Privacy_Policy" title="viki privaatsusreeglid, sh osa e-posti aadresside käsitlemisest">privaatsusreegleid</a>) not displayed publicly: Ei näidata avalikult (vaata <a href="http://wiki.openstreetmap.org/wiki/Privacy_Policy" title="viki privaatsusreeglid, sh osa e-posti aadresside käsitlemisest">privaatsusreegleid</a>)
openid: "%{logo} OpenID:" openid: "%{logo} OpenID:"
openid no password: OpenID kasutamisel ei ole parool kohustuslik, kuid mõned eritööriistad või serverid nõuavad seda siiski. openid no password: OpenID kasutamisel ei ole parool kohustuslik, kuid mõned eritööriistad või serverid nõuavad seda siiski.
password: "Uus parool:" password: "Uus parool:"
terms accepted: Täname, et nõustusid uute kaastöö tingimustega!
terms declined: Meil on kahju, et otsustasid mitte nõustuda uute kaastöö tingimustega. Lisateabe saamiseks vaata <a href="%{url}">seda wiki lehte</a>.
title: Registreerumine title: Registreerumine
use openid: Teise võimalusena kasuta %{logo} OpenID sisselogimist use openid: Teise võimalusena kasuta %{logo} OpenID sisselogimist
no_such_user: no_such_user:
@ -1481,3 +1487,6 @@ et:
confirm: Kinnita confirm: Kinnita
revoke: revoke:
confirm: Kinnita confirm: Kinnita
welcome_page:
introduction_html: Tere tulemast OpenStreetMap'i, vabasse ja muudetavasse maailmakaarti. Registreerumine on nüüd tehtud ja sa võid alustada kaardistamist. Siin on lühiülevaade kõige olulisematest asjadest, mida peaksid teadma.
title: Tere tulemast!

View file

@ -2042,7 +2042,7 @@ fi:
tag_html: <strong>Tagi</strong> sisältää tietoja, joilla kerrotaan pisteen, viivan tai alueen käyttötarkoitus. Tällaisia tietoja on esimerkiksi ravintolan nimi tai kadun nopeusrajoitus. tag_html: <strong>Tagi</strong> sisältää tietoja, joilla kerrotaan pisteen, viivan tai alueen käyttötarkoitus. Tällaisia tietoja on esimerkiksi ravintolan nimi tai kadun nopeusrajoitus.
title: Käsitteitä ja termistöä title: Käsitteitä ja termistöä
way_html: Avoin <strong>viiva</strong> (engl. way) on viivamainen kohde, kuten katu tai joki. Suljettu viiva eli <strong>alue</strong> (engl. area) kuvaa aluetta, kuten järveä tai rakennusta. way_html: Avoin <strong>viiva</strong> (engl. way) on viivamainen kohde, kuten katu tai joki. Suljettu viiva eli <strong>alue</strong> (engl. area) kuvaa aluetta, kuten järveä tai rakennusta.
introduction_html: Tervetuloa OpenStreetMapiin, ilmaiseen ja vapaasti muokattavaan maailmankarttaan. Rekisteröityminen on nyt tehty, joten voit eiköhän aloiteta kartan muokkaaminen. Tutustu ensin kuitenkin näihin perusasioihin. introduction_html: Tervetuloa OpenStreetMapiin, ilmaiseen ja vapaasti muokattavaan maailmankarttaan. Rekisteröityminen on nyt tehty, joten olet valmis aloittamaan kartan muokkaamisen. Tutustu ensin kuitenkin näihin perusasioihin.
questions: questions:
paragraph_1_html: Tarvitsetko apua OpenStreetMapin käytössä tai muokkaamisessa? Tutustu OpenStreetMapin <a href='http://help.openstreetmap.org/'>ohjekeskukseen</a>. paragraph_1_html: Tarvitsetko apua OpenStreetMapin käytössä tai muokkaamisessa? Tutustu OpenStreetMapin <a href='http://help.openstreetmap.org/'>ohjekeskukseen</a>.
title: Kysyttävää? title: Kysyttävää?
@ -2050,5 +2050,5 @@ fi:
title: Tervetuloa! title: Tervetuloa!
whats_on_the_map: whats_on_the_map:
off_html: Se <em>ei</em> sisällä mielipiteitä, kuten arvioita, historiallisia tai hypoteettisia ominaisuuksia, eikä tietoja tekijänoikeuksin suojatuista lähteistä. Ellei sinulla ole erityistä lupaa, älä kopioi verkko- tai paperikarttoja. off_html: Se <em>ei</em> sisällä mielipiteitä, kuten arvioita, historiallisia tai hypoteettisia ominaisuuksia, eikä tietoja tekijänoikeuksin suojatuista lähteistä. Ellei sinulla ole erityistä lupaa, älä kopioi verkko- tai paperikarttoja.
on_html: OpenStreetMap on paikka kartoittaa asioita, jotka ovat sekä <em>todellisia että nykyisiä</em> - se sisältää miljoonia rakennuksia, teitä ja muita yksityiskohtia paikoista. Voit kartoittaa mitä tahansa reaalimaailman piirteitä, jotka sinua kiinnostavat. on_html: OpenStreetMapissä voi kartoittaa asioita, jotka ovat sekä <em>todellisia että nykyisiä</em> - se sisältää miljoonia rakennuksia, teitä ja muita yksityiskohtia paikoista. Voit kartoittaa mitä tahansa reaalimaailman piirteitä, jotka sinua kiinnostavat.
title: Mitä on kartalla title: Mitä on kartalla

View file

@ -426,8 +426,20 @@ ia:
paste_html: Colla HTML pro incorporar in sito web paste_html: Colla HTML pro incorporar in sito web
scale: Scala scale: Scala
too_large: too_large:
body: Iste area es troppo grande pro esser exportate como datos XML de OpenStreetMap. Per favor face zoom avante o selige un area minor. body: "Iste area es troppo grande pro esser exportate como datos XML de OpenStreetMap. Per favor face zoom avante, o selige un area minor, o usa un del sequente fontes pro discargamento de datos in massa:"
geofabrik:
description: Extractos regularmente actualisate de continentes, paises, e citates seligite
title: Discargamentos de Geofabrik
heading: Area troppo grande heading: Area troppo grande
metro:
description: Extractos de metropoles e lor areas circumvicin
title: Extractos de Metro
other:
description: Fontes additional listate in le wiki de OpenStreetMap
title: Altere fontes
planet:
description: Copias regularmente actualisate del base de datos complete de OpenStreetMap
title: Planeta OSM
zoom: Zoom zoom: Zoom
start_rjs: start_rjs:
add_marker: Adder un marcator al carta add_marker: Adder un marcator al carta
@ -465,8 +477,10 @@ ia:
title: title:
ca_postcode: Resultatos de <a href="http://geocoder.ca/">Geocoder.CA</a> ca_postcode: Resultatos de <a href="http://geocoder.ca/">Geocoder.CA</a>
geonames: Resultatos de <a href="http://www.geonames.org/">GeoNames</a> geonames: Resultatos de <a href="http://www.geonames.org/">GeoNames</a>
geonames_reverse: Resultatos ab <a href="http://www.geonames.org/">GeoNames</a>
latlon: Resultatos <a href="http://openstreetmap.org/">interne</a> latlon: Resultatos <a href="http://openstreetmap.org/">interne</a>
osm_nominatim: Resultatos de <a href="http://nominatim.openstreetmap.org/">OpenStreetMap Nominatim</a> osm_nominatim: Resultatos de <a href="http://nominatim.openstreetmap.org/">OpenStreetMap Nominatim</a>
osm_nominatim_reverse: Resultatos ab <a href="http://nominatim.openstreetmap.org/">OpenStreetMap Nominatim</a>
uk_postcode: Resultatos de <a href="http://www.npemap.org.uk/">NPEMap / FreeThe Postcode</a> uk_postcode: Resultatos de <a href="http://www.npemap.org.uk/">NPEMap / FreeThe Postcode</a>
us_postcode: Resultatos de <a href="http://geocoder.us/">Geocoder.us</a> us_postcode: Resultatos de <a href="http://geocoder.us/">Geocoder.us</a>
search_osm_nominatim: search_osm_nominatim:
@ -479,6 +493,10 @@ ia:
level8: Limite de citate level8: Limite de citate
level9: Limite de village level9: Limite de village
prefix: prefix:
aerialway:
chair_lift: Telesedia
drag_lift: Teleski
station: Station de telecabina
aeroway: aeroway:
aerodrome: Aerodromo aerodrome: Aerodromo
apron: Pista apron: Pista
@ -572,6 +590,7 @@ ia:
shower: Ducha shower: Ducha
social_centre: Centro social social_centre: Centro social
social_club: Club social social_club: Club social
social_facility: Servicio social
studio: Appartamento de un camera studio: Appartamento de un camera
supermarket: Supermercato supermarket: Supermercato
swimming_pool: Piscina swimming_pool: Piscina
@ -600,6 +619,9 @@ ia:
"yes": Ponte "yes": Ponte
building: building:
"yes": Edificio "yes": Edificio
emergency:
fire_hydrant: Hydrante de incendio
phone: Telephono de emergentia
highway: highway:
bridleway: Sentiero pro cavallos bridleway: Sentiero pro cavallos
bus_guideway: Via guidate de autobus bus_guideway: Via guidate de autobus
@ -621,6 +643,7 @@ ia:
platform: Platteforma platform: Platteforma
primary: Via principal primary: Via principal
primary_link: Via principal primary_link: Via principal
proposed: Strata proponite
raceway: Circuito raceway: Circuito
residential: Residential residential: Residential
rest_area: Area de reposo rest_area: Area de reposo
@ -632,6 +655,7 @@ ia:
speed_camera: Detector de velocitate speed_camera: Detector de velocitate
steps: Scalones steps: Scalones
stile: Scalon o apertura de passage stile: Scalon o apertura de passage
street_lamp: Lanterna de strata
tertiary: Via tertiari tertiary: Via tertiari
tertiary_link: Via tertiari tertiary_link: Via tertiari
track: Pista track: Pista
@ -647,6 +671,7 @@ ia:
building: Edificio building: Edificio
castle: Castello castle: Castello
church: Ecclesia church: Ecclesia
citywalls: Muro del citate
fort: Forte fort: Forte
house: Casa house: Casa
icon: Icone icon: Icone
@ -656,6 +681,7 @@ ia:
monument: Monumento monument: Monumento
museum: Museo museum: Museo
ruins: Ruinas ruins: Ruinas
tomb: Tumba
tower: Turre tower: Turre
wayside_cross: Cruce juxta le via wayside_cross: Cruce juxta le via
wayside_shrine: Reliquario juxta le via wayside_shrine: Reliquario juxta le via
@ -794,6 +820,7 @@ ia:
locality: Localitate locality: Localitate
moor: Landa moor: Landa
municipality: Municipalitate municipality: Municipalitate
neighbourhood: Quartiero
postcode: Codice postal postcode: Codice postal
region: Region region: Region
sea: Mar sea: Mar
@ -819,8 +846,10 @@ ia:
narrow_gauge: Ferrovia stricte narrow_gauge: Ferrovia stricte
platform: Platteforma ferroviari platform: Platteforma ferroviari
preserved: Ferrovia preservate preserved: Ferrovia preservate
proposed: Ferrovia proponite
spur: Ramification de ferrovia spur: Ramification de ferrovia
station: Station ferroviari station: Station ferroviari
stop: Halto ferroviari
subway: Station de metro subway: Station de metro
subway_entrance: Entrata al metro subway_entrance: Entrata al metro
switch: Agulia switch: Agulia
@ -836,6 +865,7 @@ ia:
beverages: Boteca de bibitas beverages: Boteca de bibitas
bicycle: Magazin de bicyclettas bicycle: Magazin de bicyclettas
books: Libreria books: Libreria
boutique: Boutique
butcher: Macelleria butcher: Macelleria
car: Magazin de automobiles car: Magazin de automobiles
car_parts: Partes de automobiles car_parts: Partes de automobiles
@ -849,6 +879,7 @@ ia:
convenience: Magazin de quartiero convenience: Magazin de quartiero
copyshop: Centro de photocopias copyshop: Centro de photocopias
cosmetics: Boteca de cosmetica cosmetics: Boteca de cosmetica
deli: Boteca de delicatessas fin
department_store: Grande magazin department_store: Grande magazin
discount: Boteca de disconto discount: Boteca de disconto
doityourself: Magazin de bricolage doityourself: Magazin de bricolage
@ -885,17 +916,21 @@ ia:
organic: Boteca de alimentos organic organic: Boteca de alimentos organic
outdoor: Magazin de sport al aere libere outdoor: Magazin de sport al aere libere
pet: Boteca de animales pet: Boteca de animales
pharmacy: Pharmacia
photo: Magazin de photographia photo: Magazin de photographia
salon: Salon salon: Salon
second_hand: Magazin de secunde mano
shoes: Scarperia shoes: Scarperia
shopping_centre: Centro commercial shopping_centre: Centro commercial
sports: Magazin de sport sports: Magazin de sport
stationery: Papireria stationery: Papireria
supermarket: Supermercato supermarket: Supermercato
tailor: Sartor
toys: Magazin de joculos toys: Magazin de joculos
travel_agency: Agentia de viages travel_agency: Agentia de viages
video: Magazin de video video: Magazin de video
wine: Magazin de vinos wine: Magazin de vinos
"yes": Boteca
tourism: tourism:
alpine_hut: Cabana alpin alpine_hut: Cabana alpin
artwork: Obra de arte artwork: Obra de arte
@ -918,6 +953,7 @@ ia:
viewpoint: Puncto de vista viewpoint: Puncto de vista
zoo: Jardin zoologic zoo: Jardin zoologic
tunnel: tunnel:
culvert: Tubo de aqua subterranee
"yes": Tunnel "yes": Tunnel
waterway: waterway:
artificial: Via aquatic artificial artificial: Via aquatic artificial
@ -980,12 +1016,14 @@ ia:
community_blogs: Blogs del communitate community_blogs: Blogs del communitate
community_blogs_title: Blogs de membros del communitate de OpenStreetMap community_blogs_title: Blogs de membros del communitate de OpenStreetMap
copyright: Copyright & Licentia copyright: Copyright & Licentia
data: Datos
documentation: Documentation documentation: Documentation
documentation_title: Documentation pro le projecto documentation_title: Documentation pro le projecto
donate: Supporta OpenStreetMap per %{link} al Fundo de Actualisation de Hardware. donate: Supporta OpenStreetMap per %{link} al Fundo de Actualisation de Hardware.
donate_link_text: donation donate_link_text: donation
edit: Modificar edit: Modificar
edit_with: Modificar con %{editor} edit_with: Modificar con %{editor}
export_data: Exportar datos
foundation: Fundation foundation: Fundation
foundation_title: Le fundation OpenStreetMap foundation_title: Le fundation OpenStreetMap
gps_traces: Tracias GPS gps_traces: Tracias GPS
@ -994,7 +1032,7 @@ ia:
help_centre: Centro de adjuta help_centre: Centro de adjuta
help_title: Sito de adjuta pro le projecto help_title: Sito de adjuta pro le projecto
history: Historia history: Historia
home: initio home: Vader al position de initio
intro_1: OpenStreetMap es un carta libere e modificabile del mundo integre. Illo es facite per gente como tu. intro_1: OpenStreetMap es un carta libere e modificabile del mundo integre. Illo es facite per gente como tu.
intro_2_create_account: Crea un conto de usator intro_2_create_account: Crea un conto de usator
intro_2_download: discargar intro_2_download: discargar
@ -1006,7 +1044,7 @@ ia:
log_in_tooltip: Aperir un session con un conto existente log_in_tooltip: Aperir un session con un conto existente
logo: logo:
alt_text: Logo de OpenStreetMap alt_text: Logo de OpenStreetMap
logout: clauder session logout: Clauder session
make_a_donation: make_a_donation:
text: Facer un donation text: Facer un donation
title: Supporta OpenStreetMap con un donation monetari title: Supporta OpenStreetMap con un donation monetari
@ -1924,3 +1962,19 @@ ia:
fail: Impossibile revocar le rolo `%{role}' del usator `%{name}'. Verifica que e le usator e le rolo es valide. fail: Impossibile revocar le rolo `%{role}' del usator `%{name}'. Verifica que e le usator e le rolo es valide.
heading: Confirmar le revocation del rolo heading: Confirmar le revocation del rolo
title: Confirmar le revocation del rolo title: Confirmar le revocation del rolo
welcome_page:
basic_terms:
editor_html: Un <strong>editor</strong> es un programma o sito web que tu pote usar pro modificar le carta.
node_html: Un <strong>nodo</strong> es un puncto sur le carta, como un restaurante o un arbore individual.
paragraph_1_html: OpenStreetMap ha un jargon proprie. Ecce alcun parolas clave que te essera utile.
tag_html: Un <strong>etiquetta</strong> es un unitate de information sur un nodo o via, como le nomine de un restaurante o le limite de velocitate de un strata.
title: Vocabulario de base pro le cartographia
way_html: Un <strong>via</strong> es un linea o area, como un strata, fluxo, laco o edificio.
introduction_html: Bevenite a OpenStreetMap, le carta libere e modificabile del mundo. Ora que tu te ha inscribite, tu es preste a comenciar a cartographiar. Ecce un guida curte con le cosas le plus importante a saper.
questions:
title: Questiones?
title: Benvenite!
whats_on_the_map:
off_html: Illo <em>non</em> include datos subjective como punctos de appreciation, elementos historic o hypothetic. Le datos ab fontes sub copyright es equalmente excludite; non copia cosas ab cartas in linea o de papiro sin permission special!
on_html: OpenStreetMap es un loco pro cartographiar cosas <em>real e actual</em>; illo include milliones de edificios, stratas e altere detalios sur locos. Tu pote cartographiar qualcunque elemento del mundo real que te interessa.
title: Que es sur le carta?

View file

@ -1111,7 +1111,7 @@ it:
partners_ucl: UCL VR Centre partners_ucl: UCL VR Centre
sign_up: iscriviti sign_up: iscriviti
sign_up_tooltip: Crea un profilo utente per apportare modifiche sign_up_tooltip: Crea un profilo utente per apportare modifiche
tag_line: La wiki-mappa Libera del Mondo tag_line: La wiki-mappa libera del mondo
user_diaries: Diari degli utenti user_diaries: Diari degli utenti
user_diaries_tooltip: Visualizza diari utente user_diaries_tooltip: Visualizza diari utente
view: Visualizza view: Visualizza

View file

@ -95,7 +95,7 @@ ja:
not_a_moderator: モデレーター権限が必要な操作です。 not_a_moderator: モデレーター権限が必要な操作です。
setup_user_auth: setup_user_auth:
blocked: APIへのアクセスがブロックされました。Web インターフェイスからログインし直して詳細を確認してください。 blocked: APIへのアクセスがブロックされました。Web インターフェイスからログインし直して詳細を確認してください。
need_to_see_terms: あなたは一時的に API の利用を停止されています。ウェブ インターフェイスにログインして投稿者規約をご覧ください。同意しなくてもかまいませんが、必ずご覧ください。 need_to_see_terms: あなたは一時的にAPIの利用を停止されています。ウェブインターフェイスにログインして協力者規約をご覧ください。同意しなくてもかまいませんが、必ずご覧ください。
browse: browse:
changeset: changeset:
changeset: "変更セット: %{id}" changeset: "変更セット: %{id}"
@ -992,13 +992,14 @@ ja:
key: key:
title: 凡例 title: 凡例
tooltip: 凡例 tooltip: 凡例
tooltip_disabled: 標準レイヤーのみで利用可能な地図キー
map: map:
base: base:
cycle_map: サイクリングマップ cycle_map: サイクリングマップ
hot: Humanitarian hot: Humanitarian
standard: 標準 standard: 標準
transport_map: 交通マップ transport_map: 交通マップ
copyright: © <a href='%{copyright_url}'>OpenStreetMap への貢献者</a> copyright: © <a href='%{copyright_url}'>OpenStreetMapへの協力者</a>
layers: layers:
data: 地図データ data: 地図データ
header: 地図のレイヤー header: 地図のレイヤー
@ -1033,10 +1034,13 @@ ja:
resolve: 解決 resolve: 解決
share: share:
cancel: キャンセル cancel: キャンセル
center_marker: マーカーを地図の中心にする
custom_dimensions: 独自の寸法を設定
download: ダウンロード download: ダウンロード
embed: HTML embed: HTML
format: "形式:" format: "形式:"
image: 画像 image: 画像
image_size: イメージの表示は標準レイヤー上で
include_marker: マーカーを含める include_marker: マーカーを含める
link: リンクまたは HTML link: リンクまたは HTML
long_link: リンク long_link: リンク
@ -1118,6 +1122,8 @@ ja:
title: 権利表示の例 title: 権利表示の例
contributors_at_html: "<strong>オーストリア</strong>: <a href=\"http://data.wien.gv.at/\">Stadt Wien</a> (ライセンス <a href=\"http://creativecommons.org/licenses/by/3.0/at/deed.de\">CC BY</a>)、<a href=\"http://www.vorarlberg.at/vorarlberg/bauen_wohnen/bauen/vermessung_geoinformation/weitereinformationen/services/wmsdienste.htm\">Land Vorarlberg</a>、Land Tirol (ライセンス <a href=\"http://www.tirol.gv.at/applikationen/e-government/data/nutzungsbedingungen/\">CC BY AT with amendments</a>) によるデータを含みます。" contributors_at_html: "<strong>オーストリア</strong>: <a href=\"http://data.wien.gv.at/\">Stadt Wien</a> (ライセンス <a href=\"http://creativecommons.org/licenses/by/3.0/at/deed.de\">CC BY</a>)、<a href=\"http://www.vorarlberg.at/vorarlberg/bauen_wohnen/bauen/vermessung_geoinformation/weitereinformationen/services/wmsdienste.htm\">Land Vorarlberg</a>、Land Tirol (ライセンス <a href=\"http://www.tirol.gv.at/applikationen/e-government/data/nutzungsbedingungen/\">CC BY AT with amendments</a>) によるデータを含みます。"
contributors_ca_html: "<strong>カナダ</strong>: GeoBase&reg;、GeoGratis (&copy; Department of Natural Resources Canada)、CanVec (&copy; Department of Natural Resources Canada)、StatCan (Geography Division, Statistics Canada) によるデータを含みます。" contributors_ca_html: "<strong>カナダ</strong>: GeoBase&reg;、GeoGratis (&copy; Department of Natural Resources Canada)、CanVec (&copy; Department of Natural Resources Canada)、StatCan (Geography Division, Statistics Canada) によるデータを含みます。"
contributors_footer_1_html: これらの詳細について、またOpenStreetMapの向上に使用されたその他のソースについては、OpenStreetMap Wikiの<a href="http://wiki.openstreetmap.org/wiki/Contributors">協力者ページ</a>をご覧ください。
contributors_footer_2_html: OpenStreetMapのデータに含めることは、元データの提供者がOpenStreetMapを支持したり、何かしらの保証を行ったり、何かしらの責任を負ったりすることを意味するものではありません。
contributors_fr_html: "<strong>フランス</strong>: Direction Générale des Impôts によるデータを含みます。" contributors_fr_html: "<strong>フランス</strong>: Direction Générale des Impôts によるデータを含みます。"
contributors_gb_html: "<strong>イギリス</strong>: 陸地測量データ &copy; Crown copyright and database right 2010-12 を含みます。" contributors_gb_html: "<strong>イギリス</strong>: 陸地測量データ &copy; Crown copyright and database right 2010-12 を含みます。"
contributors_intro_html: 協力者は数千人もの個人です。それに加え、国立の地図作成組織や、次のようなその他の情報源による公開できるライセンスによるデータを含みます。 contributors_intro_html: 協力者は数千人もの個人です。それに加え、国立の地図作成組織や、次のようなその他の情報源による公開できるライセンスによるデータを含みます。
@ -1125,11 +1131,12 @@ ja:
contributors_nz_html: "<strong>ニュージーランド</strong>: Land Information New Zealand によるデータを含みます。Crown が著作権を保持します。" contributors_nz_html: "<strong>ニュージーランド</strong>: Land Information New Zealand によるデータを含みます。Crown が著作権を保持します。"
contributors_title_html: 協力者 contributors_title_html: 協力者
contributors_za_html: "<strong>南アフリカ</strong>: <a href=\"http://www.ngi.gov.za/\">Chief Directorate: National Geo-Spatial Information</a>, State によるデータを含み、著作権を保持します。" contributors_za_html: "<strong>南アフリカ</strong>: <a href=\"http://www.ngi.gov.za/\">Chief Directorate: National Geo-Spatial Information</a>, State によるデータを含み、著作権を保持します。"
credit_1_html: 「&copy; OpenStreetMap への貢献者」のクレジットを必ず使用してください。 credit_1_html: 「&copy; OpenStreetMapへの協力者」のクレジットを必ず使用してください。
credit_2_html: あなたはデータが Open Database License に基づいて提供されていること、そして地図タイルを使用する場合は、地図製作が CC BY-SA としてライセンスされていることを明確にしなければなりません。<a href="http://www.openstreetmap.org/copyright">著作権表示ページ</a>にリンクすることでこれを表現することができます。また、データの形式でOSMを配布する場合の要件として、名前を表示の上、ライセンスに直接リンクすることができます。リンクを張れないメディア印刷などの場合は、openstreetmap.orgOpenStreetMapをアドレスとして展開した形、opendatacommons.org、あと関連があれば、creativecommons.orgに誘導することをお勧めします。 credit_2_html: あなたはデータが Open Database License に基づいて提供されていること、そして地図タイルを使用する場合は、地図製作が CC BY-SA としてライセンスされていることを明確にしなければなりません。<a href="http://www.openstreetmap.org/copyright">著作権表示ページ</a>にリンクすることでこれを表現することができます。また、データの形式でOSMを配布する場合の要件として、名前を表示の上、ライセンスに直接リンクすることができます。リンクを張れないメディア印刷などの場合は、openstreetmap.orgOpenStreetMapをアドレスとして展開した形、opendatacommons.org、あと関連があれば、creativecommons.orgに誘導することをお勧めします。
credit_3_html: "閲覧可能な電子地図の場合は、地図の隅にクレジットを表示してください。\n例:" credit_3_html: "閲覧可能な電子地図の場合は、地図の隅にクレジットを表示してください。\n例:"
credit_title_html: OpenStreetMap のクレジット表記の仕方 credit_title_html: OpenStreetMap のクレジット表記の仕方
infringement_1_html: "OSM の協力者は、著作権者から明確な許諾を得ずに、著作権のある情報源 (例: Google マップや印刷された地図) からデータを持ち込まないよう注意するものとします。" infringement_1_html: "OSMの協力者は、著作権者から明確な許諾を得ずに、著作権のある情報源 (例: Google マップや印刷された地図) からデータを持ち込まないよう注意するものとします。"
infringement_2_html: もし著作権のある素材がOpenStreetMapのデータベースや本サイトに不正に追加されたとお考えの場合は、<a href="http://www.osmfoundation.org/wiki/License/Takedown_procedure">却下手順</a>をお読みになるか、<a href="http://dmca.openstreetmap.org/">on-line filing page</a>から直接申し立てを行ってください。
infringement_title_html: 著作権侵害 infringement_title_html: 著作権侵害
intro_1_html: "OpenStreetMap は<i>オープンデータ</i>であり、<a\nhref=\"http://opendatacommons.org/licenses/odbl/\">Open Data Commons Open Database License</a> (ODbL) の下にライセンスされています。" intro_1_html: "OpenStreetMap は<i>オープンデータ</i>であり、<a\nhref=\"http://opendatacommons.org/licenses/odbl/\">Open Data Commons Open Database License</a> (ODbL) の下にライセンスされています。"
intro_2_html: OpenStreetMapとその協力者をクレジットすれば、データを自由にコピー、配布、送信、利用することができます。変更したり翻案したりしたデータは、同じライセンスに従って提供することができます。あなたの権利と責任は、<a href="http://opendatacommons.org/licenses/odbl/1.0/">ライセンス契約</a>の全文で説明しています。 intro_2_html: OpenStreetMapとその協力者をクレジットすれば、データを自由にコピー、配布、送信、利用することができます。変更したり翻案したりしたデータは、同じライセンスに従って提供することができます。あなたの権利と責任は、<a href="http://opendatacommons.org/licenses/odbl/1.0/">ライセンス契約</a>の全文で説明しています。
@ -1215,6 +1222,8 @@ ja:
commented_at_html: "%{when}前に更新" commented_at_html: "%{when}前に更新"
opened_at_by_html: "%{when}前に%{user}が作成" opened_at_by_html: "%{when}前に%{user}が作成"
opened_at_html: "%{when}前に作成" opened_at_html: "%{when}前に作成"
reopened_at_by_html: "%{user}さんが%{when}に再開"
reopened_at_html: "%{when}前に再開"
entry: entry:
comment: コメント comment: コメント
full: メモ全文 full: メモ全文
@ -1234,6 +1243,7 @@ ja:
description_area: あなたのエリア [(%{min_lat}|%{min_lon}) -- (%{max_lat}|%{max_lon})] でレポート、コメント、またはクローズされたメモの一覧 description_area: あなたのエリア [(%{min_lat}|%{min_lon}) -- (%{max_lat}|%{max_lon})] でレポート、コメント、またはクローズされたメモの一覧
description_item: メモ %{id} の RSS フィード description_item: メモ %{id} の RSS フィード
opened: 新しいメモ (%{place} 付近) opened: 新しいメモ (%{place} 付近)
reopened: 再開されたメモ(%{place}付近)
title: OpenStreetMap メモ title: OpenStreetMap メモ
notifier: notifier:
diary_comment_notification: diary_comment_notification:
@ -1287,13 +1297,24 @@ ja:
note_comment_notification: note_comment_notification:
anonymous: 匿名ユーザー anonymous: 匿名ユーザー
closed: closed:
commented_note: "%{commenter}さんが、あなたがコメントした地図上の%{place}付近にあるメモを解決しました。"
subject_other: "[OpenStreetMap] %{commenter}さんが、あなたが関心を持っているメモを解決しました"
subject_own: "[OpenStreetMap] %{commenter} さんがあなたのメモを解決しました" subject_own: "[OpenStreetMap] %{commenter} さんがあなたのメモを解決しました"
your_note: "%{commenter} さんが %{place} 付近のあなたの地図メモの 1 つにコメントしました。" your_note: "%{commenter}さんが%{place}付近にあるあなたの地図メモの1つを解決しました。"
commented: commented:
commented_note: "%{commenter}さんがあなたがコメントした地図上の%{place}付近にあるメモにコメントしました。"
subject_other: "[OpenStreetMap] %{commenter}さんがあなたが関心を持っているメモにコメントしました"
subject_own: "[OpenStreetMap] %{commenter} さんがあなたのメモにコメントしました" subject_own: "[OpenStreetMap] %{commenter} さんがあなたのメモにコメントしました"
your_note: "%{commenter}さんが%{place}付近にあるあなたの地図メモの1つにコメントを残しました。"
details: メモについての詳細は %{url} を参照。 details: メモについての詳細は %{url} を参照。
greeting: こんにちは。 greeting: こんにちは。
reopened:
commented_note: "%{commenter}さんが、%{place}付近にあるあなたがコメントした地図メモを再開しました。"
subject_other: "[OpenStreetMap] %{commenter}さんがあなたが関心を持っているメモを再開しました"
subject_own: "[OpenStreetMap] %{commenter}さんがあなたのメモの1つを再開しました"
your_note: "%{commenter}さんが%{place}付近にあるあなたの地図メモの1つを再開しました。"
signup_confirm: signup_confirm:
confirm: 私たちが他に何かする前に、この要求があなたのものであることを確認する必要がありますので、その後であなたのアカウントを確認するために下のリンクをクリックしてください。
created: 誰か (おそらくあなた) が %{site_url} でアカウントを作成しました。 created: 誰か (おそらくあなた) が %{site_url} でアカウントを作成しました。
greeting: やあ、皆さん! greeting: やあ、皆さん!
subject: "[OpenStreetMap] OpenStreetMapへようこそ" subject: "[OpenStreetMap] OpenStreetMapへようこそ"
@ -1403,17 +1424,22 @@ ja:
flash: 変更を保存しました。 flash: 変更を保存しました。
site: site:
edit: edit:
anon_edits_link_text: なぜこれれが事例なのかを見る。
flash_player_required: Flash 版 OpenStreetMap エディターである Potlatch を使用するには、Flash Player が必要です。Flash Player は<a href="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">Adobe.com</a> でダウンロードできます。OpenStreetMap を編集する<a href="http://wiki.openstreetmap.org/wiki/JA:Editing?uselang=ja">他の方法</a>もあります。 flash_player_required: Flash 版 OpenStreetMap エディターである Potlatch を使用するには、Flash Player が必要です。Flash Player は<a href="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">Adobe.com</a> でダウンロードできます。OpenStreetMap を編集する<a href="http://wiki.openstreetmap.org/wiki/JA:Editing?uselang=ja">他の方法</a>もあります。
id_not_configured: iDが設定されていません。
no_iframe_support: あなたのブラウザーは、この機能に必須の HTML iframe に未対応です。 no_iframe_support: あなたのブラウザーは、この機能に必須の HTML iframe に未対応です。
not_public: あなたの編集結果を公開できません。 not_public: あなたの編集結果を公開できません。
not_public_description: このようなことをしない限り、あなたは地図を編集できます。あなたは%{user_page}から編集内容を公開できます。
potlatch2_not_configured: "Potlatch 2 が設定されていません - 詳細情報はこちらをご覧ください: http://wiki.openstreetmap.org/wiki/The_Rails_Port#Potlatch_2" potlatch2_not_configured: "Potlatch 2 が設定されていません - 詳細情報はこちらをご覧ください: http://wiki.openstreetmap.org/wiki/The_Rails_Port#Potlatch_2"
potlatch2_unsaved_changes: 保存していない変更があります。(Potlatch 2 では、保存をクリックして保存する必要があります。) potlatch2_unsaved_changes: 保存していない変更があります。(Potlatch 2 では、保存をクリックして保存する必要があります。)
potlatch_unsaved_changes: 保存していない変更があります。(Potlatch では、一覧モードで編集している場合、ウェイや点の選択を解除する必要があります。または、保存ボタンをクリックして保存してください。) potlatch_unsaved_changes: 保存していない変更があります。(Potlatch では、一覧モードで編集している場合、ウェイや点の選択を解除する必要があります。または、保存ボタンをクリックして保存してください。)
user_page_link: ユーザー ページ user_page_link: ユーザーページ
index: index:
createnote: メモを追加 createnote: メモを追加
js_1: JavaScript に対応していないブラウザーを使用しているか、JavaScript を無効にしているかのどちらかです。 js_1: JavaScript に対応していないブラウザーを使用しているか、JavaScript を無効にしているかのどちらかです。
js_2: OpenStreetMap は地図の表示に JavaScript を使用します。 js_2: OpenStreetMap は地図の表示に JavaScript を使用します。
license:
copyright: Copyright OpenStreetMapおよび協力者、オープンライセンスの下で
permalink: 固定リンク permalink: 固定リンク
remote_failed: 編集に失敗しました - JOSM または Merkaartor が読み込まれていること、遠隔制御オプションが有効になっていることを確認してください remote_failed: 編集に失敗しました - JOSM または Merkaartor が読み込まれていること、遠隔制御オプションが有効になっていることを確認してください
shortlink: 短縮リンク shortlink: 短縮リンク
@ -1559,10 +1585,12 @@ ja:
message: GPX ファイルのアップロード システムは現在利用できません message: GPX ファイルのアップロード システムは現在利用できません
trace: trace:
ago: "%{time_in_words_ago}前" ago: "%{time_in_words_ago}前"
by: "投稿者:"
count_points: "%{count} 個の点" count_points: "%{count} 個の点"
edit: 編集 edit: 編集
edit_map: 地図を編集 edit_map: 地図を編集
identifiable: 識別可能 identifiable: 識別可能
in: "タグ:"
map: 地図 map: 地図
more: 詳細 more: 詳細
pending: 処理中 pending: 処理中
@ -1621,12 +1649,12 @@ ja:
user: user:
account: account:
contributor terms: contributor terms:
agreed: あなたは、新しい投稿規約を承諾しています。 agreed: あなたは、新しい協力者規約を承諾しています。
agreed_with_pd: また、あなたは、自分の編集結果がパブリックドメインにあるべきだと考えているということも宣言しています。 agreed_with_pd: また、あなたは、自分の編集結果がパブリックドメインにあるべきだと考えているということも宣言しています。
heading: "投稿規約:" heading: "協力者規約:"
link text: これは何ですか? link text: これは何ですか?
not yet agreed: あなたはまだ新しい投稿規約を承諾していません。 not yet agreed: あなたはまだ新しい投稿規約を承諾していません。
review link text: ご都合の良い時にこのリンクをクリックして新しい投稿規約をレビューの上、同意してください。 review link text: ご都合の良い時にこのリンクをクリックして新しい協力者規約を確認の上、同意してください。
current email address: "現在のメール アドレス:" current email address: "現在のメール アドレス:"
delete image: 現在の画像を削除 delete image: 現在の画像を削除
email never displayed publicly: (非公開) email never displayed publicly: (非公開)
@ -1674,6 +1702,7 @@ ja:
button: 確認 button: 確認
heading: メールを確認してください heading: メールを確認してください
introduction_1: 確認メールをお送りしました。 introduction_1: 確認メールをお送りしました。
introduction_2: メール内のリンクをクリックしてアカウントの確認をすれば、マッピングを始められます。
press confirm button: アカウントを有効にして良ければ、以下の確認ボタンを押してください。 press confirm button: アカウントを有効にして良ければ、以下の確認ボタンを押してください。
reconfirm_html: 確認メールを再送する必要がある場合は、<a href="%{reconfirm}">ここをクリック</a>してください。 reconfirm_html: 確認メールを再送する必要がある場合は、<a href="%{reconfirm}">ここをクリック</a>してください。
unknown token: この確認コードは期限切れ、または存在しません。 unknown token: この確認コードは期限切れ、または存在しません。
@ -1763,6 +1792,7 @@ ja:
new: new:
about: about:
header: フリー、編集可能 header: フリー、編集可能
html: "<p>他の地図とは異なり、OpenStreetMapは完全にあなたのような人々によって作成され、だれでも自由に修正、更新、ダウンロード、利用することができます。</p>\n<p>協力を始めるにはサインアップしてください。あなたのアカウントの確認メールが送信されます。</p>"
confirm email address: "メール アドレスの確認:" confirm email address: "メール アドレスの確認:"
confirm password: "パスワードの確認:" confirm password: "パスワードの確認:"
contact_webmaster: アカウントを作成できるよう、<a href="mailto:webmaster@openstreetmap.org">webmaster</a>に連絡してください。 できるだけ早期に、あなたの希望に対応するように努めます。 contact_webmaster: アカウントを作成できるよう、<a href="mailto:webmaster@openstreetmap.org">webmaster</a>に連絡してください。 できるだけ早期に、あなたの希望に対応するように努めます。
@ -1770,15 +1800,15 @@ ja:
display name: "表示名:" display name: "表示名:"
display name description: 自分の公開ユーザー名です。あとで設定ページで変更できます。 display name description: 自分の公開ユーザー名です。あとで設定ページで変更できます。
email address: "メール アドレス:" email address: "メール アドレス:"
license_agreement: アカウントを確認するときには <a href="http://www.osmfoundation.org/wiki/License/Contributor_Terms">contributor terms</a> に同意する必要があります。 license_agreement: アカウントを確認するときには<a href="http://www.osmfoundation.org/wiki/License/Contributor_Terms">協力者規約</a>に同意する必要があります。
no_auto_account_create: 残念ながら、現在、自動ではアカウントを作成できません。 no_auto_account_create: 残念ながら、現在、自動ではアカウントを作成できません。
not displayed publicly: 非公開です (詳細は <a href="http://wiki.openstreetmap.org/wiki/Privacy_Policy" title="メール アドレスの節を含む、ウィキのプライバシー ポリシー">プライバシー ポリシー</a>を参照してください) not displayed publicly: 非公開です (詳細は <a href="http://wiki.openstreetmap.org/wiki/Privacy_Policy" title="メール アドレスの節を含む、ウィキのプライバシー ポリシー">プライバシー ポリシー</a>を参照してください)
openid: "%{logo} OpenID:" openid: "%{logo} OpenID:"
openid association: "<p>あなたの OpenID は、まだ OpenStreetMap のどのアカウントとも関連付けられていません。</p>\n<ul>\n <li>OpenStreetMap が初めての場合は、下のフォームで新規アカウントを作成してください。</li>\n <li>\n 既にアカウントを持っている場合は、あなたのユーザー名とパスワードでログインしてください。\n ログイン後、ユーザー設定であなたの OpenID と関連付けることができます。\n </li>\n</ul>" openid association: "<p>あなたの OpenID は、まだ OpenStreetMap のどのアカウントとも関連付けられていません。</p>\n<ul>\n <li>OpenStreetMap が初めての場合は、下のフォームで新規アカウントを作成してください。</li>\n <li>\n 既にアカウントを持っている場合は、あなたのユーザー名とパスワードでログインしてください。\n ログイン後、ユーザー設定であなたの OpenID と関連付けることができます。\n </li>\n</ul>"
openid no password: OpenID ではパスワードは不要ですが、特殊なツール/サーバーでは必要な場合があります。 openid no password: OpenID ではパスワードは不要ですが、特殊なツール/サーバーでは必要な場合があります。
password: "パスワード:" password: "パスワード:"
terms accepted: 新しい投稿規約に同意いただき、ありがとうございます! terms accepted: 新しい協力者規約に同意いただき、ありがとうございます!
terms declined: 新しい投稿規約に同意いただけず残念です。詳しい情報は、<a href="%{url}">このウィキページ</a>をご覧ください。 terms declined: 新しい協力者規約に同意いただけず残念です。詳しい情報は、<a href="%{url}">このウィキページ</a>をご覧ください。
terms declined url: http://wiki.openstreetmap.org/wiki/JA:Contributor_Terms_Declined terms declined url: http://wiki.openstreetmap.org/wiki/JA:Contributor_Terms_Declined
title: ユーザー登録 title: ユーザー登録
use openid: 代わりに、%{logo} OpenID を使用してログイン use openid: 代わりに、%{logo} OpenID を使用してログイン
@ -1817,15 +1847,15 @@ ja:
decline: 拒否 decline: 拒否
declined: http://wiki.openstreetmap.org/wiki/JA:Contributor_Terms_Declined declined: http://wiki.openstreetmap.org/wiki/JA:Contributor_Terms_Declined
guidance: この規約の理解を助ける情報として、<a href="%{summary}">要約 (英語)</a> や <a href="%{translations}">非公式の翻訳</a> をご覧ください。 guidance: この規約の理解を助ける情報として、<a href="%{summary}">要約 (英語)</a> や <a href="%{translations}">非公式の翻訳</a> をご覧ください。
heading: 投稿規約 heading: 協力者規約
legale_names: legale_names:
france: フランス france: フランス
italy: イタリア italy: イタリア
rest_of_world: それ以外の国 rest_of_world: それ以外の国
legale_select: "お住まいの国:" legale_select: "お住まいの国:"
read and accept: 同意書を読み、あなたの既存および将来の投稿のために本同意書の条項を承諾することを確認するために同意ボタンを押してください。 read and accept: 同意書を読み、あなたの既存および将来の協力のために本同意書の条項を承諾することを確認するために同意ボタンを押してください。
title: 投稿規約 title: 協力者規約
you need to accept or decline: 続行するには新しい投稿規約を読んで同意または拒否してください。 you need to accept or decline: 続行するには新しい協力者規約を読んで同意または拒否してください。
view: view:
activate_user: このユーザーを有効にする activate_user: このユーザーを有効にする
add as friend: 友達として追加 add as friend: 友達として追加
@ -1840,7 +1870,7 @@ ja:
created from: "作成日:" created from: "作成日:"
ct accepted: "%{ago}前に承認" ct accepted: "%{ago}前に承認"
ct declined: 拒否 ct declined: 拒否
ct status: "投稿規約:" ct status: "協力者規約:"
ct undecided: 未決定 ct undecided: 未決定
deactivate_user: このユーザーを無効にする deactivate_user: このユーザーを無効にする
delete_user: このユーザーを削除 delete_user: このユーザーを削除
@ -1906,6 +1936,7 @@ ja:
edit: edit:
back: すべてのブロックを閲覧 back: すべてのブロックを閲覧
heading: "%{name} のブロックの編集" heading: "%{name} のブロックの編集"
needs_view: このブロックを解消する前に、ユーザーがログインする必要がありますか?
period: ユーザーが今からどれくらいの間、APIからブロックされるか。 period: ユーザーが今からどれくらいの間、APIからブロックされるか。
reason: "%{name} さんがブロックされている理由です。できるだけ冷静かつ理性的になり、できるだけ丁寧に状況を説明するようにしてください。すべてのユーザーがコミュニティ内での隠語を理解しているわけではないため、分かりやすい用語を使うように努めてください。" reason: "%{name} さんがブロックされている理由です。できるだけ冷静かつ理性的になり、できるだけ丁寧に状況を説明するようにしてください。すべてのユーザーがコミュニティ内での隠語を理解しているわけではないため、分かりやすい用語を使うように努めてください。"
show: このブロックを閲覧 show: このブロックを閲覧
@ -1934,6 +1965,7 @@ ja:
submit: ブロックを作成 submit: ブロックを作成
title: "%{name} のブロックの作成" title: "%{name} のブロックの作成"
tried_contacting: ユーザーに連絡して、それらをやめるよう依頼しました。 tried_contacting: ユーザーに連絡して、それらをやめるよう依頼しました。
tried_waiting: 私はユーザーとの対話に応じるために、合理的な時間を費やしました。
not_found: not_found:
back: 索引に戻る back: 索引に戻る
sorry: 申し訳ありませんが、ID %{id} のユーザー ブロックは見つかりませんでした。 sorry: 申し訳ありませんが、ID %{id} のユーザー ブロックは見つかりませんでした。
@ -1997,6 +2029,8 @@ ja:
title: 権限取り消しの確認 title: 権限取り消しの確認
welcome_page: welcome_page:
add_a_note: add_a_note:
paragraph_1_html: "些細な修正だけをしたいが、サインアップしたり編集の仕方を勉強する時間がない場合は、\n簡単にメモを追加できます。"
paragraph_2_html: <a href='%{map_url}'>地図</a>に移動してメモアイコン(<span class='icon note'></span>)をクリックするだけです。これで地図上に印が追加され、ドラッグして移動させることができます。あなたのメッセージを追加し、保存をクリックすれば、他のマッパーが調査するでしょう。
title: 編集する時間がないためメモを残します title: 編集する時間がないためメモを残します
basic_terms: basic_terms:
editor_html: <strong>エディター</strong>は、地図を編集できるプログラムやウェブサイトです。 editor_html: <strong>エディター</strong>は、地図を編集できるプログラムやウェブサイトです。
@ -2005,9 +2039,13 @@ ja:
tag_html: <strong>タグ</strong>はノードやウェイについて補足するデータです。レストランの名前、道路の制限速度などが該当します。 tag_html: <strong>タグ</strong>はノードやウェイについて補足するデータです。レストランの名前、道路の制限速度などが該当します。
title: マッピングのための基本的な用語 title: マッピングのための基本的な用語
way_html: <strong>ウェイ</strong>は線または領域です。道路、水路、湖、建物などが該当します。 way_html: <strong>ウェイ</strong>は線または領域です。道路、水路、湖、建物などが該当します。
introduction_html: フリーで編集可能な世界地図、OpenStreetMapへようこそ。サインアップしたので、マッピングの準備はすべて整いました。知っておかなければならない重要事項を簡単に説明します。
questions: questions:
paragraph_1_html: マッピングで分からないことがありますかOpenStreetMapの使い方で不明な点はありますか<a href='http://help.openstreetmap.org/'>ヘルプのウェブサイト</a>で疑問の回答を得てください。
title: 何か質問はありますか? title: 何か質問はありますか?
start_mapping: マッピングを開始 start_mapping: マッピングを開始
title: ようこそ! title: ようこそ!
whats_on_the_map: whats_on_the_map:
off_html: 含めては<em>いけない</em>ものは、評価のような主観的なデータ、歴史的または仮想的なもの、著作権のある情報源からのデータです。特別な許可がない場合は、オンラインや紙の地図からコピーをしてはいけません。
on_html: OpenStreetMapは<em>現実かつ現存</em>のもの――数々の建物、道路、場所に関するその他の詳細をマッピングする場所です。あなたは関心のある現実世界のものを何でもマッピングできます。
title: 地図上にあるもの title: 地図上にあるもの

View file

@ -1069,7 +1069,7 @@ ko:
help_title: 프로젝트에 대한 도움말 사이트 help_title: 프로젝트에 대한 도움말 사이트
history: 역사 history: 역사
home: 집 위치로 가기 home: 집 위치로 가기
intro_1: OpenStreetMap은 여러분같은 사람에 의해 만들어진 우리 모두의 전세계 지도입니다. intro_1: OpenStreetMap은 여러분 같은 사람에 의해 만들어진 자유로운 전세계 지도입니다.
intro_2_create_account: 사용자 계정을 만드세요 intro_2_create_account: 사용자 계정을 만드세요
intro_2_download: 다운로드 intro_2_download: 다운로드
intro_2_html: 데이터는 %{license}에 따라 자유롭게 %{download}와 %{use}할 수 있습니다. 지도를 개선하려면 %{create_account}. intro_2_html: 데이터는 %{license}에 따라 자유롭게 %{download}와 %{use}할 수 있습니다. 지도를 개선하려면 %{create_account}.

View file

@ -485,8 +485,10 @@ lv:
title: title:
ca_postcode: Rezultāti no <a href="http://geocoder.ca/">Geocoder.CA</a> ca_postcode: Rezultāti no <a href="http://geocoder.ca/">Geocoder.CA</a>
geonames: Rezultāti no <a href="http://www.geonames.org/">GeoNames</a> geonames: Rezultāti no <a href="http://www.geonames.org/">GeoNames</a>
geonames_reverse: Rezultāti no <a href="http://www.geonames.org/">GeoNames</a>
latlon: Rezultāti no <a href="http://openstreetmap.org/">Iekšējās meklēšanas</a> latlon: Rezultāti no <a href="http://openstreetmap.org/">Iekšējās meklēšanas</a>
osm_nominatim: Rezultāti no <a href="http://nominatim.openstreetmap.org/">OpenStreetMap Nominatim</a> osm_nominatim: Rezultāti no <a href="http://nominatim.openstreetmap.org/">OpenStreetMap Nominatim</a>
osm_nominatim_reverse: Rezultāti no <a href="http://nominatim.openstreetmap.org/">OpenStreetMap Nominatim</a>
uk_postcode: Rezultāti no <a href="http://www.npemap.org.uk/">NPEMap / FreeThe Postcode</a> uk_postcode: Rezultāti no <a href="http://www.npemap.org.uk/">NPEMap / FreeThe Postcode</a>
us_postcode: Rezultāti no <a href="http://geocoder.us/">Geocoder.us</a> us_postcode: Rezultāti no <a href="http://geocoder.us/">Geocoder.us</a>
search_osm_nominatim: search_osm_nominatim:
@ -993,6 +995,7 @@ lv:
map: map:
base: base:
cycle_map: Velokarte cycle_map: Velokarte
hot: Humanitārās
standard: Standarta standard: Standarta
transport_map: Transporta karte transport_map: Transporta karte
copyright: © <a href='%{copyright_url}'>OpenStreetMap ieguldītāji</a> copyright: © <a href='%{copyright_url}'>OpenStreetMap ieguldītāji</a>
@ -1545,6 +1548,9 @@ lv:
delete: delete:
scheduled_for_deletion: Trase atzīmēta dzēšanai scheduled_for_deletion: Trase atzīmēta dzēšanai
description: description:
description_with_count:
one: GPX fails ar %{count} punktu no %{user}
other: GPX fails ar %{count} punktiem no %{user}
description_without_count: GPX fails no %{user} description_without_count: GPX fails no %{user}
edit: edit:
description: "Apraksts:" description: "Apraksts:"
@ -1563,6 +1569,8 @@ lv:
uploaded_at: "Augšupielādēts:" uploaded_at: "Augšupielādēts:"
visibility: "Redzamība:" visibility: "Redzamība:"
visibility_help: ko tas nozīmē? visibility_help: ko tas nozīmē?
georss:
title: OpenStreetMap GPS Trases
list: list:
description: Pārlūkot jaunākas GPS trases augšupielādes. description: Pārlūkot jaunākas GPS trases augšupielādes.
empty_html: Pašlaik šeit nekā nav. <a href='%{upload_link}'>Augšupielādē jaunu trasi</a> vai uzzini vairāk par GPS trasēm iekš <a href='http://wiki.openstreetmap.org/wiki/Beginners_Guide_1.2'>wiki lapas</a>. empty_html: Pašlaik šeit nekā nav. <a href='%{upload_link}'>Augšupielādē jaunu trasi</a> vai uzzini vairāk par GPS trasēm iekš <a href='http://wiki.openstreetmap.org/wiki/Beginners_Guide_1.2'>wiki lapas</a>.

View file

@ -486,8 +486,10 @@ sl:
title: title:
ca_postcode: Zadetki iz <a href="http://geocoder.ca/">Geocoder.CA</a> ca_postcode: Zadetki iz <a href="http://geocoder.ca/">Geocoder.CA</a>
geonames: Zadetki iz <a href="http://www.geonames.org/">GeoNames</a> geonames: Zadetki iz <a href="http://www.geonames.org/">GeoNames</a>
geonames_reverse: Zadetki iz <a href="http://www.geonames.org/">GeoNames</a>
latlon: <a href="http://openstreetmap.org/">Interni</a> zadetki latlon: <a href="http://openstreetmap.org/">Interni</a> zadetki
osm_nominatim: Zadetki iz <a href="http://nominatim.openstreetmap.org/">OpenStreetMap Nominatim</a> osm_nominatim: Zadetki iz <a href="http://nominatim.openstreetmap.org/">OpenStreetMap Nominatim</a>
osm_nominatim_reverse: Zadetki iz <a href="http://nominatim.openstreetmap.org/">OpenStreetMap Nominatim</a>-a
uk_postcode: Zadetki iz <a href="http://www.npemap.org.uk/">NPEMap / FreeThe Postcode</a> uk_postcode: Zadetki iz <a href="http://www.npemap.org.uk/">NPEMap / FreeThe Postcode</a>
us_postcode: Zadetki iz <a href="http://geocoder.us/">Geocoder.us</a> us_postcode: Zadetki iz <a href="http://geocoder.us/">Geocoder.us</a>
search_osm_nominatim: search_osm_nominatim:
@ -687,6 +689,7 @@ sl:
monument: Spomenik monument: Spomenik
museum: Muzej museum: Muzej
ruins: Ruševine ruins: Ruševine
tomb: Grobnica
tower: Stolp tower: Stolp
wayside_cross: Križ wayside_cross: Križ
wayside_shrine: Kapelica wayside_shrine: Kapelica
@ -999,6 +1002,7 @@ sl:
header: Plasti zemljevida header: Plasti zemljevida
notes: Opombe na zemljevidu notes: Opombe na zemljevidu
overlays: Omogočite prekrivke za odpravljanje težav na zemljevidu overlays: Omogočite prekrivke za odpravljanje težav na zemljevidu
title: Plasti
locate: locate:
popup: Ste v razdalji {distance} {unit} od te točke popup: Ste v razdalji {distance} {unit} od te točke
title: Pokaži mojo lokacijo title: Pokaži mojo lokacijo
@ -1010,13 +1014,19 @@ sl:
add: Dodaj opombo add: Dodaj opombo
show: show:
anonymous_warning: To opomba vključuje pripombe anonimnih uporabnikov, ki bi morale biti posamezno preverjene. anonymous_warning: To opomba vključuje pripombe anonimnih uporabnikov, ki bi morale biti posamezno preverjene.
closed_by: razrešil <a href='%{user_url}'>%{user}</a> ob %{time}
closed_by_anonymous: razrešil anonimnež ob %{time}
comment: Komentar comment: Komentar
comment_and_resolve: Komentiraj in razreši comment_and_resolve: Komentiraj in razreši
commented_by: komentar uporabnika <a href='%{user_url}'>%{user}</a> ob %{time}
commented_by_anonymous: Anonimni komentar ob %{time}
hide: Skrij hide: Skrij
opened_by: ustvaril/-a <a href='%{user_url}'>%{user}</a> ob %{time} opened_by: ustvaril/-a <a href='%{user_url}'>%{user}</a> ob %{time}
opened_by_anonymous: ustvaril anonimni uporabnik %{time} opened_by_anonymous: ustvaril anonimni uporabnik %{time}
permalink: Trajna povezava permalink: Trajna povezava
reactivate: Znova aktiviraj reactivate: Znova aktiviraj
reopened_by: ponovno aktiviral <a href='%{user_url}'>%{user}</a> ob %{time}
reopened_by_anonymous: ponovno aktiviral anonimnež ob %{time}
resolve: Razreši resolve: Razreši
share: share:
cancel: Prekliči cancel: Prekliči
@ -1857,6 +1867,7 @@ sl:
my diary: Moj dnevnik my diary: Moj dnevnik
my edits: Moji prispevki my edits: Moji prispevki
my notes: Moje beležke my notes: Moje beležke
my profile: Moj profil
my settings: Moje nastavitve my settings: Moje nastavitve
my traces: Moje sledi my traces: Moje sledi
nearby users: Drugi bližnji uporabniki nearby users: Drugi bližnji uporabniki

View file

@ -96,7 +96,7 @@ sv:
user_token: Användarnyckel user_token: Användarnyckel
way: Sträcka way: Sträcka
way_node: Sträcknod way_node: Sträcknod
way_tag: Sträcktagg way_tag: Vägtagg
application: application:
require_cookies: require_cookies:
cookies_needed: Du verkar ha inaktiverat cookies - aktivera cookies i din webbläsare innan du fortsätter. cookies_needed: Du verkar ha inaktiverat cookies - aktivera cookies i din webbläsare innan du fortsätter.

View file

@ -86,8 +86,6 @@ class DiaryEntryControllerTest < ActionController::TestCase
end end
def test_showing_new_diary_entry def test_showing_new_diary_entry
@request.cookies["_osm_username"] = users(:normal_user).display_name
get :new get :new
assert_response :redirect assert_response :redirect
assert_redirected_to :controller => :user, :action => "login", :referer => "/diary/new" assert_redirected_to :controller => :user, :action => "login", :referer => "/diary/new"
@ -125,7 +123,6 @@ class DiaryEntryControllerTest < ActionController::TestCase
end end
def test_editing_diary_entry def test_editing_diary_entry
@request.cookies["_osm_username"] = users(:normal_user).display_name
entry = diary_entries(:normal_user_entry_1) entry = diary_entries(:normal_user_entry_1)
# Make sure that you are redirected to the login page when you are # Make sure that you are redirected to the login page when you are
@ -217,8 +214,6 @@ class DiaryEntryControllerTest < ActionController::TestCase
end end
end end
@request.cookies["_osm_username"] = users(:public_user).display_name
# and when not logged in as the user who wrote the entry # and when not logged in as the user who wrote the entry
get :view, {:display_name => entry.user.display_name, :id => entry.id}, {'user' => entry.user.id} get :view, {:display_name => entry.user.display_name, :id => entry.id}, {'user' => entry.user.id}
assert_response :success assert_response :success
@ -251,16 +246,12 @@ class DiaryEntryControllerTest < ActionController::TestCase
end end
def test_edit_diary_entry_i18n def test_edit_diary_entry_i18n
@request.cookies["_osm_username"] = users(:normal_user).display_name
get :edit, {:display_name => users(:normal_user).display_name, :id => diary_entries(:normal_user_entry_1).id}, {'user' => users(:normal_user).id} get :edit, {:display_name => users(:normal_user).display_name, :id => diary_entries(:normal_user_entry_1).id}, {'user' => users(:normal_user).id}
assert_response :success assert_response :success
assert_select "span[class=translation_missing]", false, "Missing translation in edit diary entry" assert_select "span[class=translation_missing]", false, "Missing translation in edit diary entry"
end end
def test_create_diary_entry def test_create_diary_entry
@request.cookies["_osm_username"] = users(:normal_user).display_name
# Make sure that you are redirected to the login page when you # Make sure that you are redirected to the login page when you
# are not logged in # are not logged in
get :new get :new
@ -320,7 +311,6 @@ class DiaryEntryControllerTest < ActionController::TestCase
end end
def test_creating_diary_comment def test_creating_diary_comment
@request.cookies["_osm_username"] = users(:public_user).display_name
entry = diary_entries(:normal_user_entry_1) entry = diary_entries(:normal_user_entry_1)
# Make sure that you are denied when you are not logged in # Make sure that you are denied when you are not logged in
@ -472,16 +462,12 @@ class DiaryEntryControllerTest < ActionController::TestCase
assert_response :forbidden assert_response :forbidden
assert_equal true, DiaryEntry.find(diary_entries(:normal_user_entry_1).id).visible assert_equal true, DiaryEntry.find(diary_entries(:normal_user_entry_1).id).visible
@request.cookies["_osm_username"] = users(:normal_user).display_name
# Now try as a normal user # Now try as a normal user
post :hide, {:display_name => users(:normal_user).display_name, :id => diary_entries(:normal_user_entry_1).id}, {:user => users(:normal_user).id} post :hide, {:display_name => users(:normal_user).display_name, :id => diary_entries(:normal_user_entry_1).id}, {:user => users(:normal_user).id}
assert_response :redirect assert_response :redirect
assert_redirected_to :action => :view, :display_name => users(:normal_user).display_name, :id => diary_entries(:normal_user_entry_1).id assert_redirected_to :action => :view, :display_name => users(:normal_user).display_name, :id => diary_entries(:normal_user_entry_1).id
assert_equal true, DiaryEntry.find(diary_entries(:normal_user_entry_1).id).visible assert_equal true, DiaryEntry.find(diary_entries(:normal_user_entry_1).id).visible
@request.cookies["_osm_username"] = users(:administrator_user).display_name
# Finally try as an administrator # Finally try as an administrator
post :hide, {:display_name => users(:normal_user).display_name, :id => diary_entries(:normal_user_entry_1).id}, {:user => users(:administrator_user).id} post :hide, {:display_name => users(:normal_user).display_name, :id => diary_entries(:normal_user_entry_1).id}, {:user => users(:administrator_user).id}
assert_response :redirect assert_response :redirect
@ -495,16 +481,12 @@ class DiaryEntryControllerTest < ActionController::TestCase
assert_response :forbidden assert_response :forbidden
assert_equal true, DiaryComment.find(diary_comments(:comment_for_geo_post).id).visible assert_equal true, DiaryComment.find(diary_comments(:comment_for_geo_post).id).visible
@request.cookies["_osm_username"] = users(:normal_user).display_name
# Now try as a normal user # Now try as a normal user
post :hidecomment, {:display_name => users(:normal_user).display_name, :id => diary_entries(:normal_user_geo_entry).id, :comment => diary_comments(:comment_for_geo_post).id}, {:user => users(:normal_user).id} post :hidecomment, {:display_name => users(:normal_user).display_name, :id => diary_entries(:normal_user_geo_entry).id, :comment => diary_comments(:comment_for_geo_post).id}, {:user => users(:normal_user).id}
assert_response :redirect assert_response :redirect
assert_redirected_to :action => :view, :display_name => users(:normal_user).display_name, :id => diary_entries(:normal_user_geo_entry).id assert_redirected_to :action => :view, :display_name => users(:normal_user).display_name, :id => diary_entries(:normal_user_geo_entry).id
assert_equal true, DiaryComment.find(diary_comments(:comment_for_geo_post).id).visible assert_equal true, DiaryComment.find(diary_comments(:comment_for_geo_post).id).visible
@request.cookies["_osm_username"] = users(:administrator_user).display_name
# Finally try as an administrator # Finally try as an administrator
post :hidecomment, {:display_name => users(:normal_user).display_name, :id => diary_entries(:normal_user_geo_entry).id, :comment => diary_comments(:comment_for_geo_post).id}, {:user => users(:administrator_user).id} post :hidecomment, {:display_name => users(:normal_user).display_name, :id => diary_entries(:normal_user_geo_entry).id, :comment => diary_comments(:comment_for_geo_post).id}, {:user => users(:administrator_user).id}
assert_response :redirect assert_response :redirect

View file

@ -53,7 +53,6 @@ class MessageControllerTest < ActionController::TestCase
# Login as a normal user # Login as a normal user
session[:user] = users(:normal_user).id session[:user] = users(:normal_user).id
cookies["_osm_username"] = users(:normal_user).display_name
# Check that the new message page loads # Check that the new message page loads
get :new, :display_name => users(:public_user).display_name get :new, :display_name => users(:public_user).display_name
@ -106,7 +105,6 @@ class MessageControllerTest < ActionController::TestCase
# Login as the wrong user # Login as the wrong user
session[:user] = users(:second_public_user).id session[:user] = users(:second_public_user).id
cookies["_osm_username"] = users(:second_public_user).display_name
# Check that we can't reply to somebody else's message # Check that we can't reply to somebody else's message
get :reply, :message_id => messages(:unread_message).id get :reply, :message_id => messages(:unread_message).id
@ -115,7 +113,6 @@ class MessageControllerTest < ActionController::TestCase
# Login as the right user # Login as the right user
session[:user] = users(:public_user).id session[:user] = users(:public_user).id
cookies["_osm_username"] = users(:public_user).display_name
# Check that the message reply page loads # Check that the message reply page loads
get :reply, :message_id => messages(:unread_message).id get :reply, :message_id => messages(:unread_message).id
@ -149,7 +146,6 @@ class MessageControllerTest < ActionController::TestCase
# Login as the wrong user # Login as the wrong user
session[:user] = users(:second_public_user).id session[:user] = users(:second_public_user).id
cookies["_osm_username"] = users(:second_public_user).display_name
# Check that we can't read the message # Check that we can't read the message
get :read, :message_id => messages(:unread_message).id get :read, :message_id => messages(:unread_message).id
@ -158,7 +154,6 @@ class MessageControllerTest < ActionController::TestCase
# Login as the message sender # Login as the message sender
session[:user] = users(:normal_user).id session[:user] = users(:normal_user).id
cookies["_osm_username"] = users(:normal_user).display_name
# Check that the message sender can read the message # Check that the message sender can read the message
get :read, :message_id => messages(:unread_message).id get :read, :message_id => messages(:unread_message).id
@ -168,7 +163,6 @@ class MessageControllerTest < ActionController::TestCase
# Login as the message recipient # Login as the message recipient
session[:user] = users(:public_user).id session[:user] = users(:public_user).id
cookies["_osm_username"] = users(:public_user).display_name
# Check that the message recipient can read the message # Check that the message recipient can read the message
get :read, :message_id => messages(:unread_message).id get :read, :message_id => messages(:unread_message).id
@ -196,7 +190,6 @@ class MessageControllerTest < ActionController::TestCase
# Login # Login
session[:user] = users(:normal_user).id session[:user] = users(:normal_user).id
cookies["_osm_username"] = users(:normal_user).display_name
# Check that we can view our inbox when logged in # Check that we can view our inbox when logged in
get :inbox, :display_name => users(:normal_user).display_name get :inbox, :display_name => users(:normal_user).display_name
@ -221,7 +214,6 @@ class MessageControllerTest < ActionController::TestCase
# Login # Login
session[:user] = users(:normal_user).id session[:user] = users(:normal_user).id
cookies["_osm_username"] = users(:normal_user).display_name
# Check that we can view our outbox when logged in # Check that we can view our outbox when logged in
get :outbox, :display_name => users(:normal_user).display_name get :outbox, :display_name => users(:normal_user).display_name
@ -246,7 +238,6 @@ class MessageControllerTest < ActionController::TestCase
# Login as a user with no messages # Login as a user with no messages
session[:user] = users(:second_public_user).id session[:user] = users(:second_public_user).id
cookies["_osm_username"] = users(:second_public_user).display_name
# Check that marking a message we didn't send or receive fails # Check that marking a message we didn't send or receive fails
post :mark, :message_id => messages(:read_message).id post :mark, :message_id => messages(:read_message).id
@ -255,7 +246,6 @@ class MessageControllerTest < ActionController::TestCase
# Login as the message recipient # Login as the message recipient
session[:user] = users(:public_user).id session[:user] = users(:public_user).id
cookies["_osm_username"] = users(:public_user).display_name
# Check that the marking a message read works # Check that the marking a message read works
post :mark, :message_id => messages(:unread_message).id, :mark => "read" post :mark, :message_id => messages(:unread_message).id, :mark => "read"
@ -299,7 +289,6 @@ class MessageControllerTest < ActionController::TestCase
# Login as a user with no messages # Login as a user with no messages
session[:user] = users(:second_public_user).id session[:user] = users(:second_public_user).id
cookies["_osm_username"] = users(:second_public_user).display_name
# Check that deleting a message we didn't send or receive fails # Check that deleting a message we didn't send or receive fails
post :delete, :message_id => messages(:read_message).id post :delete, :message_id => messages(:read_message).id
@ -308,7 +297,6 @@ class MessageControllerTest < ActionController::TestCase
# Login as the message recipient # Login as the message recipient
session[:user] = users(:normal_user).id session[:user] = users(:normal_user).id
cookies["_osm_username"] = users(:normal_user).display_name
# Check that the deleting a received message works # Check that the deleting a received message works
post :delete, :message_id => messages(:read_message).id post :delete, :message_id => messages(:read_message).id

View file

@ -39,7 +39,6 @@ class RedactionsControllerTest < ActionController::TestCase
def test_moderators_can_create def test_moderators_can_create
session[:user] = users(:moderator_user).id session[:user] = users(:moderator_user).id
cookies["_osm_username"] = users(:moderator_user).display_name
post :create, :redaction => { :title => "Foo", :description => "Description here." } post :create, :redaction => { :title => "Foo", :description => "Description here." }
assert_response :redirect assert_response :redirect
@ -48,7 +47,6 @@ class RedactionsControllerTest < ActionController::TestCase
def test_non_moderators_cant_create def test_non_moderators_cant_create
session[:user] = users(:public_user).id session[:user] = users(:public_user).id
cookies["_osm_username"] = users(:public_user).display_name
post :create, :redaction => { :title => "Foo", :description => "Description here." } post :create, :redaction => { :title => "Foo", :description => "Description here." }
assert_response :forbidden assert_response :forbidden
@ -56,7 +54,6 @@ class RedactionsControllerTest < ActionController::TestCase
def test_moderators_can_delete_empty def test_moderators_can_delete_empty
session[:user] = users(:moderator_user).id session[:user] = users(:moderator_user).id
cookies["_osm_username"] = users(:moderator_user).display_name
# remove all elements from the redaction # remove all elements from the redaction
redaction = redactions(:example) redaction = redactions(:example)
@ -71,7 +68,6 @@ class RedactionsControllerTest < ActionController::TestCase
def test_moderators_cant_delete_nonempty def test_moderators_cant_delete_nonempty
session[:user] = users(:moderator_user).id session[:user] = users(:moderator_user).id
cookies["_osm_username"] = users(:moderator_user).display_name
# leave elements in the redaction # leave elements in the redaction
redaction = redactions(:example) redaction = redactions(:example)
@ -84,7 +80,6 @@ class RedactionsControllerTest < ActionController::TestCase
def test_non_moderators_cant_delete def test_non_moderators_cant_delete
session[:user] = users(:public_user).id session[:user] = users(:public_user).id
cookies["_osm_username"] = users(:public_user).display_name
delete :destroy, :id => redactions(:example).id delete :destroy, :id => redactions(:example).id
assert_response :forbidden assert_response :forbidden
@ -92,7 +87,6 @@ class RedactionsControllerTest < ActionController::TestCase
def test_moderators_can_edit def test_moderators_can_edit
session[:user] = users(:moderator_user).id session[:user] = users(:moderator_user).id
cookies["_osm_username"] = users(:moderator_user).display_name
get :edit, :id => redactions(:example).id get :edit, :id => redactions(:example).id
assert_response :success assert_response :success
@ -100,7 +94,6 @@ class RedactionsControllerTest < ActionController::TestCase
def test_non_moderators_cant_edit def test_non_moderators_cant_edit
session[:user] = users(:public_user).id session[:user] = users(:public_user).id
cookies["_osm_username"] = users(:public_user).display_name
get :edit, :id => redactions(:example).id get :edit, :id => redactions(:example).id
assert_response :redirect assert_response :redirect
@ -109,7 +102,6 @@ class RedactionsControllerTest < ActionController::TestCase
def test_moderators_can_update def test_moderators_can_update
session[:user] = users(:moderator_user).id session[:user] = users(:moderator_user).id
cookies["_osm_username"] = users(:moderator_user).display_name
redaction = redactions(:example) redaction = redactions(:example)
@ -120,7 +112,6 @@ class RedactionsControllerTest < ActionController::TestCase
def test_non_moderators_cant_update def test_non_moderators_cant_update
session[:user] = users(:public_user).id session[:user] = users(:public_user).id
cookies["_osm_username"] = users(:public_user).display_name
redaction = redactions(:example) redaction = redactions(:example)

View file

@ -132,8 +132,6 @@ class SiteControllerTest < ActionController::TestCase
# test the right editor gets used when the user hasn't set a preference # test the right editor gets used when the user hasn't set a preference
def test_edit_without_preference def test_edit_without_preference
@request.cookies["_osm_username"] = users(:public_user).display_name
get(:edit, nil, { 'user' => users(:public_user).id }) get(:edit, nil, { 'user' => users(:public_user).id })
assert_response :success assert_response :success
assert_template :partial => "_#{DEFAULT_EDITOR}", :count => 1 assert_template :partial => "_#{DEFAULT_EDITOR}", :count => 1
@ -141,8 +139,6 @@ class SiteControllerTest < ActionController::TestCase
# and when they have... # and when they have...
def test_edit_with_preference def test_edit_with_preference
@request.cookies["_osm_username"] = users(:public_user).display_name
user = users(:public_user) user = users(:public_user)
user.preferred_editor = "potlatch" user.preferred_editor = "potlatch"
user.save! user.save!
@ -161,8 +157,6 @@ class SiteControllerTest < ActionController::TestCase
end end
def test_edit_with_node def test_edit_with_node
@request.cookies["_osm_username"] = users(:public_user).display_name
user = users(:public_user) user = users(:public_user)
node = current_nodes(:visible_node) node = current_nodes(:visible_node)
@ -172,8 +166,6 @@ class SiteControllerTest < ActionController::TestCase
end end
def test_edit_with_way def test_edit_with_way
@request.cookies["_osm_username"] = users(:public_user).display_name
user = users(:public_user) user = users(:public_user)
way = current_ways(:visible_way) way = current_ways(:visible_way)
@ -183,8 +175,6 @@ class SiteControllerTest < ActionController::TestCase
end end
def test_edit_with_gpx def test_edit_with_gpx
@request.cookies["_osm_username"] = users(:public_user).display_name
user = users(:public_user) user = users(:public_user)
gpx = gpx_files(:public_trace_file) gpx = gpx_files(:public_trace_file)

View file

@ -171,8 +171,6 @@ class TraceControllerTest < ActionController::TestCase
# Check that I can get mine # Check that I can get mine
def test_list_mine def test_list_mine
@request.cookies["_osm_username"] = users(:public_user).display_name
# First try to get it when not logged in # First try to get it when not logged in
get :mine get :mine
assert_redirected_to :controller => 'user', :action => 'login', :referer => '/traces/mine' assert_redirected_to :controller => 'user', :action => 'login', :referer => '/traces/mine'
@ -196,14 +194,10 @@ class TraceControllerTest < ActionController::TestCase
get :list, :display_name => users(:public_user).display_name get :list, :display_name => users(:public_user).display_name
check_trace_list users(:public_user).traces.public check_trace_list users(:public_user).traces.public
@request.cookies["_osm_username"] = users(:normal_user).display_name
# Should still see only public ones when authenticated as another user # Should still see only public ones when authenticated as another user
get :list, {:display_name => users(:public_user).display_name}, {:user => users(:normal_user).id} get :list, {:display_name => users(:public_user).display_name}, {:user => users(:normal_user).id}
check_trace_list users(:public_user).traces.public check_trace_list users(:public_user).traces.public
@request.cookies["_osm_username"] = users(:public_user).display_name
# Should see all traces when authenticated as the target user # Should see all traces when authenticated as the target user
get :list, {:display_name => users(:public_user).display_name}, {:user => users(:public_user).id} get :list, {:display_name => users(:public_user).display_name}, {:user => users(:public_user).id}
check_trace_list users(:public_user).traces check_trace_list users(:public_user).traces
@ -234,14 +228,10 @@ class TraceControllerTest < ActionController::TestCase
get :view, {:display_name => users(:normal_user).display_name, :id => gpx_files(:public_trace_file).id} get :view, {:display_name => users(:normal_user).display_name, :id => gpx_files(:public_trace_file).id}
check_trace_view gpx_files(:public_trace_file) check_trace_view gpx_files(:public_trace_file)
@request.cookies["_osm_username"] = users(:public_user).display_name
# Now with some other user, which should work since the trace is public # Now with some other user, which should work since the trace is public
get :view, {:display_name => users(:normal_user).display_name, :id => gpx_files(:public_trace_file).id}, {:user => users(:public_user).id} get :view, {:display_name => users(:normal_user).display_name, :id => gpx_files(:public_trace_file).id}, {:user => users(:public_user).id}
check_trace_view gpx_files(:public_trace_file) check_trace_view gpx_files(:public_trace_file)
@request.cookies["_osm_username"] = users(:normal_user).display_name
# And finally we should be able to do it with the owner of the trace # And finally we should be able to do it with the owner of the trace
get :view, {:display_name => users(:normal_user).display_name, :id => gpx_files(:public_trace_file).id}, {:user => users(:normal_user).id} get :view, {:display_name => users(:normal_user).display_name, :id => gpx_files(:public_trace_file).id}, {:user => users(:normal_user).id}
check_trace_view gpx_files(:public_trace_file) check_trace_view gpx_files(:public_trace_file)
@ -254,15 +244,11 @@ class TraceControllerTest < ActionController::TestCase
assert_response :redirect assert_response :redirect
assert_redirected_to :action => :list assert_redirected_to :action => :list
@request.cookies["_osm_username"] = users(:normal_user).display_name
# Now with some other user, which should work since the trace is anon # Now with some other user, which should work since the trace is anon
get :view, {:display_name => users(:public_user).display_name, :id => gpx_files(:anon_trace_file).id}, {:user => users(:normal_user).id} get :view, {:display_name => users(:public_user).display_name, :id => gpx_files(:anon_trace_file).id}, {:user => users(:normal_user).id}
assert_response :redirect assert_response :redirect
assert_redirected_to :action => :list assert_redirected_to :action => :list
@request.cookies["_osm_username"] = users(:public_user).display_name
# And finally we should be able to do it with the owner of the trace # And finally we should be able to do it with the owner of the trace
get :view, {:display_name => users(:public_user).display_name, :id => gpx_files(:anon_trace_file).id}, {:user => users(:public_user).id} get :view, {:display_name => users(:public_user).display_name, :id => gpx_files(:anon_trace_file).id}, {:user => users(:public_user).id}
check_trace_view gpx_files(:anon_trace_file) check_trace_view gpx_files(:anon_trace_file)
@ -275,8 +261,6 @@ class TraceControllerTest < ActionController::TestCase
assert_response :redirect assert_response :redirect
assert_redirected_to :action => :list assert_redirected_to :action => :list
@request.cookies["_osm_username"] = users(:public_user).display_name
# Now with some other user, which should work since the trace is public # Now with some other user, which should work since the trace is public
get :view, {:display_name => users(:public_user).display_name, :id => 0}, {:user => users(:public_user).id} get :view, {:display_name => users(:public_user).display_name, :id => 0}, {:user => users(:public_user).id}
assert_response :redirect assert_response :redirect
@ -294,14 +278,10 @@ class TraceControllerTest < ActionController::TestCase
get :data, {:display_name => users(:normal_user).display_name, :id => gpx_files(:public_trace_file).id} get :data, {:display_name => users(:normal_user).display_name, :id => gpx_files(:public_trace_file).id}
check_trace_data gpx_files(:public_trace_file) check_trace_data gpx_files(:public_trace_file)
@request.cookies["_osm_username"] = users(:public_user).display_name
# Now with some other user, which should work since the trace is public # Now with some other user, which should work since the trace is public
get :data, {:display_name => users(:normal_user).display_name, :id => gpx_files(:public_trace_file).id}, {:user => users(:public_user).id} get :data, {:display_name => users(:normal_user).display_name, :id => gpx_files(:public_trace_file).id}, {:user => users(:public_user).id}
check_trace_data gpx_files(:public_trace_file) check_trace_data gpx_files(:public_trace_file)
@request.cookies["_osm_username"] = users(:normal_user).display_name
# And finally we should be able to do it with the owner of the trace # And finally we should be able to do it with the owner of the trace
get :data, {:display_name => users(:normal_user).display_name, :id => gpx_files(:public_trace_file).id}, {:user => users(:normal_user).id} get :data, {:display_name => users(:normal_user).display_name, :id => gpx_files(:public_trace_file).id}, {:user => users(:normal_user).id}
check_trace_data gpx_files(:public_trace_file) check_trace_data gpx_files(:public_trace_file)
@ -328,14 +308,10 @@ class TraceControllerTest < ActionController::TestCase
get :data, {:display_name => users(:public_user).display_name, :id => gpx_files(:anon_trace_file).id} get :data, {:display_name => users(:public_user).display_name, :id => gpx_files(:anon_trace_file).id}
assert_response :not_found assert_response :not_found
@request.cookies["_osm_username"] = users(:normal_user).display_name
# Now with some other user, which should work since the trace is anon # Now with some other user, which should work since the trace is anon
get :data, {:display_name => users(:public_user).display_name, :id => gpx_files(:anon_trace_file).id}, {:user => users(:normal_user).id} get :data, {:display_name => users(:public_user).display_name, :id => gpx_files(:anon_trace_file).id}, {:user => users(:normal_user).id}
assert_response :not_found assert_response :not_found
@request.cookies["_osm_username"] = users(:public_user).display_name
# And finally we should be able to do it with the owner of the trace # And finally we should be able to do it with the owner of the trace
get :data, {:display_name => users(:public_user).display_name, :id => gpx_files(:anon_trace_file).id}, {:user => users(:public_user).id} get :data, {:display_name => users(:public_user).display_name, :id => gpx_files(:anon_trace_file).id}, {:user => users(:public_user).id}
check_trace_data gpx_files(:anon_trace_file) check_trace_data gpx_files(:anon_trace_file)
@ -347,8 +323,6 @@ class TraceControllerTest < ActionController::TestCase
get :data, {:display_name => users(:public_user).display_name, :id => 0} get :data, {:display_name => users(:public_user).display_name, :id => 0}
assert_response :not_found assert_response :not_found
@request.cookies["_osm_username"] = users(:public_user).display_name
# Now with some other user, which should work since the trace is public # Now with some other user, which should work since the trace is public
get :data, {:display_name => users(:public_user).display_name, :id => 0}, {:user => users(:public_user).id} get :data, {:display_name => users(:public_user).display_name, :id => 0}, {:user => users(:public_user).id}
assert_response :not_found assert_response :not_found
@ -365,8 +339,6 @@ class TraceControllerTest < ActionController::TestCase
assert_response :redirect assert_response :redirect
assert_redirected_to :controller => :user, :action => :login, :referer => trace_edit_path(:display_name => users(:normal_user).display_name, :id => gpx_files(:public_trace_file).id) assert_redirected_to :controller => :user, :action => :login, :referer => trace_edit_path(:display_name => users(:normal_user).display_name, :id => gpx_files(:public_trace_file).id)
@request.cookies["_osm_username"] = users(:public_user).display_name
# Now with some other user, which should fail # Now with some other user, which should fail
get :edit, {:display_name => users(:normal_user).display_name, :id => gpx_files(:public_trace_file).id}, {:user => users(:public_user).id} get :edit, {:display_name => users(:normal_user).display_name, :id => gpx_files(:public_trace_file).id}, {:user => users(:public_user).id}
assert_response :forbidden assert_response :forbidden
@ -379,8 +351,6 @@ class TraceControllerTest < ActionController::TestCase
get :edit, {:display_name => users(:public_user).display_name, :id => gpx_files(:deleted_trace_file).id}, {:user => users(:public_user).id} get :edit, {:display_name => users(:public_user).display_name, :id => gpx_files(:deleted_trace_file).id}, {:user => users(:public_user).id}
assert_response :not_found assert_response :not_found
@request.cookies["_osm_username"] = users(:normal_user).display_name
# Finally with a trace that we are allowed to edit # Finally with a trace that we are allowed to edit
get :edit, {:display_name => users(:normal_user).display_name, :id => gpx_files(:public_trace_file).id}, {:user => users(:normal_user).id} get :edit, {:display_name => users(:normal_user).display_name, :id => gpx_files(:public_trace_file).id}, {:user => users(:normal_user).id}
assert_response :success assert_response :success
@ -395,8 +365,6 @@ class TraceControllerTest < ActionController::TestCase
post :edit, {:display_name => users(:normal_user).display_name, :id => gpx_files(:public_trace_file).id, :trace => new_details} post :edit, {:display_name => users(:normal_user).display_name, :id => gpx_files(:public_trace_file).id, :trace => new_details}
assert_response :forbidden assert_response :forbidden
@request.cookies["_osm_username"] = users(:public_user).display_name
# Now with some other user, which should fail # Now with some other user, which should fail
post :edit, {:display_name => users(:normal_user).display_name, :id => gpx_files(:public_trace_file).id, :trace => new_details}, {:user => users(:public_user).id} post :edit, {:display_name => users(:normal_user).display_name, :id => gpx_files(:public_trace_file).id, :trace => new_details}, {:user => users(:public_user).id}
assert_response :forbidden assert_response :forbidden
@ -409,8 +377,6 @@ class TraceControllerTest < ActionController::TestCase
post :edit, {:display_name => users(:public_user).display_name, :id => gpx_files(:deleted_trace_file).id, :trace => new_details}, {:user => users(:public_user).id} post :edit, {:display_name => users(:public_user).display_name, :id => gpx_files(:deleted_trace_file).id, :trace => new_details}, {:user => users(:public_user).id}
assert_response :not_found assert_response :not_found
@request.cookies["_osm_username"] = users(:normal_user).display_name
# Finally with a trace that we are allowed to edit # Finally with a trace that we are allowed to edit
post :edit, {:display_name => users(:normal_user).display_name, :id => gpx_files(:public_trace_file).id, :trace => new_details}, {:user => users(:normal_user).id} post :edit, {:display_name => users(:normal_user).display_name, :id => gpx_files(:public_trace_file).id, :trace => new_details}, {:user => users(:normal_user).id}
assert_response :redirect assert_response :redirect
@ -427,8 +393,6 @@ class TraceControllerTest < ActionController::TestCase
post :delete, {:display_name => users(:normal_user).display_name, :id => gpx_files(:public_trace_file).id,} post :delete, {:display_name => users(:normal_user).display_name, :id => gpx_files(:public_trace_file).id,}
assert_response :forbidden assert_response :forbidden
@request.cookies["_osm_username"] = users(:public_user).display_name
# Now with some other user, which should fail # Now with some other user, which should fail
post :delete, {:display_name => users(:normal_user).display_name, :id => gpx_files(:public_trace_file).id}, {:user => users(:public_user).id} post :delete, {:display_name => users(:normal_user).display_name, :id => gpx_files(:public_trace_file).id}, {:user => users(:public_user).id}
assert_response :forbidden assert_response :forbidden
@ -441,8 +405,6 @@ class TraceControllerTest < ActionController::TestCase
post :delete, {:display_name => users(:public_user).display_name, :id => gpx_files(:deleted_trace_file).id}, {:user => users(:public_user).id} post :delete, {:display_name => users(:public_user).display_name, :id => gpx_files(:deleted_trace_file).id}, {:user => users(:public_user).id}
assert_response :not_found assert_response :not_found
@request.cookies["_osm_username"] = users(:normal_user).display_name
# Finally with a trace that we are allowed to delete # Finally with a trace that we are allowed to delete
post :delete, {:display_name => users(:normal_user).display_name, :id => gpx_files(:public_trace_file).id}, {:user => users(:normal_user).id} post :delete, {:display_name => users(:normal_user).display_name, :id => gpx_files(:public_trace_file).id}, {:user => users(:normal_user).id}
assert_response :redirect assert_response :redirect

View file

@ -101,7 +101,6 @@ class UserBlocksControllerTest < ActionController::TestCase
# Login as the blocked user # Login as the blocked user
session[:user] = users(:blocked_user).id session[:user] = users(:blocked_user).id
cookies["_osm_username"] = users(:blocked_user).display_name
# Now viewing it should mark it as seen # Now viewing it should mark it as seen
get :show, :id => user_blocks(:active_block) get :show, :id => user_blocks(:active_block)
@ -118,7 +117,6 @@ class UserBlocksControllerTest < ActionController::TestCase
# Login as a normal user # Login as a normal user
session[:user] = users(:public_user).id session[:user] = users(:public_user).id
cookies["_osm_username"] = users(:public_user).display_name
# Check that normal users can't load the block creation page # Check that normal users can't load the block creation page
get :new, :display_name => users(:normal_user).display_name get :new, :display_name => users(:normal_user).display_name
@ -127,7 +125,6 @@ class UserBlocksControllerTest < ActionController::TestCase
# Login as a moderator # Login as a moderator
session[:user] = users(:moderator_user).id session[:user] = users(:moderator_user).id
cookies["_osm_username"] = users(:moderator_user).display_name
# Check that the block creation page loads for moderators # Check that the block creation page loads for moderators
get :new, :display_name => users(:normal_user).display_name get :new, :display_name => users(:normal_user).display_name
@ -162,7 +159,6 @@ class UserBlocksControllerTest < ActionController::TestCase
# Login as a normal user # Login as a normal user
session[:user] = users(:public_user).id session[:user] = users(:public_user).id
cookies["_osm_username"] = users(:public_user).display_name
# Check that normal users can't load the block edit page # Check that normal users can't load the block edit page
get :edit, :id => user_blocks(:active_block).id get :edit, :id => user_blocks(:active_block).id
@ -171,7 +167,6 @@ class UserBlocksControllerTest < ActionController::TestCase
# Login as a moderator # Login as a moderator
session[:user] = users(:moderator_user).id session[:user] = users(:moderator_user).id
cookies["_osm_username"] = users(:moderator_user).display_name
# Check that the block edit page loads for moderators # Check that the block edit page loads for moderators
get :edit, :id => user_blocks(:active_block).id get :edit, :id => user_blocks(:active_block).id
@ -204,7 +199,6 @@ class UserBlocksControllerTest < ActionController::TestCase
# Login as a normal user # Login as a normal user
session[:user] = users(:public_user).id session[:user] = users(:public_user).id
cookies["_osm_username"] = users(:public_user).display_name
# Check that normal users can't create blocks # Check that normal users can't create blocks
post :create post :create
@ -212,7 +206,6 @@ class UserBlocksControllerTest < ActionController::TestCase
# Login as a moderator # Login as a moderator
session[:user] = users(:moderator_user).id session[:user] = users(:moderator_user).id
cookies["_osm_username"] = users(:moderator_user).display_name
# A bogus block period should result in an error # A bogus block period should result in an error
assert_no_difference "UserBlock.count" do assert_no_difference "UserBlock.count" do
@ -263,7 +256,6 @@ class UserBlocksControllerTest < ActionController::TestCase
# Login as a normal user # Login as a normal user
session[:user] = users(:public_user).id session[:user] = users(:public_user).id
cookies["_osm_username"] = users(:public_user).display_name
# Check that normal users can't update blocks # Check that normal users can't update blocks
put :update, :id => user_blocks(:active_block).id put :update, :id => user_blocks(:active_block).id
@ -271,7 +263,6 @@ class UserBlocksControllerTest < ActionController::TestCase
# Login as the wrong moderator # Login as the wrong moderator
session[:user] = users(:second_moderator_user).id session[:user] = users(:second_moderator_user).id
cookies["_osm_username"] = users(:second_moderator_user).display_name
# Check that only the person who created a block can update it # Check that only the person who created a block can update it
assert_no_difference "UserBlock.count" do assert_no_difference "UserBlock.count" do
@ -285,7 +276,6 @@ class UserBlocksControllerTest < ActionController::TestCase
# Login as the correct moderator # Login as the correct moderator
session[:user] = users(:moderator_user).id session[:user] = users(:moderator_user).id
cookies["_osm_username"] = users(:moderator_user).display_name
# A bogus block period should result in an error # A bogus block period should result in an error
assert_no_difference "UserBlock.count" do assert_no_difference "UserBlock.count" do
@ -331,7 +321,6 @@ class UserBlocksControllerTest < ActionController::TestCase
# Login as a normal user # Login as a normal user
session[:user] = users(:public_user).id session[:user] = users(:public_user).id
cookies["_osm_username"] = users(:public_user).display_name
# Check that normal users can't load the block revoke page # Check that normal users can't load the block revoke page
get :revoke, :id => user_blocks(:active_block).id get :revoke, :id => user_blocks(:active_block).id
@ -340,7 +329,6 @@ class UserBlocksControllerTest < ActionController::TestCase
# Login as a moderator # Login as a moderator
session[:user] = users(:moderator_user).id session[:user] = users(:moderator_user).id
cookies["_osm_username"] = users(:moderator_user).display_name
# Check that the block revoke page loads for moderators # Check that the block revoke page loads for moderators
get :revoke, :id => user_blocks(:active_block).id get :revoke, :id => user_blocks(:active_block).id

View file

@ -351,17 +351,12 @@ class UserControllerTest < ActionController::TestCase
def test_user_terms_seen def test_user_terms_seen
user = users(:normal_user) user = users(:normal_user)
# Set the username cookie
@request.cookies["_osm_username"] = user.display_name
get :terms, {}, { "user" => user } get :terms, {}, { "user" => user }
assert_response :redirect assert_response :redirect
assert_redirected_to :action => :account, :display_name => user.display_name assert_redirected_to :action => :account, :display_name => user.display_name
end end
def test_user_go_public def test_user_go_public
@request.cookies["_osm_username"] = users(:normal_user).display_name
post :go_public, {}, { :user => users(:normal_user) } post :go_public, {}, { :user => users(:normal_user) }
assert_response :redirect assert_response :redirect
assert_redirected_to :action => :account, :display_name => users(:normal_user).display_name assert_redirected_to :action => :account, :display_name => users(:normal_user).display_name
@ -460,20 +455,15 @@ class UserControllerTest < ActionController::TestCase
# validation errors being reported # validation errors being reported
user = users(:normal_user) user = users(:normal_user)
# Set the username cookie
@request.cookies["_osm_username"] = user.display_name
# Make sure that you are redirected to the login page when # Make sure that you are redirected to the login page when
# you are not logged in # you are not logged in
get :account, { :display_name => user.display_name } get :account, { :display_name => user.display_name }
assert_response :redirect assert_response :redirect
assert_redirected_to :controller => :user, :action => "login", :referer => "/user/test/account" assert_redirected_to :controller => :user, :action => "login", :referer => "/user/test/account"
# Make sure that you are redirected to the login page when # Make sure that you are blocked when not logged in as the right user
# you are not logged in as the right user
get :account, { :display_name => user.display_name }, { "user" => users(:public_user).id } get :account, { :display_name => user.display_name }, { "user" => users(:public_user).id }
assert_response :redirect assert_response :forbidden
assert_redirected_to :controller => :user, :action => "login", :referer => "/user/test/account"
# Make sure we get the page when we are logged in as the right user # Make sure we get the page when we are logged in as the right user
get :account, { :display_name => user.display_name }, { "user" => user } get :account, { :display_name => user.display_name }, { "user" => user }
@ -490,8 +480,8 @@ class UserControllerTest < ActionController::TestCase
assert_select "form#accountForm > fieldset > div.form-row > div#user_description_container > div#user_description_content > textarea#user_description", user.description assert_select "form#accountForm > fieldset > div.form-row > div#user_description_container > div#user_description_content > textarea#user_description", user.description
# Changing name to one that exists should fail # Changing name to one that exists should fail
user.display_name = users(:public_user).display_name new_attributes = user.attributes.dup.merge(:display_name => users(:public_user).display_name)
post :account, { :display_name => user.display_name, :user => user.attributes }, { "user" => user.id } post :account, { :display_name => user.display_name, :user => new_attributes }, { "user" => user.id }
assert_response :success assert_response :success
assert_template :account assert_template :account
assert_select "div#notice", false assert_select "div#notice", false
@ -499,8 +489,8 @@ class UserControllerTest < ActionController::TestCase
assert_select "form#accountForm > fieldset > div.form-row > div.field_with_errors > input#user_display_name" assert_select "form#accountForm > fieldset > div.form-row > div.field_with_errors > input#user_display_name"
# Changing name to one that exists should fail, regardless of case # Changing name to one that exists should fail, regardless of case
user.display_name = users(:public_user).display_name.upcase new_attributes = user.attributes.dup.merge(:display_name => users(:public_user).display_name.upcase)
post :account, { :display_name => user.display_name, :user => user.attributes }, { "user" => user.id } post :account, { :display_name => user.display_name, :user => new_attributes }, { "user" => user.id }
assert_response :success assert_response :success
assert_template :account assert_template :account
assert_select "div#notice", false assert_select "div#notice", false
@ -508,16 +498,16 @@ class UserControllerTest < ActionController::TestCase
assert_select "form#accountForm > fieldset > div.form-row > div.field_with_errors > input#user_display_name" assert_select "form#accountForm > fieldset > div.form-row > div.field_with_errors > input#user_display_name"
# Changing name to one that doesn't exist should work # Changing name to one that doesn't exist should work
user.display_name = "new tester" new_attributes = user.attributes.dup.merge(:display_name => "new tester")
post :account, { :display_name => user.display_name, :user => user.attributes }, { "user" => user.id } post :account, { :display_name => user.display_name, :user => new_attributes }, { "user" => user.id }
assert_response :success assert_response :success
assert_template :account assert_template :account
assert_select "div#errorExplanation", false assert_select "div#errorExplanation", false
assert_select "div#notice", /^User information updated successfully/ assert_select "div#notice", /^User information updated successfully/
assert_select "form#accountForm > fieldset > div.form-row > input#user_display_name[value=?]", user.display_name assert_select "form#accountForm > fieldset > div.form-row > input#user_display_name[value=?]", "new tester"
# Need to update cookies now to stay valid # Record the change of name
@request.cookies["_osm_username"] = user.display_name user.display_name = "new tester"
# Changing email to one that exists should fail # Changing email to one that exists should fail
user.new_email = users(:public_user).email user.new_email = users(:public_user).email
@ -598,7 +588,6 @@ class UserControllerTest < ActionController::TestCase
# Login as a normal user # Login as a normal user
session[:user] = users(:normal_user).id session[:user] = users(:normal_user).id
cookies["_osm_username"] = users(:normal_user).display_name
# Test the normal user # Test the normal user
get :view, {:display_name => "test"} get :view, {:display_name => "test"}
@ -616,7 +605,6 @@ class UserControllerTest < ActionController::TestCase
# Login as a moderator # Login as a moderator
session[:user] = users(:moderator_user).id session[:user] = users(:moderator_user).id
cookies["_osm_username"] = users(:moderator_user).display_name
# Test the normal user # Test the normal user
get :view, {:display_name => "test"} get :view, {:display_name => "test"}
@ -734,9 +722,6 @@ class UserControllerTest < ActionController::TestCase
# Check that the users aren't already friends # Check that the users aren't already friends
assert_nil Friend.where(:user_id => user.id, :friend_user_id => friend.id).first assert_nil Friend.where(:user_id => user.id, :friend_user_id => friend.id).first
# Set the username cookie
@request.cookies["_osm_username"] = user.display_name
# When not logged in a GET should ask us to login # When not logged in a GET should ask us to login
get :make_friend, {:display_name => friend.display_name} get :make_friend, {:display_name => friend.display_name}
assert_redirected_to :controller => :user, :action => "login", :referer => make_friend_path(:display_name => friend.display_name) assert_redirected_to :controller => :user, :action => "login", :referer => make_friend_path(:display_name => friend.display_name)
@ -787,9 +772,6 @@ class UserControllerTest < ActionController::TestCase
# Check that the users are friends # Check that the users are friends
assert Friend.where(:user_id => user.id, :friend_user_id => friend.id).first assert Friend.where(:user_id => user.id, :friend_user_id => friend.id).first
# Set the username cookie
@request.cookies["_osm_username"] = user.display_name
# When not logged in a GET should ask us to login # When not logged in a GET should ask us to login
get :remove_friend, {:display_name => friend.display_name} get :remove_friend, {:display_name => friend.display_name}
assert_redirected_to :controller => :user, :action => "login", :referer => remove_friend_path(:display_name => friend.display_name) assert_redirected_to :controller => :user, :action => "login", :referer => remove_friend_path(:display_name => friend.display_name)
@ -838,15 +820,11 @@ class UserControllerTest < ActionController::TestCase
assert_response :redirect assert_response :redirect
assert_redirected_to :action => :login, :referer => set_status_user_path(:status => "suspended") assert_redirected_to :action => :login, :referer => set_status_user_path(:status => "suspended")
@request.cookies["_osm_username"] = users(:normal_user).display_name
# Now try as a normal user # Now try as a normal user
get :set_status, {:display_name => users(:normal_user).display_name, :status => "suspended"}, {:user => users(:normal_user).id} get :set_status, {:display_name => users(:normal_user).display_name, :status => "suspended"}, {:user => users(:normal_user).id}
assert_response :redirect assert_response :redirect
assert_redirected_to :action => :view, :display_name => users(:normal_user).display_name assert_redirected_to :action => :view, :display_name => users(:normal_user).display_name
@request.cookies["_osm_username"] = users(:administrator_user).display_name
# Finally try as an administrator # Finally try as an administrator
get :set_status, {:display_name => users(:normal_user).display_name, :status => "suspended"}, {:user => users(:administrator_user).id} get :set_status, {:display_name => users(:normal_user).display_name, :status => "suspended"}, {:user => users(:administrator_user).id}
assert_response :redirect assert_response :redirect
@ -860,15 +838,11 @@ class UserControllerTest < ActionController::TestCase
assert_response :redirect assert_response :redirect
assert_redirected_to :action => :login, :referer => delete_user_path(:status => "suspended") assert_redirected_to :action => :login, :referer => delete_user_path(:status => "suspended")
@request.cookies["_osm_username"] = users(:normal_user).display_name
# Now try as a normal user # Now try as a normal user
get :delete, {:display_name => users(:normal_user).display_name, :status => "suspended"}, {:user => users(:normal_user).id} get :delete, {:display_name => users(:normal_user).display_name, :status => "suspended"}, {:user => users(:normal_user).id}
assert_response :redirect assert_response :redirect
assert_redirected_to :action => :view, :display_name => users(:normal_user).display_name assert_redirected_to :action => :view, :display_name => users(:normal_user).display_name
@request.cookies["_osm_username"] = users(:administrator_user).display_name
# Finally try as an administrator # Finally try as an administrator
get :delete, {:display_name => users(:normal_user).display_name, :status => "suspended"}, {:user => users(:administrator_user).id} get :delete, {:display_name => users(:normal_user).display_name, :status => "suspended"}, {:user => users(:administrator_user).id}
assert_response :redirect assert_response :redirect

View file

@ -25,7 +25,6 @@ class UserRolesControllerTest < ActionController::TestCase
# Login as an unprivileged user # Login as an unprivileged user
session[:user] = users(:public_user).id session[:user] = users(:public_user).id
cookies["_osm_username"] = users(:public_user).display_name
# Granting should still fail # Granting should still fail
post :grant, :display_name => users(:normal_user).display_name, :role => "moderator" post :grant, :display_name => users(:normal_user).display_name, :role => "moderator"
@ -34,7 +33,6 @@ class UserRolesControllerTest < ActionController::TestCase
# Login as an administrator # Login as an administrator
session[:user] = users(:administrator_user).id session[:user] = users(:administrator_user).id
cookies["_osm_username"] = users(:administrator_user).display_name
UserRole::ALL_ROLES.each do |role| UserRole::ALL_ROLES.each do |role|
@ -85,7 +83,6 @@ class UserRolesControllerTest < ActionController::TestCase
# Login as an unprivileged user # Login as an unprivileged user
session[:user] = users(:public_user).id session[:user] = users(:public_user).id
cookies["_osm_username"] = users(:public_user).display_name
# Revoking should still fail # Revoking should still fail
post :revoke, :display_name => users(:normal_user).display_name, :role => "moderator" post :revoke, :display_name => users(:normal_user).display_name, :role => "moderator"
@ -94,7 +91,6 @@ class UserRolesControllerTest < ActionController::TestCase
# Login as an administrator # Login as an administrator
session[:user] = users(:administrator_user).id session[:user] = users(:administrator_user).id
cookies["_osm_username"] = users(:administrator_user).display_name
UserRole::ALL_ROLES.each do |role| UserRole::ALL_ROLES.each do |role|

View file

@ -65,6 +65,16 @@
.leaflet-marker-pane { z-index: 6; } .leaflet-marker-pane { z-index: 6; }
.leaflet-popup-pane { z-index: 7; } .leaflet-popup-pane { z-index: 7; }
.leaflet-vml-shape {
width: 1px;
height: 1px;
}
.lvml {
behavior: url(#default#VML);
display: inline-block;
position: absolute;
}
/* control positioning */ /* control positioning */
@ -160,9 +170,8 @@
.leaflet-control { .leaflet-control {
cursor: auto; cursor: auto;
} }
.leaflet-dragging, .leaflet-dragging .leaflet-container,
.leaflet-dragging .leaflet-clickable, .leaflet-dragging .leaflet-clickable {
.leaflet-dragging .leaflet-container {
cursor: move; cursor: move;
cursor: -webkit-grabbing; cursor: -webkit-grabbing;
cursor: -moz-grabbing; cursor: -moz-grabbing;
@ -182,9 +191,8 @@
outline: 2px solid orange; outline: 2px solid orange;
} }
.leaflet-zoom-box { .leaflet-zoom-box {
border: 2px dotted #05f; border: 2px dotted #38f;
background: white; background: rgba(255,255,255,0.5);
opacity: 0.5;
} }
@ -197,11 +205,11 @@
/* general toolbar styles */ /* general toolbar styles */
.leaflet-bar { .leaflet-bar {
box-shadow: 0 1px 7px rgba(0,0,0,0.65); box-shadow: 0 1px 5px rgba(0,0,0,0.65);
-webkit-border-radius: 4px;
border-radius: 4px; border-radius: 4px;
} }
.leaflet-bar a, .leaflet-bar a:hover { .leaflet-bar a,
.leaflet-bar a:hover {
background-color: #fff; background-color: #fff;
border-bottom: 1px solid #ccc; border-bottom: 1px solid #ccc;
width: 26px; width: 26px;
@ -222,15 +230,11 @@
background-color: #f4f4f4; background-color: #f4f4f4;
} }
.leaflet-bar a:first-child { .leaflet-bar a:first-child {
-webkit-border-top-left-radius: 4px;
border-top-left-radius: 4px; border-top-left-radius: 4px;
-webkit-border-top-right-radius: 4px;
border-top-right-radius: 4px; border-top-right-radius: 4px;
} }
.leaflet-bar a:last-child { .leaflet-bar a:last-child {
-webkit-border-bottom-left-radius: 4px;
border-bottom-left-radius: 4px; border-bottom-left-radius: 4px;
-webkit-border-bottom-right-radius: 4px;
border-bottom-right-radius: 4px; border-bottom-right-radius: 4px;
border-bottom: none; border-bottom: none;
} }
@ -240,54 +244,37 @@
color: #bbb; color: #bbb;
} }
.leaflet-touch .leaflet-bar {
-webkit-border-radius: 10px;
border-radius: 10px;
}
.leaflet-touch .leaflet-bar a { .leaflet-touch .leaflet-bar a {
width: 30px; width: 30px;
height: 30px; height: 30px;
} line-height: 30px;
.leaflet-touch .leaflet-bar a:first-child {
-webkit-border-top-left-radius: 7px;
border-top-left-radius: 7px;
-webkit-border-top-right-radius: 7px;
border-top-right-radius: 7px;
}
.leaflet-touch .leaflet-bar a:last-child {
-webkit-border-bottom-left-radius: 7px;
border-bottom-left-radius: 7px;
-webkit-border-bottom-right-radius: 7px;
border-bottom-right-radius: 7px;
border-bottom: none;
} }
/* zoom control */ /* zoom control */
.leaflet-control-zoom-in { .leaflet-control-zoom-in,
.leaflet-control-zoom-out {
font: bold 18px 'Lucida Console', Monaco, monospace; font: bold 18px 'Lucida Console', Monaco, monospace;
text-indent: 1px;
} }
.leaflet-control-zoom-out { .leaflet-control-zoom-out {
font: bold 22px 'Lucida Console', Monaco, monospace; font-size: 20px;
} }
.leaflet-touch .leaflet-control-zoom-in { .leaflet-touch .leaflet-control-zoom-in {
font-size: 22px; font-size: 22px;
line-height: 30px;
} }
.leaflet-touch .leaflet-control-zoom-out { .leaflet-touch .leaflet-control-zoom-out {
font-size: 28px; font-size: 24px;
line-height: 30px;
} }
/* layers control */ /* layers control */
.leaflet-control-layers { .leaflet-control-layers {
box-shadow: 0 1px 7px rgba(0,0,0,0.4); box-shadow: 0 1px 5px rgba(0,0,0,0.4);
background: #f8f8f9; background: #fff;
-webkit-border-radius: 5px;
border-radius: 5px; border-radius: 5px;
} }
.leaflet-control-layers-toggle { .leaflet-control-layers-toggle {
@ -334,8 +321,8 @@
/* attribution and scale controls */ /* attribution and scale controls */
.leaflet-container .leaflet-control-attribution { .leaflet-container .leaflet-control-attribution {
background-color: rgba(255, 255, 255, 0.7); background: #fff;
box-shadow: 0 0 5px #bbb; background: rgba(255, 255, 255, 0.7);
margin: 0; margin: 0;
} }
.leaflet-control-attribution, .leaflet-control-attribution,
@ -343,6 +330,12 @@
padding: 0 5px; padding: 0 5px;
color: #333; color: #333;
} }
.leaflet-control-attribution a {
text-decoration: none;
}
.leaflet-control-attribution a:hover {
text-decoration: underline;
}
.leaflet-container .leaflet-control-attribution, .leaflet-container .leaflet-control-attribution,
.leaflet-container .leaflet-control-scale { .leaflet-container .leaflet-control-scale {
font-size: 11px; font-size: 11px;
@ -356,23 +349,21 @@
.leaflet-control-scale-line { .leaflet-control-scale-line {
border: 2px solid #777; border: 2px solid #777;
border-top: none; border-top: none;
color: black;
line-height: 1.1; line-height: 1.1;
padding: 2px 5px 1px; padding: 2px 5px 1px;
font-size: 11px; font-size: 11px;
text-shadow: 1px 1px 1px #fff;
background-color: rgba(255, 255, 255, 0.5);
box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.2);
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
-moz-box-sizing: content-box; -moz-box-sizing: content-box;
box-sizing: content-box; box-sizing: content-box;
background: #fff;
background: rgba(255, 255, 255, 0.5);
} }
.leaflet-control-scale-line:not(:first-child) { .leaflet-control-scale-line:not(:first-child) {
border-top: 2px solid #777; border-top: 2px solid #777;
border-bottom: none; border-bottom: none;
margin-top: -2px; margin-top: -2px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
} }
.leaflet-control-scale-line:not(:first-child):not(:last-child) { .leaflet-control-scale-line:not(:first-child):not(:last-child) {
border-bottom: 2px solid #777; border-bottom: 2px solid #777;
@ -385,7 +376,8 @@
} }
.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar { .leaflet-touch .leaflet-bar {
border: 4px solid rgba(0,0,0,0.3); border: 2px solid rgba(0,0,0,0.2);
background-clip: padding-box;
} }
@ -398,7 +390,6 @@
.leaflet-popup-content-wrapper { .leaflet-popup-content-wrapper {
padding: 1px; padding: 1px;
text-align: left; text-align: left;
-webkit-border-radius: 12px;
border-radius: 12px; border-radius: 12px;
} }
.leaflet-popup-content { .leaflet-popup-content {
@ -428,7 +419,8 @@
-o-transform: rotate(45deg); -o-transform: rotate(45deg);
transform: rotate(45deg); transform: rotate(45deg);
} }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { .leaflet-popup-content-wrapper,
.leaflet-popup-tip {
background: white; background: white;
box-shadow: 0 3px 14px rgba(0,0,0,0.4); box-shadow: 0 3px 14px rgba(0,0,0,0.4);
@ -456,6 +448,27 @@
border-top: 1px solid #ddd; border-top: 1px solid #ddd;
} }
.leaflet-oldie .leaflet-popup-content-wrapper {
zoom: 1;
}
.leaflet-oldie .leaflet-popup-tip {
width: 24px;
margin: 0 auto;
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
}
.leaflet-oldie .leaflet-popup-tip-container {
margin-top: -1px;
}
.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
border: 1px solid #999;
}
/* div icon */ /* div icon */
@ -463,7 +476,3 @@
background: #fff; background: #fff;
border: 1px solid #666; border: 1px solid #666;
} }
.leaflet-editing-icon {
-webkit-border-radius: 2px;
border-radius: 2px;
}

View file

@ -1,51 +0,0 @@
.leaflet-vml-shape {
width: 1px;
height: 1px;
}
.lvml {
behavior: url(#default#VML);
display: inline-block;
position: absolute;
}
.leaflet-control {
display: inline;
}
.leaflet-popup-tip {
width: 21px;
_width: 27px;
margin: 0 auto;
_margin-top: -3px;
filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
}
.leaflet-popup-tip-container {
margin-top: -1px;
}
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
border: 1px solid #999;
}
.leaflet-popup-content-wrapper {
zoom: 1;
}
.leaflet-control-zoom,
.leaflet-control-layers {
border: 3px solid #999;
}
.leaflet-control-layers-toggle {
}
.leaflet-control-attribution,
.leaflet-control-layers,
.leaflet-control-scale-line {
background: white;
}
.leaflet-zoom-box {
filter: alpha(opacity=50);
}
.leaflet-control-attribution {
border-top: 1px solid #bbb;
border-left: 1px solid #bbb;
}

File diff suppressed because it is too large Load diff