From: Tom Hughes Date: Sat, 23 Mar 2019 12:01:05 +0000 (+0000) Subject: Merge remote-tracking branch 'upstream/pull/2186' X-Git-Tag: live~3227 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/951564eed1c82ec1a435f4e4636db86d1b7604fc?hp=19c2f6d485baf6ae5986a9eeaed412cb2e2039a1 Merge remote-tracking branch 'upstream/pull/2186' --- diff --git a/app/controllers/api_controller.rb b/app/controllers/api_controller.rb index 511748d8d..579af27cf 100644 --- a/app/controllers/api_controller.rb +++ b/app/controllers/api_controller.rb @@ -32,7 +32,7 @@ class ApiController < ApplicationController def gpx_status status = database_status - status = :offline if status == :online && Settings.status == "gpx_offline" + status = "offline" if status == "online" && Settings.status == "gpx_offline" status end diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 5fc31adb8..3ab09b63d 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -95,14 +95,14 @@ class ApplicationController < ActionController::Base end def check_api_readable - if api_status == :offline + if api_status == "offline" report_error "Database offline for maintenance", :service_unavailable false end end def check_api_writable - unless api_status == :online + unless api_status == "online" report_error "Database offline for maintenance", :service_unavailable false end @@ -110,21 +110,21 @@ class ApplicationController < ActionController::Base def database_status if Settings.status == "database_offline" - :offline + "offline" elsif Settings.status == "database_readonly" - :readonly + "readonly" else - :online + "online" end end def api_status status = database_status - if status == :online + if status == "online" if Settings.status == "api_offline" - status = :offline + status = "offline" elsif Settings.status == "api_readonly" - status = :readonly + status = "readonly" end end status diff --git a/config/locales/cs.yml b/config/locales/cs.yml index 33199c1ab..4c890b766 100644 --- a/config/locales/cs.yml +++ b/config/locales/cs.yml @@ -1451,11 +1451,16 @@ cs: contributors_si_html: 'Slovinsko: Obsahuje data Zeměměřického a mapovacího úřadu a Ministerstva zemědělství, lesnictví a potravin (veřejné informace o Slovinsku).' + contributors_es_html: 'Å panělsko: Obsahuje data od Å¡panělského + Národního geografického institutu (IGN + a Národního kartografického systému (SCNE), + licencovaná pod CC + BY 4.0.' contributors_za_html: |- Jihoafrická republika: Obsahuje data pocházející z Chief Directorate: National Geo-Spatial Information, State copyright reserved. contributors_gb_html: 'Spojené království: Obsahuje data - Ordnance Survey © Crown copyright a právo k databázi 2010–12.' + Ordnance Survey © Crown copyright a právo k databázi 2010–19.' contributors_footer_1_html: |- Další podrobnosti o těchto a dalších zdrojích, které se používaly pro vylepÅ¡ení OpenStreetMap, najdete na stránce Contributors na wiki OpenStreetMap. diff --git a/config/locales/es.yml b/config/locales/es.yml index a4b4c514a..fd8d199f3 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -1493,7 +1493,7 @@ es: Surveying and Mapping Authority y Ministry of Agriculture, Forestry and Food (información pública de Eslovenia). - contributors_es_html: 'España: Contiene datos provenientes + contributors_es_html: 'España: Contiene datos provenientes del Instituto Geográfico Nacional (IGN) y del Sistema Cartográfico Nacional (SCNE), licenciados para su reutilización bajo la CC diff --git a/config/locales/fa.yml b/config/locales/fa.yml index dcdb2f180..b8746f146 100644 --- a/config/locales/fa.yml +++ b/config/locales/fa.yml @@ -1315,7 +1315,7 @@ fa: about: next: بعدی copyright_html: ©Ù…شارکت‌کنندگان
OpenStreetMap - used_by: صدها وبسایت، برنامهٔ موبایل و دستگاه سخت‌افزاری از داده‌های نقشهٔ %{name} + used_by: صدها وبسایت، برنامهٔ موبایل و دستگاه سخت‌افزاری از داده‌های %{name} نیرو گرفته‌اند. lede_text: OpenStreetMap را جامعه‌ای از نقشه‌کشان ساخته‌اند که در ایجاد و نگهداری داده‌های مربوط به جاده‌ها، مسیرهای تریل، کافه‌ها، ایستگاه‌های راه‌آهن و بسیاری diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 49a189242..e6ecb9d12 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -1518,8 +1518,8 @@ fr: Afrique du Sud : contient des données issues de la
Direction principale des Informations Géospatiales Nationales, copyright de l’État réservé. contributors_gb_html: 'Royaume-Uni : contient des données - issues de l’Ordnance Survey © 2010-2019 Droits d’auteurs et de - la base de données de la Couronne.' + issues de l’Ordnance Survey © 2010-2019 Droits d’auteurs et + de la base de données de la Couronne.' contributors_footer_1_html: Pour plus de détails sur celles-ci et sur les autres sources utilisées pour aider à améliorer OpenStreetMap, consultez la page des contributeurs diff --git a/config/locales/ja.yml b/config/locales/ja.yml index 6734c3b32..f0f5ee6e7 100644 --- a/config/locales/ja.yml +++ b/config/locales/ja.yml @@ -1374,8 +1374,8 @@ ja: href="http://www.mkgp.gov.si/en/">農林食料省(スロベニアの公開情報)による。' contributors_za_html: '南アフリカ: Chief Directorate: National Geo-Spatial Information,政府によるデータを含み、著作権を保持します。' - contributors_gb_html: 'イギリス: 陸地測量データ ©è‘—作権はクラウン・コピーライト及びdatabase - right 2010-12 を含みます。' + contributors_gb_html: "イギリス: 陸地測量\nデータ © クラウン・コピーライト及びデータベース権限 + database right \n2010-19 を含みます。" contributors_footer_1_html: |- これらの詳細について、またOpenStreetMapの向上に使用されたその他のソースについては、OpenStreetMap Wikiの協力者ページをご覧ください。 diff --git a/config/locales/pt-BR.yml b/config/locales/pt-BR.yml index a3eec4bd6..5d88661f4 100644 --- a/config/locales/pt-BR.yml +++ b/config/locales/pt-BR.yml @@ -1503,9 +1503,8 @@ pt-BR: Africa do Sul: contém dados originários de Chief Directorate: National Geo-Spatial Information, com direitos autorais reservados àquele Estado. - contributors_gb_html: |- - Reino Unido: Contém dados da Ordnance - Survey © Direitos da base e autorais da Crown 2010. + contributors_gb_html: 'Reino Unido: Contém dados do Ordnance + Survey © Crown copyright and database right 2010-2019.' contributors_footer_1_html: Para mais informações sobre estas e outras fontes utilizadas para melhorar o OpenStreetMap, consulte a página de contribuidores (em inglês) na wiki do OpenStreetMap.