Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-7927

I18N: deprecated help Warning messages are print in english only

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Do
    • Affects Version/s: PUP 5.2.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Template:
    • Team:
      Coremunity
    • Method Found:
      Manual Test
    • Release Notes:
      Not Needed
    • QA Risk Assessment:
      Manual

      Description

      I was checking the help messages for depricated puppet subcommands and I noticed that the
      Warning message for the deprication doesn't appear to get translated. Although it appears to
      be translated.

      [root@jrtoktjo21jq94d locale]# LANG=ja_JP puppet help key
       
      Warning: 'puppet key' is deprecated and will be removed in a future release.
       
      USAGE: puppet key <action> [--terminus _ターミナス] [--extra ハッシュ]
       
      This subcommand manages certificate private keys. Keys are created
      automatically by puppet agent and when certificate requests are generated
      with 'puppet certificate generate'; it should not be necessary to use this
      subcommand directly.
       
      OPTIONS:
        --render-as FORMAT             - The rendering format to use.
        --verbose                      - Whether to log verbosely.
        --debug                        - Whether to log debug information.
        --extra ハッシュ                   - 間接リクエストに渡す追加の引数
        --terminus _ターミナス              - 使用する間接ターミナス
       
      ACTIONS:
        destroy    オブジェクトを削除。
        find       オブジェクトを名前で検索。
        info       このフェイスのデフォルトのターミナスクラスを印刷。
        save       API のみ: オブジェクトを作成または上書き。
        search     単一のオブジェクトまたは複数のオブジェクトを検索。
       
      TERMINI: ca, disabled_ca, file, memory
       
      See 'puppet man key' or 'man puppet-key' for full help.
      [root@jrtoktjo21jq94d locale]#
      

      We have a couple translations for this like this one:

      #: ../lib/puppet/application/face_base.rb:244
      msgid "'puppet %{face}' is deprecated and will be removed in a future release"
      msgstr "'puppet %{face}'は廃止予定であり、今後のリリースで廃止されます。"
      

      Ah the issue is that the text is coming from the .erb file "./puppet/face/help/face.erb"

      %# encoding: UTF-8%>
      <% if face.deprecated? -%>
      <%= "Warning: 'puppet #{face.name}' is deprecated and will be removed in a future release." %>
      <% end %>
      <% if face.synopsis -%>
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                eric.delaney Eric Delaney
                QA Contact:
                Eric Delaney
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support