diff options
Diffstat (limited to 'i18n/e2e/localeTest_zh.html')
| -rw-r--r-- | i18n/e2e/localeTest_zh.html | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/i18n/e2e/localeTest_zh.html b/i18n/e2e/localeTest_zh.html index 0b2b504d..7e2feec5 100644 --- a/i18n/e2e/localeTest_zh.html +++ b/i18n/e2e/localeTest_zh.html @@ -1,16 +1,34 @@ <!document html> <html> - <head> + <head> <meta charset="utf-8"> <title>locale test</title> <script src="../../build/angular.js" ng:autobind></script> <script src="../../build/i18n/angular-locale_zh-cn.js"></script> </head> <body> + <h3>Datetime/Number/Currency filters demo:</h3> <input type="text" name="input" value="234234443432"><br> - date: {{input | date:"medium"}}<br> - date: {{input | date:"longDate"}}<br> + date(medium): {{input | date:"medium"}}<br> + date(longDate): {{input | date:"longDate"}}<br> number: {{input | number}}<br> currency: {{input | currency }} + <hr/> + <h3>Pluralization demo:</h3> + <input type="text" name="plInput" value="1"><br> + <ng:pluralize count="plInput" + when= "{'other':'{}人在浏览该文件!'}"> + </ng:pluralize> + <hr/> + <h3>Pluralization demo with offsets:</h3> + Name of person1:<input type="text" name="person1" value="Shanjian"/><br/> + Name of person2:<input type="text" name="person2" value="Di"/><br/> + <input type="text" name="plInput2" value="1"><br> + <ng:pluralize count="plInput2" offset=2 + when= "{'0':'没有人在浏览该文件!', + '1': '{{person1}} 在浏览该文件!', + '2': '{{person1}} 和 {{person2}} 在浏览该文件!', + 'other': '{{person1}}, {{person2}} 还有其他{} 人在浏览该文件!'}"> + </ng:pluralize> </body> -</html> +</html> |
