Uploaded image for project: 'Internationalization'
  1. Internationalization
  2. INTL-41

I18N dates in localized output should also be localized

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Template:
    • Team:
      Coremunity
    • Sprint:
      Globalization Activities
    • Method Found:
      Manual Test
    • QA Risk Assessment:
      Manual

      Description

      The files autogenerated by Puppet where the text string is converted should include a date that is converted to the locale's format as well.

      I found these 2 specific instances where we print the date by using Time.now.

      #. TRANSLATORS message accompanied by date of generation
      #: ../lib/puppet/util/reference.rb:17
      msgid "This page autogenerated on "
      msgstr "このページは自動作成されました。"
       
          "\n\n----------------\n\n*" + _("This page autogenerated on ") + "#{Time.now}*\n"
      

      In this case the message WON'T have a closing "paren" in the output, which is broken as well.

      #. TRANSLATORS message accompanied by date of generation
      #: ../lib/puppet/util/reference.rb:116
      msgid ""
      "\n"
      "\n"
      "**This page is autogenerated; any changes will get overwritten** *(last generated on "
      msgstr "\n"
      "\n"
      "**このページは自動作成されています; 変更を加えると、上書きされます** *(最近の作成 "
       
          text << _("\n\n**This page is autogenerated; any changes will get overwritten** *(last generated on ") + "#{Time.now.to_s})*\n\n"
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              erwin.hom Erwin Hom
              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