Patch #1022152: add required 'domain' argument to gettext.translation() examples.
This commit is contained in:
parent
d345225ae5
commit
2014c033f7
|
@ -632,9 +632,9 @@ between them explicitly, like so:
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
import gettext
|
import gettext
|
||||||
|
|
||||||
lang1 = gettext.translation(languages=['en'])
|
lang1 = gettext.translation('myapplication', languages=['en'])
|
||||||
lang2 = gettext.translation(languages=['fr'])
|
lang2 = gettext.translation('myapplication', languages=['fr'])
|
||||||
lang3 = gettext.translation(languages=['de'])
|
lang3 = gettext.translation('myapplication', languages=['de'])
|
||||||
|
|
||||||
# start by using language1
|
# start by using language1
|
||||||
lang1.install()
|
lang1.install()
|
||||||
|
|
Loading…
Reference in New Issue