Skip to content

Commit

Permalink
default is not the first parameter, fixed some code examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mmerickel committed Oct 14, 2011
1 parent ea7e60b commit 53355a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/tstrings.rst
Expand Up @@ -142,7 +142,7 @@ generated by using it. For example:
from translationstring import TranslationStringFactory
_ = TranslationStringFactory('bfg')
ts = _('Add ${number}', msgid='add-number', mapping={'number':1})
ts = _('add-number', default='Add ${number}', mapping={'number':1})
.. note:: We assigned the translation string factory to the name
``_``. This is a convention which will be supported by translation
Expand All @@ -163,7 +163,7 @@ spelling) to:
:linenos:
from translationstring import TranslationString as _
ts = _('Add ${number}', msgid='add-number', mapping={'number':1},
ts = _('add-number', default='Add ${number}', mapping={'number':1},
domain='bfg')
You can set up your own translation string factory much like the one
Expand All @@ -178,7 +178,7 @@ do something like this:
from translationstring import TranslationStringFactory
_ = TranslationStringFactory('form')
ts = _('Add ${number}', msgid='add-number', mapping={'number':1})
ts = _('add-number', default='Add ${number}', mapping={'number':1})
.. note::

Expand Down

0 comments on commit 53355a8

Please sign in to comment.