localize app

This commit is contained in:
Zachary Chai
2016-11-03 17:23:00 -04:00
parent 84fb5c617f
commit bea502a5a2
12 changed files with 91 additions and 65 deletions

View File

@ -1,9 +1,9 @@
<% content_for :title do %>
<div class="title">
Hi Everyone
<%= t('hi_all') %>
</div>
<small>
The session will be taking place using the following URL
<%= t('session_url_explanation') %>
</small>
<% end %>
@ -11,7 +11,7 @@
<% content_for :footer do %>
<div class="panel-footer">
<div class="text-center">
<a href="#" class="generate-link">Click refresh</a> to generate a new meeting URL
<%= t('refresh_html') %>
</div>
</div>
<% end %>
@ -20,7 +20,7 @@
<div class="page-wrapper meetings">
<div class='container-fluid'>
<%= render 'shared/title', title: 'Start A New Session' %>
<%= render 'shared/title', title: t('start_new_session') %>
<%= render layout: 'shared/center_panel' do %>
<div class="center-block col-sm-8">

View File

@ -1,17 +1,17 @@
<% if current_user %>
<% page_title = "Welcome, #{current_user.name.split(' ').first}" %>
<% page_title = t('greet_user', name: current_user.name) %>
<% else %>
<% page_title = "Welcome to #{@user.ownership_name} Meeting Space" %>
<% page_title= t('greet_guest', name: @user.username) %>
<% end %>
<% content_for :title do %>
<div class="title">
<% if current_user == @user %>
Start a new session
<%= t('start_new_session') %>
<% elsif current_user && current_user != @user %>
<%= "Join #{@user.ownership_name} session" %>
<%= t('join_session_user', name: @user.username) %>
<% else %>
Join the current session
<%= t('join_session_guest') %>
<% end %>
</div>
<% end %>
@ -35,8 +35,16 @@
</div>
<div class="table-wrapper">
<h3>Past Recordings</h3>
<table id="recordings" class="table" width="100%"></table>
<h3><%= t('past_recordings') %></h3>
<table id="recordings" class="table" width="100%">
<thead>
<th><%= t('date_recorded') %></th>
<th><%= t('presentation') %></th>
<th><%= t('duration') %></th>
<th><%= t('views') %></th>
<th><%= t('actions') %></th>
</thead>
</table>
</div>
</div>
</div>

View File

@ -1,9 +1,9 @@
<% content_for :title do %>
<div class="title">
Looks like you're the first one here...
<%= t('wait_for_mod_msg') %>
</div>
<small>
You will automatically join when the meeting starts
<%= t('wait_for_mod_explanation') %>
</small>
<% end %>