Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fixes while setting up for writing a first guest post #1

Closed
wants to merge 2 commits into from

Conversation

Squareys
Copy link
Contributor

Hi @mosra !

As discussed via gitter, here are the changes I had to make to get the Website set up for writing guest posts.

Cheers, Jonathan

On windows the en_US locale is "usa". Since DATE_FORMATS does not allow
specifying multiple locales, we specify the locale seperately in LOCALE,
which will try the listed locales until one works (as documented here:
http://docs.getpelican.com/en/3.6.3/settings.html#date-format-and-locale)

Signed-off-by: Squareys <squareys@googlemail.com>
Signed-off-by: Squareys <squareys@googlemail.com>
@@ -17,7 +17,8 @@
TIMEZONE = 'Europe/Prague'

DEFAULT_LANG = 'en'
DATE_FORMATS = {'en': ('en_US', '%b %d %Y')}
LOCALE = ('en_US', 'usa')
DATE_FORMATS = {'en': '%b %d %Y'}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about the implications here. Would this work as well for you (with import sys on the top)?

if sys.platform == 'win32':
    DATE_FORMATS = {'en': ('usa', '%b %d %Y')}
else:
    DATE_FORMATS = {'en': ('en_US', '%b %d %Y')}

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Integrated in 1d8e425.

@mosra
Copy link
Owner

mosra commented Sep 6, 2017

Merged the cpp role fix in ae1f8c1, but not the locale yet. Can you test the above when you possibly have time? No pushing at all :)

@mosra
Copy link
Owner

mosra commented Dec 21, 2017

The last bit was integrated in 1d8e425, closing as merged.

@mosra mosra closed this Dec 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants