Use lazy lookups and rename keys for the about page.

This commit is contained in:
Andy Allan 2018-04-25 16:19:46 +08:00
parent 8d45f1a5cf
commit 246596225e
2 changed files with 55 additions and 55 deletions

View file

@ -1,37 +1,37 @@
<div class='attr'>
<div class='byosm'>
<%= t "about_page.copyright_html" %>
<%= t ".copyright_html" %>
</div>
<div class='user-image'></div>
<h1><%= raw t "about_page.used_by", :name => "<span class='user-name'>OpenStreetMap</span>" %></h1>
<h1><%= raw t ".used_by", :name => "<span class='user-name'>OpenStreetMap</span>" %></h1>
</div>
<div class='text'>
<div class='section'>
<p><strong><%= t "about_page.lede_text" %></strong></p>
<h2><div class='icon local'></div><%= t "about_page.local_knowledge_title" %></h2>
<p><%= t "about_page.local_knowledge_html" %></p>
<p><strong><%= t ".lede_text" %></strong></p>
<h2><div class='icon local'></div><%= t ".local_knowledge_title" %></h2>
<p><%= t ".local_knowledge_html" %></p>
</div>
<div class='section'>
<h2><div class='icon community'></div><%= t "about_page.community_driven_title" %></h2>
<p><%= t "about_page.community_driven_html", :diary_path => diary_path %></p>
<h2><div class='icon community'></div><%= t ".community_driven_title" %></h2>
<p><%= t ".community_driven_html", :diary_path => diary_path %></p>
</div>
<div class='section' id='open-data'>
<h2><div class='icon open'></div><%= t "about_page.open_data_title" %></h2>
<p><%= t "about_page.open_data_html", :copyright_path => copyright_path %></p>
<h2><div class='icon open'></div><%= t ".open_data_title" %></h2>
<p><%= t ".open_data_html", :copyright_path => copyright_path %></p>
</div>
<div class='section' id='legal'>
<h2><div class='icon legal'></div><%= t "about_page.legal_title" %></h2>
<p><%= t "about_page.legal_html" %></p>
<h2><div class='icon legal'></div><%= t ".legal_title" %></h2>
<p><%= t ".legal_html" %></p>
</div>
<div class='section' id='partners'>
<h2><div class='icon partners'></div><%= t "about_page.partners_title" %></h2>
<h2><div class='icon partners'></div><%= t ".partners_title" %></h2>
<p><%= t 'layouts.partners_html',
:ucl => link_to(t('layouts.partners_ucl'), "https://www.ucl.ac.uk"),
:ic => link_to(t('layouts.partners_ic'), "https://www.imperial.ac.uk/"),

View file

