Uploaded image for project: 'Internationalization (moved to puppet.atlassian.net)'
  1. Internationalization (moved to puppet.atlassian.net)
  2. INTL-41

I18N dates in localized output should also be localized

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Done
    • None
    • None
    • None
    • None
    • 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

              erwin.hom Erwin Hom
              eric.delaney Eric Delaney
              Eric Delaney Eric Delaney
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support