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
|
end
|
||||||
|
|
||||||
def service_button(service)
|
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,
|
content_tag :div,
|
||||||
class: "btn btn-link service_icon dim",
|
class: "btn btn-link service_icon dim",
|
||||||
title: "#{share_to} #{service.provider.titleize} (#{service.nickname})",
|
title: "#{provider_title} (#{service.nickname})",
|
||||||
id: "#{service.provider}",
|
id: "#{service.provider}",
|
||||||
maxchar: "#{service.class::MAX_CHARACTERS}",
|
maxchar: "#{service.class::MAX_CHARACTERS}",
|
||||||
data: {toggle: "tooltip", placement: "bottom"} do
|
data: {toggle: "tooltip", placement: "bottom"} do
|
||||||
|
|
|
||||||
|
|
@ -1171,7 +1171,7 @@ en:
|
||||||
really_disconnect: "Disconnect %{service}?"
|
really_disconnect: "Disconnect %{service}?"
|
||||||
edit_services: "Edit services"
|
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*."
|
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:
|
create:
|
||||||
success: "Authentication successful."
|
success: "Authentication successful."
|
||||||
failure: "Authentication failed."
|
failure: "Authentication failed."
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue