﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
27486	intword and filesizeformat filters shouldn't pass non-integers to gettext	Tim Graham	Mariusz Felisiak <felisiak.mariusz@…>	"Python plans to [http://bugs.python.org/issue28692 deprecate selecting plural form by fractional numbers]. The `intword` and `filesizeformat` template filters are currently doing this:

{{{
$ python -Wall tests/runtests.py humanize_tests.tests.HumanizeTests.test_i18n_intword
Testing against Django installed in '/home/tim/code/django/django' with up to 3 processes
Creating test database for alias 'default'...
Creating test database for alias 'other'...
/home/tim/code/django/django/utils/translation/trans_real.py:373: DeprecationWarning: Plural value must be an integer, got float
  return getattr(t, translation_function)(singular, plural, number)
.
}}}

{{{
python -Wall tests/runtests.py template_tests.filter_tests.test_filesizeformat.FunctionTests.test_localized_formats 
Testing against Django installed in '/home/tim/code/django/django' with up to 3 processes
Creating test database for alias 'default'...
Creating test database for alias 'other'...
/home/tim/code/django/django/utils/translation/trans_real.py:373: DeprecationWarning: Plural value must be an integer, got float
  return getattr(t, translation_function)(singular, plural, number)
.
}}}"	Cleanup/optimization	closed	Template system	dev	Normal	fixed			Accepted	1	0	0	0	0	0
