Enable localization of the copyright page

The copyright page introduced in ecbd526 wasn't localize-able. Rectify
that with a page that:

   * Displays a header in non-English languages indicating that the
     version you're looking at isn't canonical.

   * Links back to the local version from the English one in a
     non-English locale.

Additionally I fixed a regression with the cc_button.png. It now has a
meaningful alt="" text again.
This commit is contained in:
Ævar Arnfjörð Bjarmason 2010-04-26 18:00:02 +00:00
parent a97ae09d2a
commit 7561eacbf4
3 changed files with 214 additions and 47 deletions

View file

@ -1,49 +1,45 @@
<p style="float: right"><a href="http://creativecommons.org/licenses/by-sa/2.0/"><img src="/images/cc_button.png" border="0" alt="" /></a></p>
<p style="float: right">
<%= link_to(
image_tag("cc_button.png",
:alt => t('layouts.license.alt'),
:border => 0,
:width => 88,
:height => 31,
:title => t('layouts.license.title')),
"http://creativecommons.org/licenses/by-sa/2.0/",
{ :rel => "license" }) %>
</p>
<h2>Copyright and License</h2>
<% if I18n.locale.to_s == "en" or params['locale'] == 'en' %>
<!-- Maybe ease foreigners back to their native page -->
<% if params['orig_locale'] and params['orig_locale'] != params['locale'] %>
<h2><%= t 'license_page.native.title' %></h2>
<p>
<%= t 'license_page.native.text',
:native_link => link_to(t('license_page.native.native_link'),
:controller => 'site',
:action => 'copyright'),
:mapping_link => link_to(t('license_page.native.mapping_link'),
:controller => 'site',
:action => 'index') %>
</p>
<hr />
<% end %>
<p>OpenStreetMap is <i>open data</i>, licensed under the <a href="http://creativecommons.org/licenses/by-sa/2.0/">Creative Commons Attribution-ShareAlike 2.0</a> licence (CC-BY-SA).</p>
<p>You are free to copy, distribute, transmit and adapt our maps and data, as long as you credit OpenStreetMap and its contributors. If you alter or build upon our maps or data, you may distribute the result only under the same or similar licence. The full <a href="http://creativecommons.org/licenses/by-sa/2.0/legalcode">legal code</a> explains your rights and responsibilities.</p>
<h3>How to credit OpenStreetMap</h3>
<p>If you are using OpenStreetMap map images, we request that your credit reads at least &ldquo;&copy; OpenStreetMap contributors, CC-BY-SA&rdquo;. If you are using map data only, we request &ldquo;Map data &copy; OpenStreetMap contributors, CC-BY-SA&rdquo;.</p>
<p>Where possible, OpenStreetMap should be hyperlinked to <a href="http://www.openstreetmap.org/">http://www.openstreetmap.org/</a> and CC-BY-SA to <a href="http://creativecommons.org/licenses/by-sa/2.0/">http://creativecommons.org/licenses/by-sa/2.0/</a>. If you are using a medium where links are not possible (e.g. a printed work), we suggest you direct your readers to www.openstreetmap.org (perhaps by expanding &lsquo;OpenStreetMap&rsquo; to this full address) and to www.creativecommons.org.</p>
<h3>Finding out more</h3>
<p>Read more about using our data at the <a href="http://wiki.openstreetmap.org/wiki/Legal_FAQ">Legal FAQ</a>.
<p>OSM contributors are reminded never to add data from any copyrighted sources (e.g. Google Maps or printed maps) without explicit permission from the copyright holders.</p>
<p>Although OpenStreetMap is open data, we cannot provide a free-of-charge map API for third-party developers. See our <a href="http://wiki.openstreetmap.org/wiki/API_usage_policy">API Usage Policy</a>, <a href="http://wiki.openstreetmap.org/wiki/Tile_usage_policy">Tile Usage Policy</a> and <a href="http://wiki.openstreetmap.org/wiki/Nominatim#Usage_Policy">Nominatim Usage Policy</a>.
<h3>Our contributors</h3>
<p>Our CC-BY-SA licence requires you to &ldquo;give the Original Author credit reasonable to the medium or means You are utilising&rdquo;. Individual OSM mappers do not request a credit over and above that to &ldquo;OpenStreetMap contributors&rdquo;, but where data from a national mapping agency or other major source has been included in OpenStreetMap, it may be reasonable to credit them by directly reproducing their credit or by linking to it on this page.</p>
<!--
Information for page editors
The following lists only those organisations who require attribution as a condition of their data being used in OpenStreetMap. It is not a general catalogue of imports, and must not be used except when attribution is required to comply with the licence of the imported data.
Any additions here must be discussed with OSM sysadmins first.
-->
<ul id="contributors">
<li><strong>Australia</strong>: Contains suburb data based on Australian Bureau of Statistics data.
<li><strong>Canada</strong>: Contains data from GeoBase&reg;, GeoGratis (&copy; Department of Natural Resources Canada), CanVec (&copy; Department of Natural Resources Canada), and StatCan (Geography Division, Statistics Canada).
<li><strong>New Zealand</strong>: Contains data sourced from Land Information New Zealand. Crown Copyright reserved.
<li><strong>United Kingdom</strong>: Contains Ordnance Survey data &copy; Crown copyright and database right 2010.
</ul>
<p>Inclusion of data in OpenStreetMap does not imply that the original data provider endorses OpenStreetMap, provides any warranty, or accepts any liability.</p>
<%= t('license_page.legal_babble', :locale => 'en') %>
<% else %>
<!-- Maybe note that this page has been translated -->
<% if t('license_page.legal_babble') != t('license_page.legal_babble', :locale => 'en') %>
<h2><%= t 'license_page.foreign.title' %></h2>
<p>
<%= t 'license_page.foreign.text',
:english_original_link => link_to(t('license_page.foreign.english_link'),
:controller => 'site',
:action => 'copyright',
:locale => 'en',
:orig_locale => I18n.locale.to_s) %>
</p>
<hr />
<% end %>
<%= t('license_page.legal_babble') %>
<% end %>

