i18n of stories/edit

This commit is contained in:
Carl Chenet 2016-11-10 12:10:21 +01:00
parent ef03140149
commit 26d909e58f
3 changed files with 28 additions and 11 deletions

View file

@ -1,6 +1,6 @@
<div class="box" id="story_box"> <div class="box" id="story_box">
<div class="legend"> <div class="legend">
Edit Story <%= t('.edit') %>
</div> </div>
<%= form_for @story, :url => story_path(@story.short_id), <%= form_for @story, :url => story_path(@story.short_id),
@ -12,22 +12,20 @@
<br /> <br />
<div class="box"> <div class="box">
<div class="boxline"> <div class="boxline">
<%= f.label :merge_story_short_id, "Merge Into:", <%= f.label :merge_story_short_id, t('.merge'),
:class => "required" %> :class => "required" %>
<%= f.text_field :merge_story_short_id, :autocomplete => "off", <%= f.text_field :merge_story_short_id, :autocomplete => "off",
:placeholder => "Short id of story into which this story " << :placeholder => t('.shortid') %>
"be merged" %>
</div> </div>
<div class="boxline"> <div class="boxline">
<%= f.label :unavailable_at, "Unavailable:", <%= f.label :unavailable_at, t('.unavailable'),
:class => "required" %> :class => "required" %>
<%= f.check_box :is_unavailable %> <%= f.check_box :is_unavailable %>
<%= f.label :unavailable_at, "Source URL is unavailable, " << <%= f.label :unavailable_at, t('.unavailableat'), :class => "normal" %>
"enable display of cached text", :class => "normal" %>
</div> </div>
<% if @story.user_id != @user.id %> <% if @story.user_id != @user.id %>
<div class="boxline"> <div class="boxline">
<%= f.label :moderation_reason, "Mod Reason:", <%= f.label :moderation_reason, t('.modreason'),
:class => "required" %> :class => "required" %>
<%= f.text_field :moderation_reason, :autocomplete => "off" %> <%= f.text_field :moderation_reason, :autocomplete => "off" %>
</div> </div>
@ -43,9 +41,8 @@
Markdown formatting available Markdown formatting available
</div> </div>
<%= submit_tag "Save" %> <%= submit_tag t('.save') %>
&nbsp;or <a href="<%= story_path(@story.short_id) %>">cancel &nbsp;or <a href="<%= story_path(@story.short_id) %>"><%= t('.cancel') %></a>
editing</a>
<div style="clear: both;"></div> <div style="clear: both;"></div>

View file

@ -157,6 +157,16 @@ en:
memouser: "Memo to User:" memouser: "Memo to User:"
sendinvitation: "Send Invitation" sendinvitation: "Send Invitation"
stories: stories:
edit:
edit: "Edit Story"
merge: "Merge Into:"
shortid: "Short id of story into which this story be merged"
unavailable: "Unavailable:"
unavailableat: "Source URL is unavailable, enable display of cached text"
modreason: "Mod Reason:"
markdown: "Markdown formatting available"
save: "Save"
cancel: "cancel editing"
form: form:
alreadysubmitted: "Error: This story was already submitted " alreadysubmitted: "Error: This story was already submitted "
alreadysubmittedflash: "Note: This story was already submitted %{timeago} but may be submitted again." alreadysubmittedflash: "Note: This story was already submitted %{timeago} but may be submitted again."

View file

@ -169,6 +169,16 @@ fr:
memouser: "Message à l'utilisateur :" memouser: "Message à l'utilisateur :"
sendinvitation: "Envoyer l'invitation" sendinvitation: "Envoyer l'invitation"
stories: stories:
edit:
edit: "Éditer l'info"
merge: "Fusionner :"
shortid: "ID courte de l'info dans laquelle cette info sera fusionnée"
unavailable: "Non dispo :"
unavailableat: "URL source non disponible, active l'affichage du texte en cache"
modreason: "Raison de la modération :"
markdown: "Utilisation du Markdown possible"
save: "Sauver"
cancel: "Annuler l'édition"
form: form:
alreadysubmitted: "Erreur : Cette info a déjà été proposée " alreadysubmitted: "Erreur : Cette info a déjà été proposée "
alreadysubmittedflash: "Note: Cette info a déjà été proposée %{timeago} mais peut être de nouveau reproposée." alreadysubmittedflash: "Note: Cette info a déjà été proposée %{timeago} mais peut être de nouveau reproposée."