gramps-connect used wrong arg for GrampsLocale
Fixed webapp/utils.py and also made the docstring in Grampslocale less ambiguous. svn: r22875
This commit is contained in:
parent
6b5da9a67f
commit
88e27cd71e
@ -149,8 +149,9 @@ class GrampsLocale(object):
|
|||||||
@domain: The name of the applicable translation file. The default is
|
@domain: The name of the applicable translation file. The default is
|
||||||
"gramps", indicating files in LC_MESSAGES named gramps.mo.
|
"gramps", indicating files in LC_MESSAGES named gramps.mo.
|
||||||
|
|
||||||
@languages: A list of two or five character codes corresponding to
|
@languages: String with a ':'-separated list of two or five character
|
||||||
subidrectries in the localedir, e.g. "fr" or "zh_CN".
|
codes corresponding to subidrectries in the localedir,
|
||||||
|
e.g.: "fr" or "zh_CN".
|
||||||
"""
|
"""
|
||||||
DEFAULT_TRANSLATION_STR = "default"
|
DEFAULT_TRANSLATION_STR = "default"
|
||||||
__first_instance = None
|
__first_instance = None
|
||||||
|
@ -75,7 +75,7 @@ from gramps.gen.utils.grampslocale import GrampsLocale
|
|||||||
#FIXME: A locale should be obtained from the user and used to
|
#FIXME: A locale should be obtained from the user and used to
|
||||||
#initialize the locale. Passing in lang and language parameters to the
|
#initialize the locale. Passing in lang and language parameters to the
|
||||||
#constructor prevents querying the environment.
|
#constructor prevents querying the environment.
|
||||||
glocale = GrampsLocale(lang='en_US.UTF-8', languages=['en'])
|
glocale = GrampsLocale(lang='en_US.UTF-8', languages='en')
|
||||||
_ = glocale.translation.gettext
|
_ = glocale.translation.gettext
|
||||||
|
|
||||||
TAB_HEIGHT = 200
|
TAB_HEIGHT = 200
|
||||||
|
Loading…
x
Reference in New Issue
Block a user