View file

@ -937,6 +937,141 @@ en:
make_a_donation:
title: Support OpenStreetMap with a monetary donation
text: Make a Donation
license_page:
foreign:
title: About this translation
text: |
In the event of a conflict between this translated page and
{{english_original_link}}, the English page shall take
precedence
english_link: the English original
native:
title: About this page
text: |
You are viewing the English version of the copyright page. You
can go back to the {{native_link}} of this page; Or you can
stop reading about copyright and {{mapping_link}}.
native_link: THIS_LANGUAGE_NAME_HERE version
mapping_link: start mapping
legal_babble: |
<h2>Copyright and License</h2>
<p>
OpenStreetMap is <i>open data</i>, licensed under the <a
href="http://creativecommons.org/licenses/by-sa/2.0/">Creative
Commons Attribution-ShareAlike 2.0</a> licence (CC-BY-SA).
</p>
<p>
You are free to copy, distribute, transmit and adapt our maps
and data, as long as you credit OpenStreetMap and its
contributors. If you alter or build upon our maps or data, you
may distribute the result only under the same or similar
licence. The full <a
href="http://creativecommons.org/licenses/by-sa/2.0/legalcode">legal
code</a> explains your rights and responsibilities.
</p>
<h3>How to credit OpenStreetMap</h3>
<p>
If you are using OpenStreetMap map images, we request that
your credit reads at least &ldquo;&copy; OpenStreetMap
contributors, CC-BY-SA&rdquo;. If you are using map data only,
we request &ldquo;Map data &copy; OpenStreetMap contributors,
CC-BY-SA&rdquo;.
</p>
<p>
Where possible, OpenStreetMap should be hyperlinked to <a
href="http://www.openstreetmap.org/">http://www.openstreetmap.org/</a>
and CC-BY-SA to <a
href="http://creativecommons.org/licenses/by-sa/2.0/">http://creativecommons.org/licenses/by-sa/2.0/</a>. If
you are using a medium where links are not possible (e.g. a
printed work), we suggest you direct your readers to
www.openstreetmap.org (perhaps by expanding
&lsquo;OpenStreetMap&rsquo; to this full address) and to
www.creativecommons.org.
</p>
<h3>Finding out more</h3>
<p>
Read more about using our data at the <a
href="http://wiki.openstreetmap.org/wiki/Legal_FAQ">Legal
FAQ</a>.
</p>
<p>
OSM contributors are reminded never to add data from any
copyrighted sources (e.g. Google Maps or printed maps) without
explicit permission from the copyright holders.
</p>
<p>
Although OpenStreetMap is open data, we cannot provide a
free-of-charge map API for third-party developers.
See our <a href="http://wiki.openstreetmap.org/wiki/API_usage_policy">API Usage Policy</a>,
<a href="http://wiki.openstreetmap.org/wiki/Tile_usage_policy">Tile Usage Policy</a>
and <a href="http://wiki.openstreetmap.org/wiki/Nominatim#Usage_Policy">Nominatim Usage Policy</a>.
</p>
<h3>Our contributors</h3>
<p>
Our CC-BY-SA licence requires you to &ldquo;give the Original
Author credit reasonable to the medium or means You are
utilising&rdquo;. Individual OSM mappers do not request a
credit over and above that to &ldquo;OpenStreetMap
contributors&rdquo;, but where data from a national mapping
agency or other major source has been included in
OpenStreetMap, it may be reasonable to credit them by directly
reproducing their credit or by linking to it on this page.
</p>
<!--
Information for page editors
The following lists only those organisations who require attribution
as a condition of their data being used in OpenStreetMap. It is not a
general catalogue of imports, and must not be used except when
attribution is required to comply with the licence of the imported
data.
Any additions here must be discussed with OSM sysadmins first.
-->
<ul id="contributors">
<li><strong>Australia</strong>: Contains suburb data based
on Australian Bureau of Statistics data.</li>
<li><strong>Canada</strong>: Contains data from
GeoBase&reg;, GeoGratis (&copy; Department of Natural
Resources Canada), CanVec (&copy; Department of Natural
Resources Canada), and StatCan (Geography Division,
Statistics Canada).</li>
<li><strong>New Zealand</strong>: Contains data sourced from
Land Information New Zealand. Crown Copyright reserved.</li>
<li><strong>United Kingdom</strong>: Contains Ordnance
Survey data &copy; Crown copyright and database right
2010.</li>
</ul>
<p>
Inclusion of data in OpenStreetMap does not imply that the original
data provider endorses OpenStreetMap, provides any warranty, or
accepts any liability.
</p>
notifier:
diary_comment_notification:
subject: "[OpenStreetMap] {{user}} commented on your diary entry"

