Re: [Django] #14045: makemessage miss some gettext in javascript

2011-06-07 Thread Django
#14045: makemessage miss some gettext in javascript
+--
   Reporter:  shaohao   |  Owner:  nedbatchelder
   Type:  Bug   | Status:  closed
  Milestone:|  Component:  Internationalization
Version:  1.2   |   Severity:  Normal
 Resolution:  fixed |   Keywords:  xgettext
   Triage Stage:  Accepted  |  Has patch:  1
Needs documentation:  0 |Needs tests:  0
Patch needs improvement:  0 |  Easy pickings:  0
+--
Changes (by jezdez):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [16333]:
 {{{
 #!CommitTicketReference repository="" revision="16333"
 Fixed #7704, #14045 and #15495 -- Introduce a lexer for Javascript to fix
 multiple problems of the translation of Javascript files with xgettext.
 Many thanks to Ned Batchelder for his contribution of the JsLex library.
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #14045: makemessage miss some gettext in javascript

2011-04-21 Thread Django
#14045: makemessage miss some gettext in javascript
+--
   Reporter:  shaohao   |  Owner:  nedbatchelder
   Type:  Bug   | Status:  new
  Milestone:|  Component:  Internationalization
Version:  1.2   |   Severity:  Normal
 Resolution:|   Keywords:  xgettext
   Triage Stage:  Accepted  |  Has patch:  1
Needs documentation:  0 |Needs tests:  0
Patch needs improvement:  0 |  Easy pickings:  0
+--
Changes (by jacob):

 * easy:   => 0


Comment:

 See also #15832 (which covers switching to Babel).

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #14045: makemessage miss some gettext in javascript

2011-04-09 Thread Django
#14045: makemessage miss some gettext in javascript
+
   Reporter:  shaohao   |Owner:  nedbatchelder
   Type:  Bug   |   Status:  new
  Milestone:|Component:  Internationalization
Version:  1.2   | Severity:  Normal
 Resolution:| Keywords:  xgettext
   Triage Stage:  Accepted  |Has patch:  1
Needs documentation:  0 |  Needs tests:  0
Patch needs improvement:  0 |
+
Changes (by nedbatchelder):

 * cc: ned@… (added)
 * has_patch:  0 => 1


Comment:

 See the patches on #7704 for a fix.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #14045: makemessage miss some gettext in javascript

2011-04-07 Thread Django
#14045: makemessage miss some gettext in javascript
+
   Reporter:  shaohao   |Owner:  nedbatchelder
   Type:  Bug   |   Status:  new
  Milestone:|Component:  Internationalization
Version:  1.2   | Severity:  Normal
 Resolution:| Keywords:  xgettext
   Triage Stage:  Accepted  |Has patch:  0
Needs documentation:  0 |  Needs tests:  0
Patch needs improvement:  0 |
+
Changes (by nedbatchelder):

 * type:  Uncategorized => Bug


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #14045: makemessage miss some gettext in javascript

2011-04-07 Thread Django
#14045: makemessage miss some gettext in javascript
-+-
   Reporter:  shaohao|Owner:  nedbatchelder
   Type: |   Status:  new
  Uncategorized  |Component:  Internationalization
  Milestone: | Severity:  Normal
Version:  1.2| Keywords:  xgettext
 Resolution: |Has patch:  0
   Triage Stage:  Accepted   |  Needs tests:  0
Needs documentation:  0  |
Patch needs improvement:  0  |
-+-
Changes (by nedbatchelder):

 * owner:  nobody => nedbatchelder
 * status:  reopened => new
 * type:   => Uncategorized
 * severity:   => Normal


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #14045: makemessage miss some gettext in javascript

2011-03-15 Thread Django
#14045: makemessage miss some gettext in javascript
+
   Reporter:  shaohao   |Owner:  nobody
 Status:  reopened  |Milestone:
  Component:  Internationalization  |  Version:  1.2
 Resolution:| Keywords:  xgettext
   Triage Stage:  Accepted  |Has patch:  0
Needs documentation:  0 |  Needs tests:  0
Patch needs improvement:  0 |
+

Comment (by lrekucki):

 Replying to [comment:7 claudep]:
 > And as jezdez told us on IRC, the middle-term solution would be to use a
 real Javascript parser (not available in xgettext) to extract strings from
 js files (like the one in Babel:
 http://svn.edgewall.org/repos/babel/trunk/babel/messages/jslexer.py).

 +Inf on using a real lexer/parser. See #15495 for another weird bug.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #14045: makemessage miss some gettext in javascript

2011-03-15 Thread Django
#14045: makemessage miss some gettext in javascript
+
   Reporter:  shaohao   |Owner:  nobody
 Status:  reopened  |Milestone:
  Component:  Internationalization  |  Version:  1.2
 Resolution:| Keywords:  xgettext
   Triage Stage:  Accepted  |Has patch:  0
Needs documentation:  0 |  Needs tests:  0
Patch needs improvement:  0 |
+

Comment (by claudep):

 And as jezdez told us on IRC, the middle-term solution would be to use a
 real Javascript parser (not available in xgettext) to extract strings from
 js files (like the one in Babel:
 http://svn.edgewall.org/repos/babel/trunk/babel/messages/jslexer.py).

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #14045: makemessage miss some gettext in javascript

2011-03-15 Thread Django
#14045: makemessage miss some gettext in javascript
+
   Reporter:  shaohao   |Owner:  nobody
 Status:  reopened  |Milestone:
  Component:  Internationalization  |  Version:  1.2
 Resolution:| Keywords:  xgettext
   Triage Stage:  Accepted  |Has patch:  0
Needs documentation:  0 |  Needs tests:  0
Patch needs improvement:  0 |
+

Comment (by jezdez):

 Yeah, I was able to reproduce this myself, and I first thought it would be
 able to be fixed by changing from using "Perl" to "Python". Guess we need
 to limit the use of gettext to 0.17 for now.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #14045: makemessage miss some gettext in javascript

2010-12-18 Thread Django
#14045: makemessage miss some gettext in javascript
---+
  Reporter:  shaohao   | Owner:  nobody  
Status:  reopened  | Milestone:  
 Component:  Internationalization  |   Version:  1.2 
Resolution:|  Keywords:  xgettext
 Stage:  Unreviewed| Has_patch:  0   
Needs_docs:  0 |   Needs_tests:  0   
Needs_better_patch:  0 |  
---+
Changes (by ramusus):

  * status:  closed => reopened
  * resolution:  worksforme =>

Comment:

 I reopen ticket because. this problem may occur on some system
 distributions, I noticed above the reason and specification. Also I
 understand the problem is not inside Django. The problem inside gettext
 package or the way how Django use it.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #14045: makemessage miss some gettext in javascript

2010-12-18 Thread Django
#14045: makemessage miss some gettext in javascript
---+
  Reporter:  shaohao   | Owner:  nobody  
Status:  closed| Milestone:  
 Component:  Internationalization  |   Version:  1.2 
Resolution:  worksforme|  Keywords:  xgettext
 Stage:  Unreviewed| Has_patch:  0   
Needs_docs:  0 |   Needs_tests:  0   
Needs_better_patch:  0 |  
---+
Changes (by ramusus):

 * cc: ramu...@gmail.com (added)

Comment:

 The same occured to me. After my last Ubuntu update from 9.4 to 10.10
 version, makemessages command for javascripts starts to process my files
 incompletely. I investigate this problem deeper and come to conclusion the
 main reason is gettext package. It was the version 0.18.1.1-1ubuntu2.
 After downgrading gettext to 0.17-8ubuntu3 the problem disappeared.

 I don't know is it a normal behavior of gettext or bug. I understand
 gettext doesn't support straight Javasript language support, but
 nevertheless setting "-L Perl" worried me. Is there no any other parsers
 for javascripts?

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #14045: makemessage miss some gettext in javascript

2010-10-05 Thread Django
#14045: makemessage miss some gettext in javascript
---+
  Reporter:  shaohao   | Owner:  nobody  
Status:  closed| Milestone:  
 Component:  Internationalization  |   Version:  1.2 
Resolution:  worksforme|  Keywords:  xgettext
 Stage:  Unreviewed| Has_patch:  0   
Needs_docs:  0 |   Needs_tests:  0   
Needs_better_patch:  0 |  
---+
Changes (by mk):

  * status:  new => closed
  * resolution:  => worksforme

Comment:

 I cannot reproduce this failure:

 {{{

 $ xgettext -d out -L Perl --keyword=gettext_noop --keyword=gettext_lazy
 --keyword=ngettext_lazy:1,2 --from-code UTF-8 -o - "result.pl"
 # SOME DESCRIPTIVE TITLE.
 # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
 # This file is distributed under the same license as the PACKAGE package.
 # FIRST AUTHOR , YEAR.
 #
 #, fuzzy
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
 "POT-Creation-Date: 2010-10-05 12:32+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME \n"
 "Language-Team: LANGUAGE \n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=CHARSET\n"
 "Content-Transfer-Encoding: 8bit\n"

 #: result.pl:5
 msgid "o"
 msgstr ""
 }}}

 Even if this would happen this would not be a Django but a gettext bug.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #14045: makemessage miss some gettext in javascript

2010-08-02 Thread Django
#14045: makemessage miss some gettext in javascript
---+
  Reporter:  shaohao   | Owner:  nobody  
Status:  new   | Milestone:  
 Component:  Internationalization  |   Version:  1.2 
Resolution:|  Keywords:  xgettext
 Stage:  Unreviewed| Has_patch:  0   
Needs_docs:  0 |   Needs_tests:  0   
Needs_better_patch:  0 |  
---+
Changes (by shaohao):

  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 If i change:
 {{{
 return val ? 1 : 0;
 }}}
 to {{{
 return $val ? 1 : 0;
 }}}

 xgettext works.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.