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

@ -17,22 +17,22 @@
<!-- Header -->
<div class='header'>
<span class="logo-wrapper pull-left">
<%= link_to image_tag("bbb-logo.png", :alt => "BigBlueButton Demo", :class => "logo"), root_path %>
<%= link_to image_tag("bbb-logo.png", :alt => "BigBlueButton", :class => "logo"), root_path %>
</span>
<span class="signup pull-right">
<% if current_user %>
<%= current_user.name %> |
<% if current_user.username %>
<%= link_to 'my room', current_user.room_url %> |
<%= link_to t('my_room'), current_user.room_url %> |
<% else %>
<%= link_to 'my room', edit_user_path(current_user) %> |
<%= link_to t('my_room'), edit_user_path(current_user) %> |
<% end %>
<%= link_to 'logout', user_logout_url %>
<%= link_to t('logout'), user_logout_url %>
<% elsif @user %>
Are you <%= @user.username %> ? |
<%= link_to 'login', "/auth/#{@user.provider}" %>
<%= t('are_you', name: @user.username) %> |
<%= link_to t('login'), "/auth/#{@user.provider}" %>
<% else %>
Signup for customized sessions
<%= t('oauth_signup') %>
<%= link_to('/auth/twitter', :class => "btn icon btn-lg btn-social-icon btn-twitter") do %>
<span class="fa fa-twitter"></span>
<% end %>
@ -48,7 +48,7 @@
<!-- Footer -->
<div class='footer text-center'>
Powered by BigBlueButton
<%= t('powered_bigbluebutton') %>
</div>
<!-- End of Footer -->
</body>