View file

@ -573,6 +573,42 @@ is:
view_tooltip: Kortasýn
welcome_user: Hæ {{user_link}}
welcome_user_link_tooltip: Notandasíðan þín
license_page:
foreign:
title: Um þessa þýðingu
text: |
Stangist þessi þýðing á við {{english_original_link}} gildir
hin síðari fram yfir íslenskuna.
english_link: ensku útgáfuna
native:
title: Um þessa síðu
text: |
Þú ert að skoða höfundaréttarsíðuna á frummálinu. Þú getur
lesið þessa útgáfu, farið aftur á {{native_link}}, eða hætt
þessu lagabulli og {{mapping_link}}.
native_link: íslensku útgáfuna
mapping_link: farið að kortleggja
legal_babble: |
<h2>Höfundaréttur og leyfi</h2>
<p>
OpenStreetMap er <i>frjáls kortagrunnur</i> undir <a
href="http://creativecommons.org/licenses/by-sa/2.0/">Creative
Commons Attribution-ShareAlike 2.0</a> leyfinu. (CC-BY-SA).
</p>
<h2>Frekari upplýsingar</h2>
<p>
Frekari upplýsingar má nálgast <a
href="/copyright?locale=en&orig_locale=is">í ensku útgáfu</a>
þessa skjals.
</p>
message:
delete:
deleted: Skilaboðunum var eytt