]> git.openstreetmap.org Git - rails.git/blob - app/views/site/copyright.html.erb
Use with_locale for the copyright page
[rails.git] / app / views / site / copyright.html.erb
1 <% content_for :heading do %>
2 <% if @locale == "en" %>
3   <!-- Maybe ease foreigners back to their native page -->
4
5     <% if t(".legal_babble", :locale => I18n.locale) != t(".legal_babble", :locale => :en) %>
6       <%= tag.div :lang => @locale, :dir => t("html.dir", :locale => @locale) do %>
7         <h1><%= t ".native.title" %></h1>
8         <p>
9           <%= t ".native.html",
10                 :native_link => link_to(t(".native.native_link"),
11                                         :controller => "site",
12                                         :action => "copyright",
13                                         :copyright_locale => nil),
14                 :mapping_link => link_to(t(".native.mapping_link"),
15                                          :controller => "site",
16                                          :action => "index") %>
17         </p>
18       <% end %>
19       <hr />
20     <% end %>
21   <% else %>
22     <!-- Maybe note that this page has been translated -->
23     <% if t(".legal_babble", :locale => @locale) != t(".legal_babble", :locale => :en) %>
24       <%= tag.div :lang => "en", :dir => t("html.dir", :locale => "en") do %>
25         <h1><%= t ".foreign.title" %></h1>
26         <p>
27           <%= t ".foreign.html",
28                 :english_original_link => link_to(t(".foreign.english_link"),
29                                                   :controller => "site",
30                                                   :action => "copyright",
31                                                   :copyright_locale => "en") %>
32         </p>
33       <% end %>
34       <hr />
35     <% end %>
36   <% end %>
37
38   <% I18n.with_locale @locale do %>
39     <%= tag.h1 :lang => @locale, :dir => t("html.dir") do %>
40       <%= t ".legal_babble.title_html" %>
41     <% end %>
42   <% end %>
43
44 <% end %>
45
46 <% I18n.with_locale @locale do %>
47   <%= tag.div :lang => @locale, :dir => t("html.dir") do %>
48     <p><%= t ".legal_babble.intro_1_html" %></p>
49     <p><%= t ".legal_babble.intro_2_html" %></p>
50     <p><%= t ".legal_babble.intro_3_1_html" %></p>
51
52     <h3><%= t ".legal_babble.credit_title_html" %></h3>
53     <p><%= t ".legal_babble.credit_1_html" %></p>
54     <p><%= t ".legal_babble.credit_2_1_html" %></p>
55     <p><%= t ".legal_babble.credit_3_1_html" %></p>
56     <p><%= t ".legal_babble.credit_4_html" %></p>
57     <p><%= image_tag("attribution_example.png",
58                      :alt => t(".legal_babble.attribution_example.alt"),
59                      :border => 0,
60                      :title => t(".legal_babble.attribution_example.title")) %></p>
61
62     <h3><%= t ".legal_babble.more_title_html" %></h3>
63     <p><%= t ".legal_babble.more_1_html" %></p>
64     <p><%= t ".legal_babble.more_2_html" %></p>
65
66     <h3><%= t ".legal_babble.contributors_title_html" %></h3>
67     <p><%= t ".legal_babble.contributors_intro_html" %></p>
68     <ul id="contributors">
69       <li><%= t ".legal_babble.contributors_at_html" %></li>
70       <li><%= t ".legal_babble.contributors_au_html" %></li>
71       <li><%= t ".legal_babble.contributors_ca_html" %></li>
72       <li><%= t ".legal_babble.contributors_fi_html" %></li>
73       <li><%= t ".legal_babble.contributors_fr_html" %></li>
74       <li><%= t ".legal_babble.contributors_nl_html" %></li>
75       <li><%= t ".legal_babble.contributors_nz_html" %></li>
76       <li><%= t ".legal_babble.contributors_si_html" %></li>
77       <li><%= t ".legal_babble.contributors_es_html" %></li>
78       <li><%= t ".legal_babble.contributors_za_html" %></li>
79       <li><%= t ".legal_babble.contributors_gb_html" %></li>
80     </ul>
81     <p><%= t ".legal_babble.contributors_footer_1_html" %></p>
82     <p><%= t ".legal_babble.contributors_footer_2_html" %></p>
83
84     <h3><%= t ".legal_babble.infringement_title_html" %></h3>
85     <p><%= t ".legal_babble.infringement_1_html" %></p>
86     <p><%= t ".legal_babble.infringement_2_html" %></p>
87
88     <h3><%= t ".legal_babble.trademarks_title_html" %></h3>
89     <p><%= t ".legal_babble.trademarks_1_html" %></p>
90   <% end %>
91 <% end %>