mirror of
https://github.com/nginx/nginx.git
synced 2026-05-13 09:36:42 +00: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
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…
Add table
Add a link
Reference in a new issue