i18n of comments/_commentbox
This commit is contained in:
parent
06c58f136b
commit
3e3ef423f2
|
@ -16,7 +16,7 @@ data-shortid="<%= comment.short_id if comment.persisted? %>">
|
||||||
<div style="width: 100%;">
|
<div style="width: 100%;">
|
||||||
<%= text_area_tag "comment", comment.comment, :rows => 5,
|
<%= text_area_tag "comment", comment.comment, :rows => 5,
|
||||||
:style => "width: 100%;", :autocomplete => "off", :disabled => !@user,
|
:style => "width: 100%;", :autocomplete => "off", :disabled => !@user,
|
||||||
:placeholder => (@user ? "" : "You must be logged in to leave a comment.")
|
:placeholder => (@user ? "" : t('.mustbelogged'))
|
||||||
%>
|
%>
|
||||||
|
|
||||||
<p></p>
|
<p></p>
|
||||||
|
@ -24,7 +24,7 @@ data-shortid="<%= comment.short_id if comment.persisted? %>">
|
||||||
<div class="markdown_help_toggler">
|
<div class="markdown_help_toggler">
|
||||||
<% if @user %>
|
<% if @user %>
|
||||||
<div class="markdown_help_label">
|
<div class="markdown_help_label">
|
||||||
Markdown formatting available
|
<%= t('.markdown') %>
|
||||||
</div>
|
</div>
|
||||||
<div class="markdown_help_label markdown_help_label_mobile"
|
<div class="markdown_help_label markdown_help_label_mobile"
|
||||||
style="display: none;">
|
style="display: none;">
|
||||||
|
@ -32,21 +32,21 @@ data-shortid="<%= comment.short_id if comment.persisted? %>">
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= button_tag "#{comment.new_record?? "Post" : "Update"}",
|
<%= button_tag "#{comment.new_record?? t('.post') : t('.update')}",
|
||||||
:class => "comment-post", :type => "button",
|
:class => "comment-post", :type => "button",
|
||||||
:disabled => !@user %>
|
:disabled => !@user %>
|
||||||
|
|
||||||
<%= button_tag "Preview", :class => "comment-preview",
|
<%= button_tag t('.preview'), :class => "comment-preview",
|
||||||
:type => "button", :disabled => !@user %>
|
:type => "button", :disabled => !@user %>
|
||||||
<% if comment.persisted? || comment.parent_comment_id %>
|
<% if comment.persisted? || comment.parent_comment_id %>
|
||||||
|
|
||||||
<%= button_tag "Cancel", :class => "comment-cancel",
|
<%= button_tag t('.cancel'), :class => "comment-cancel",
|
||||||
:type => "button" %>
|
:type => "button" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if @user && @user.hats.any? %>
|
<% if @user && @user.hats.any? %>
|
||||||
<div style="display: inline-block; margin-left: 1em;">
|
<div style="display: inline-block; margin-left: 1em;">
|
||||||
Put on hat:
|
<%= t('.putonhat') %>
|
||||||
<%= select_tag "hat_id",
|
<%= select_tag "hat_id",
|
||||||
options_from_collection_for_select(@user.hats, "id", "hat",
|
options_from_collection_for_select(@user.hats, "id", "hat",
|
||||||
comment.hat_id), :include_blank => true %>
|
comment.hat_id), :include_blank => true %>
|
||||||
|
|
|
@ -47,6 +47,15 @@ en:
|
||||||
filtereddesc: "Description"
|
filtereddesc: "Description"
|
||||||
filteredstories: "Stories"
|
filteredstories: "Stories"
|
||||||
filteredsave: "Save Filters"
|
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:
|
home:
|
||||||
index:
|
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>"
|
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>"
|
||||||
|
|
|
@ -49,6 +49,15 @@ fr:
|
||||||
hatrequestlink: "Porter le chapeau"
|
hatrequestlink: "Porter le chapeau"
|
||||||
privacylink: "Confidentialité"
|
privacylink: "Confidentialité"
|
||||||
aboutlink: "À propos"
|
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:
|
home:
|
||||||
index:
|
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>"
|
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>"
|
||||||
|
|
Loading…
Reference in a new issue