]> git.openstreetmap.org Git - rails.git/commitdiff
Have a nice translated alt and title for the sotm and donation.
authorShaun McDonald <shaun@shaunmcdonald.me.uk>
Sun, 31 May 2009 14:51:41 +0000 (14:51 +0000)
committerShaun McDonald <shaun@shaunmcdonald.me.uk>
Sun, 31 May 2009 14:51:41 +0000 (14:51 +0000)
app/views/layouts/site.rhtml
config/locales/en.yml

index 005b6e68e8f2f2287ee7c86d75f5026ce1d714bd..0da605ee207709c77c2a6e5c249c9d48b828903a 100644 (file)
@@ -98,7 +98,7 @@
 
       <% if false %>
       <div id="donate" class="notice">
-        <%= t 'layouts.donate', :link => "<a href=\"http://donate.openstreetmap.org/\">#{donate_link_text}</a>" %>
+        <%= t 'layouts.donate', :link => "<a href=\"http://donate.openstreetmap.org/\">#{t('layouts.donate_link_text')}</a>" %>
       </div>
       <% end %>
 
       </div>
 
       <div id="sotm" class="notice">
-        <%= link_to image_tag("sotm.png", :alt => "State of the Map", :border => "0"), "http://www.stateofthemap.org/" %>
+        <%= link_to image_tag("sotm.png", :alt => t('layouts.sotm'), :title => t('layouts.sotm'), :border => "0"), "http://www.stateofthemap.org/" %>
       </div>
 
       <%= yield :optionals %>
 
       <center>
         <div class="button" style="width: 115px">
-          <a href="http://donate.openstreetmap.org/"><img src="/images/donate.png" border="0" alt="<%= t 'layouts.alt_donation' %>" /></a>
+          <a href="http://donate.openstreetmap.org/"><img src="/images/donate.png" border="0" alt="<%= t 'layouts.alt_donation' %>" title="<%= t 'layouts.alt_donation' %>" /></a>
         </div>
 
         <div id="cclogo" class="button" style="width: 88px">
index a6ea59db63f5fa4572fd57bc3d220af1fbabad7e..ba9170e217b366af269254df10dffebd7c216a23 100644 (file)
@@ -233,7 +233,7 @@ en:
     help_wiki: "Help &amp; Wiki"
     news_blog: "News blog"
     shop: Shop
-    sotm: 'Come to the 2009 OpenStreetMap Conference, <a href="http://www.stateofthemap.org">The State of the Map</a>, July 10-12 in Amsterdam!'
+    sotm: 'Come to the 2009 OpenStreetMap Conference, The State of the Map, July 10-12 in Amsterdam!'
     alt_donation: Make a Donation
   site:
     index: