Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #13 from lelit/master

Fix two typos and show both $var and ${var} syntaxes
  • Loading branch information...
commit c5d979c2e5dcf4d09624d4059b641b85dd42844c 2 parents df3b6fc + d32ba69
@tseaver tseaver authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 translationstring/__init__.py
View
6 translationstring/__init__.py
@@ -30,7 +30,7 @@ class TranslationString(text_type):
``default`` represents an explicit *default text* for this
translation string. Default text appears when the translation
string cannot be translated. Usually, the ``msgid`` of a
- translation string serves double duty as as its default text.
+ translation string serves double duty as its default text.
However, using this option you can provide a different default
text for this translation string. This feature is useful when the
default of a translation string is too complicated or too long to
@@ -97,7 +97,7 @@ def __mod__(self, options):
def interpolate(self, translated=None):
""" Interpolate the value ``translated`` which is assumed to
be a Unicode object containing zero or more *replacement
- markers* (``${foo}`` or ``${bar}``) using the ``mapping``
+ markers* (``$foo`` or ``${bar}``) using the ``mapping``
dictionary attached to this instance. If the ``mapping``
dictionary is empty or ``None``, no interpolation is
performed.
@@ -111,7 +111,7 @@ def interpolate(self, translated=None):
# NB: this function should never never lose the *original
# identity* of a non-``None`` but empty ``default`` value it
# is provided. If (translated == default) , it should return the
- # *orignal* default, not a derivation. See the comment below in
+ # *original* default, not a derivation. See the comment below in
# ChameleonTranslate.
if self.mapping and translated:
Please sign in to comment.
Something went wrong with that request. Please try again.