Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing i18n for "Remove file" checkbox #1814

Merged
merged 1 commit into from Sep 12, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions decidim-core/config/locales/en.yml
Expand Up @@ -174,6 +174,7 @@ en:
default_image: Default image
errors:
error: There's an error in this field.
remove_this_file: Remove this file
managed_users:
expired_session: The current impersonation session has expired.
menu:
Expand Down
2 changes: 1 addition & 1 deletion decidim-core/lib/decidim/form_builder.rb
Expand Up @@ -243,7 +243,7 @@ def upload(attribute, options = {})
template += content_tag :div, class: "field" do
safe_join([
@template.check_box(@object_name, "remove_#{attribute}"),
label("remove_#{attribute}", label_for("remove_#{attribute}"))
label("remove_#{attribute}", I18n.t("remove_this_file", scope: "decidim.forms"))
])
end
end
Expand Down