Update the documentations and fix some little things about the translation feature.

This commit is contained in:
Alexis Metaireau 2010-12-20 22:50:54 +00:00
commit 750e211649
4 changed files with 14 additions and 1 deletions

View file

@ -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

View file

@ -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):