Mercurial > hg > nginx-site
comparison xsls/directive.xsls @ 177:13f4de67fbb6
Added i18n support for multiple <appeared-in> inside <directive>.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Mon, 14 Nov 2011 13:14:48 +0000 |
parents | 6eeaa9e1f3b5 |
children | be54c443235a |
comparison
equal
deleted
inserted
replaced
176:0883fc5aabc9 | 177:13f4de67fbb6 |
---|---|
117 } | 117 } |
118 } | 118 } |
119 | 119 |
120 X:template = "appeared-in" { | 120 X:template = "appeared-in" { |
121 X:if "last() = 1" { | 121 X:if "last() = 1" { |
122 <p>This directive appeared in version !!;.</p> | 122 <p> |
123 !{document(concat($XML, '/i18n.xml')) | |
124 /i18n/text[@lang = $LANG]/item | |
125 [@id='directive.version']} | |
126 X:text{ } | |
127 !!;. | |
128 </p> | |
123 } else { | 129 } else { |
124 X:choose { | 130 X:choose { |
125 X:when "position() = 1" { | 131 X:when "position() = 1" { |
126 X:text disable-output-escaping="yes" { | 132 X:text disable-output-escaping="yes" { |
127 <p> | 133 <p> |
128 } | 134 } |
129 This directive appeared in versions !!; | 135 !{document(concat($XML, '/i18n.xml')) |
136 /i18n/text[@lang = $LANG]/item | |
137 [@id='directive.versions']} | |
138 X:text{ } | |
139 !!; | |
130 X:if "last() > 2" { | 140 X:if "last() > 2" { |
131 X:text{, } | 141 X:text{,} |
132 } | 142 } |
143 X:text{ } | |
133 } | 144 } |
134 X:when "position() != last()" { | 145 X:when "position() != last()" { |
135 !!; | 146 !!; |
136 X:text{, } | 147 X:text{, } |
137 } | 148 } |
138 X:otherwise { | 149 X:otherwise { |
139 and !!;. | 150 !{document(concat($XML, '/i18n.xml')) |
151 /i18n/text[@lang = $LANG]/item | |
152 [@id='and']} | |
153 X:text{ } | |
154 !!;. | |
140 X:text disable-output-escaping="yes" { | 155 X:text disable-output-escaping="yes" { |
141 </p> | 156 </p> |
142 } | 157 } |
143 } | 158 } |
144 } | 159 } |