i18n of comments/_commentbox

This commit is contained in:
Carl Chenet 2016-11-09 16:10:40 +01:00
parent 06c58f136b
commit 3e3ef423f2
3 changed files with 24 additions and 6 deletions

View file

@ -16,7 +16,7 @@ data-shortid="<%= comment.short_id if comment.persisted? %>">
<div style="width: 100%;">
<%= text_area_tag "comment", comment.comment, :rows => 5,
:style => "width: 100%;", :autocomplete => "off", :disabled => !@user,
:placeholder => (@user ? "" : "You must be logged in to leave a comment.")
:placeholder => (@user ? "" : t('.mustbelogged'))
%>
<p></p>
@ -24,7 +24,7 @@ data-shortid="<%= comment.short_id if comment.persisted? %>">
<div class="markdown_help_toggler">
<% if @user %>
<div class="markdown_help_label">
Markdown formatting available
<%= t('.markdown') %>
</div>
<div class="markdown_help_label markdown_help_label_mobile"
style="display: none;">
@ -32,21 +32,21 @@ data-shortid="<%= comment.short_id if comment.persisted? %>">
</div>
<% end %>
<%= button_tag "#{comment.new_record?? "Post" : "Update"}",
<%= button_tag "#{comment.new_record?? t('.post') : t('.update')}",
:class => "comment-post", :type => "button",
:disabled => !@user %>
&nbsp;
<%= button_tag "Preview", :class => "comment-preview",
<%= button_tag t('.preview'), :class => "comment-preview",
:type => "button", :disabled => !@user %>
<% if comment.persisted? || comment.parent_comment_id %>
&nbsp;
<%= button_tag "Cancel", :class => "comment-cancel",
<%= button_tag t('.cancel'), :class => "comment-cancel",
:type => "button" %>
<% end %>
<% if @user && @user.hats.any? %>
<div style="display: inline-block; margin-left: 1em;">
Put on hat:
<%= t('.putonhat') %>
<%= select_tag "hat_id",
options_from_collection_for_select(@user.hats, "id", "hat",
comment.hat_id), :include_blank => true %>

View file

@ -47,6 +47,15 @@ en:
filtereddesc: "Description"
filteredstories: "Stories"
filteredsave: "Save Filters"
comments:
commentbox:
mustbelogged: "You must be logged in to leave a comment."
markdown: "Markdown formatting available"
post: "Post"
update: "Update"
preview: "Preview"
cancel: "Cancel"
putonhat: "Put on hat:"
home:
index:
homerecentsdesc: "<em>The <a href=\"/newest\">newest</a> stories with a random sampling of recently submitted stories that have not yet reached the front page.</em>"

View file

@ -49,6 +49,15 @@ fr:
hatrequestlink: "Porter le chapeau"
privacylink: "Confidentialité"
aboutlink: "À propos"
comments:
commentbox:
mustbelogged: "Vous devez être connecté pour laisser un commentaire."
markdown: "Utilisation du Markdown possible"
post: "Poster"
update: "Mettre à jour"
preview: "Aperçu"
cancel: "Annuler"
putonhat: "Mettre son chapeau : "
home:
index:
homerecentsdesc: "<em>Les <a href=\"/newest\">plus récentes</a> infos avec un panaché aléatoire des infos récentes soumises qui n'ont pas encore atteint la page principale.</em>"