From: Tom Hughes Date: Thu, 2 Feb 2017 17:21:41 +0000 (+0000) Subject: Merge remote-tracking branch 'openstreetmap/pull/1423' X-Git-Tag: live~5000 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/7793cd27abcc26af103c77d5947c368b54295a79?hp=1041ead2538cc6cc69b91df1e650d4f32096ff09 Merge remote-tracking branch 'openstreetmap/pull/1423' --- diff --git a/app/models/changeset.rb b/app/models/changeset.rb index 6909ba948..549600df6 100644 --- a/app/models/changeset.rb +++ b/app/models/changeset.rb @@ -32,7 +32,7 @@ class Changeset < ActiveRecord::Base EXPAND = 0.1 # maximum number of elements allowed in a changeset - MAX_ELEMENTS = 50000 + MAX_ELEMENTS = 10000 # maximum time a changeset is allowed to be open for. MAX_TIME_OPEN = 1.day diff --git a/config/locales/be-Tarask.yml b/config/locales/be-Tarask.yml index 40c3a4e75..301e5ade3 100644 --- a/config/locales/be-Tarask.yml +++ b/config/locales/be-Tarask.yml @@ -869,14 +869,12 @@ be-Tarask: outbox: зыходзячыя messages: Вы маеце %{new_messages} і %{old_messages} new_messages: - few: '%{count} новыя паведамленьні' - many: '%{count} новых паведамленьняў' one: '%{count} новае паведамленьне' + few: '%{count} новыя паведамленьні' other: '%{count} новых паведамленьняў' old_messages: - few: '%{count} старыя паведамленьня' - many: '%{count} старых паведамленьняў' one: '%{count} старое паведамленьне' + few: '%{count} старыя паведамленьні' other: '%{count} старых паведамленьняў' from: Ад subject: Тэма @@ -908,9 +906,8 @@ be-Tarask: inbox: уваходзячыя outbox: зыходзячыя messages: - few: Вы маеце %{count} дасланыя паведамленьня - many: Вы маеце %{count} дасланых паведамленьняў one: Вы маеце %{count} дасланае паведамленьне + few: Вы маеце %{count} дасланыя паведамленьні other: Вы маеце %{count} дасланых паведамленьняў to: Да subject: Тэма @@ -1092,9 +1089,16 @@ be-Tarask: upload_trace: Загрузіць трэк see_all_traces: Паказаць усе трэкі see_your_traces: Паказаць усе Вашыя трэкі - traces_waiting: У Вас %{count} трэкаў, якія чакаюць загрузкі. Калі ласка, пачакайце - сканчэньня перадачы гэтых трэкаў, перад тым як загружаць іншыя, гэта дазволіць - не блякаваць чаргу для іншых удзельнікаў. + traces_waiting: + one: Вы маеце %{count} трэк, які чакае загрузкі. Калі ласка, пачакайце сканчэньня + перадачы гэтага трэку перад тым, як загружаць іншыя, гэта дазволіць не блякаваць + чаргу для іншых удзельнікаў. + few: Вы маеце %{count} трэкі, якія чакаюць загрузкі. Калі ласка, пачакайце + сканчэньня перадачы гэтых трэкаў перад тым, як загружаць іншыя, гэта дазволіць + не блякаваць чаргу для іншых удзельнікаў. + other: Вы маеце %{count} трэкаў, якія чакаюць загрузкі. Калі ласка, пачакайце + сканчэньня перадачы гэтых трэкаў перад тым, як загружаць іншыя, гэта дазволіць + не блякаваць чаргу для іншых удзельнікаў. trace_optionals: tags: Тэгі view: @@ -1460,7 +1464,7 @@ be-Tarask: button: Пацьвердзіць success: Ваш рахунак пацьверджаны, дзякуй за рэгістрацыю! already active: Гэты рахунак ужо пацьверджаны. - unknown token: Выглядае, што гэты ключ не існуе. + unknown token: Гэты код пацьверджаньня скончыўся альбо не існуе. confirm_resend: success: Мы даслалі новы ліст з пацьверджаньнем на адрас %{email} і, як толькі Вы пацьвердзіце Ваш рахунак, Вы зможаце пачаць працаваць з мапамі.

