Changes between Initial Version and Version 1 of Ticket #19869, comment 11


Ignore:
Timestamp:
Dec 3, 2013, 6:34:23 PM (11 years ago)
Author:
Unai Zalakain

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19869, comment 11

    initial v1  
    1 The ``set_language`` view could be used to change the live test server thread language but that would mean adding some kind of new method to the test case and the inability to use the already defined methods (`django.utils.translation.override`, `django.utils.translation.activate`, etc).
     1The `set_language` view could be used to change the live test server thread language but that would mean adding some kind of new method to the test case and the inability to use the already defined methods (`django.utils.translation.override`, `django.utils.translation.activate`, etc).
    22
    33Instead, the PR opts for making the thread local that holds the current active language a non-local. This is done in the two threads so suddenly one thread is capable of accessing the other one's active language. This is afterwards reverted to thread locals again.
Back to Top