Project

General

Profile

« Previous | Next » 

Revision 248796a5

Added by Tomas Strachota about 10 years ago

Fixes #4474 - i18n support

View differences:

lib/hammer_cli_katello/system_group.rb
resource KatelloApi::Resources::SystemGroup, "index"
output do
field :id, "ID"
field :name, "Name"
field :max_systems, "Limit"
field :description, "Description"
field :id, _("ID")
field :name, _("Name")
field :max_systems, _("Limit")
field :description, _("Description")
end
apipie_options
end
class CreateCommand < HammerCLIKatello::CreateCommand
success_message "System group created"
failure_message "Could not create the system group"
success_message _("System group created")
failure_message _("Could not create the system group")
resource KatelloApi::Resources::SystemGroup, "create"
apipie_options
......
end
class CopyCommand < HammerCLIKatello::CreateCommand
success_message "System group created"
failure_message "Could not create the system group"
success_message _("System group created")
failure_message _("Could not create the system group")
command_name "copy"
action "copy"
......
end
end
HammerCLI::MainCommand.subcommand 'systemgroup', "Manipulate system groups",
HammerCLI::MainCommand.subcommand 'systemgroup', _("Manipulate system groups"),
HammerCLIKatello::SystemGroup

Also available in: Unified diff