Docs: changes.xml dates converted to ISO 8601 format.
Dates in ISO 8601 format are in line with what is used in nginx.org news, and are generally less ambiguous and easier to work with. The changes.xml was converted using sed: $ sed 's/date="\(..\)\.\(..\)\.\(....\)"/date="\3-\2-\1"/g' changes.xml Appropriate changes to changes.xsls were introduced.
This commit is contained in:
parent
bd80284989
commit
1640941d6c
2 changed files with 419 additions and 413 deletions
File diff suppressed because it is too large
Load diff
|
@ -25,13 +25,19 @@ X:template = "changes" {
|
|||
' '),
|
||||
1, $conf/changes[@lang=$lang]/length)}
|
||||
|
||||
X:if "$lang='ru'" { !{@date} }
|
||||
X:if "$lang='ru'" {
|
||||
!{substring(@date, 9, 2)}
|
||||
X:text {.}
|
||||
!{substring(@date, 6, 2)}
|
||||
X:text {.}
|
||||
!{substring(@date, 1, 4)}
|
||||
}
|
||||
|
||||
X:if "$lang='en'" {
|
||||
!{substring(@date, 1, 2)}
|
||||
!{substring(@date, 9, 2)}
|
||||
!{$conf/changes[@lang=$lang]/month[number(substring(current()/@date,
|
||||
4, 2))]}
|
||||
!{substring(@date, 7, 4)}
|
||||
6, 2))]}
|
||||
!{substring(@date, 1, 4)}
|
||||
}
|
||||
|
||||
X:text { }
|
||||
|
|
Loading…
Reference in a new issue