Skip to content

Commit

Permalink
translate frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
minktom committed Nov 22, 2012
1 parent 119fcdc commit 7ba59aa
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/views/refinery/calendar/events/show.html.erb
Expand Up @@ -3,18 +3,18 @@
<% end %> <% end %>
<% content_for :body_content_left do %> <% content_for :body_content_left do %>
<h4>Event details</h4> <h4><%= t('.details', default: 'Event Details') %></h4>
<h5><%= @event.venue_name %></h5> <h5><%= @event.venue_name %></h5>


<p>From <%= @event.from.strftime('%B %d, %Y %I:%M%p') %> to <p><%= t('.from', default: 'From') %> <%= @event.from.strftime('%B %d, %Y %I:%M%p') %><br>
<br><%= @event.to.strftime('%B %d, %Y %I:%M%p') %></p> <%= t('.to', default: 'To') %> <%= @event.to.strftime('%B %d, %Y %I:%M%p') %></p>


<% if @event.registration_link.present? %> <% if @event.registration_link.present? %>
<p><%= link_to 'Register for this event', @event.registration_link %></p> <p><%= link_to t('.register', default: 'Register for this event'), @event.registration_link %></p>
<% end -%> <% end -%>
<% if @event.venue_address.present? %> <% if @event.venue_address.present? %>
<p><%= link_to 'View it on a map', "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=#{CGI::escape(@event.venue.address)}&ie=UTF8&z=16" %></p> <p><%= link_to t('.view_on_map', default: 'View it on a map'), "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=#{CGI::escape(@event.venue.address)}&ie=UTF8&z=16" %></p>
<% end -%> <% end -%>


<div class="event_description"> <div class="event_description">
Expand Down
5 changes: 5 additions & 0 deletions config/locales/en.yml
Expand Up @@ -44,6 +44,11 @@ en:
other: Other Venues other: Other Venues
events: events:
show: show:
details: 'Event Details'
from: 'From'
to: 'To'
register: 'Register for this event'
view_on_map: 'View it on a map'
other: Other Events other: Other Events
activerecord: activerecord:
attributes: attributes:
Expand Down
5 changes: 5 additions & 0 deletions config/locales/hu.yml
Expand Up @@ -42,6 +42,11 @@ hu:
other: További Helyek other: További Helyek
events: events:
show: show:
details: 'Esemény Adatai'
from: 'Kezdete:'
to: 'Vége:'
register: 'Regisztráció az eseményre'
view_on_map: 'Megtekintés térképen'
other: További Események other: További Események
activerecord: activerecord:
attributes: attributes:
Expand Down

0 comments on commit 7ba59aa

Please sign in to comment.