diff --git a/app/views/settings/index.html.erb b/app/views/settings/index.html.erb index 2d11ef0..73d800a 100644 --- a/app/views/settings/index.html.erb +++ b/app/views/settings/index.html.erb @@ -1,9 +1,9 @@
- View Profile + <%= t('.viewprofile') %>
- Account Settings + <%= t('.accountsettings') %>
<%= form_for @edit_user, :url => settings_path, :method => :post, @@ -11,7 +11,7 @@ <%= error_messages_for f.object %>
- <%= f.label :username, "Username:", :class => "required" %> + <%= f.label :username, t('.username'), :class => "required" %> <%= f.text_field :username, :size => 15 %> <%= User.username_regex %> @@ -19,27 +19,27 @@
- <%= f.label :password, "New Password:", :class => "required" %> + <%= f.label :password, t('.password'), :class => "required" %> <%= f.password_field :password, :size => 40, :autocomplete => "off" %>
- <%= f.label :password_confirmation, "Confirm Password:", + <%= f.label :password_confirmation, t('.confirmpassword'), :class => "required" %> <%= f.password_field :password_confirmation, :size => 40, :autocomplete => "off" %>
- <%= f.label :email, "E-mail Address:", :class => "required" %> + <%= f.label :email, t('.emailaddress'), :class => "required" %> <%= f.text_field :email, :size => 40 %> - Gravatar'ized + <%= raw(t('.gravatarized')) %>
- <%= f.label :about, "About:", :class => "required" %> + <%= f.label :about, t('.about'), :class => "required" %> <%= f.text_area :about, :size => "100x5", :style => "width: 600px;" %>
@@ -47,7 +47,7 @@
- Markdown formatting available + <%= t('.markdownformattingavailable') %>
@@ -57,96 +57,96 @@

- <%= f.submit "Save Account Settings" %> + <%= f.submit t('.saveaccountsettings') %>


- Notification Settings + <%= t('.notificationsettings') %>
<%= f.label :pushover_user_key, - raw("Pushover:"), + raw(t(".pushover")), :class => "required" %> <%= link_to((f.object.pushover_user_key.present?? - "Manage Pushover Subscription" : "Subscribe With Pushover"), + t('.managepushoversubscription') : t('.subscribewithpushover')), "/settings/pushover", :class => "pushover_button", :method => :post) %> - For optional comment and message notifications below + <%= t('.foroptionalcomment') %>

- Comment Reply Notification Settings + <%= t('.commentreplynotificationsettings') %>
- <%= f.label :email_replies, "Receive E-mail:", :class => "required" %> + <%= f.label :email_replies, t('.receiveemail'), :class => "required" %> <%= f.check_box :email_replies %>
- <%= f.label :pushover_replies, "Receive Pushover Alert:", + <%= f.label :pushover_replies, t('.receivepushover'), :class => "required" %> <%= f.check_box :pushover_replies %> - Requires Pushover subscription above + <%= t('.requirepushover') %>

- Comment Mention Notification Settings + <%= t('.commentmentionnotificationsettings') %>
- <%= f.label :email_mentions, "Receive E-mail:", :class => "required" %> + <%= f.label :email_mentions, t('.receiveemail'), :class => "required" %> <%= f.check_box :email_mentions %>
- <%= f.label :pushover_mentions, "Receive Pushover Alert:", + <%= f.label :pushover_mentions, t('.receivepushover'), :class => "required" %> <%= f.check_box :pushover_mentions %> - Requires Pushover subscription above + <%= t('.requirepushover') %>

- Private Message Notification Settings + <%= t('.privatemessagenotificationsettings') %>
- <%= f.label :email_messages, "Receive E-mail:", :class => "required" %> + <%= f.label :email_messages, t('.receiveemail'), :class => "required" %> <%= f.check_box :email_messages %>
- <%= f.label :pushover_messages, "Receive Pushover Alert:", + <%= f.label :pushover_messages, t('.receivepushover'), :class => "required" %> <%= f.check_box :pushover_messages %> - Requires Pushover subscription above + <%= t('.requirepushover') %>

- Submitted Story Comment Settings + <%= t('.submittedstorycommentsettings') %>
<%= f.label :show_submitted_story_threads, - raw("Show in Your Threads:"), + raw(t('.showyourthreads')), :class => "required" %> <%= f.check_box :show_submitted_story_threads %>
@@ -154,28 +154,22 @@
- Mailing List Settings + <%= t('.mailinglistsettings') %>

- When enabled, you will receive all newly submitted stories and comments to - your e-mail address entered above, except the stories and comments filtered - by your tag filters. - All e-mail messages will appear to be sent to your private list address - shown below which you can filter on, and e-mails you send to that address - will be posted under your account on this website. You should keep your - unique list address private to prevent others from posting comments as you. + <%= raw(t('.mailinglisttext')) %>

- <%= f.label :mailing_list_mode, "Receive List E-mails:", + <%= f.label :mailing_list_mode, t('.receivelistemails'), :class => "required" %> - <%= f.select :mailing_list_mode, [ [ "No e-mails", 0 ], - [ "All stories and comments", 1 ], [ "Only stories", 2 ] ] %> + <%= f.select :mailing_list_mode, [ [ t('.listemailoption1'), 0 ], + [ t('.listemailoption2'), 1 ], [ t('.listemailoption3'), 2 ] ] %>
- + <%= Rails.application.shortname %>-<%= @edit_user.mailing_list_token %>@<%= Rails.application.domain %> @@ -185,23 +179,23 @@
- Miscellaneous Settings + <%= t('.miscsettings') %>
- <%= f.label :show_story_previews, "Show Story Previews:", + <%= f.label :show_story_previews, t('.storypreview'), :class => "required" %> <%= f.check_box :show_story_previews %>
- <%= f.label :show_avatars, "Show User Avatars:", :class => "required" %> + <%= f.label :show_avatars, t('.useravatars'), :class => "required" %> <%= f.check_box :show_avatars %>

- <%= f.submit "Save All Settings" %> + <%= f.submit t('.saveallsettings') %> <% end %>
@@ -209,13 +203,13 @@
- Invite a New User + <%= t('.inviteuser') %>
<% if @user.can_invite? %> <%= render :partial => "users/invitationform" %> <% else %> - You cannot send invitations. + <%= t('.cannotsendinvitations') %> <% end %>
@@ -224,25 +218,19 @@ <%= form_for @edit_user, :url => delete_account_path, :method => :post, :html => { :id => "delete_user" } do |f| %>
- Delete Account + <%= t('.deleteaccount') %>

- To permanently delete your account, verify your current password below. - Your account will be put into a deleted state, your comments will be marked - as deleted and no longer readable by any other users, and your private - messages will be deleted. - Your submitted stories will not be deleted. - Your username will remain reserved and will not be available to be used on - any other account. + <%= t('.deleteaccounttext') %>

- <%= f.label :password, "Verify Password:", :class => "required" %> + <%= f.label :password, t('.verifypassword'), :class => "required" %> <%= f.password_field :password, :size => 40, :autocomplete => "off" %>

- <%= f.submit "Yes, Delete My Account" %> + <%= f.submit t('.deleteaccountconfirmation') %> <% end %>