Add translations for inbox sidebar
This commit is contained in:
parent
5829dc51ec
commit
14d0074cb8
|
@ -1,27 +1,27 @@
|
|||
.card
|
||||
.card-header= t 'views.inbox.sidebar.questions.title'
|
||||
.card-header= t(".questions.heading")
|
||||
.card-body
|
||||
%button.btn.btn-block.btn-info{ type: :button, id: 'ib-generate-question' }= t 'views.inbox.sidebar.questions.button'
|
||||
%button.btn.btn-block.btn-info{ type: :button, id: "ib-generate-question" }= t(".questions.button")
|
||||
.card
|
||||
.card-header= t 'views.inbox.sidebar.share.title'
|
||||
.card-header= t(".share.heading")
|
||||
.card-body
|
||||
%a.btn.btn-block.btn-primary{ target: '_blank',
|
||||
%a.btn.btn-block.btn-primary{ target: "_blank",
|
||||
href: "https://twitter.com/intent/tweet?text=Ask%20me%20anything%21&url=#{show_user_profile_url(current_user.screen_name)}" }
|
||||
%i.fa.fa-fw.fa-twitter
|
||||
= raw t('views.inbox.sidebar.share.button', service: 'Twitter')
|
||||
%a.btn.btn-block.btn-primary{ target: '_blank',
|
||||
= t(".share.button", service: "Twitter")
|
||||
%a.btn.btn-block.btn-primary{ target: "_blank",
|
||||
href: "https://www.tumblr.com/share/link?url=#{show_user_profile_url(current_user.screen_name)}&name=Ask%20me%20anything%21" }
|
||||
%i.fa.fa-fw.fa-tumblr
|
||||
= raw t('views.inbox.sidebar.share.button', service: 'Tumblr')
|
||||
= t(".share.button", service: "Tumblr")
|
||||
.card
|
||||
.card-header Show author
|
||||
.card-header= t(".author.heading")
|
||||
.card-body
|
||||
%form#author-form
|
||||
= bootstrap_form_tag url: inbox_path, method: :get do |f|
|
||||
= f.text_field :author, value: params[:author], placeholder: 'username', prepend: '@', hide_label: true
|
||||
= f.button 'Show', name: nil, class: 'btn btn-light btn-block btn-sm', id: 'ib-author'
|
||||
= f.text_field :author, value: params[:author], placeholder: t(".author.placeholder"), prepend: "@", hide_label: true
|
||||
= f.button t(".author.button"), name: nil, class: "btn btn-light btn-block btn-sm", id: "ib-author"
|
||||
.card
|
||||
.card-header= t 'views.inbox.sidebar.actions.title'
|
||||
.card-header= t(".actions.heading")
|
||||
.card-body
|
||||
%button.btn.btn-block.btn-danger{ type: :button, id: delete_id, disabled: (disabled ? :disabled : nil), data: { ib_count: inbox_count } }
|
||||
= t 'views.inbox.sidebar.actions.button'
|
||||
= t(".actions.delete")
|
||||
|
|
|
@ -32,6 +32,20 @@ en:
|
|||
inbox:
|
||||
show:
|
||||
empty: "Nothing to see here."
|
||||
sidebar:
|
||||
actions:
|
||||
heading: "Actions"
|
||||
delete: "Delete all questions"
|
||||
author:
|
||||
heading: "Show author"
|
||||
button: "Show"
|
||||
placeholder: "username"
|
||||
questions:
|
||||
heading: "Out of questions?"
|
||||
button: "Get new question"
|
||||
share:
|
||||
heading: "Share"
|
||||
button: "Share on %{service}"
|
||||
modal:
|
||||
password:
|
||||
title: "Save account changes"
|
||||
|
|
Loading…
Reference in New Issue