Permalink
Browse files

default is not the first parameter, fixed some code examples

  • Loading branch information...
mmerickel committed Oct 14, 2011
1 parent ea7e60b commit 53355a870f4b7a880aed9af0e2edc690acaee21d
Showing with 3 additions and 3 deletions.
  1. +3 −3 docs/tstrings.rst
View
@@ -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
@@ -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
@@ -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::

0 comments on commit 53355a8

Please sign in to comment.