Skip to content

Commit

Permalink
Add missing gettext into role visibility dropdown options
Browse files Browse the repository at this point in the history
  • Loading branch information
mzazrivec committed Dec 19, 2017
1 parent 2a81371 commit a534f5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller/buttons.rb
Expand Up @@ -1040,7 +1040,7 @@ def button_set_form_vars

@edit[:current] = copy_hash(@edit[:new])

@edit[:visibility_types] = [["<To All>", "all"], ["<By Role>", "role"]]
@edit[:visibility_types] = [["<#{_('To All')}>", "all"], ["<#{_('By Role')}>", "role"]]
# Visibility Box
if @custom_button.visibility && @custom_button.visibility[:roles]
@edit[:new][:visibility_typ] = @custom_button.visibility[:roles][0] == "_ALL_" ? "all" : "role"
Expand Down

0 comments on commit a534f5f

Please sign in to comment.