[Django] #29061: manage.py makemessages throws syntax error due to incorrectly generated django.pot, again

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Django] #29061: manage.py makemessages throws syntax error due to incorrectly generated django.pot, again

Django
#29061: manage.py makemessages throws syntax error due to incorrectly generated
django.pot, again
-------------------------------------+-------------------------------------
               Reporter:  Kyan       |          Owner:  nobody
                   Type:  Bug        |         Status:  new
              Component:  Core       |        Version:  2.0
  (Management commands)              |       Keywords:  gettext,
               Severity:  Normal     |  makemessages, Windows
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 https://code.djangoproject.com/ticket/28773

 I met the same problem, exactly like the ticket above.
 I am using Django 2.0.1 and after check the django codes, I confirm that
 fix is in my django. But that fix doesn't work for me.
 (Fix:
 https://github.com/django/django/commit/4f5526e346861c0b2ffa2ea7229747c883e14432)

 I changed the file in django/core/management/commands/makemessages.py
 {{{
 # django/core/management/commands/makemessages.py, line 193
 with open(potfile, 'a', encoding='utf-8', newline='\n') as fp:
 }}}

 from newline="\n" to newline="\r" and it works.

--
Ticket URL: <https://code.djangoproject.com/ticket/29061>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/050.71cc3700c260988feeec40c86aa99f07%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #29061: manage.py makemessages throws syntax error due to incorrectly generated django.pot, again

Django
#29061: manage.py makemessages throws syntax error due to incorrectly generated
django.pot, again
-------------------------------------+-------------------------------------
     Reporter:  Kyan                 |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Core (Management     |                  Version:  2.0
  commands)                          |
     Severity:  Normal               |               Resolution:
     Keywords:  gettext,             |             Triage Stage:
  makemessages, Windows              |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Kyan):

 * Attachment "201703271529397914076.png" added.

 first makemessages is for "\r" version, second makemessages is for "\n"
 version.

--
Ticket URL: <https://code.djangoproject.com/ticket/29061>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.c963e8eee1a625d2074863f9dfe92876%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #29061: manage.py makemessages throws syntax error due to incorrectly generated django.pot, again

Django
In reply to this post by Django
#29061: manage.py makemessages throws syntax error due to incorrectly generated
django.pot, again
-------------------------------------+-------------------------------------
     Reporter:  Kyan                 |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Core (Management     |                  Version:  2.0
  commands)                          |
     Severity:  Normal               |               Resolution:
     Keywords:  gettext,             |             Triage Stage:  Accepted
  makemessages, Windows              |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

 * stage:  Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/29061#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.96ce5c47cb92e7cdcaf4c056f1ee750b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #29061: manage.py makemessages throws syntax error due to incorrectly generated django.pot, again

Django
In reply to this post by Django
#29061: manage.py makemessages throws syntax error due to incorrectly generated
django.pot, again
-------------------------------------+-------------------------------------
     Reporter:  Kyan                 |                    Owner:  Gurpreet
                                     |  Singh
         Type:  Bug                  |                   Status:  assigned
    Component:  Core (Management     |                  Version:  2.0
  commands)                          |
     Severity:  Normal               |               Resolution:
     Keywords:  gettext,             |             Triage Stage:  Accepted
  makemessages, Windows              |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Gurpreet Singh):

 * status:  new => assigned
 * owner:  nobody => Gurpreet Singh


--
Ticket URL: <https://code.djangoproject.com/ticket/29061#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.277a2a10508efaba4857dc425dd78f85%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.