polish, use LATIN group

This commit is contained in:
romjerome 2019-12-07 09:06:06 +01:00 committed by GitHub
parent 9e013f6781
commit 9208b8a3a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,8 +50,8 @@ _ = glocale.translation.gettext
from ...utils.grampslocale import GrampsLocale from ...utils.grampslocale import GrampsLocale
_locale = GrampsLocale(lang='en') _locale = GrampsLocale(lang='en')
LANG_SUPPORT = ['danish', 'dutch', 'english', 'french', 'german', 'italian', LATIN = ['french', 'italian', 'spanish']
'spanish', 'swedish'] LANG_SUPPORT = ['danish', 'dutch', 'german', 'swedish'] + LATIN
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
@ -348,6 +348,7 @@ class TreeDocBase(BaseDoc, TreeDoc):
lang_en = _locale._get_language_string(trans).lower() lang_en = _locale._get_language_string(trans).lower()
if lang_en in LANG_SUPPORT: if lang_en in LANG_SUPPORT:
self.write(0, '\\gtrset{language=%s}\n' % lang_en) self.write(0, '\\gtrset{language=%s}\n' % lang_en)
if lang_en in LATIN:
self.write(0, '\\usepackage{lmodern}\n') self.write(0, '\\usepackage{lmodern}\n')
self.write(0, '\\begin{document}\n') self.write(0, '\\begin{document}\n')