Use provider name in translation
This commit is contained in:
parent
267d91bf66
commit
b9cf5995b8
2 changed files with 5 additions and 3 deletions
|
|
@ -12,10 +12,12 @@ module PublisherHelper
|
|||
end
|
||||
|
||||
def service_button(service)
|
||||
share_to = I18n.t "services.index.share_to"
|
||||
provider_title = I18n.t(
|
||||
"services.index.share_to",
|
||||
provider: service.provider.titleize)
|
||||
content_tag :div,
|
||||
class: "btn btn-link service_icon dim",
|
||||
title: "#{share_to} #{service.provider.titleize} (#{service.nickname})",
|
||||
title: "#{provider_title} (#{service.nickname})",
|
||||
id: "#{service.provider}",
|
||||
maxchar: "#{service.class::MAX_CHARACTERS}",
|
||||
data: {toggle: "tooltip", placement: "bottom"} do
|
||||
|
|
|
|||
|
|
@ -1171,7 +1171,7 @@ en:
|
|||
really_disconnect: "Disconnect %{service}?"
|
||||
edit_services: "Edit services"
|
||||
services_explanation: "Connecting to third-party sharing services gives you the ability to publish your posts to them as you write them in diaspora*."
|
||||
share_to: "Share to"
|
||||
share_to: "Share to %{provider}"
|
||||
create:
|
||||
success: "Authentication successful."
|
||||
failure: "Authentication failed."
|
||||
|
|
|
|||
Loading…
Reference in a new issue