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 change to translate Blog post date #55

Closed
wants to merge 1 commit into from
Closed

Small change to translate Blog post date #55

wants to merge 1 commit into from

Conversation

JohnMica
Copy link
Contributor

I have changed line 11 to ensure that the date of each post will be translated automatically by using the 'Months of the year' which is present in the language.yaml (language folder).

Not sure if its the best or the 'right' way but it works for me.

Also I have added the year because over the course of a blog there will be different years for articles.

I have changed line 11 to ensure that the date of each post will be translated automatically by using the 'Months of the year' which is present in the language.yaml (language folder).

Not sure if its the best or the 'right' way but it works for me.

Also I have added the year because over the course of a blog there will be different years for articles.
@JohnMica
Copy link
Contributor Author

since @paulcmal has done this as well, no need for this PR. Closing it now

@JohnMica JohnMica closed this Jul 10, 2016
@flaviocopes
Copy link
Contributor

Sorry I didn't comment on this before. The problem with this was it's changing the current output for existing sites as well, as the year needs to be wrapped in a configuration option.

@paulcmal
Copy link
Contributor

paulcmal commented Jul 11, 2016

See paulcmal/grav-theme-antimatter for implementation with a config option.

Discussion on date translations in core.

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.

3 participants