Permalink
Browse files

localizing some strings that got skipped

  • Loading branch information...
1 parent fe66495 commit 8e5f0346fdc0c6704e1e2a30e484481596caa53e Bruno Bornsztein committed Jul 29, 2008
@@ -194,16 +194,16 @@ def page_title
def add_friend_link(user = nil)
html = "<span class='friend_request' id='friend_request_#{user.id}'>"
- html += link_to_remote "Request friendship!",
+ html += link_to_remote "Request friendship!".l,
{:update => "friend_request_#{user.id}",
:loading => "$$('span#friend_request_#{user.id} span.spinner')[0].show(); $$('span#friend_request_#{user.id} a.add_friend_btn')[0].hide()",
:complete => visual_effect(:highlight, "friend_request_#{user.id}", :duration => 1),
- 500 => "alert('Sorry, there was an error requesting friendship')",
+ 500 => "alert('"+'Sorry, there was an error requesting friendship'.l+"')",
:url => hash_for_user_friendships_url(:user_id => current_user.id, :friend_id => user.id),
:method => :post }, {:class => "add_friend button"}
html += "<span style='display:none;' class='spinner'>"
html += image_tag 'spinner.gif', :plugin => "community_engine"
- html += " Requesting friendship...</span></span>"
+ html += "Requesting friendship".l+" ...</span></span>"
html
end
@@ -2,13 +2,13 @@
.box.first_alt.alt
%h3
Admin Controls
- = link_to( "&raquo; Assume this user's ID", assume_user_path(@user) )
+ = link_to( "&raquo; #{"Assume this user's ID".l}", assume_user_path(@user) )
%br/
- = link_to( "&raquo; Delete this user", user_path(@user), {:method => :delete, :confirm => 'Are you sure you want to permanently delete this user?'} )
+ = link_to( "&raquo; #{'Delete this user'.l}", user_path(@user), {:method => :delete, :confirm => 'Are you sure you want to permanently delete this user?'.l} )
%br/
- = link_to( "&raquo; Toggle #{AppConfig.featured_writer_label}", toggle_featured_user_path(@user), {:method => :put} )
+ = link_to( "&raquo; #{'Toggle'.l} #{AppConfig.featured_writer_label}", toggle_featured_user_path(@user), {:method => :put} )
%br/
- = link_to( "&raquo; Assign role: #{@user.moderator? ? 'member' : 'moderator'}", toggle_moderator_user_path(@user), {:method => :put} )
+ = link_to( "&raquo; #{'Assign role'.l}: #{@user.moderator? ? 'member' : 'moderator'}", toggle_moderator_user_path(@user), {:method => :put} )
#profile_details.box.hentry
%h3
@@ -24,26 +24,26 @@
= image_tag( @user.avatar_photo_url(:medium), :class => "polaroid")
%br
No profile photo?
- = link_to "Click here to upload one!", edit_user_path(@user)
+ = link_to "Click here to upload one!".l, edit_user_path(@user)
- else
= image_tag( @user.avatar_photo_url(:medium), :class => "polaroid" )
- if current_user and current_user.can_request_friendship_with(@user)
= add_friend_link(@user)
- %h3 My Details
+ %h3="My Details".l
.vcard.author
%ul
%li.update
%a{:href=>"#{user_path(@user)}", :rel=>"bookmark"}
%abbr.published{:title=>"#{@user.created_at}"}
- = @user.created_at.strftime("Member since: %m/%d/%y")
+ = "Member since".l + @user.created_at.strftime(": %m/%d/%y")
%li.view
- profile views
+ ="profile views".l
= "(#{@user.view_count})"
- if @user.offerings.any?
- %li.skills= "My skills: #{@user.offerings.collect{|o| link_to o.skill.name, skill_url(o.skill) }.join(', ')}"
+ %li.skills= "My skills".l+": #{@user.offerings.collect{|o| link_to o.skill.name, skill_url(o.skill) }.join(', ')}"
- if @user.tags.any?
- %li.tags= "My tags: #{@user.tags.collect{|t| link_to t.name, tag_url(t.name) }.join(", ")}"
+ %li.tags= "My tags".l+": #{@user.tags.collect{|t| link_to t.name, tag_url(t.name) }.join(", ")}"
- if @user.metro_area
%li.geo= link_to( @user.full_location, users_path(:metro_area_id => @user.metro_area_id, :state_id => @user.state_id, :country_id => @user.country_id ) )
@@ -26,9 +26,9 @@
%h3
="My Friends".l
= link_to "(#{@friend_count})", accepted_user_friendships_path(@user) if @friend_count > 5
- = link_to "&raquo; Invite a friend to #{AppConfig.community_name}", invite_user_path(@user) if @is_current_user
+ = link_to "&raquo; #{'Invite a friend to {site}'.l :site => AppConfig.community_name}", invite_user_path(@user) if @is_current_user
%br
- = link_to "&raquo; View all my friend requests (#{@pending_friendships_count})", pending_user_friendships_path(@user) if @is_current_user
+ = link_to "&raquo; #{'View all my friend requests'.l} (#{@pending_friendships_count})", pending_user_friendships_path(@user) if @is_current_user
%br
%br
- @accepted_friendships.each do |user|
View
@@ -0,0 +1,72 @@
+#en: about_site: About {site}
+about_site: About {site}
+#en: account_activation_error: Account activation failed. Your account may already be active. Try logging in or e-mail {email} for help.
+account_activation_error: Account activation failed. Your account may already be active. Try logging in or e-mail {email} for help.
+#en: all_clippings_tagged: All clippings tagged {tag_name}
+all_clippings_tagged: All clippings tagged {tag_name}
+#en: all_photos_tagged: All photos tagged {tag_name}
+all_photos_tagged: All photos tagged {tag_name}
+#en: all_posts_tagged: All posts tagged {tag_name}
+all_posts_tagged: All posts tagged {tag_name}
+#en: all_users_tagged: All users tagged {tag_name}
+all_users_tagged: All users tagged {tag_name}
+#en: comment_save_error: Your comment couldn't be saved.
+comment_save_error: Your comment couldn't be saved.
+#en: community_tagline: CommunityEngine Rocks!
+community_tagline: CommunityEngine Rocks!
+#en: create: Create
+create: Create
+#en: dashboard_friends: Once you start adding friends, you'll be able to track their activity on {site} here
+dashboard_friends: Once you start adding friends, you'll be able to track their activity on {site} here
+#en: email_signup_thanks: Thanks for signing up! You should receive an e-mail confirmation shortly at {email}
+email_signup_thanks: Thanks for signing up! You should receive an e-mail confirmation shortly at {email}
+#en: explore_site: Explore {site}
+explore_site: Explore {site}
+#en: friendship_requested: Requested friendship with {friend}.
+friendship_requested: Requested friendship with {friend}.
+#en: get_started_banner: Get started with <a href="/">{site}</a> today!
+get_started_banner: Get started with <a href="/">{site}</a> today!
+#en: invite_message: The more people you invite the better {site} becomes.
+invite_message: The more people you invite the better {site} becomes.
+#en: log_in: Log In
+log_in: Log In
+#en: log_in_to_site: Log in to {site}
+log_in_to_site: Log in to {site}
+#en: new_post_for_category: New {category}
+new_post_for_category: New {category}
+#en: no_comments_found: Sorry, we couldn't find any comments for that {type}
+no_comments_found: Sorry, we couldn't find any comments for that {type}
+#en: photo_message: Your profile photo represents you on {site}. You can change it later.
+photo_message: Your profile photo represents you on {site}. You can change it later.
+#en: plural_posts: "{count} posts"
+plural_posts: "{count} posts"
+#en: popular_catgory: Popular {name}
+popular_catgory: Popular {name}
+#en: post_created_for_category: Your '{category}' post was successfully created.
+post_created_for_category: Your '{category}' post was successfully created.
+#en: sb_post_was_deleted: Post '{title}' was deleted.
+sb_post_was_deleted: Post '{title}' was deleted.
+#en: search_users: Search Users
+search_users: Search Users
+#en: show_category: "{category}"
+show_category: "{category}"
+#en: singular_posts: "{count} post"
+singular_posts: "{count} post"
+#en: site_members: "{site} members"
+site_members: "{site} members"
+#en: small_profile: "{user} doesn't have much here yet. Stay tuned."
+small_profile: "{user} doesn't have much here yet. Stay tuned."
+#en: topic_deleted: Topic '{topic}' was deleted.
+topic_deleted: Topic '{topic}' was deleted.
+#en: update: Update
+update: Update
+#en: users_blog: "{user}'s Blog"
+users_blog: "{user}'s Blog"
+#en: users_photos: "{user}'s Photos"
+users_photos: "{user}'s Photos"
+#en: walkthrough_complete: You've completed the {site} walk-through. Now you can continue exploring!
+walkthrough_complete: You've completed the {site} walk-through. Now you can continue exploring!
+#en: welcome_message: Welcome! {login_link} or {signup_link}
+welcome_message: Welcome! {login_link} or {signup_link}
+#en: write_new_post: Write a '{category}' post
+write_new_post: Write a '{category}' post
Oops, something went wrong.

0 comments on commit 8e5f034

Please sign in to comment.