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/repository.rb
class ListCommand < HammerCLIForeman::ListCommand
output do
field :id, "Id"
field :label, "Label"
field :description, "Description"
field :id, _("Id")
field :label, _("Label")
field :description, _("Description")
end
apipie_options
......
action "sync"
command_name "synchronize"
success_message "Repository is being synchronized in task %{id}s"
failure_message "Could not synchronize the repository"
success_message _("Repository is being synchronized in task %{id}s")
failure_message _("Could not synchronize the repository")
apipie_options
end
......
end
end
HammerCLI::MainCommand.subcommand "repository", "Manipulate repositories",
HammerCLI::MainCommand.subcommand "repository", _("Manipulate repositories"),
HammerCLIKatello::Repository

Also available in: Unified diff