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
|
||||
"gramps", indicating files in LC_MESSAGES named gramps.mo.
|
||||
|
||||
@languages: A list of two or five character codes corresponding to
|
||||
subidrectries in the localedir, e.g. "fr" or "zh_CN".
|
||||
@languages: String with a ':'-separated list of two or five character
|
||||
codes corresponding to subidrectries in the localedir,
|
||||
e.g.: "fr" or "zh_CN".
|
||||
"""
|
||||
DEFAULT_TRANSLATION_STR = "default"
|
||||
__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
|
||||
#initialize the locale. Passing in lang and language parameters to the
|
||||
#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
|
||||
|
||||
TAB_HEIGHT = 200
|
||||
|
Loading…
Reference in New Issue
Block a user