Re: [Django] #15143: Add precisions about setting the language for the test client

2011-03-06 Thread Django
#15143: Add precisions about setting the language for the test client
-+--
   Reporter:  claudep|Owner:  nobody
 Status:  new|Milestone:
  Component:  Documentation  |  Version:  1.2
 Resolution: | Keywords:
   Triage Stage:  Accepted   |Has patch:  0
Needs documentation:  0  |  Needs tests:  0
Patch needs improvement:  0  |
-+--
Changes (by poswald):

 * cc: poswald (added)


-- 
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] #15143: Add precisions about setting the language for the test client

2011-01-21 Thread Django
#15143: Add precisions about setting the language for the test client
+---
  Reporter:  claudep| Owner:  nobody
Status:  new| Milestone:
 Component:  Documentation  |   Version:  1.2   
Resolution: |  Keywords:
 Stage:  Accepted   | Has_patch:  0 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Changes (by ramiro):

  * needs_better_patch:  => 0
  * stage:  Unreviewed => Accepted
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 BTW, the `activate/deactivate` functions from `django.utils.translation`
 aren't documented either.

-- 
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] #15143: Add precisions about setting the language for the test client

2011-01-21 Thread Django
#15143: Add precisions about setting the language for the test client
---+
 Reporter:  claudep|   Owner:  nobody
   Status:  new|   Milestone:
Component:  Documentation  | Version:  1.2   
 Keywords: |   Stage:  Unreviewed
Has_patch:  0  |  
---+
 I suggest to add a note in the documentation about how to set the language
 for the test client.

 Without the LocaleMiddleware, it's possible to set it with the
 activate/deactivate functions from django.utils.translation.

 When LocaleMiddleware is activated, another method has to be used,
 otherwise the settings.LANGUAGE_CODE is always used. I've been able to set
 the language by passing HTTP_ACCEPT_LANGUAGE='de' to the get/post method,
 or by loading a cookie
 (client.cookies.load({settings.LANGUAGE_COOKIE_NAME:'de'})).

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