[OpenStack-I18n] [Bug 1586041] Re: Incorrect PO-Revision-Date in some translation files for aodh project
    Ian Y. Choi 
    ianyrchoi at gmail.com
       
    Thu Aug  3 13:18:23 UTC 2017
    
    
  
https://zanata.atlassian.net/browse/ZNTA-1145 was patched in Zanata
3.9.1, and Infra team, I18n team, and Zanata development team upgraded
Zanata (translate.openstack.org) to 3.9.6 on March this year. So it
should be addressed. If someone see the bug again, please resubmit it.
** Changed in: openstack-i18n
       Status: In Progress => Fix Released
-- 
You received this bug notification because you are a member of OpenStack
I18n Core Team, which is subscribed to openstack i18n.
https://bugs.launchpad.net/bugs/1586041
Title:
  Incorrect PO-Revision-Date in some translation files for aodh project
Status in openstack i18n:
  Fix Released
Bug description:
  Following .po files have empty revision date, "PO-Revision-Date: \n":
   aodh/locale/it/LC_MESSAGES/aodh.po
   aodh/locale/pt_BR/LC_MESSAGES/aodh.po
   aodh/locale/zh_CN/LC_MESSAGES/aodh-log-info.po
   aodh/locale/zh_CN/LC_MESSAGES/aodh.po
   aodh/locale/zh_TW/LC_MESSAGES/aodh.po
  This makes compile_catalog to fail:
  $ python setup.py compile_catalog
  running compile_catalog
  compiling catalog aodh/locale/ja/LC_MESSAGES/aodh.po to aodh/locale/ja/LC_MESSAGES/aodh.mo
  compiling catalog aodh/locale/ru/LC_MESSAGES/aodh.po to aodh/locale/ru/LC_MESSAGES/aodh.mo
  compiling catalog aodh/locale/pt/LC_MESSAGES/aodh.po to aodh/locale/pt/LC_MESSAGES/aodh.mo
  compiling catalog aodh/locale/en_GB/LC_MESSAGES/aodh.po to aodh/locale/en_GB/LC_MESSAGES/aodh.mo
  compiling catalog aodh/locale/ko_KR/LC_MESSAGES/aodh.po to aodh/locale/ko_KR/LC_MESSAGES/aodh.mo
  compiling catalog aodh/locale/de/LC_MESSAGES/aodh.po to aodh/locale/de/LC_MESSAGES/aodh.mo
  Traceback (most recent call last):
    File "setup.py", line 29, in <module>
      pbr=True)
    File "/usr/lib64/python2.7/distutils/core.py", line 151, in setup
      dist.run_commands()
    File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands
      self.run_command(cmd)
    File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
    File "/home/amoralej/eng/babel/lib/python2.7/site-packages/babel/messages/frontend.py", line 178, in run
      self._run_domain(domain)
    File "/home/amoralej/eng/babel/lib/python2.7/site-packages/babel/messages/frontend.py", line 218, in _run_domain
      catalog = read_po(infile, locale)
    File "/home/amoralej/eng/babel/lib/python2.7/site-packages/babel/messages/pofile.py", line 217, in read_po
      _add_message()
    File "/home/amoralej/eng/babel/lib/python2.7/site-packages/babel/messages/pofile.py", line 165, in _add_message
      catalog[msgid] = message
    File "/home/amoralej/eng/babel/lib/python2.7/site-packages/babel/messages/catalog.py", line 601, in __setitem__
      self.mime_headers = _parse_header(message.string).items()
    File "/home/amoralej/eng/babel/lib/python2.7/site-packages/babel/messages/catalog.py", line 420, in _set_mime_headers
      self.revision_date = _parse_datetime_header(value)
    File "/home/amoralej/eng/babel/lib/python2.7/site-packages/babel/messages/catalog.py", line 46, in _parse_datetime_header
      tt = time.strptime(match.group('datetime'), '%Y-%m-%d %H:%M')
    File "/usr/lib64/python2.7/_strptime.py", line 467, in _strptime_time
      return _strptime(data_string, format)[0]
    File "/usr/lib64/python2.7/_strptime.py", line 325, in _strptime
      (data_string, format))
  ValueError: time data u'' does not match format '%Y-%m-%d %H:%M'
  
  I've checked in https://translate.openstack.org that files are wrong there too, not only in github.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openstack-i18n/+bug/1586041/+subscriptions
    
    
More information about the OpenStack-I18n
mailing list