diff --git a/app/views/budgets/investments/_investment_show.html.erb b/app/views/budgets/investments/_investment_show.html.erb index 5f8f67939..5100a2fdd 100644 --- a/app/views/budgets/investments/_investment_show.html.erb +++ b/app/views/budgets/investments/_investment_show.html.erb @@ -179,13 +179,17 @@ <% end %> - <%= render partial: 'shared/social_share', locals: { + <%= render 'shared/social_share', share_title: t("budgets.investments.show.share"), title: investment.title, image_url: image_absolute_url(investment.image, :thumb), url: budget_investment_url(investment.budget, investment), - description: investment.title - } %> + description: t("budgets.investments.share.message", + title: investment.title, + org: setting['org_name']), + mobile: t("budgets.investments.share.message_mobile", + title: investment.title, + handle: setting['twitter_handle']) %> <% if current_user %>
diff --git a/config/locales/en/budgets.yml b/config/locales/en/budgets.yml index ec1887f37..086cb03a1 100644 --- a/config/locales/en/budgets.yml +++ b/config/locales/en/budgets.yml @@ -105,6 +105,9 @@ en: random: random confidence_score: highest rated price: by price + share: + message: "I created the investment project %{title} in %{org}. Create an investment project you too!" + message_mobile: "I created the investment project %{title} in %{handle}. Create an investment project you too!" show: author_deleted: User deleted price_explanation: Price explanation diff --git a/config/locales/es/budgets.yml b/config/locales/es/budgets.yml index 9b477a586..c4be7cf87 100644 --- a/config/locales/es/budgets.yml +++ b/config/locales/es/budgets.yml @@ -105,6 +105,9 @@ es: random: Aleatorios confidence_score: Mejor valorados price: Por coste + share: + message: "He presentado el proyecto %{title} en %{org}. ¡Presenta un proyecto tú también!" + message_mobile: "He presentado el proyecto %{title} en %{handle}. ¡Presenta un proyecto tú también!" show: author_deleted: Usuario eliminado price_explanation: Informe de coste