--- humanize_old.py	2009-08-01 18:13:01.000000000 +0200
+++ humanize.py	2009-08-01 18:16:38.000000000 +0200
@@ -37,6 +37,20 @@
 intcomma.is_safe = True
 register.filter(intcomma)
 
+def intdot(value):
+    """
+    Converts an integer to a string containing dots every three digits.
+    For example, 3000 becomes '3.000' and 45000 becomes '45.000'.
+    """
+    orig = force_unicode(value)
+    new = re.sub("^(-?\d+)(\d{3})", '\g<1>.\g<2>', orig)
+    if orig == new:
+        return new
+    else:
+        return intdot(new)
+intdot.is_safe = True
+register.filter(intdot)
+
 def intword(value):
     """
     Converts a large integer to a friendly text representation. Works best for
