mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Update the documentations and fix some little things about the translation feature.
This commit is contained in:
parent
8f59649eb6
commit
750e211649
4 changed files with 14 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ class Page(object):
|
|||
if 'AUTHOR' in settings:
|
||||
self.author = settings['AUTHOR']
|
||||
|
||||
default_lang = settings.get('DEFAULT_LANG', 'en').lower()
|
||||
default_lang = settings.get('DEFAULT_LANG').lower()
|
||||
if not hasattr(self, 'lang'):
|
||||
self.lang = default_lang
|
||||
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ _DEFAULT_CONFIG = {'PATH': None,
|
|||
'REVERSE_ARCHIVE_ORDER': False,
|
||||
'KEEP_OUTPUT_DIRECTORY': False,
|
||||
'CLEAN_URLS': False, # use /blah/ instead /blah.html in urls
|
||||
'DEFAULT_LANG': 'en',
|
||||
}
|
||||
|
||||
def read_settings(filename):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue