summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2011-05-06 13:29:58 +0000
committerJannis Leidel <jannis@leidel.info>2011-05-06 13:29:58 +0000
commit8f3e1c1c63d3d3b36715afa9095e04142c4507e2 (patch)
treef9575b52c0dc9c6e8faf00ed7e802d6b19a04462 /docs
parent7dd72360a2ab3a3a7ca74922da670c7361a9abb3 (diff)
Fixed #6392 -- Made django.contrib.humanize template tags locale aware. Thanks, Dave McLain.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16168 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/humanize.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/ref/contrib/humanize.txt b/docs/ref/contrib/humanize.txt
index 23b48dd5d3..aab6ff31b9 100644
--- a/docs/ref/contrib/humanize.txt
+++ b/docs/ref/contrib/humanize.txt
@@ -43,6 +43,12 @@ Examples:
* ``450000`` becomes ``450,000``.
* ``4500000`` becomes ``4,500,000``.
+:ref:`Format localization <format-localization>` will be respected if enabled,
+e.g. with the ``'de'`` language:
+
+ * ``45000`` becomes ``'45.000'``.
+ * ``450000`` becomes ``'450.000'``.
+
You can pass in either an integer or a string representation of an integer.
.. templatefilter:: intword
@@ -61,6 +67,13 @@ Examples:
Values up to 1000000000000000 (one quadrillion) are supported.
+:ref:`Format localization <format-localization>` will be respected if enabled,
+e.g. with the ``'de'`` language:
+
+ * ``1000000`` becomes ``'1,0 Million'``.
+ * ``1200000`` becomes ``'1,2 Million'``.
+ * ``1200000000`` becomes ``'1,2 Milliarden'``.
+
You can pass in either an integer or a string representation of an integer.
.. templatefilter:: naturalday