in multilanguage section of learn.getgrav, ther an example with the month of the year:
en:
MONTHS_OF_THE_YEAR: [January, February, March, April, May, June, July, August, September, October, November, December]
Could you precise in which document is it extract from?
(I guess it is probably a yaml
file but it can’t find out which one
I have a problem with variables according to languages:
For instance, I would like the japanese blog section to have date in japanese:
- I have looked at the template and see perfectly that ther is a variable
d
for day and anotherM
for month (code
: see below) but I can’t find out how to.
—html
{{ page.date|date(“d”) }}
{{ page.date|date(“M”) }}
2. I precised that I have made all the changes possible in `system/languages/` with `fr.yaml` or `ja.yaml` (created for the purpose) and also in `user/languages/` with the same `fr.yaml` or `ja.yaml`, without result.
here the file's redaction of `fr.yaml`for checking:
folowing exem ple of [multilanguage section of learn.getgrav](http://learn.getgrav.org/content/multi-language):
`MONTHS_OF_THE_YEAR: [Janvier, Fevrier, Mars, Avril, Mai, Juin, Juillet, Août, Septembre, Octobre, Novembre, Decembre]`,
exactly same redaction as the standart system Grav file _plus_ the previous line repeated at 2 differents indention level:
- first one at same level of indention than other date variable,
- second on the above primary level.
That's gives this:
DEC_PLURAL: d
MONTHS_OF_THE_YEAR: [Janvier, Fevrier, Mars, Avril, Mai, Juin, Juillet, Août, Septembre, Octobre, Novembre, Decembre]