Changes between Initial Version and Version 1 of Ticket #29825, comment 5


Ignore:
Timestamp:
Oct 11, 2018, 2:39:08 PM (6 years ago)
Author:
Jeremy Moffitt

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29825, comment 5

    initial v1  
    1 I've got the unit tests running, though I'm not 100% clear on how this section gets tested given that its part of a javascript template within django (defined in django/views/i18n.py) . I do see that jsi18n-mocks.test.js defines:
     1*edit* found the view tests in test_i18n.py , attempting to replicate the scenario there
    22
    3 {{{
    4     django.ngettext = function(singular, plural, count) {
    5         return (count === 1) ? singular : plural;
    6     };
    7 }}}
    8 
    9 the tests under tests/i18n/tests.py are testing the functions from utils/translation (where trans_real.py and trans_null.py both define ngettext). I'll continue investigating to see if I can pin it down further.
    10 
    11 When the problem is occurring, the initial call into the django.ngettext (as observed via the debugger) passes in ("Image", "Images", undefined) 
     3When the problem is occurring in Horizon, the initial call into the django.ngettext (as observed via the debugger) passes in ("Image", "Images", undefined) 
Back to Top