mirror of
https://github.com/almet/notmyidea.git
synced 2025-04-28 11:32:39 +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.utils import get_date, slugify
|
||||
|
||||
locale.setlocale(locale.LC_TIME, "fr_FR.UTF8")
|
||||
try:
|
||||
locale.setlocale(locale.LC_TIME, "fr_FR.UTF8")
|
||||
except:
|
||||
locale.setlocale(locale.LC_TIME, "fr_FR")
|
||||
|
||||
|
||||
class WorklogPreprocessor(Preprocessor):
|
||||
|
|
Loading…
Reference in a new issue