Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.6.x] Fixed spelling ("dependant" -> "dependent")

Dependent means reliant on.
A dependant is a person like a child or spouse.

Thanks Andrew Wilcox for the report.

Backport of 090315f from master
  • Loading branch information...
commit 33503c57ef369f07dd6a3a33ecf5cdd3fbbd0a6b 1 parent 35fd14c
Tim Graham authored
2  django/utils/cache.py
@@ -168,7 +168,7 @@ def _i18n_cache_key_suffix(request, cache_key):
168 168
         cache_key += '.%s' % getattr(request, 'LANGUAGE_CODE', get_language())
169 169
     if settings.USE_TZ:
170 170
         # The datetime module doesn't restrict the output of tzname().
171  
-        # Windows is known to use non-standard, locale-dependant names.
  171
+        # Windows is known to use non-standard, locale-dependent names.
172 172
         # User-defined tzinfo classes may return absolutely anything.
173 173
         # Hence this paranoid conversion to create a valid cache key.
174 174
         tz_name = force_text(get_current_timezone_name(), errors='ignore')
2  django/utils/feedgenerator.py
@@ -33,7 +33,7 @@
33 33
 from django.utils.timezone import is_aware
34 34
 
35 35
 def rfc2822_date(date):
36  
-    # We can't use strftime() because it produces locale-dependant results, so
  36
+    # We can't use strftime() because it produces locale-dependent results, so
37 37
     # we have to map english month and day names manually
38 38
     months = ('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec',)
39 39
     days = ('Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun')
2  docs/ref/templates/builtins.txt
@@ -2015,7 +2015,7 @@ Formats a time according to the given format.
2015 2015
 
2016 2016
 Given format can be the predefined one :setting:`TIME_FORMAT`, or a custom
2017 2017
 format, same as the :tfilter:`date` filter. Note that the predefined format
2018  
-is locale-dependant.
  2018
+is locale-dependent.
2019 2019
 
2020 2020
 The time filter will only accept parameters in the format string that relate
2021 2021
 to the time of day, not the date (for obvious reasons). If you need to
4  docs/topics/i18n/translation.txt
@@ -991,8 +991,8 @@ for a given version of a site — it's a good candidate for caching.
991 991
 
992 992
 Server-side caching will reduce CPU load. It's easily implemented with the
993 993
 :func:`~django.views.decorators.cache.cache_page` decorator. To trigger cache
994  
-invalidation when your translations change, provide a version-dependant key
995  
-prefix, as shown in the example below, or map the view at a version-dependant
  994
+invalidation when your translations change, provide a version-dependent key
  995
+prefix, as shown in the example below, or map the view at a version-dependent
996 996
 URL.
997 997
 
998 998
 .. code-block:: python

0 notes on commit 33503c5

Please sign in to comment.
Something went wrong with that request. Please try again.