Changes between Initial Version and Version 1 of Ticket #28773, comment 7


Ignore:
Timestamp:
Nov 11, 2017, 11:11:40 AM (7 years ago)
Author:
Hendy Irawan

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28773, comment 7

    initial v1  
    1414
    1515So after the file is written by write_pot_file, something else is processing and overwriting that file with broken syntax.
     16
     17Self notes:
     18
     19* write_pot_file is called by process_locale_dir() line 591
     20* after write_pot_file, then (for build_file in build_files).cleanup, it noop with this bug
     21* process_locale_dir is called by process_files (line 499)
     22* process_files is called by build_potfiles (line 402)
     23* build_potfiles calls Running ['msguniq', '--to-code=utf-8', 'D:\\work\\messagesbug\\messagesbug\\edu\\locale\\django.pot']
     24
     25When I try to run it manually: (extension *must* be .pot, otherwise you'll get error)
     26
     27{{{
     28(venv) D:\work\messagesbug\messagesbug>msguniq --to-code=utf-8 edu\locale\orig.django.pot
     29warning: Could not open file /usr/share/gettext/styles/po-default.css
     30...
     31#: .\edu\templates\edu\home.html:66 .\edu\templates\edu\home.html:68
     32#: .\edu\templates\edu\music_country.html:15
     33#: .\edu\templates\edu\music_country.html:40
     34#: .\edu\templates\edu\music_country.html:44
     35#, python-format
     36msgid "Best Music Schools & Teachers in %(loc_name)s"
     37msgstr ""
     38
     39 .\edu\templates\edu\music_country.html:34
     40#, python-format
     41msgid ""
     42"With the <strong>huge benefits to learning to play a musical instrument</"
     43}}}
     44
     45So indeed it is a bug with {{msguniq}} on Windows. Good progress. So next step is to make a good trigger :)
Back to Top