Added localization to layouts and shared views
This commit is contained in:
parent
a673257eef
commit
51b6ce9dfb
4 changed files with 7 additions and 7 deletions
|
|
@ -50,8 +50,8 @@
|
||||||
= text_field_tag 'q'
|
= text_field_tag 'q'
|
||||||
|
|
||||||
%li= link_to current_user.real_name, current_user.person
|
%li= link_to current_user.real_name, current_user.person
|
||||||
%li= link_to "edit profile", edit_user_path(current_user)
|
%li= link_to t('.edit_profile'), edit_user_path(current_user)
|
||||||
%li= link_to "logout", destroy_user_session_path
|
%li= link_to t('.logout.'), destroy_user_session_path
|
||||||
|
|
||||||
= render "shared/aspect_nav"
|
= render "shared/aspect_nav"
|
||||||
= render "shared/sub_header"
|
= render "shared/sub_header"
|
||||||
|
|
|
||||||
|
|
@ -11,10 +11,10 @@
|
||||||
|
|
||||||
%ul{ :style => "position:absolute;right:0;bottom:0.01em;"}
|
%ul{ :style => "position:absolute;right:0;bottom:0.01em;"}
|
||||||
%li{:class => ("selected" if @aspect == :all)}
|
%li{:class => ("selected" if @aspect == :all)}
|
||||||
= link_to "All Aspects", root_url
|
= link_to t('.all_aspects'), root_url
|
||||||
|
|
||||||
%li{ :style => "margin-right:0;", :class => ("selected" if @aspect == :manage)}
|
%li{ :style => "margin-right:0;", :class => ("selected" if @aspect == :manage)}
|
||||||
= link_to ( (@request_count == 0)? "manage" : "manage (#{@request_count})"), {:controller => :aspects, :action => :manage}, :class => "edit_aspect_button", :class => new_request(@request_count), :title => "Manage your Aspects"
|
= link_to ( (@request_count == 0)? t('.manage') : "#{t('.manage')} (#{@request_count})"), {:controller => :aspects, :action => :manage}, :class => "edit_aspect_button", :class => new_request(@request_count), :title => t('.manage_your_aspects')
|
||||||
|
|
||||||
.yo{ :style => "display:none;"}
|
.yo{ :style => "display:none;"}
|
||||||
#add_aspect_pane
|
#add_aspect_pane
|
||||||
|
|
|
||||||
|
|
@ -19,4 +19,4 @@
|
||||||
= check_box_tag("aspect_ids[]", aspect.id, @aspect == :all || current_aspect?(aspect) )
|
= check_box_tag("aspect_ids[]", aspect.id, @aspect == :all || current_aspect?(aspect) )
|
||||||
= aspect.name
|
= aspect.name
|
||||||
|
|
||||||
= f.submit "Share"
|
= f.submit t('.share')
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,9 @@
|
||||||
- else
|
- else
|
||||||
%h1
|
%h1
|
||||||
- if @aspect == :all
|
- if @aspect == :all
|
||||||
= link_to "All Aspects", root_path
|
= link_to t('.all_aspects'), root_path
|
||||||
- elsif @aspect == :manage
|
- elsif @aspect == :manage
|
||||||
= link_to "Manage Aspects", root_path
|
= link_to t('.manage_aspects'), root_path
|
||||||
- else
|
- else
|
||||||
= link_to @aspect.name, @aspect
|
= link_to @aspect.name, @aspect
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue