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
dfor day and anotherMfor month (code: see below) but I can't find out how to.
---html
<span>{{ page.date|date("d") }}</span>
<em>{{ page.date|date("M") }}</em>TXT -
I precised that I have made all the changes possible in
system/languages/withfr.yamlorja.yaml(created for the purpose) and also inuser/languages/with the samefr.yamlorja.yaml, without result.
here the file's redaction of fr.yamlfor checking:
folowing exem ple of multilanguage section of learn.getgrav:
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:YAMLDEC_PLURAL: d MONTHS_OF_THE_YEAR: [Janvier, Fevrier, Mars, Avril, Mai, Juin, Juillet, Août, Septembre, Octobre, Novembre, Decembre] MONTHS_OF_THE_YEAR: [Janvier, Fevrier, Mars, Avril, Mai, Juin, Juillet, Août, Septembre, Octobre, Novembre, Decembre] ---