i18n of users/{list,show,tree}
This commit is contained in:
parent
74052c7637
commit
9aec18155b
|
@ -1,5 +1,5 @@
|
|||
<p>
|
||||
<%= raw(t('.invitationtext')) %>
|
||||
<%=raw(t(:invitationtext)) %>
|
||||
</p>
|
||||
|
||||
<%= form_tag "/invitations", :method => :post do |f| %>
|
||||
|
@ -8,18 +8,18 @@
|
|||
<% end %>
|
||||
|
||||
<div class="boxline">
|
||||
<%= label_tag :email, t('.emailaddress'), :class => "required" %>
|
||||
<%= label_tag :email, t(:emailaddress), :class => "required" %>
|
||||
<%= text_field_tag :email, "", :size => 30, :autocomplete => "off" %>
|
||||
</div>
|
||||
|
||||
<div class="boxline">
|
||||
<%= label_tag :memo, t('.memouser'), :class => "required" %>
|
||||
<%= label_tag :memo, t(:memouser), :class => "required" %>
|
||||
<%= text_field_tag :memo, "", :size => 60 %>
|
||||
</div>
|
||||
|
||||
<div class="boxline">
|
||||
<p></p>
|
||||
<%= submit_tag t('.sendinvitation') %>
|
||||
<%= submit_tag t(:sendinvitation) %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
|
|
|
@ -14,11 +14,11 @@
|
|||
<% end %>
|
||||
><%= user.username %></a>
|
||||
<% if user.is_admin? %>
|
||||
(administrator)
|
||||
<%= t('.moderator') %>
|
||||
<% else %>
|
||||
(<%= user.karma %>)
|
||||
<% if user.is_moderator? %>
|
||||
(moderator)
|
||||
<%= t('.administrator') %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</li>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
</span>
|
||||
|
||||
<% if @user && @showing_user.is_active? %>
|
||||
(<a href="/messages?to=<%= @showing_user.username %>">Send a Message</a>)
|
||||
(<a href="/messages?to=<%= @showing_user.username %>"><%= t('.sendmessage') %></a>)
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
|
@ -23,33 +23,33 @@
|
|||
</div>
|
||||
<% end %>
|
||||
|
||||
<label class="required">Status:</label>
|
||||
<label class="required"><%= t('.status') %></label>
|
||||
<span class="d"
|
||||
<%= @showing_user.is_banned? ? raw("style=\"color: red;\"") : "" %>>
|
||||
<% if @showing_user.is_banned? %>
|
||||
Banned user
|
||||
<%= t('.banneduser') %>
|
||||
<% elsif !@showing_user.is_active? %>
|
||||
Inactive user
|
||||
<%= t('.inactiveuser') %>
|
||||
<% else %>
|
||||
Active
|
||||
<%= @showing_user.is_admin? ? "administrator" :
|
||||
(@showing_user.is_moderator? ? "moderator" : "user") %>
|
||||
<%= t('.active') %>
|
||||
<%= @showing_user.is_admin? ? t('.administrator') :
|
||||
(@showing_user.is_moderator? ? t('.moderator') : t('.user')) %>
|
||||
<% if !@showing_user.can_invite? %>
|
||||
with invites
|
||||
<%= t('.withinvites') %>
|
||||
<% if !@showing_user.can_submit_stories? %>
|
||||
and story submissions
|
||||
<%= t('.storysubmissions') %>
|
||||
<% end %>
|
||||
disabled
|
||||
<%= t('.disabled') %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</span>
|
||||
<br>
|
||||
|
||||
<label class="required">Joined:</label>
|
||||
<label class="required"><%= t('.joined') %></label>
|
||||
<span class="d">
|
||||
<%= time_ago_in_words_label(@showing_user.created_at) %>
|
||||
<%= distance_of_time_in_words(@showing_user.created_at, Time.now) %>
|
||||
<% if @showing_user.invited_by_user %>
|
||||
by invitation from
|
||||
<%= t('.byinvitationfrom') %>
|
||||
<%= link_to @showing_user.invited_by_user.try(:username),
|
||||
@showing_user.invited_by_user %>
|
||||
<% end %>
|
||||
|
@ -57,11 +57,11 @@
|
|||
<br>
|
||||
|
||||
<% if @showing_user.is_banned? %>
|
||||
<label class="required">Banned:</label>
|
||||
<label class="required"><%= t('.banneduser') %></label>
|
||||
<span class="d">
|
||||
<%= time_ago_in_words_label(@showing_user.banned_at) %>
|
||||
<%= distance_of_time_in_words(@showing_user.banned_at, Time.now) %>
|
||||
<% if @showing_user.banned_by_user %>
|
||||
by <%= link_to @showing_user.banned_by_user.try(:username),
|
||||
<%= t('.bannedby') %><%= link_to @showing_user.banned_by_user.try(:username),
|
||||
@showing_user.banned_by_user %>:
|
||||
<em><%= @showing_user.banned_reason %></em>
|
||||
<% end %>
|
||||
|
@ -70,7 +70,7 @@
|
|||
<% end %>
|
||||
|
||||
<% if @showing_user.hats.any? %>
|
||||
<label class="required">Hats:</label>
|
||||
<label class="required"><%= t('.hats') %></label>
|
||||
<span class="d">
|
||||
<% @showing_user.hats.each do |hat| %>
|
||||
<%= hat.to_html_label %>
|
||||
|
@ -80,37 +80,37 @@
|
|||
<% end %>
|
||||
|
||||
<% if @showing_user.deleted_at? %>
|
||||
<label class="required">Left:</label>
|
||||
<label class="required"><% t('.left') %></label>
|
||||
<span class="d">
|
||||
<%= time_ago_in_words_label(@showing_user.deleted_at) %>
|
||||
<%= distance_of_time_in_words(@showing_user.deleted_at, Time.now) %>
|
||||
</span>
|
||||
<br>
|
||||
<% end %>
|
||||
|
||||
<% if !@showing_user.is_admin? %>
|
||||
<label class="required">Karma:</label>
|
||||
<label class="required"><%= t('.karma') %></label>
|
||||
<span class="d">
|
||||
<%= @showing_user.karma %>, averaging <%=
|
||||
<%= @showing_user.karma %><%= t('.karmaaverage') %><%=
|
||||
number_with_precision(@showing_user.average_karma, :precision => 2) %>
|
||||
per story/comment
|
||||
<%= t('.karmaperstorycomment') %>
|
||||
</span>
|
||||
<br>
|
||||
<% end %>
|
||||
|
||||
<label class="required">Stories Submitted:</label>
|
||||
<label class="required"><%= t('.storiessubmitted') %></label>
|
||||
<span class="d">
|
||||
<% tag = @showing_user.most_common_story_tag %>
|
||||
<a href="/newest/<%= @showing_user.username %>"><%=
|
||||
@showing_user.stories_submitted_count %></a><%= tag ? ", " : "" %>
|
||||
<% if tag %>
|
||||
most commonly tagged <a href="<%= tag_path(tag.tag) %>"
|
||||
<%= t('.mostcommonlytagged') %><a href="<%= tag_path(tag.tag) %>"
|
||||
class="<%= tag.css_class %>" title="<%= tag.description %>"><%=
|
||||
tag.tag %></a>
|
||||
<% end %>
|
||||
</span>
|
||||
<br>
|
||||
|
||||
<label class="required">Comments Posted:</label>
|
||||
<label class="required"><%= t('.postedcomments') %></label>
|
||||
<span class="d">
|
||||
<a href="/threads/<%= @showing_user.username %>"><%=
|
||||
@showing_user.comments_posted_count %></a>
|
||||
|
@ -118,13 +118,13 @@
|
|||
<br>
|
||||
|
||||
<% if @showing_user.is_active? %>
|
||||
<label class="required">About:</label>
|
||||
<label class="required"><%= t('.about') %></label>
|
||||
|
||||
<div class="d shorten_first_p">
|
||||
<% if @showing_user.about.present? %>
|
||||
<%= raw @showing_user.linkified_about %>
|
||||
<% else %>
|
||||
<span class="na">A mystery...</span>
|
||||
<span class="na"><%= t('.aboutdefault') %></span>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
@ -135,17 +135,17 @@
|
|||
|
||||
<p>
|
||||
<div class="legend">
|
||||
Administrative Information
|
||||
<%= t('.administrativeinfo') %>
|
||||
</div>
|
||||
</p>
|
||||
|
||||
<label class="required">E-Mail:</label>
|
||||
<label class="required"><%= t('.email') %></label>
|
||||
<span class="d">
|
||||
<%= @showing_user.email %>
|
||||
</span>
|
||||
<br>
|
||||
|
||||
<label class="required">Recent Votes:</label>
|
||||
<label class="required"><%= t('.recentvotes') %></label>
|
||||
<div class="d shorten_first_p">
|
||||
<% @showing_user.votes_for_others.limit(10).each do |v| %>
|
||||
<p>
|
||||
|
@ -161,7 +161,7 @@
|
|||
<% end %>
|
||||
on
|
||||
<% if v.comment_id %>
|
||||
<a href="<%= v.comment.short_id_url %>">comment</a>
|
||||
<a href="<%= v.comment.short_id_url %>"><%= t('.commentlinktext') %></a>
|
||||
by
|
||||
<a href="/u/<%= v.comment.user.try(:username) %>"><%=
|
||||
v.comment.user.try(:username) %></a>
|
||||
|
@ -183,31 +183,30 @@
|
|||
|
||||
<p>
|
||||
<div class="legend">
|
||||
Administrative Actions
|
||||
<%= t('.administrativeactions') %>
|
||||
</div>
|
||||
</p>
|
||||
|
||||
<% if @showing_user.is_banned? %>
|
||||
<%= form_tag user_unban_path, :method => :post do %>
|
||||
<p>
|
||||
<%= submit_tag "Unban User" %>
|
||||
<%= submit_tag t('unbanuser') %>
|
||||
</p>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<p>
|
||||
Banning or disabling invites for a user will send an e-mail to the user with the reason below,
|
||||
with your e-mail address as the Reply-To so the user can respond.
|
||||
<%= t('.banningdescription') %>
|
||||
</p>
|
||||
<%= form_tag user_ban_path, :method => :post do %>
|
||||
<p>
|
||||
|
||||
<div class="boxline">
|
||||
<%= label_tag :reason, "Reason:", :class => "required" %>
|
||||
<%= label_tag :reason, t('.banningreason'), :class => "required" %>
|
||||
<%= text_field_tag :reason, "", :size => 40 %>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<%= submit_tag "Ban User" %>
|
||||
<%= submit_tag t('.banuserbutton') %>
|
||||
</p>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
@ -215,7 +214,7 @@
|
|||
<% if @showing_user.banned_from_inviting? %>
|
||||
<%= form_tag user_enable_invite_path, :method => :post do %>
|
||||
<p>
|
||||
<%= submit_tag "Enable invitations for User" %>
|
||||
<%= submit_tag t('.enableinvitesforuser') %>
|
||||
</p>
|
||||
<% end %>
|
||||
<% else %>
|
||||
|
@ -223,12 +222,12 @@
|
|||
<p>
|
||||
|
||||
<div class="boxline">
|
||||
<%= label_tag :reason, "Reason:", :class => "required" %>
|
||||
<%= label_tag :reason, t('.disableinvitesreason'), :class => "required" %>
|
||||
<%= text_field_tag :reason, "", :size => 40 %>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<%= submit_tag "Disable invites" %>
|
||||
<%= submit_tag t('.disableinvitesbutton') %>
|
||||
</p>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
</p>
|
||||
|
||||
<p>
|
||||
Newest users:
|
||||
<%= t('.newestusers') %>
|
||||
<%= raw @newest.map{|u| "<a href=\"/u/#{u.username}\" class=\"" <<
|
||||
(u.is_new?? "new_user" : "") << "\">#{u.username}</a> " <<
|
||||
"(#{u.karma})" }.join(", ") %>
|
||||
|
@ -26,11 +26,11 @@
|
|||
<% end %>
|
||||
><%= user.username %></a>
|
||||
<% if user.is_admin? %>
|
||||
(administrator)
|
||||
<%= t('.administrator') %>
|
||||
<% else %>
|
||||
(<%= user.karma %>)
|
||||
<% if user.is_moderator? %>
|
||||
(moderator)
|
||||
<%= t('.moderator') %>(moderator)
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% if (children = @users_by_parent[user.id]) %>
|
||||
|
|
|
@ -173,12 +173,6 @@ en:
|
|||
accountnolongersetuppushover: "Your account is no longer setup for Pushover notifications."
|
||||
update:
|
||||
updatesettingsflash: "Successfully updated settings."
|
||||
users:
|
||||
invitationform:
|
||||
invitationtext: "Invitations are unlimited, but persons you invite will be associated with your account in the <a href=\"/u\">user tree</a> and you may be responsible for them if they cause problems. Please use your discretion when inviting persons you don't personally know."
|
||||
emailaddress: "E-mail Address:"
|
||||
memouser: "Memo to User:"
|
||||
sendinvitation: "Send Invitation"
|
||||
stories:
|
||||
edit:
|
||||
edit: "Edit Story"
|
||||
|
@ -239,3 +233,54 @@ en:
|
|||
preview: "Preview"
|
||||
submit: "Submit a Story"
|
||||
submitbutton: "Submit"
|
||||
users:
|
||||
list:
|
||||
administrator: "administrator"
|
||||
moderator: "moderator"
|
||||
show:
|
||||
status: "Status:"
|
||||
sendmessage: "Send a Message"
|
||||
banned: "Banned user"
|
||||
inactive: "Inactive user"
|
||||
active: "Active "
|
||||
administrator: "administrator"
|
||||
moderator: "moderator"
|
||||
user: "user"
|
||||
withinvites: "with invites"
|
||||
storysubmissions: "with story submissions"
|
||||
disabled: "disabled"
|
||||
joined: "Joined:"
|
||||
byinvitationfrom: "by invitation from"
|
||||
banneduser: "Banned:"
|
||||
bannedby: "by"
|
||||
hats: "Hats:"
|
||||
left: "Parti :"
|
||||
karma: "Karma :"
|
||||
karmaaverage: ", averaging "
|
||||
karmaperstorycomment: "per story/comment"
|
||||
storiessubmitted: "Stories Submitted:"
|
||||
postedcomments: "Posted Comments:"
|
||||
mostcommonlytagged: "most commonly tagged "
|
||||
about: "About:"
|
||||
aboutdefault: "A mystery..."
|
||||
administrativeinfo: "Administrative Information"
|
||||
email: "E-mail:"
|
||||
recentvotes: "Recent Votes:"
|
||||
commentlinktext: "comment"
|
||||
administrativeactions: "Administrative Actions"
|
||||
unbanuser: "Unban User"
|
||||
banningdescription: "Banning or disabling invites for a user will send an e-mail to the user with the reason below, with your e-mail address as the Reply-To so the user can respond."
|
||||
banningreason: "Reason:"
|
||||
banuserbutton: "Ban User"
|
||||
enableinvitesforuser: "Enable invitations for User"
|
||||
disableinvitesreason: "Reason:"
|
||||
disableinvitesbutton: "Disable invites"
|
||||
tree:
|
||||
newestusers: "Newest users:"
|
||||
administrator: "(administrator)"
|
||||
moderator: "(moderator)"
|
||||
# data for users/invitationform which is a partial view
|
||||
invitationtext: "Invitations are unlimited, but persons you invite will be associated with your account in the <a href=\"/u\">user tree</a> and you may be responsible for them if they cause problems. Please use your discretion when inviting persons you don't personally know."
|
||||
emailaddress: "E-mail Address:"
|
||||
memouser: "Memo to User:"
|
||||
sendinvitation: "Send Invitation"
|
||||
|
|
|
@ -185,12 +185,6 @@ fr:
|
|||
accountnolongersetuppushover: "Votre compte n'est plus configuré pour les notifications Pushover."
|
||||
update:
|
||||
updatesettingsflash: "Paramètres mis à jour avec succès."
|
||||
users:
|
||||
invitationform:
|
||||
invitationtext: "Le nombre d'invitations est illimité, mais les personnes que vous invitez sont associées à votre compte dans <a href=\"/u\">l'arbre des utilisateurs</a> et vous pourriez être tenu pour responsable s'ils causent des problèmes. Merci d'évaluer le fait d'inviter des gens que vous ne connaissez pas personnellement."
|
||||
emailaddress: "Adresse e-mail :"
|
||||
memouser: "Message à l'utilisateur :"
|
||||
sendinvitation: "Envoyer l'invitation"
|
||||
stories:
|
||||
edit:
|
||||
edit: "Éditer l'info"
|
||||
|
@ -251,6 +245,57 @@ fr:
|
|||
preview: "Aperçu"
|
||||
submit: "Soumettre une info"
|
||||
submitbutton: "Soumettre"
|
||||
users:
|
||||
list:
|
||||
administrator: "administrateur"
|
||||
moderator: "modérateur"
|
||||
show:
|
||||
status: "Statut :"
|
||||
sendmessage: "Envoyer un message"
|
||||
banned: "Utilisateur banni"
|
||||
inactive: "Utilisateur inactif"
|
||||
active: "actif "
|
||||
administrator: "administrateur"
|
||||
moderator: "modérateur"
|
||||
user: "utilisateur"
|
||||
withinvites: "avec invitations"
|
||||
storysubmissions: "avec propositions d'infos"
|
||||
disabled: "désactivé"
|
||||
joined: "Joint :"
|
||||
byinvitationfrom: "par invitation de"
|
||||
banneduser: "Banni :"
|
||||
bannedby: "par"
|
||||
hats: "Chapeaux :"
|
||||
left: "Parti :"
|
||||
karma: "Karma :"
|
||||
karmaaverage: ", en moyenne "
|
||||
karmaperstorycomment: "par info/commentaire"
|
||||
storiessubmitted: "Infos soumises :"
|
||||
postedcomments: "Commentaires postés :"
|
||||
mostcommonlytagged: "le plus couramment marquées "
|
||||
about: "À propos :"
|
||||
aboutdefault: "Un mystère..."
|
||||
administrativeinfo: "Informations administratives"
|
||||
email: "E-mail :"
|
||||
recentvotes: "Votes récents :"
|
||||
commentlinktext: "comment"
|
||||
administrativeactions: "Actions administratives"
|
||||
unbanuser: "Unban User"
|
||||
banningdescription: "Bannir ou désactiver les invitations pour un utilisateur enverra un e-mail à l'utilisateur avec la raison ci-dessous avec l'adresse e-mail dans le champ Reply-To afin qu'il puisse répondre."
|
||||
banningreason: "Raison :"
|
||||
banuserbutton: "Bannir l'utilisateur"
|
||||
enableinvitesforuser: "Activer les invitations pour l'utilisateur"
|
||||
disableinvitesreason: "Raison :"
|
||||
disableinvitesbutton: "Désactiver les invitations"
|
||||
tree:
|
||||
newestusers: "Plus récents utilisateurs"
|
||||
administrator: "(administrateur)"
|
||||
moderator: "(modérateur)"
|
||||
# data for users/invitationform which is a partial view
|
||||
invitationtext: "Le nombre d'invitations est illimité, mais les personnes que vous invitez sont associées à votre compte dans <a href=\"/u\">l'arbre des utilisateurs</a> et vous pourriez être tenu pour responsable s'ils causent des problèmes. Merci d'évaluer le fait d'inviter des gens que vous ne connaissez pas personnellement."
|
||||
emailaddress: "Adresse e-mail :"
|
||||
memouser: "Message à l'utilisateur :"
|
||||
sendinvitation: "Envoyer l'invitation"
|
||||
date:
|
||||
abbr_day_names:
|
||||
- dim
|
||||
|
|
Loading…
Reference in a new issue