comparison genshi/filters/i18n.py @ 888:18dee397f8e1

More i18n doc improvements.
author cmlenz
date Mon, 19 Apr 2010 11:45:40 +0000
parents 6f49c23045b1
children b40dbfee9ba6
comparison
equal deleted inserted replaced
887:148c17f49111 888:18dee397f8e1
291 <div> 291 <div>
292 <p>There are 2 coins</p> 292 <p>There are 2 coins</p>
293 </div> 293 </div>
294 </html> 294 </html>
295 295
296 When used as a directive and not as an attribute: 296 When used as a element and not as an attribute:
297 297
298 >>> tmpl = MarkupTemplate('''\ 298 >>> tmpl = MarkupTemplate('''\
299 <html xmlns:i18n="http://genshi.edgewall.org/i18n"> 299 <html xmlns:i18n="http://genshi.edgewall.org/i18n">
300 ... <i18n:choose numeral="num" params="num"> 300 ... <i18n:choose numeral="num" params="num">
301 ... <p i18n:singular="">There is $num coin</p> 301 ... <p i18n:singular="">There is $num coin</p>
Copyright (C) 2012-2017 Edgewall Software