mirror of
https://github.com/nginx/nginx.git
synced 2024-11-25 02:10:18 -06:00
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
3418a6ec1c
commit
b4a2393927
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 New Issue
Block a user