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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply gettext to initial & error service dialog values #17789

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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/models/dialog_field_check_box.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def initial_values
end

def script_error_values
"<Script error>"
N_("<Script error>")
end

def normalize_automate_values(automate_hash)
Expand Down
2 changes: 1 addition & 1 deletion app/models/dialog_field_date_control.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def normalize_automate_values(automate_hash)
end

def script_error_values
"<Script error>"
N_("<Script error>")
end

def refresh_json_value
Expand Down
2 changes: 1 addition & 1 deletion app/models/dialog_field_drop_down_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def force_multi_value=(setting)
end

def initial_values
[[nil, "<None>"]]
[[nil, N_("<None>")]]
end

def refresh_json_value(checked_value)
Expand Down
2 changes: 1 addition & 1 deletion app/models/dialog_field_radio_button.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ def show_refresh_button?
end

def initial_values
[[nil, "<None>"]]
[[nil, N_("<None>")]]
end

def force_multi_value
Expand Down
6 changes: 3 additions & 3 deletions app/models/dialog_field_sorted_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def get_default_value
end

def script_error_values
[[nil, "<Script error>"]]
[[nil, N_("<Script error>")]]
end

def normalize_automate_values(automate_hash)
Expand Down Expand Up @@ -139,11 +139,11 @@ def static_raw_values
end

def initial_values
[[nil, "<None>"]]
[[nil, N_("<None>")]]
end

def initial_required_values
[nil, "<Choose>"]
[nil, N_("<Choose>")]
end

def nil_option
Expand Down
2 changes: 1 addition & 1 deletion app/models/dialog_field_text_box.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def validate_field_data(dialog_tab, dialog_group)
end

def script_error_values
"<Script error>"
N_("<Script error>")
end

def sample_text
Expand Down