From 377278b88f0c1c46370c43fadd90328db631ce90 Mon Sep 17 00:00:00 2001 From: Guy Godfroy Date: Thu, 3 Dec 2020 11:35:13 +0100 Subject: [PATCH] add locale setting --- config.py.example | 5 ++++- geminer.py | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/config.py.example b/config.py.example index 9f5b8e4..ad05373 100644 --- a/config.py.example +++ b/config.py.example @@ -1,5 +1,8 @@ # This is the configuration file for geminer. -# Is is not intended to be executed. +# It is not intended to be executed. + +# locale (for templates, for example dates rendering) +locale = "fr_FR.utf8" # path to directory containing markdonw files to convert md_dir = "~/repo/htg-content/content/posts" diff --git a/geminer.py b/geminer.py index f5da22f..be72930 100755 --- a/geminer.py +++ b/geminer.py @@ -4,9 +4,13 @@ from md2gemini import md2gemini import frontmatter from jinja2 import Template import os +import locale import config +# locale (for templates, for example dates rendering) +locale = "fr_FR.utf8" + md_path = os.path.expanduser(config.md_dir) gmi_path = os.path.expanduser(config.gmi_dir) tpl_path = os.path.expanduser(config.tpl_dir)