Skip to content

Commit

Permalink
#29 moderation translations
Browse files Browse the repository at this point in the history
  • Loading branch information
ludivinecp committed Feb 1, 2018
1 parent fa490c1 commit 3cda971
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ def create

CreateProposal.call(@form, current_user) do
on(:ok) do |proposal|
flash[:notice] = I18n.t("proposals.create.success", scope: "decidim")
if proposal.feature.settings.upstream_moderation_enabled
flash[:notice] = I18n.t("proposals.create.moderation.success", scope: "decidim")
else
flash[:notice] = I18n.t("proposals.create.success", scope: "decidim")
end
redirect_to proposal_path(proposal)
end

Expand Down
4 changes: 3 additions & 1 deletion decidim-proposals/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ en:
rejected: Rejected
create:
error: There's been errors when saving the proposal.
success: Proposal successfully created. It will be published as soon as an administrator will have authorized it.
success: Proposal successfully created.
moderation:
success: Proposal successfully created. It will be published as soon as an administrator will have authorized it.
events:
create_proposal_event:
email_intro: |-
Expand Down
4 changes: 3 additions & 1 deletion decidim-proposals/config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ fr:
rejected: Refusée
create:
error: Il y a eu des erreurs lors de la sauvegarde de la proposition.
success: Proposition créée avec succès. Elle sera publiée dès qu'un administrateur l'aura validée.
success: Proposition créée avec succès.
moderation:
success: Proposition créée avec succès. Elle sera publiée dès qu'un administrateur l'aura validée.
events:
create_proposal_event:
email_intro: |-
Expand Down

0 comments on commit 3cda971

Please sign in to comment.