Commit b9cf5995 authored by Lukas Matt's avatar Lukas Matt

Use provider name in translation

parent 267d91bf
......@@ -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."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment