Project

General

Profile

Actions

Bug #7262

closed

Messages are not localized

Added by Anonymous over 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Low
Category:
Hammer core
Target version:
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

$ env|grep ^L|sort
LANG=fr_FR.UTF-8
LC_COLLATE=fr_FR.UTF-8
LC_CTYPE=fr_FR.UTF-8
LOGNAME=mmoll

$ hammer -d shell
[ INFO 2014-08-26 13:29:18 Init] Initialization of Hammer CLI (0.1.3) has started...
[DEBUG 2014-08-26 13:29:18 Init] Running at ruby 2.1.2-p95
[ INFO 2014-08-26 13:29:18 Init] Configuration from the file /usr/local/etc/hammer/cli_config.yml has been loaded
[ INFO 2014-08-26 13:29:18 Init] Configuration from the file /usr/local/etc/hammer/cli.modules.d/foreman.yml has been loaded
[DEBUG 2014-08-26 13:29:18 Connection] Registered: foreman
[Foreman] password for mmoll: 
[DEBUG 2014-08-26 13:29:22 API] Global headers: {
        :content_type => "application/json",
              :accept => "application/json;version=2",
    "Accept-Language" => "fr" 
}
[ INFO 2014-08-26 13:29:22 Modules] Extension module hammer_cli_foreman (0.1.3) loaded
[DEBUG 2014-08-26 13:29:22 Init] Using locale 'fr'
[DEBUG 2014-08-26 13:29:22 Init] 'mo' files for locale domain 'hammer-cli' loaded from '/usr/local/lib/ruby/gems/2.1/gems/hammer_cli-0.1.3/locale'
[DEBUG 2014-08-26 13:29:22 Init] 'mo' files for locale domain 'hammer-cli' loaded from '/usr/share/locale'
[DEBUG 2014-08-26 13:29:22 Init] 'mo' files for locale domain 'hammer-cli-foreman' loaded from '/usr/local/lib/ruby/gems/2.1/gems/hammer_cli_foreman-0.1.3/locale'
[DEBUG 2014-08-26 13:29:22 Init] 'mo' files for locale domain 'hammer-cli-foreman' loaded from '/usr/share/locale'
[ INFO 2014-08-26 13:29:22 HammerCLI::MainCommand] Called with options: {"option_debug"=>true}
[ INFO 2014-08-26 13:29:22 HammerCLI::ShellCommand] Called with options: {}
Welcome to the hammer interactive shell
Type 'help' for usage information
hammer> host info --id 18
[ INFO 2014-08-26 13:29:25 HammerCLI::ShellMainCommand] Called with options: {}
[ INFO 2014-08-26 13:29:25 HammerCLIForeman::Host] Called with options: {}
[ INFO 2014-08-26 13:29:25 HammerCLIForeman::Host::InfoCommand] Called with options: {"option_id"=>"18"}
[ INFO 2014-08-26 13:29:25 API] GET /api/hosts/18
[DEBUG 2014-08-26 13:29:25 API] Params: {}
[DEBUG 2014-08-26 13:29:25 API] Headers: {
    :params => {}
}
[DEBUG 2014-08-26 13:29:25 API] Response {
                     "name" => "debian7.kvedulv.de",
                       "id" => 18,
                       "ip" => "192.168.200.200",
           "environment_id" => 1,
         "environment_name" => "production",
              "last_report" => nil,
                      "mac" => "08:00:27:66:aa:9a",
                 "realm_id" => nil,
               "realm_name" => nil,
                   "sp_mac" => nil,
                    "sp_ip" => nil,
                  "sp_name" => nil,
                "domain_id" => 1,
              "domain_name" => "kvedulv.de",
          "architecture_id" => 1,
        "architecture_name" => "x86_64",
       "operatingsystem_id" => 13,
     "operatingsystem_name" => "Debian 7.6",
                "subnet_id" => 3,
              "subnet_name" => "HOME-NET",
             "sp_subnet_id" => nil,
                "ptable_id" => 2,
              "ptable_name" => "Preseed default",
                "medium_id" => 5,
              "medium_name" => "Debian Mirror",
                    "build" => false,
                  "comment" => "",
                     "disk" => "",
             "installed_at" => "2014-08-19T21:08:32Z",
                 "model_id" => 1,
               "model_name" => "VirtualBox",
             "hostgroup_id" => nil,
           "hostgroup_name" => nil,
                 "owner_id" => 2,
               "owner_type" => "User",
                  "enabled" => true,
       "puppet_ca_proxy_id" => nil,
                  "managed" => true,
                "use_image" => nil,
               "image_file" => "",
                     "uuid" => nil,
      "compute_resource_id" => nil,
    "compute_resource_name" => nil,
       "compute_profile_id" => nil,
     "compute_profile_name" => nil,
             "capabilities" => [
        [0] "build" 
    ],
         "provision_method" => "build",
          "puppet_proxy_id" => nil,
                 "certname" => "debian7.kvedulv.de",
                 "image_id" => nil,
               "image_name" => nil,
               "created_at" => "2014-05-25T19:57:53Z",
               "updated_at" => "2014-08-19T21:08:33Z",
             "last_compile" => nil,
          "last_freshcheck" => nil,
                   "serial" => nil,
           "source_file_id" => nil,
            "puppet_status" => 0,
              "location_id" => 2,
            "location_name" => "Home",
        "all_puppetclasses" => [],
               "parameters" => [
        [0] {
               "id" => 13,
             "name" => "enable-saltstack-repo",
            "value" => "true" 
        },
        [1] {
               "id" => 12,
             "name" => "salt_master",
            "value" => "marduk.kvedulv.de" 
        }
    ],
               "interfaces" => [],
            "puppetclasses" => [],
            "config_groups" => []
}
[ INFO 2014-08-26 13:29:25 API] GET /api/hosts/18/parameters
[DEBUG 2014-08-26 13:29:25 API] Params: {}
[DEBUG 2014-08-26 13:29:25 API] Headers: {
    :params => {}
}
[DEBUG 2014-08-26 13:29:26 API] Response {
       "total" => 2,
    "subtotal" => 2,
        "page" => 1,
    "per_page" => 20,
      "search" => nil,
        "sort" => {
           "by" => nil,
        "order" => nil
    },
     "results" => [
        [0] {
                    "id" => 13,
                  "name" => "enable-saltstack-repo",
                 "value" => "true",
              "priority" => 4,
            "created_at" => "2014-08-19T20:55:00Z",
            "updated_at" => "2014-08-19T20:55:00Z" 
        },
        [1] {
                    "id" => 12,
                  "name" => "salt_master",
                 "value" => "marduk.kvedulv.de",
              "priority" => 4,
            "created_at" => "2014-08-19T20:18:02Z",
            "updated_at" => "2014-08-19T20:18:02Z" 
        }
    ]
}
Id:                 18
Name:               debian7.kvedulv.de
Operating System:   Debian 7.6
Host Group:         
IP:                 192.168.200.200
MAC:                08:00:27:66:aa:9a
UUID:               
Cert name:          debian7.kvedulv.de
Environment:        production
Managed:            true
Enabled:            true
Build:              false
Use image:          
Disk:               
Image file:         
SP Name:            
SP IP:              
SP MAC:             
SP Subnet:          
Installed at:       2014/08/19 21:08:32
Last report:        
Puppet CA Proxy Id: 
Medium:             Debian Mirror
Model:              VirtualBox
Owner Id:           2
Subnet:             HOME-NET
Domain:             kvedulv.de
Puppet Proxy Id:    
Owner Type:         User
Partition Table:    Preseed default
Architecture:       x86_64
Image:              
Compute Resource:   
Comment:            
Parameters:         
    enable-saltstack-repo => true
    salt_master => marduk.kvedulv.de
Created at:         2014/05/25 19:57:53
Updated at:         2014/08/19 21:08:33

hammer>

There is no French output. However, /usr/local/lib/ruby/gems/2.1/gems/hammer_cli-0.1.3/locale/fr/LC_MESSAGES/hammer-cli.mo is there and can be read by the user.

Related issues 1 (0 open1 closed)

Related to Hammer CLI - Bug #9648: localization does not work on Debian based distributionsClosedDominic Cleal03/04/2015Actions
Actions #1

Updated by Anonymous over 9 years ago

  • Assignee set to Tomáš Strachota
  • Priority changed from Normal to Low
Actions #2

Updated by The Foreman Bot over 9 years ago

  • Status changed from New to Ready For Testing
  • Target version set to 1.7.4
  • Pull request https://github.com/theforeman/hammer-cli/pull/140 added
  • Pull request deleted ()
Actions #4

Updated by Anonymous over 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #5

Updated by Dominic Cleal about 9 years ago

  • Related to Bug #9648: localization does not work on Debian based distributions added
Actions

Also available in: Atom PDF