diff --git a/gramps/gen/utils/grampslocale.py b/gramps/gen/utils/grampslocale.py index 4d4ce0638..b9db33bca 100644 --- a/gramps/gen/utils/grampslocale.py +++ b/gramps/gen/utils/grampslocale.py @@ -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 diff --git a/gramps/webapp/utils.py b/gramps/webapp/utils.py index 0d71c624e..5e16243ef 100644 --- a/gramps/webapp/utils.py +++ b/gramps/webapp/utils.py @@ -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