@ -1245,49 +1245,6 @@ en:
url: https://wiki.openstreetmap.org/
title: wiki.openstreetmap.org
description: Browse the wiki for in-depth OSM documentation.
about_page:
next: Next
copyright_html: <span>&copy;</span>OpenStreetMap<br>contributors
used_by: "%{name} powers map data on thousands of web sites, mobile apps, and hardware devices"
lede_text: |
OpenStreetMap is built by a community of mappers that contribute and maintain data
about roads, trails, cafés, railway stations, and much more, all over the world.
local_knowledge_title: Local Knowledge
local_knowledge_html: |
OpenStreetMap emphasizes local knowledge. Contributors use
aerial imagery, GPS devices, and low-tech field maps to verify that OSM
is accurate and up to date.
community_driven_title: Community Driven
community_driven_html: |
OpenStreetMap's community is diverse, passionate, and growing every day.
Our contributors include enthusiast mappers, GIS professionals, engineers
running the OSM servers, humanitarians mapping disaster-affected areas,
and many more.
To learn more about the community, see the
<a href='https://blog.openstreetmap.org'>OpenStreetMap Blog</a>,
<a href='%{diary_path}'>user diaries</a>,
<a href='https://blogs.openstreetmap.org/'>community blogs</a>, and
the <a href='https://www.osmfoundation.org/'>OSM Foundation</a> website.
open_data_title: Open Data
open_data_html: |
OpenStreetMap is <i>open data</i>: you are free to use it for any purpose
as long as you credit OpenStreetMap and its contributors. If you alter or
build upon the data in certain ways, you may distribute the result only
under the same licence. See the <a href='%{copyright_path}'>Copyright and
License page</a> for details.
legal_title: Legal
legal_html: |
This site and many other related services are formally operated by the
<a href='https://osmfoundation.org/'>OpenStreetMap Foundation</a> (OSMF)
on behalf of the community. Use of all OSMF operated services is subject
to our <a href="https://wiki.openstreetmap.org/wiki/Acceptable_Use_Policy">
Acceptable Use Policies</a> and our <a href="https://wiki.osmfoundation.org/wiki/Privacy_Policy">Privacy Policy</a>
<br>
Please <a href='https://osmfoundation.org/Contact'>contact the OSMF</a>
if you have licensing, copyright or other legal questions.
<br>
OpenStreetMap, the magnifying glass logo and State of the Map are <a href="https://wiki.osmfoundation.org/wiki/Trademark_Policy">registered trademarks of the OSMF</a>.
partners_title: Partners
notifier:
diary_comment_notification:
subject: "[OpenStreetMap] %{user} commented on a diary entry"
@ -1446,6 +1403,49 @@ en:
delete:
deleted: "Message deleted"
site:
about:
next: Next
copyright_html: <span>&copy;</span>OpenStreetMap<br>contributors
used_by: "%{name} powers map data on thousands of web sites, mobile apps, and hardware devices"
lede_text: |
OpenStreetMap is built by a community of mappers that contribute and maintain data
about roads, trails, cafés, railway stations, and much more, all over the world.
local_knowledge_title: Local Knowledge
local_knowledge_html: |
OpenStreetMap emphasizes local knowledge. Contributors use
aerial imagery, GPS devices, and low-tech field maps to verify that OSM
is accurate and up to date.
community_driven_title: Community Driven
community_driven_html: |
OpenStreetMap's community is diverse, passionate, and growing every day.
Our contributors include enthusiast mappers, GIS professionals, engineers
running the OSM servers, humanitarians mapping disaster-affected areas,
and many more.
To learn more about the community, see the
<a href='https://blog.openstreetmap.org'>OpenStreetMap Blog</a>,
<a href='%{diary_path}'>user diaries</a>,
<a href='https://blogs.openstreetmap.org/'>community blogs</a>, and
the <a href='https://www.osmfoundation.org/'>OSM Foundation</a> website.
open_data_title: Open Data
open_data_html: |
OpenStreetMap is <i>open data</i>: you are free to use it for any purpose
as long as you credit OpenStreetMap and its contributors. If you alter or
build upon the data in certain ways, you may distribute the result only
under the same licence. See the <a href='%{copyright_path}'>Copyright and
License page</a> for details.
legal_title: Legal
legal_html: |
This site and many other related services are formally operated by the
<a href='https://osmfoundation.org/'>OpenStreetMap Foundation</a> (OSMF)
on behalf of the community. Use of all OSMF operated services is subject
to our <a href="https://wiki.openstreetmap.org/wiki/Acceptable_Use_Policy">
Acceptable Use Policies</a> and our <a href="https://wiki.osmfoundation.org/wiki/Privacy_Policy">Privacy Policy</a>
<br>
Please <a href='https://osmfoundation.org/Contact'>contact the OSMF</a>
if you have licensing, copyright or other legal questions.
<br>
OpenStreetMap, the magnifying glass logo and State of the Map are <a href="https://wiki.osmfoundation.org/wiki/Trademark_Policy">registered trademarks of the OSMF</a>.
partners_title: Partners
index:
js_1: "You are either using a browser that does not support JavaScript, or you have disabled JavaScript."
js_2: "OpenStreetMap uses JavaScript for its slippy map."