преди %{time} version: Версия + in_changeset: Списък с промени anonymous: анонимен no_comment: (без коментар) part_of: Част от @@ -91,10 +93,12 @@ bg: view_details: Вижте детайлите location: 'Местоположение:' changeset: + title: 'Списък с промени: %{id}' belongs_to: Автор node: Точки (%{count}) node_paginated: Точки (%{x}-%{y} от %{count}) way: Пътища (%{count}) + way_paginated: Пътища (%{x}-%{y} от общо %{count}) relation: Релации (%{count}) relation_paginated: Релации(%{x}-%{y} от %{count}) comment: Коментари (%{count}) @@ -143,6 +147,8 @@ bg: relation: релация start_rjs: loading: Зареждане... + tag_details: + tags: Етикети note: description: Описание changeset: @@ -161,6 +167,9 @@ bg: area: Област list: title: Списък промени + empty: Няма намерени списъци с промени. + empty_area: Няма списъци с промени в този район. + empty_user: Няма списъци с промени от този потребител. load_more: Зареждане на още rss: full: Пълна дискусия @@ -172,7 +181,9 @@ bg: title_friends: Дневници на приятели title_nearby: Дневници на потребители наблизо user_title: Дневник на %{user} + new: Нов запис в дневник no_entries: Няма записи в дневника + older_entries: По-стари записи newer_entries: По-нови записи edit: subject: 'Тема:' @@ -629,7 +640,7 @@ bg: export_data: Изнасяне на данни gps_traces: GPS-следи gps_traces_tooltip: Управление на GPS-следи - user_diaries: Дневници на потребителя + user_diaries: Дневник user_diaries_tooltip: Дневници на потребители edit_with: Редактиране с %{editor} tag_line: Свободна Wiki-карта на света diff --git a/config/locales/bn.yml b/config/locales/bn.yml index 2129fa013..d74d289a7 100644 --- a/config/locales/bn.yml +++ b/config/locales/bn.yml @@ -5,6 +5,7 @@ # Author: Bellayet # Author: Bodhisattwa # Author: Ehsanulhb +# Author: Elias Ahmmad # Author: Kayser Ahmad # Author: Nasir8891 # Author: Sayma Jahan @@ -1081,7 +1082,7 @@ bn: cycleway_national: জাতীয় সাইকেলের রাস্তা cycleway_regional: আঞ্চলিক সাইকেলের রাস্তা cycleway_local: স্থানীয় সাইকেলের রাস্তা - footway: পদপথ + footway: ফুটপাথ rail: রেলপথ subway: ভূগর্ভস্থ পথ tram: @@ -1201,7 +1202,7 @@ bn: message: জিপিএক্স ফাইল সংরক্ষণ এবং আপলোড বর্তমানে সম্ভব নয় oauth_clients: new: - title: একটি নতুন আবেন নিবন্ধন করুন + title: একটি নতুন আবেদন নিবন্ধন করুন submit: নিবন্ধন edit: submit: সম্পাদনা @@ -1220,7 +1221,7 @@ bn: login_button: প্রবেশ register now: এখনই নিবন্ধন করুন with username: 'ইতিমধ্যে একটি ওপেনস্ট্রিটম্যাপ অ্যাকাউন্ট আছে? দয়া করে ব্যবহারকারীনাম - এবং শব্দচাবি দিয়ে প্রবেশ করুন:' + এবং পাসওয়ার্ড দিয়ে প্রবেশ করুন:' new to osm: ওপেনস্ট্রিটম্যাপে নতুন? no account: কোনও অ্যাকাউন্ট নেই? auth_providers: diff --git a/config/locales/ca.yml b/config/locales/ca.yml index 171fd03c5..f9e647fa6 100644 --- a/config/locales/ca.yml +++ b/config/locales/ca.yml @@ -1059,9 +1059,9 @@ ca: Freqüents sobre legalitat. more_2_html: Encara que les dades d'OpenStreetMap són dades obertes, no podem oferir una API gratuïta per als desenvolupadors de terceres parts. Vegeu la - Política d'ús - de l'API, la Política - d'ús de les tessel·les i la Política + política d'ús + de l'API, la política + d'ús de les tessel·les i la política d'ús de Nominatim. contributors_title_html: Els nostres col·laboradors contributors_intro_html: 'Els nostres col·laboradors són milers de persones. @@ -1839,6 +1839,9 @@ ca: github: title: Inicia la sessió amb GitHub alt: Inicia la sessió amb un compte de GitHub + wikipedia: + title: Inicia la sessió amb Viquipèdia + alt: Inicia la sessió amb un compte de Viquipèdia yahoo: title: Inicieu la sessió amb Yahoo alt: Inici de sessió amb un compte OpenID de Yahoo @@ -2354,6 +2357,7 @@ ca: header: Capes del mapa notes: Notes de mapa data: Dades del mapa + gps: Traces GPS públiques overlays: Activar capes extra per als problemes del mapa title: Capes del mapa copyright: © Col·laboradors d'OpenStreetMap @@ -2439,6 +2443,11 @@ ca: against_oneway_without_exit: Anar en contra-direcció a %{name} end_oneway_without_exit: Fi del sentit únic a %{name} roundabout_with_exit: A la rotonda, agafar la sortida %{exit} a %{name} + turn_left_with_exit: A la rotonda gireu a l'esquerra cap a %{name} + slight_left_with_exit: A la rotonda gireu lleument a l'esquerra cap a %{name} + turn_right_with_exit: A la rotonda gireu a la dreta cap a %{name} + slight_right_with_exit: A la rotonda gireu lleument a la dreta cap a %{name} + continue_with_exit: A la rotonda continueu endavant cap a %{name} unnamed: sense nom courtesy: Direccions cortesia de %{link} time: Temps diff --git a/config/locales/el.yml b/config/locales/el.yml index 4af67e637..b7b89dcc8 100644 --- a/config/locales/el.yml +++ b/config/locales/el.yml @@ -1828,6 +1828,9 @@ el: github: title: Σύνδεση με το GitHub alt: Σύνδεση με λογαριασμό GitHub + wikipedia: + title: Σύνδεση με Wikipedia + alt: Συνδεθείτε με ένα Λογαριασμό Wikipedia yahoo: title: Σύνδεση με το Yahoo alt: Σύνδεση με ένα Yahoo OpenID @@ -1885,6 +1888,7 @@ el: display name: 'Εμφανιζόμενο όνομα:' display name description: Το δημόσια εμφανιζόμενο όνομα χρήστη. Μπορείτε να το αλλάξετε αργότερα από τις προτιμήσεις. + external auth: 'Ελέγχος Ταυτότητας Τρίτου Μέρους:' password: 'Κωδικός:' confirm password: 'Επιβεβαίωση Κωδικού:' use external auth: 'Εναλλακτικά, χρησιμοποιήστε τρίτην υπηρεσία για είσοδο:' @@ -2034,6 +2038,7 @@ el: gravatar: gravatar: Χρήση Gravatar link text: τι είναι αυτό; + enabled: Εμφάνισης του Gravatar σας έχει ενεργοποιηθεί. new image: Προσθήκη εικόνας keep image: Διατήρηση της τρέχουσας εικόνας delete image: Αφαίρεση της τρέχουσας εικόνας @@ -2301,6 +2306,7 @@ el: link: Σύνδεσμος ή HTML long_link: Σύνδεσμος short_link: Σύντομος Σύνδεσμος + geo_uri: Geo URI embed: HTML custom_dimensions: Ορισμός προσαρμοσμένων διαστάσεων format: 'Μορφή:' @@ -2335,6 +2341,7 @@ el: header: Στρώματα Χάρτη notes: Σημειώσεις Χάρτη data: Δεδομένα Χάρτη + gps: Δημόσια ίχνη GPS overlays: Ενεργοποίηση επικαλύψεων για την αντιμετώπιση προβλημάτων του χάρτη title: Στρώματα copyright: © Συνεισφέροντες του OpenStreetMap @@ -2394,14 +2401,20 @@ el: instructions: continue_without_exit: Συνεχίστε στην %{name} slight_right_without_exit: Ελαφριά δεξιά στην %{name} + offramp_right_without_exit: Πάρτε τη λωρίδα δεξιά προς %{name} + onramp_right_without_exit: Στρίψτε δεξιά στη λωρίδα προς %{name} endofroad_right_without_exit: Στο τέλος του δρόμου στρίψτε δεξιά στην %{name} + merge_right_without_exit: Ελαφριά δεξιά προς %{name} fork_right_without_exit: Στην διχάλα στρίψτε δεξιά στην %{name} turn_right_without_exit: Στρίψτε δεξιά στην %{name} sharp_right_without_exit: Κλειστά δεξιά στην %{name} uturn_without_exit: Αναστροφή στην %{name} sharp_left_without_exit: Κλειστά αριστερά στην %{name} turn_left_without_exit: Στρίψτε αριστερά στην %{name} + offramp_left_without_exit: Πάρτε τη λωρίδα αριστερά προς %{name} + onramp_left_without_exit: Στρίψτε αριστερά στη λωρίδα προς %{name} endofroad_left_without_exit: Στο τέλος του δρόμου στρίψτε αριστερά στην %{name} + merge_left_without_exit: Ελαφριά αριστερά προς %{name} fork_left_without_exit: Στη διχάλα στρίψτε αριστερά στην %{name} slight_left_without_exit: Ελαφριά αριστερά στην %{name} via_point_without_exit: (μέσω σημείου) @@ -2415,6 +2428,11 @@ el: end_oneway_without_exit: Τέλος του μονόδρομου %{name} roundabout_with_exit: Στην κυκλική διασταύρωση, πάρτε την %{exit}η έξοδο προς %{name} + turn_left_with_exit: Στον κυκλικό κόμβο στρίψτε αριστερά προς %{name} + slight_left_with_exit: Στο κυκλικό κόμβο ελαφρά αριστερά προς %{name} + turn_right_with_exit: Στον κυκλικό κόμβο στρίψτε δεξιά προς %{name} + slight_right_with_exit: Στο κυκλικό κόμβο ελαφρά δεξιά προς %{name} + continue_with_exit: Στον κυκλικό κόμβο συνεχίστε ευθεία προς %{name} unnamed: ανώνυμος δρόμος courtesy: Οι οδηγίες είναι προσφορά του %{link} time: Διάρκεια diff --git a/config/locales/eo.yml b/config/locales/eo.yml index 93c1fa62e..3e4fe1bf7 100644 --- a/config/locales/eo.yml +++ b/config/locales/eo.yml @@ -350,8 +350,9 @@ eo: map_image: Bildo de mapo (norma tavolo) embeddable_html: Enkorpigebla HTML licence: Permesilo - export_details: OpenStreetMap-datumoj estas disponebla laÅ­ la permesilo Open - Data Commons Open Database License (ODbL). + export_details: OpenStreetMap-datumoj estas disponeblaj laÅ­ la permesilo Open Data Commons Open + Database License (ODbL). too_large: advice: 'Se la elportado malsukcesis, bonvolu uzi unu el jenaj fontoj:' body: La elektita areo estas tro granda por esti elportita kiel XML-datumojn @@ -937,7 +938,7 @@ eo: log_in: Ensaluti log_in_tooltip: Ensaluti kun ekzistanta konto sign_up: Registriĝi - start_mapping: Eki mapigadon + start_mapping: Ekigi mapigadon sign_up_tooltip: Krei konton por redaktado edit: Redakti history: Historio @@ -946,13 +947,13 @@ eo: export_data: Elporti datumojn gps_traces: GPS-spuroj gps_traces_tooltip: Manipuli la GPS-spurojn - user_diaries: Ä´urnaloj de uzantoj - user_diaries_tooltip: Esplori ĵurnalojn de uzantoj + user_diaries: Taglibroj de uzantoj + user_diaries_tooltip: Esplori taglibrojn de uzantoj edit_with: Redakti per %{editor} tag_line: La libera viki-mondmapo intro_header: Bonvenon al OpenStreetMap! intro_text: OpenStreetMap estas mapo de la mondo, kreata de homoj kiel vi, kaj - libere uzebla sub malferma permesilo. + libere uzebla laÅ­ la malferma permesilo. intro_2_create_account: Krei konton partners_html: Retgastigo estas liverata de %{ucl}, %{ic}, %{bytemark} kaj aliaj %{partners}. @@ -989,7 +990,7 @@ eo: text: Vi legas la anglan version de paĝo pri kopirajto. Vi povas reveni al la %{native_link} de ĉi tiu paĝo aÅ­ vi povas ĉesi legi pri kopirajto kaj %{mapping_link}. native_link: Esperanta versio - mapping_link: eki mapigadon + mapping_link: ekigi mapigadon legal_babble: title_html: Kopirajto kaj permesilo intro_1_html: |- @@ -1003,12 +1004,12 @@ eo: La plena interkonsento de uzado eksplikas viajn rajtojn kaj devojn. intro_3_html: |- - La kartografio de niaj map-kaheloj kaj nia dokumentaro estas disponeblaj sub la permesilo Creative + La kartografio de niaj map-kaheloj kaj nia dokumentaro estas disponeblaj laÅ­ la permesilo Creative Commons Atribuite-Samkondiĉe 2.0 (CC BY-SA). credit_title_html: Kiel atribui aÅ­torecon credit_1_html: 'Ni postulas, ke vi markos: “© Kontribuintoj de OpenStreetMap”.' - credit_2_html: Vi ankaÅ­ devas klarigi, ke datumoj estas disponeblaj sub la permesilo - Open Database License, kaj kartografio de map-kaheloj sub la permesilo CC + credit_2_html: Vi ankaÅ­ devas klarigi, ke datumoj estas disponeblaj laÅ­ la permesilo + Open Database License, kaj kartografio de map-kaheloj laÅ­ la permesilo CC BY-SA. Vi povas indiki tion per fari ligilon al ĉi tiu paĝo pri permesilo. Alimaniere, se vi distribuas OSM en datuma formo, vi povas mencii nomo(j)n kaj ligilo(j)n al la permesilo(j). Se ne estas eble @@ -1033,7 +1034,7 @@ eo: pri uzado de Nominatim. contributors_title_html: Kunlaborantoj contributors_intro_html: 'Niaj kunlaborantoj estas miloj da homoj. Ni ankaÅ­ - inkludas datumoj sub malferma permesilo el landaj kartografiaj organizaĵoj + inkludas datumoj laÅ­ malferma permesilo el landaj kartografiaj organizaĵoj kaj el aliaj fontoj, inter ili:' contributors_at_html: |- AÅ­strujo: enhavas datumojn el Stadt Wien (sub CC BY), @@ -1047,7 +1048,7 @@ eo: Statistics Canada). contributors_fi_html: |- Suomujo: enhavas datumojn el - National Land Survey of Finland's Topographic Database kaj aliaj fontoj, sub la NLSFI permesilo. + National Land Survey of Finland's Topographic Database kaj aliaj fontoj, laÅ­ la NLSFI permesilo. contributors_fr_html: 'Francujo: enhavas datumojn ricevitajn el ''Direction Générale des Impôts''.' contributors_nl_html: |- @@ -1090,7 +1091,7 @@ eo: welcome_page: title: Bonvenon! introduction_html: Bonvenon al OpenStreetMap, la libera kaj redaktebla mapo de - la mondo. Nun kiam vi registriĝis, vi povas eki mapigadon. Jen estas mallonga + la mondo. Nun kiam vi registriĝis, vi povas ekigi mapigadon. Jen estas mallonga manlibreto kun la plej gravaj aĵoj kiuj vi povas scii. whats_on_the_map: title: Kio estas sur la mapo @@ -1126,7 +1127,7 @@ eo: paragraph_1_html: OpenStreetMap havas kelkajn ejojn por lerni pri la projekto, por demandi pri ion ajn kaj kune diskuti kaj dokumenti pri mapigado. Alklaku por ricevi helpon. - start_mapping: Eki mapigadon + start_mapping: Ekigi mapigadon add_a_note: title: Ĉu mankas al vi tempo por ridaktado? Aldonu rimarkon! paragraph_1_html: Se vi volas nur korekti iun etan kaj vi ne havas tempon por @@ -1208,7 +1209,7 @@ eo: open_data_html: 'OpenStreetMap estas malfermaj datumoj: vi povas uzi ĝin kiamaniere vi volas sub la kondiĉo de vi atribuos aÅ­torecon al OpenStreetMap kaj ĝiaj kontribuintoj. Se vi modifos aÅ­ uzos niajn datumojn, vi povos distribui - la verkon nur sub la sama permesilo. Vidu la paĝon + la verkon nur laÅ­ la sama permesilo. Vidu la paĝon pri kopirajto kaj permesilo por pli da detaloj.' legal_title: Leĝaj demandoj legal_html: Ĉi tiu retejo kaj aliaj servoj estas formale administrataj de la Kontraste kun aliaj mapoj, OpenStreetMap estas tute kreata de homoj kiel vi, kaj iu ajn povas korekti, ĝisdatigi, elŝuti kaj uzi ĝin.

