Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.2.X] Fixed #14669 -- corrected an ungrammatical sentence in the in…

…ternationalization docs. Thanks to steveire for the report.

Backport of [14539] from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14540 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e074d2b9e9200e211a71283b382f03906a127aca 1 parent 0046f37
authored November 12, 2010

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  docs/topics/i18n/internationalization.txt
6  docs/topics/i18n/internationalization.txt
@@ -87,13 +87,13 @@ The strings you pass to ``_()`` or ``ugettext()`` can take placeholders,
87 87
 specified with Python's standard named-string interpolation syntax. Example::
88 88
 
89 89
     def my_view(request, m, d):
90  
-        output = _('Today is %(month)s, %(day)s.') % {'month': m, 'day': d}
  90
+        output = _('Today is %(month)s %(day)s.') % {'month': m, 'day': d}
91 91
         return HttpResponse(output)
92 92
 
93 93
 This technique lets language-specific translations reorder the placeholder
94  
-text. For example, an English translation may be ``"Today is November, 26."``,
  94
+text. For example, an English translation may be ``"Today is November 26."``,
95 95
 while a Spanish translation may be ``"Hoy es 26 de Noviembre."`` -- with the
96  
-placeholders (the month and the day) with their positions swapped.
  96
+the month and the day placeholders swapped.
97 97
 
98 98
 For this reason, you should use named-string interpolation (e.g., ``%(day)s``)
99 99
 instead of positional interpolation (e.g., ``%s`` or ``%d``) whenever you

0 notes on commit e074d2b

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