Skip to content

Commit

Permalink
Merge pull request #16766 from mzazrivec/add_missing_gettext_into_miq…
Browse files Browse the repository at this point in the history
…_action

Add missing gettext into MiqAction
(cherry picked from commit 79d25e3)

https://bugzilla.redhat.com/show_bug.cgi?id=1533220
  • Loading branch information
martinpovolny authored and simaishi committed Jan 10, 2018
1 parent 7632a94 commit 07d8e26
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions app/models/miq_action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ class MiqAction < ApplicationRecord

silence_warnings do
const_set("TYPES",
"create_snapshot" => "Create a Snapshot",
"email" => "Send an E-mail",
"snmp_trap" => "Send an SNMP Trap",
"tag" => "Tag",
"reconfigure_memory" => "Reconfigure Memory",
"reconfigure_cpus" => "Reconfigure CPUs",
"custom_automation" => "Invoke a Custom Automation",
"evaluate_alerts" => "Evaluate Alerts",
"assign_scan_profile" => "Assign Profile to Analysis Task",
"set_custom_attribute" => "Set a Custom Attribute in vCenter",
"inherit_parent_tags" => "Inherit Parent Tags",
"remove_tags" => "Remove Tags",
"delete_snapshots_by_age" => "Delete Snapshots by Age",
"run_ansible_playbook" => "Run Ansible Playbook"
"create_snapshot" => N_("Create a Snapshot"),
"email" => N_("Send an E-mail"),
"snmp_trap" => N_("Send an SNMP Trap"),
"tag" => N_("Tag"),
"reconfigure_memory" => N_("Reconfigure Memory"),
"reconfigure_cpus" => N_("Reconfigure CPUs"),
"custom_automation" => N_("Invoke a Custom Automation"),
"evaluate_alerts" => N_("Evaluate Alerts"),
"assign_scan_profile" => N_("Assign Profile to Analysis Task"),
"set_custom_attribute" => N_("Set a Custom Attribute in vCenter"),
"inherit_parent_tags" => N_("Inherit Parent Tags"),
"remove_tags" => N_("Remove Tags"),
"delete_snapshots_by_age" => N_("Delete Snapshots by Age"),
"run_ansible_playbook" => N_("Run Ansible Playbook")
)
end

Expand Down

0 comments on commit 07d8e26

Please sign in to comment.