Re: [Django] #17621: django.utils.translation.activate() issue

2012-02-01 Thread Django
#17621: django.utils.translation.activate() issue
-+-
 Reporter:   |Owner:  nobody
  tomasz.zawadzinski@…   |   Status:  closed
 Type:  Bug  |  Version:  1.3
Component:   |   Resolution:
  Internationalization   |  worksforme
 Severity:  Normal   | Triage Stage:
 Keywords:   |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by aaugustin):

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


Comment:

 This is exactly the reason why `ugettext_lazy` exists :)

 https://docs.djangoproject.com/en/dev/topics/i18n/translation/#lazy-
 translation

-- 
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] #17621: django.utils.translation.activate() issue

2012-02-01 Thread Django
#17621: django.utils.translation.activate() issue
-+-
 Reporter:   |Owner:  nobody
  tomasz.zawadzinski@…   |   Status:  new
 Type:  Bug  |  Version:  1.3
Component:   |   Resolution:
  Internationalization   | Triage Stage:
 Severity:  Normal   |  Unreviewed
 Keywords:   |  Needs documentation:  0
Has patch:  0|  Patch needs improvement:  0
  Needs tests:  0|UI/UX:  0
Easy pickings:  0|
-+-

Comment (by anonymous):

 I'm sorry, everything is fine using ugettext_lazy. I don't know if this
 problem is worth solving anymore.

 code looked like this (other strings were translated properly, these in
 templates and other helping functions):


 {{{

 from django.utils.translation import ugettext as _

 class BookingForm(forms.Form):
name = forms.CharField(max_length=25, label=_(u'Imię'),
 error_messages={'required': _(u'Proszę wpisać imię.')})
[...]

 def index(request, lang=''):
if lang == 'en':
   translation.activate('en')
elif lang == 'pl':
   translation.activate('pl')

c = {'form': BookingForm()}
[...]
 }}}

-- 
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] #17621: django.utils.translation.activate() issue

2012-02-01 Thread Django
#17621: django.utils.translation.activate() issue
-+-
 Reporter:   |Owner:  nobody
  tomasz.zawadzinski@…   |   Status:  new
 Type:  Bug  |  Version:  1.3
Component:   |   Resolution:
  Internationalization   | Triage Stage:
 Severity:  Normal   |  Unreviewed
 Keywords:   |  Needs documentation:  0
Has patch:  0|  Patch needs improvement:  0
  Needs tests:  0|UI/UX:  0
Easy pickings:  0|
-+-
Changes (by claudep):

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


Comment:

 Please provide us with real code so as we can judge if the problem is in
 Django or on your side. Did you use ugettext_lazy to mark form class
 strings for translation?

-- 
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.



[Django] #17621: django.utils.translation.activate() issue

2012-01-31 Thread Django
#17621: django.utils.translation.activate() issue
--+
 Reporter:  tomasz.zawadzinski@…  |  Owner:  nobody
 Type:  Bug   | Status:  new
Component:  Internationalization  |Version:  1.3
 Severity:  Normal|   Keywords:
 Triage Stage:  Unreviewed|  Has patch:  0
Easy pickings:  0 |  UI/UX:  0
--+
 django.utils.translation.activate() doesn't affect on form instances.
 Strings defined in a class of form (ex label, error_messages etc), are
 translated only in a result of setting a proper cookie or session key.

-- 
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.