Translation in French (in progress…)

This commit is contained in:
2019-04-23 23:34:46 +05:30
parent de4d7938ab
commit 36df00861f
14 changed files with 152 additions and 15 deletions

View File

@ -4,7 +4,7 @@ from __future__ import unicode_literals
import os
AUTHOR = 'Fabrice Mouhartem'
SITENAME = 'fmouhart\'s blog'
SITENAME = 'fmouharts blog'
SITEURL = ''
# Theme
@ -14,12 +14,15 @@ COLOR_SCHEME_CSS = 'monokai.css'
DISPLAY_PAGES_ON_MENU = False
DISPLAY_CATEGORIES_ON_MENU = True
FAVICON='images/lock.png'
JINJA_ENVIRONMENT = {'trim_blocks': True, 'lstrip_blocks': True, 'extensions' : ('jinja2.ext.loopcontrols',),}
JINJA_ENVIRONMENT = {'trim_blocks': True, 'lstrip_blocks': True, 'extensions' : ('jinja2.ext.loopcontrols','jinja2.ext.i18n',),}
## Footer
FOOTER_INCLUDE = 'myfooter.html'
IGNORE_FILES = [FOOTER_INCLUDE]
THEME_TEMPLATES_OVERRIDES = [os.path.dirname(__file__)]
## Images
# Plugins
PLUGIN_PATHS = ['./plugins/']
PLUGINS = ['i18n_subsites']
# Static paths
PATH = 'content'
@ -27,14 +30,15 @@ STATIC_PATHS = ['images', 'examples',]
TIMEZONE = 'Europe/Paris'
#LANG
DEFAULT_LANG = 'en'
DEFAULT_DATE_FORMAT = '%Y.%m.%d'
# Blogroll
LINKS = (('Pelican', 'http://getpelican.com/'),
('Python.org', 'http://python.org/'),
('Jinja2', 'http://jinja.pocoo.org/'),
('You can modify those links in your config file', '#'),)
I18N_SUBSITES = {
'fr': {
'SITENAME': 'Le blog de fmouhart',
'FOOTER_INCLUDE' : 'myfooter-fr.html',
}
}
# Social widget
SOCIAL = ()