mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-15 18:39:58 +01:00
localize placeholders
This commit is contained in:
parent
d13cdb27dc
commit
d28f64adf1
7 changed files with 19 additions and 13 deletions
|
@ -14,7 +14,7 @@
|
|||
= pluralize(i.question.answer_count, t('views.inbox.entry.response'))
|
||||
%p.answerbox--question-text= i.question.content
|
||||
.panel-body
|
||||
%textarea.form-control{name: 'ib-answer', placeholder: 'Write your answer here...', data: { id: i.id }}
|
||||
%textarea.form-control{name: 'ib-answer', placeholder: t('views.placeholder.inbox'), data: { id: i.id }}
|
||||
%br/
|
||||
%button.btn.btn-success{name: 'ib-answer', data: { ib_id: i.id }}
|
||||
= t 'views.actions.answer'
|
||||
|
|
|
@ -24,5 +24,5 @@
|
|||
= t 'views.actions.delete'
|
||||
%p.comments--content= comment.content
|
||||
.form-group.has-feedback{name: 'mod-comment-new-group', data: { id: report.id }}
|
||||
%input.form-control.comments--box{type: :text, placeholder: 'Comment...', name: 'mod-comment-new', data: { id: report.id }}
|
||||
%input.form-control.comments--box{type: :text, placeholder: t('views.placeholder.comment'), name: 'mod-comment-new', data: { id: report.id }}
|
||||
%span.text-muted.form-control-feedback.comments--count{id: "mod-comment-charcount-#{report.id}"} 160
|
||||
|
|
|
@ -17,14 +17,13 @@
|
|||
- if user_signed_in? and !current_user.answered? @question and current_user != @question.user and @question.user.privacy_allow_stranger_answers
|
||||
.panel.panel-default#q-answer-box
|
||||
.panel-heading
|
||||
%h3.panel-title This question was not in your inbox? Answer it here!
|
||||
%h3.panel-title= t('views.question.title')
|
||||
.panel-body
|
||||
%textarea#q-answer.form-control{placeholder: 'Write your answer here...', data: { id: @question.id }}
|
||||
%textarea#q-answer.form-control{placeholder: t('views.placeholder.inbox'), data: { id: @question.id }}
|
||||
%br/
|
||||
%button#q-answer.btn.btn-success{data: { q_id: @question.id }}
|
||||
Answer
|
||||
= t('views.actions.answer')
|
||||
- current_user.services.each do |service|
|
||||
%label
|
||||
%input{type: 'checkbox', name: 'share', checked: :checked, data: { q_id: @question.id, service: service.provider }}
|
||||
Post to
|
||||
= service.provider.capitalize
|
||||
= t('views.inbox.entry.sharing.post', service: service.provider.capitalize)
|
||||
|
|
|
@ -51,5 +51,5 @@
|
|||
= markdown comment.content
|
||||
- if user_signed_in?
|
||||
.form-group.has-feedback{name: 'ab-comment-new-group', data: { a_id: a.id }}
|
||||
%input.form-control.comments--box{type: :text, placeholder: 'Comment...', name: 'ab-comment-new', data: {a_id: a.id }}
|
||||
%input.form-control.comments--box{type: :text, placeholder: t('views.placeholder.comment'), name: 'ab-comment-new', data: {a_id: a.id }}
|
||||
%span.text-muted.form-control-feedback.comments--count{id: "ab-comment-charcount-#{a.id}"} 160
|
||||
|
|
|
@ -7,14 +7,14 @@
|
|||
%span.sr-only= t 'views.actions.close'
|
||||
%h4#modal-ask-followers-label.modal-title= t 'views.modal.ask.title'
|
||||
.modal-body
|
||||
%textarea.form-control{:name => "qb-all-question", :placeholder => "Type your question here…"}
|
||||
%textarea.form-control{:name => "qb-all-question", :placeholder => t('views.placeholder.question')}
|
||||
.modal-footer
|
||||
- if current_user.groups.count > 0
|
||||
%label
|
||||
= t 'views.modal.ask.choose'
|
||||
%select{name: 'qb-all-rcpt', class: 'form-control', autocomplete: 'off'}
|
||||
%option{value: 'followers', selected: true}= t('views.general.follower').pluralize(2)
|
||||
%optgroup{label: 'Groups'}
|
||||
%optgroup{label: t('views.group.title').pluralize(2)}
|
||||
- current_user.groups.each do |group|
|
||||
%option{value: "grp:#{group.name}"}= group.display_name
|
||||
%button.btn.btn-default{"data-dismiss" => "modal", :type => "button"}= t 'views.actions.cancel'
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#question-box
|
||||
.row
|
||||
.col-xs-12
|
||||
%textarea.form-control{:name => "qb-question", :placeholder => "Type your question here…"}
|
||||
%textarea.form-control{:name => "qb-question", :placeholder => t('views.placeholder.question')}
|
||||
.row{:style => "padding-top: 5px; padding-left: 5px; padding-right: 5px;"}
|
||||
.col-xs-6
|
||||
- if user_signed_in?
|
||||
|
@ -28,7 +28,7 @@
|
|||
.col-xs-6
|
||||
%p.pull-right
|
||||
%input{name: 'qb-to', type: 'hidden', :value => @user.id}/
|
||||
%button.btn.btn-primary{name: 'qb-ask', :type => "button", data: {loading_text: 'Asking...', promote: user_signed_in? ? "false" : "true" }} Ask
|
||||
%button.btn.btn-primary{name: 'qb-ask', :type => "button", data: {loading_text: t('views.questionbox.load'), promote: user_signed_in? ? "false" : "true" }} Ask
|
||||
- unless user_signed_in?
|
||||
- if @user.privacy_allow_anonymous_questions?
|
||||
#question-box-promote.row{:style => "display: none;"}
|
||||
|
@ -48,4 +48,4 @@
|
|||
%small= t('views.questionbox.promote.join', app_title: APP_CONFIG['site_name'])
|
||||
.col-sm-1
|
||||
- else
|
||||
%p= raw t 'views.questionbox.required', signup: link_to(t('views.sessions.new'),new_user_registration_path)
|
||||
%p= raw t 'views.questionbox.required', signup: link_to(t('views.sessions.new'),new_user_registration_path)
|
||||
|
|
|
@ -197,6 +197,10 @@ en:
|
|||
subscription:
|
||||
torpedo: "418 I'm a torpedo"
|
||||
views:
|
||||
placeholder:
|
||||
inbox: "Write your answer here..."
|
||||
comment: "Comment..."
|
||||
question: "Type your question here…"
|
||||
notifications:
|
||||
show: "Show all notifications"
|
||||
mark: " and mark them as read"
|
||||
|
@ -291,6 +295,8 @@ en:
|
|||
reported: "%{user} reported a %{content} %{time} ago"
|
||||
reason: "Reason:"
|
||||
view: "View reported %{content}"
|
||||
question:
|
||||
title: "This question was not in your inbox? Answer it here!"
|
||||
navigation:
|
||||
timeline: "Timeline"
|
||||
inbox: "Inbox"
|
||||
|
@ -377,6 +383,7 @@ en:
|
|||
title: "Ask something!"
|
||||
banned: "This user got hit with ye olde banhammer."
|
||||
required: "This user does not want to get asked by strangers. Why don't you %{signup}?"
|
||||
load: "Asking..."
|
||||
promote:
|
||||
message: "Your question has been sent."
|
||||
create: "Create an account"
|
||||
|
|
Loading…
Reference in a new issue