Lazy translation lookups and key renames for help page.

This commit is contained in:
Andy Allan 2018-04-25 16:48:52 +08:00
parent 7d0a94552c
commit af4003e2ee
2 changed files with 42 additions and 42 deletions

View file

@ -1,18 +1,18 @@
<% content_for :heading do %> <% content_for :heading do %>
<h1><%= t "help_page.title" %></h1> <h1><%= t ".title" %></h1>
<% end %> <% end %>
<p class='introduction'><%= t "help_page.introduction" %></p> <p class='introduction'><%= t ".introduction" %></p>
<% ['welcome', 'beginners_guide', 'help', 'mailing_lists', 'forums', 'irc', 'switch2osm', 'wiki'].each do |site| %> <% ['welcome', 'beginners_guide', 'help', 'mailing_lists', 'forums', 'irc', 'switch2osm', 'wiki'].each do |site| %>
<% unless site == 'welcome' && !current_user %> <% unless site == 'welcome' && !current_user %>
<div class='<%= site %> help-item'> <div class='<%= site %> help-item'>
<h3> <h3>
<a href='<%= t "help_page.#{site}.url" %>'> <a href='<%= t ".#{site}.url" %>'>
<%= t "help_page.#{site}.title" %> <%= t ".#{site}.title" %>
</a> </a>
</h3> </h3>
<p><%= t "help_page.#{site}.description" %></p> <p><%= t ".#{site}.description" %></p>
</div> </div>
<% end %> <% end %>
<% end %> <% end %>

View file

@ -968,43 +968,6 @@ en:
text: Make a Donation text: Make a Donation
learn_more: "Learn More" learn_more: "Learn More"
more: More more: More
help_page:
title: Getting Help
introduction: |
OpenStreetMap has several resources for learning about the project, asking and answering questions,
and collaboratively discussing and documenting mapping topics.
welcome:
url: /welcome
title: Welcome to OSM
description: Start with this quick guide covering the OpenStreetMap basics.
beginners_guide:
url: https://wiki.openstreetmap.org/wiki/Beginners%27_guide
title: Beginners' Guide
description: Community maintained guide for beginners.
help:
url: https://help.openstreetmap.org/
title: help.openstreetmap.org
description: Ask a question or look up answers on OSM's question-and-answer site.
mailing_lists:
url: https://lists.openstreetmap.org/
title: Mailing Lists
description: Ask a question or discuss interesting matters on a wide range of topical or regional mailing lists.
forums:
url: https://forum.openstreetmap.org/
title: Forums
description: Questions and discussions for those that prefer a bulletin board style interface.
irc:
url: https://irc.openstreetmap.org/
title: IRC
description: Interactive chat in many different languages and on many topics.
switch2osm:
url: https://switch2osm.org/
title: switch2osm
description: Help for companies and organisations switching to OpenStreetMap based maps and other services.
wiki:
url: https://wiki.openstreetmap.org/
title: wiki.openstreetmap.org
description: Browse the wiki for in-depth OSM documentation.
notifier: notifier:
diary_comment_notification: diary_comment_notification:
subject: "[OpenStreetMap] %{user} commented on a diary entry" subject: "[OpenStreetMap] %{user} commented on a diary entry"
@ -1416,6 +1379,43 @@ en:
If you have concerns about how our data is being used or about the contents please consult our If you have concerns about how our data is being used or about the contents please consult our
<a href='/copyright'>copyright page</a> for more legal information, or contact the appropriate <a href='/copyright'>copyright page</a> for more legal information, or contact the appropriate
<a href='https://wiki.osmfoundation.org/wiki/Working_Groups'>OSMF working group</a>. <a href='https://wiki.osmfoundation.org/wiki/Working_Groups'>OSMF working group</a>.
help:
title: Getting Help
introduction: |
OpenStreetMap has several resources for learning about the project, asking and answering questions,
and collaboratively discussing and documenting mapping topics.
welcome:
url: /welcome
title: Welcome to OSM
description: Start with this quick guide covering the OpenStreetMap basics.
beginners_guide:
url: https://wiki.openstreetmap.org/wiki/Beginners%27_guide
title: Beginners' Guide
description: Community maintained guide for beginners.
help:
url: https://help.openstreetmap.org/
title: help.openstreetmap.org
description: Ask a question or look up answers on OSM's question-and-answer site.
mailing_lists:
url: https://lists.openstreetmap.org/
title: Mailing Lists
description: Ask a question or discuss interesting matters on a wide range of topical or regional mailing lists.
forums:
url: https://forum.openstreetmap.org/
title: Forums
description: Questions and discussions for those that prefer a bulletin board style interface.
irc:
url: https://irc.openstreetmap.org/
title: IRC
description: Interactive chat in many different languages and on many topics.
switch2osm:
url: https://switch2osm.org/
title: switch2osm
description: Help for companies and organisations switching to OpenStreetMap based maps and other services.
wiki:
url: https://wiki.openstreetmap.org/
title: wiki.openstreetmap.org
description: Browse the wiki for in-depth OSM documentation.
sidebar: sidebar:
search_results: Search Results search_results: Search Results
close: Close close: Close