Added localization to aspect views
This commit is contained in:
parent
a0a207d0b8
commit
443b5af4ce
5 changed files with 81 additions and 7 deletions
|
|
@ -9,4 +9,4 @@
|
|||
%p
|
||||
= f.label :name
|
||||
= f.text_field :name
|
||||
= f.submit 'create', :class => 'button'
|
||||
= f.submit t('.create'), :class => 'button'
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
|
||||
- content_for :page_title do
|
||||
= link_to "photos", albums_path(:aspect => @aspect)
|
||||
= link_to t('.photos'), albums_path(:aspect => @aspect)
|
||||
|
||||
|
||||
- content_for :left_pane do
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
%ul
|
||||
|
||||
- content_for :publish do
|
||||
= link_to("add a new aspect", "#add_aspect_pane", :id => "add_aspect_button", :class => "new_aspect button", :title => "Add a new aspect")
|
||||
= link_to(t('.add_a_new_aspect'), "#add_aspect_pane", :id => "add_aspect_button", :class => "new_aspect button", :title => t('.add_a_new_aspect'))
|
||||
|
||||
|
||||
|
||||
|
|
@ -37,9 +37,9 @@
|
|||
%h1{:contenteditable => true}= aspect.name
|
||||
|
||||
.tools
|
||||
= link_to "add a new friend", "#add_request_pane_#{aspect.id}", :class => 'add_request_button'
|
||||
= link_to t('.add_a_new_friend'), "#add_request_pane_#{aspect.id}", :class => 'add_request_button'
|
||||
|
|
||||
= link_to "show", aspect_path(aspect)
|
||||
= link_to t('.show'), aspect_path(aspect)
|
||||
|
||||
%ul{:id => aspect.id}
|
||||
|
||||
|
|
@ -59,6 +59,6 @@
|
|||
|
||||
%p
|
||||
%br
|
||||
= link_to 'Update Aspects', '#', :class => 'button', :id => "move_friends_link"
|
||||
= link_to t('.update_aspects'), '#', :class => 'button', :id => "move_friends_link"
|
||||
|
||||
#content_bottom
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
|
||||
- content_for :page_title do
|
||||
= link_to "photos", albums_path(:aspect => @aspect)
|
||||
= link_to t('.photos'), albums_path(:aspect => @aspect)
|
||||
|
||||
- content_for :left_pane do
|
||||
= render "shared/aspect_friends"
|
||||
|
|
|
|||
|
|
@ -8,3 +8,77 @@
|
|||
|
||||
en:
|
||||
hello: "Hello world"
|
||||
layouts:
|
||||
application:
|
||||
edit_profile: "edit profile"
|
||||
logout: "logout"
|
||||
shared:
|
||||
aspect_nav:
|
||||
all_aspects: "All Aspects"
|
||||
manage: "Manage"
|
||||
manage_your_aspects: "Manage your Aspects"
|
||||
sub_header:
|
||||
all_aspects: "All Aspects"
|
||||
manage_aspects: "Manage Aspects"
|
||||
publisher:
|
||||
share: "Share"
|
||||
albums:
|
||||
album:
|
||||
you: "you"
|
||||
new_album:
|
||||
create: "create"
|
||||
add_a_new_album: "Add a new album"
|
||||
show:
|
||||
edit_album: "Edit Album"
|
||||
albums: "albums"
|
||||
updated: "updated"
|
||||
by: "by"
|
||||
edit:
|
||||
editing: "Editing"
|
||||
updated: "updated"
|
||||
are_you_sure: "Are you sure?"
|
||||
delete_album: "Delete Album"
|
||||
cancel: "Cancel"
|
||||
index:
|
||||
home: "home"
|
||||
new_album: "New Album"
|
||||
aspects:
|
||||
index:
|
||||
photos: "photos"
|
||||
show:
|
||||
photos: "photos"
|
||||
manage:
|
||||
add_a_new_aspect: "Add a new aspect"
|
||||
add_a_new_friend: "Add a new friend"
|
||||
show: "Show"
|
||||
update_aspects: "Update Aspects"
|
||||
new_aspect:
|
||||
create: "Create"
|
||||
users:
|
||||
edit:
|
||||
cancel: "Cancel"
|
||||
update_profile: "Update Profile"
|
||||
home: "Home"
|
||||
diaspora_username: "DIASPORA USERNAME"
|
||||
info: "Info"
|
||||
picture: "Picture"
|
||||
editing_profile: "Editing profile"
|
||||
albums: "Albums"
|
||||
comments:
|
||||
comment:
|
||||
ago: "ago"
|
||||
new_comment:
|
||||
comment: "Comment"
|
||||
photos:
|
||||
show:
|
||||
prev: "prev"
|
||||
full_size: "full size"
|
||||
next: "next"
|
||||
edit_photo: "Edit Photo"
|
||||
delete_photo: "Delete Photo"
|
||||
are_you_sure: "Are you sure?"
|
||||
comments: "comments"
|
||||
edit:
|
||||
editing: "Editing"
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue