]> git.openstreetmap.org Git - rails.git/commitdiff
Add a tooltip to help & wiki/news blog/shop/map key
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sun, 7 Jun 2009 20:33:13 +0000 (20:33 +0000)
committerÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sun, 7 Jun 2009 20:33:13 +0000 (20:33 +0000)
app/views/layouts/site.rhtml
app/views/site/_key.rhtml
config/locales/en.yml

index f3b310d895f71843dbd147c0a5d355b6145a690f..ae16bbf99b2822fe23d2432eac8a4106d46964d1 100644 (file)
       <% end %>
 
       <div id="left_menu" class="left_menu">
-        <a href="<%= t 'layouts.help_wiki_url' %>"><%= t 'layouts.help_wiki' %></a><br />
-        <a href="http://www.opengeodata.org/"><%= t 'layouts.news_blog' %></a><br />
-        <a href="<%= t 'layouts.shop_url' %>"><%= t 'layouts.shop' %></a><br />
+        <a href="<%= t 'layouts.help_wiki_url' %>" title="<%= t 'layouts.help_wiki_tooltip' %>"><%= t 'layouts.help_wiki' %></a><br />
+        <a href="http://www.opengeodata.org" title="<%= t 'layouts.news_blog_tooltip' %>"><%= t 'layouts.news_blog' %></a><br />
+        <a href="<%= t 'layouts.shop_url' %>" title="<%= t 'layouts.shop_tooltip' %>"><%= t 'layouts.shop' %></a><br />
         <%= yield :left_menu %>
       </div>
 
index bf795478361bbf1207722bcd3c42b8f3e7301a54..f01cb67dd2fd8466ba6ab000b9e56afef49d5aa6 100644 (file)
@@ -1,5 +1,5 @@
 <% content_for :left_menu do %>
-<%= link_to_function t('site.key.map_key'), "showKey();" %>
+<%= link_to_function t('site.key.map_key'), "showKey();", { :title => t('site.key.map_key_tooltip') } %>
 <% end %>
 
 <script type="text/javascript">
index 5218bd71461708c64724a40578659ad9866837d8..b9dcea3ed119a62f4c67d8b5196530c5b80475ed 100644 (file)
@@ -368,9 +368,12 @@ en:
     donate: "Support OpenStreetMap by {{link}} to the Hardware Upgrade Fund."
     donate_link_text: donating
     help_wiki: "Help &amp; Wiki"
+    help_wiki_tooltip: "Help &amp; Wiki site for the project"
     help_wiki_url: "http://wiki.openstreetmap.org"
     news_blog: "News blog"
+    news_blog_tooltip: "News blog about OpenStreetMap, free geographical data, etc."
     shop: Shop
+    shop_tooltip: Shop with branded OpenStreetMap 
     shop_url: http://wiki.openstreetmap.org/wiki/Merchandise
     sotm: 'Come to the 2009 OpenStreetMap Conference, The State of the Map, July 10-12 in Amsterdam!'
     alt_donation: Make a Donation
@@ -558,6 +561,7 @@ en:
       search_help: "examples: 'Alkmaar', 'Regent Street, Cambridge', 'CB2 5AQ', or 'post offices near Lünen' <a href='http://wiki.openstreetmap.org/wiki/Search'>more examples...</a>"
     key:
       map_key: "Map key"
+      map_key_tooltip: "Map key for the mapnik rendering at this zoom level"
   trace:
     create:
       upload_trace: "Upload GPS Trace"