mirror of
https://github.com/almet/notmyidea.git
synced 2025-04-28 19:42:37 +02:00
Fix locale on different systems
This commit is contained in:
parent
c9c9026ebf
commit
2d3c392435
1 changed files with 4 additions and 1 deletions
|
@ -9,7 +9,10 @@ from pelican import signals
|
||||||
from pelican.readers import Markdown, MarkdownReader, pelican_open
|
from pelican.readers import Markdown, MarkdownReader, pelican_open
|
||||||
from pelican.utils import get_date, slugify
|
from pelican.utils import get_date, slugify
|
||||||
|
|
||||||
|
try:
|
||||||
locale.setlocale(locale.LC_TIME, "fr_FR.UTF8")
|
locale.setlocale(locale.LC_TIME, "fr_FR.UTF8")
|
||||||
|
except:
|
||||||
|
locale.setlocale(locale.LC_TIME, "fr_FR")
|
||||||
|
|
||||||
|
|
||||||
class WorklogPreprocessor(Preprocessor):
|
class WorklogPreprocessor(Preprocessor):
|
||||||
|
|
Loading…
Reference in a new issue