Registriĝu - por eki kontribuadon. Ni sendos al vi retleteron por konfirmi vian konton.

+ por komenci kontribuadon. Ni sendos al vi retleteron por konfirmi vian konton.

license_agreement: Kiam vi konfirmos vian konton, vi devos akcepti la
interkonsenton pri kontribuado. email address: 'Retpoŝtadreso:' @@ -1870,8 +1871,8 @@ eo: liter-eraroj, aŭ eble vi alklakis mis-ligilon. deleted: forigita view: - my diary: Mia ĵurnalo - new diary entry: nova ĵurnalrikordo + my diary: Mia taglibro + new diary entry: nova taglibra afiŝo my edits: Miaj redaktoj my traces: Miaj spuroj my notes: Miaj rimarkoj @@ -1883,7 +1884,7 @@ eo: blocks on me: Blokas min blocks by me: Blokitaj de mi send message: Sendi mesaĝon - diary: Ĵurnalo + diary: Taglibro edits: Redaktoj traces: Spuroj notes: Map-rimarkoj @@ -1933,9 +1934,9 @@ eo: delete_user: Forigi ĉi tiun uzanton confirm: Konfirmi friends_changesets: ŝanĝaroj de amikoj - friends_diaries: ĵurnal-afiŝoj de amikoj + friends_diaries: afiŝoj en taglibroj de amikoj nearby_changesets: ŝanĝaroj de proksimuloj - nearby_diaries: ĵurnal-afiŝoj de proksimuloj + nearby_diaries: afiŝoj en taglibroj de proksimuloj popup: your location: Via loko nearby mapper: Proksima uzanto diff --git a/config/locales/et.yml b/config/locales/et.yml index 9d8dd5f12..8d329b892 100644 --- a/config/locales/et.yml +++ b/config/locales/et.yml @@ -1100,7 +1100,7 @@ et: diary_comment_notification: subject: '[OpenStreetMap] %{user} kommenteeris sinu päeviku sissekannet' hi: Tere, %{to_user}! - header: '%{from_user} on kommenteerinud sinu hiljutist OpenStreetMapi päevikusissekannet + header: '%{from_user} kommenteeris hiljutist OpenStreetMapi päevikusissekannet pealkirjaga %{subject}:' footer: Loe kommentaari lehel %{readurl}. Võid lisada oma kommentaari lehel %{commenturl} või vastata kommentaarile lehel %{replyurl}. @@ -1801,7 +1801,7 @@ et: on nüüdsest vaikimisi avalikud. contributor terms: heading: 'Kaastöö tingimused:' - agreed: Oled nõustunud uute Kaastöö tingimustega. + agreed: Oled nõustunud uute kaastöötingimustega. not yet agreed: Sa ei ole veel nõustunud uute Kaastöö tingimustega. review link text: Loe ja nõustu uute Kaastöö tingimustega klõpsates endale sobival ajal antud lingil. diff --git a/config/locales/ko.yml b/config/locales/ko.yml index 3780c16d0..3b8748a9b 100644 --- a/config/locales/ko.yml +++ b/config/locales/ko.yml @@ -1356,7 +1356,7 @@ ko: body: 본문 send_button: 보내기 back_to_inbox: 받은 쪽지함으로 돌아가기 - message_sent: 보낸 메시지 + message_sent: 메시지를 보냈습니다 limit_exceeded: 최근에 많은 메시지를 보냈습니다. 더 보내려면 잠시 기다려주세요. no_such_message: title: 메시지가 없습니다. diff --git a/config/locales/lv.yml b/config/locales/lv.yml index 713d270e8..af6fc1dff 100644 --- a/config/locales/lv.yml +++ b/config/locales/lv.yml @@ -1797,6 +1797,9 @@ lv: github: title: Pieslēgties ar GitHub alt: Pieslēgties ar GitHub kontu + wikipedia: + title: Ieiet ar Vikipēdiju + alt: Ieiet ar Vikipēdijas kontu yahoo: title: Pieslēgties ar Yahoo alt: Pieslēgties ar Yahoo OpenID diff --git a/config/locales/nl.yml b/config/locales/nl.yml index d0a8ba918..d67c74fa9 100644 --- a/config/locales/nl.yml +++ b/config/locales/nl.yml @@ -1174,8 +1174,8 @@ nl: questions: title: Nog vragen? paragraph_1_html: |- - Er zijn verschillende bronnen om te leren over OpenStreetMap, voor het stellen van vragen en het krijgen van antwoorden, en het samen overleggen en documenteren van onderwerpen die gaan over kaarten maken. - Hier vindt u meer informatie. + Er zijn verschillende bronnen om te leren over OpenStreetMap, voor het stellen en beantwoorden van vragen, en het samen overleggen en documenteren van onderwerpen die gaan over kaarten maken. + Hier vind je meer informatie. start_mapping: Beginnen met kaarten maken add_a_note: title: Geen tijd om te bewerken? Voeg een opmerking toe! @@ -1188,23 +1188,24 @@ nl: fixthemap: title: Een probleem melden / de kaart corrigeren how_to_help: - title: Hoe u kunt helpen + title: Hoe je kan helpen join_the_community: title: Word lid van onze gemeenschap - explanation_html: Als u een probleem met onze kaartgegevens hebt gevonden - (er ontbreekt bijvoorbeeld een weg of uw adres staat er niet in) dan kunt - u zich het beste bij OpenStreetMap inschrijven en de gegevens zelf toevoegen + explanation_html: Als je een probleem met onze kaartgegevens hebt gevonden + (er ontbreekt bijvoorbeeld een weg of je adres staat er niet in) dan kan + je je het best bij OpenStreetMap inschrijven en de gegevens zelf toevoegen of corrigeren. add_a_note: instructions_html: |- Klik op of het hetzelfde pictogram op de kaartweergave. - Er wordt dan een markering toegevoegd aan de kaart, die u kunt verplaatsen door te slepen. - Voeg uw bericht toe, klik op opslaan, en andere kaartenmakers kijken dan naar uw melding. + Er wordt dan een markering toegevoegd aan de kaart, die je kan verslepen. + Voeg je bericht toe, klik op opslaan, en andere kaartenmakers kijken dan naar jouw melding. other_concerns: - title: Andere punten van zorg + title: Andere aangelegenheden explanation_html: |- - Als u vragen hebt over hoe onze gegevens worden gebruikt of over de inhoud, raadpleeg dan onze - auteursrechtenpagina voor meer juridische informatie, of neem contact op met de betreffende OSMF werkgroep. + Als je vragen hebt over hoe onze gegevens worden gebruikt of over de inhoud, raadpleeg dan onze + auteursrechtenpagina voor meer juridische informatie, of neem contact op met de betreffende + OSMF-werkgroep. help_page: title: Hulp krijgen introduction: Er zijn verschillende bronnen om meer te leren over OpenStreetMap, diff --git a/config/locales/pl.yml b/config/locales/pl.yml index 554245006..9ef0b3563 100644 --- a/config/locales/pl.yml +++ b/config/locales/pl.yml @@ -551,7 +551,7 @@ pl: waste_disposal: Śmietnik youth_centre: Centrum młodzieżowe boundary: - administrative: Granica administracyjna + administrative: Granica gminy census: Granica spisu ludności national_park: Park Narodowy protected_area: Obszar chroniony @@ -951,9 +951,9 @@ pl: level2: Granica kraju level4: 'Granica:' level5: Granica regionu - level6: 'Granica:' + level6: 'Granica powiatu:' level8: Granica miejscowości - level9: Granica wsi + level9: Granica dzielnicy level10: Granica przedmieścia description: title: diff --git a/test/controllers/oauth_clients_controller_test.rb b/test/controllers/oauth_clients_controller_test.rb index a1c6fbc21..020521bac 100644 --- a/test/controllers/oauth_clients_controller_test.rb +++ b/test/controllers/oauth_clients_controller_test.rb @@ -1,7 +1,7 @@ require "test_helper" class OauthClientsControllerTest < ActionController::TestCase - fixtures :users, :client_applications + fixtures :users ## # test all routes which lead to this controller @@ -38,6 +38,7 @@ class OauthClientsControllerTest < ActionController::TestCase def test_index user = users(:public_user) + create_list(:client_application, 2, :user => user) get :index, :display_name => user.display_name assert_response :redirect @@ -104,13 +105,14 @@ class OauthClientsControllerTest < ActionController::TestCase def test_show user = users(:public_user) - client = client_applications(:oauth_web_app) + client = create(:client_application, :user => user) + other_client = create(:client_application) get :show, :display_name => user.display_name, :id => client.id assert_response :redirect assert_redirected_to login_path(:referer => oauth_client_path(:display_name => user.display_name, :id => client.id)) - get :show, { :display_name => user.display_name, :id => client_applications(:normal_user_app).id }, { :user => user } + get :show, { :display_name => user.display_name, :id => other_client.id }, { :user => user } assert_response :not_found assert_template "not_found" @@ -121,13 +123,14 @@ class OauthClientsControllerTest < ActionController::TestCase def test_edit user = users(:public_user) - client = client_applications(:oauth_web_app) + client = create(:client_application, :user => user) + other_client = create(:client_application) get :edit, :display_name => user.display_name, :id => client.id assert_response :redirect assert_redirected_to login_path(:referer => edit_oauth_client_path(:display_name => user.display_name, :id => client.id)) - get :edit, { :display_name => user.display_name, :id => client_applications(:normal_user_app).id }, { :user => user } + get :edit, { :display_name => user.display_name, :id => other_client.id }, { :user => user } assert_response :not_found assert_template "not_found" @@ -147,12 +150,13 @@ class OauthClientsControllerTest < ActionController::TestCase def test_update user = users(:public_user) - client = client_applications(:oauth_web_app) + client = create(:client_application, :user => user) + other_client = create(:client_application) put :update, :display_name => user.display_name, :id => client.id assert_response :forbidden - put :update, { :display_name => user.display_name, :id => client_applications(:normal_user_app).id }, { :user => user } + put :update, { :display_name => user.display_name, :id => other_client.id }, { :user => user } assert_response :not_found assert_template "not_found" @@ -181,7 +185,8 @@ class OauthClientsControllerTest < ActionController::TestCase def test_destroy user = users(:public_user) - client = client_applications(:oauth_web_app) + client = create(:client_application, :user => user) + other_client = create(:client_application) assert_difference "ClientApplication.count", 0 do delete :destroy, :display_name => user.display_name, :id => client.id @@ -189,7 +194,7 @@ class OauthClientsControllerTest < ActionController::TestCase assert_response :forbidden assert_difference "ClientApplication.count", 0 do - delete :destroy, { :display_name => user.display_name, :id => client_applications(:normal_user_app).id }, { :user => user } + delete :destroy, { :display_name => user.display_name, :id => other_client.id }, { :user => user } end assert_response :not_found assert_template "not_found" diff --git a/test/controllers/site_controller_test.rb b/test/controllers/site_controller_test.rb index d559760af..5efddd52e 100644 --- a/test/controllers/site_controller_test.rb +++ b/test/controllers/site_controller_test.rb @@ -6,8 +6,8 @@ class SiteControllerTest < ActionController::TestCase ## # setup oauth keys def setup - Object.const_set("ID_KEY", client_applications(:oauth_web_app).key) - Object.const_set("POTLATCH2_KEY", client_applications(:oauth_web_app).key) + Object.const_set("ID_KEY", create(:client_application).key) + Object.const_set("POTLATCH2_KEY", create(:client_application).key) stub_hostip_requests end diff --git a/test/factories/client_applications.rb b/test/factories/client_applications.rb new file mode 100644 index 000000000..413dc57c9 --- /dev/null +++ b/test/factories/client_applications.rb @@ -0,0 +1,6 @@ +FactoryGirl.define do + factory :client_application do + sequence(:name) { |n| "Client application #{n}" } + sequence(:url) { |n| "http://example.com/app/#{n}" } + end +end diff --git a/test/fixtures/client_applications.yml b/test/fixtures/client_applications.yml deleted file mode 100644 index 13f9c086a..000000000 --- a/test/fixtures/client_applications.yml +++ /dev/null @@ -1,50 +0,0 @@ -# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html - -oauth_web_app: - name: Some OAuth Web App - created_at: "2009-04-21 00:00:00" - support_url: http://some.web.app.org/support - updated_at: "2009-04-21 00:00:00" - callback_url: http://some.web.app.org/callback - url: http://some.web.app.org/ - user_id: 2 - secret: Ur1s9LWWJJuYBiV9cDi3za3OV8TGCoRgUvVXJ5zp7pc - key: ewvENqsaTXFnZbMWmGDX2g - allow_read_prefs: true - allow_write_prefs: false - allow_write_diary: false - allow_write_api: true - allow_read_gpx: true - allow_write_gpx: false - -oauth_desktop_app: - name: Some OAuth Desktop App - created_at: "2009-04-21 00:00:00" - url: http://some.desktop.app.org/ - support_url: http://some.desktop.app.org/support - updated_at: "2009-04-21 00:00:00" - user_id: 2 - secret: V9DOm1H5qSdIG9IeCTiOkAcCx15bK8bkGxf7XEpF - key: rlEdPM6Tp8lpLwvSyNJQ4w - allow_read_prefs: true - allow_write_prefs: false - allow_write_diary: false - allow_write_api: true - allow_read_gpx: true - allow_write_gpx: false - -normal_user_app: - name: Some OAuth Desktop App - created_at: "2009-05-21 00:00:00" - url: http://some.desktop.app.org/ - support_url: http://some.desktop.app.org/support - updated_at: "2009-05-21 00:00:00" - user_id: 1 - secret: jgYx43yx1FAMQbG6T0qZhvvFsKEf6Pgd5XfHr5kFgv4 - key: N6KVhfeaT626fhBt9aCMeA - allow_read_prefs: true - allow_write_prefs: false - allow_write_diary: false - allow_write_api: true - allow_read_gpx: true - allow_write_gpx: false diff --git a/test/integration/client_applications_test.rb b/test/integration/client_applications_test.rb index 2cc15bd56..f5d235d95 100644 --- a/test/integration/client_applications_test.rb +++ b/test/integration/client_applications_test.rb @@ -1,7 +1,7 @@ require "test_helper" class ClientApplicationsTest < ActionDispatch::IntegrationTest - fixtures :users, :client_applications + fixtures :users ## # run through the procedure of creating a client application and checking diff --git a/test/integration/oauth_test.rb b/test/integration/oauth_test.rb index c10699f2a..ceee95892 100644 --- a/test/integration/oauth_test.rb +++ b/test/integration/oauth_test.rb @@ -1,7 +1,7 @@ require "test_helper" class OAuthTest < ActionDispatch::IntegrationTest - fixtures :users, :client_applications, :gpx_files + fixtures :users, :gpx_files set_fixture_class :gpx_files => Trace include OAuth::Helper @@ -11,18 +11,18 @@ class OAuthTest < ActionDispatch::IntegrationTest end def test_oauth10_web_app - client = client_applications(:oauth_web_app) + client = create(:client_application, :callback_url => "http://some.web.app.example.org/callback", :user => users(:public_user), :allow_read_prefs => true, :allow_write_api => true, :allow_read_gpx => true) post_via_redirect "/login", :username => client.user.email, :password => "test" assert_response :success oauth10_without_callback(client) - oauth10_with_callback(client, "http://another.web.app.org/callback") + oauth10_with_callback(client, "http://another.web.app.example.org/callback") oauth10_refused(client) end def test_oauth10_desktop_app - client = client_applications(:oauth_desktop_app) + client = create(:client_application, :user => users(:public_user), :allow_read_prefs => true, :allow_write_api => true, :allow_read_gpx => true) post_via_redirect "/login", :username => client.user.email, :password => "test" assert_response :success @@ -32,18 +32,18 @@ class OAuthTest < ActionDispatch::IntegrationTest end def test_oauth10a_web_app - client = client_applications(:oauth_web_app) + client = create(:client_application, :callback_url => "http://some.web.app.example.org/callback", :user => users(:public_user), :allow_read_prefs => true, :allow_write_api => true, :allow_read_gpx => true) post_via_redirect "/login", :username => client.user.email, :password => "test" assert_response :success oauth10a_without_callback(client) - oauth10a_with_callback(client, "http://another.web.app.org/callback") + oauth10a_with_callback(client, "http://another.web.app.example.org/callback") oauth10a_refused(client) end def test_oauth10a_desktop_app - client = client_applications(:oauth_desktop_app) + client = create(:client_application, :user => users(:public_user), :allow_read_prefs => true, :allow_write_api => true, :allow_read_gpx => true) post_via_redirect "/login", :username => client.user.email, :password => "test" assert_response :success @@ -196,7 +196,7 @@ class OAuthTest < ActionDispatch::IntegrationTest if client.callback_url assert_response :redirect verifier = parse_verifier(response) - assert_redirected_to "http://some.web.app.org/callback?oauth_token=#{token.token}&oauth_verifier=#{verifier}" + assert_redirected_to "http://some.web.app.example.org/callback?oauth_token=#{token.token}&oauth_verifier=#{verifier}" else assert_response :success assert_template :authorize_success diff --git a/test/models/changeset_comment_test.rb b/test/models/changeset_comment_test.rb index 8215ce129..64fbb3663 100644 --- a/test/models/changeset_comment_test.rb +++ b/test/models/changeset_comment_test.rb @@ -2,7 +2,7 @@ require "test_helper" class ChangesetCommentTest < ActiveSupport::TestCase - fixtures :changesets + fixtures :changesets, :users # validations def test_does_not_accept_invalid_author diff --git a/test/models/client_application_test.rb b/test/models/client_application_test.rb index 604a5de33..9684513c4 100644 --- a/test/models/client_application_test.rb +++ b/test/models/client_application_test.rb @@ -1,20 +1,18 @@ require "test_helper" class ClientApplicationTest < ActiveSupport::TestCase - fixtures :client_applications - def test_url_valid ok = ["http://example.com/test", "https://example.com/test"] bad = ["", "ftp://example.com/test", "myapp://somewhere"] ok.each do |url| - app = client_applications(:normal_user_app).dup + app = build(:client_application) app.url = url assert app.valid?, "#{url} is invalid, when it should be" end bad.each do |url| - app = client_applications(:normal_user_app) + app = build(:client_application) app.url = url assert !app.valid?, "#{url} is valid when it shouldn't be" end @@ -25,13 +23,13 @@ class ClientApplicationTest < ActiveSupport::TestCase bad = ["ftp://example.com/test", "myapp://somewhere", "gibberish"] ok.each do |url| - app = client_applications(:normal_user_app) + app = build(:client_application) app.support_url = url assert app.valid?, "#{url} is invalid, when it should be" end bad.each do |url| - app = client_applications(:normal_user_app) + app = build(:client_application) app.support_url = url assert !app.valid?, "#{url} is valid when it shouldn't be" end @@ -42,13 +40,13 @@ class ClientApplicationTest < ActiveSupport::TestCase bad = ["gibberish"] ok.each do |url| - app = client_applications(:normal_user_app) + app = build(:client_application) app.callback_url = url assert app.valid?, "#{url} is invalid, when it should be" end bad.each do |url| - app = client_applications(:normal_user_app) + app = build(:client_application) app.callback_url = url assert !app.valid?, "#{url} is valid when it shouldn't be" end diff --git a/test/models/oauth_token_test.rb b/test/models/oauth_token_test.rb index ac10bf7fe..c2df0d131 100644 --- a/test/models/oauth_token_test.rb +++ b/test/models/oauth_token_test.rb @@ -15,7 +15,7 @@ class OauthTokenTest < ActiveSupport::TestCase ## # check that an authorized token is authorised and can be invalidated def test_token_authorisation - tok = RequestToken.create(:client_application => client_applications(:oauth_web_app)) + tok = RequestToken.create(:client_application => create(:client_application)) assert_equal false, tok.authorized?, "Token should be created unauthorised." tok.authorize!(users(:public_user)) assert_equal true, tok.authorized?, "Token should now be authorised." diff --git a/test/test_helper.rb b/test/test_helper.rb index 9633989cd..e535d1645 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -50,8 +50,6 @@ module ActiveSupport set_fixture_class :gps_points => Tracepoint set_fixture_class :gpx_file_tags => Tracetag - fixtures :client_applications - fixtures :redactions end