diff options
| author | Misko Hevery | 2012-03-28 11:16:10 -0700 |
|---|---|---|
| committer | Misko Hevery | 2012-03-28 11:24:47 -0700 |
| commit | bb2fa6f63f0a4a08d4a3a5439d1ab6d9ddfd917e (patch) | |
| tree | 7e4cf557e806820b4c37516b972d35c82de1d09a /i18n/e2e/localeTest_zh.html | |
| parent | ba59ef495007d192724b352c68e7d2edc53f8b63 (diff) | |
| download | angular.js-bb2fa6f63f0a4a08d4a3a5439d1ab6d9ddfd917e.tar.bz2 | |
fix(i18n e2e tests):
Diffstat (limited to 'i18n/e2e/localeTest_zh.html')
| -rw-r--r-- | i18n/e2e/localeTest_zh.html | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/i18n/e2e/localeTest_zh.html b/i18n/e2e/localeTest_zh.html index b25b3c4d..857df20f 100644 --- a/i18n/e2e/localeTest_zh.html +++ b/i18n/e2e/localeTest_zh.html @@ -6,38 +6,38 @@ <script src="../../build/angular.js"></script> <script src="../../build/i18n/angular-locale_zh-cn.js"></script> <script> - function AppCntl(){ - this.input = 234234443432; - this.plInput = 1; - this.person1 = "Shanjian"; - this.person2 = "Di"; - this.plInput2 = 1; + function AppCntl($scope){ + $scope.input = 234234443432; + $scope.plInput = 1; + $scope.person1 = "Shanjian"; + $scope.person2 = "Di"; + $scope.plInput2 = 1; } </script> </head> - <body ng:controller="AppCntl"> + <body ng-controller="AppCntl"> <h3>Datetime/Number/Currency filters demo:</h3> - <input type="text" ng:model="input"><br> + <input type="text" ng-model="input"><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" ng:model="plInput"><br> - <ng:pluralize count="plInput" + <input type="text" ng-model="plInput"><br> + <ng-pluralize count="plInput" when= "{'other':'{}人在浏览该文件!'}"> - </ng:pluralize> + </ng-pluralize> <hr/> <h3>Pluralization demo with offsets:</h3> - Name of person1:<input type="text" ng:model="person1"/><br/> - Name of person2:<input type="text" ng:model="person2"/><br/> - <input type="text" ng:model="plInput2"><br> - <ng:pluralize count="plInput2" offset=2 + Name of person1:<input type="text" ng-model="person1"/><br/> + Name of person2:<input type="text" ng-model="person2"/><br/> + <input type="text" ng-model="plInput2"><br> + <ng-pluralize count="plInput2" offset=2 when= "{'0':'没有人在浏览该文件!', '1': '{{person1}} 在浏览该文件!', '2': '{{person1}} 和 {{person2}} 在浏览该文件!', 'other': '{{person1}}, {{person2}} 还有其他{} 人在浏览该文件!'}"> - </ng:pluralize> + </ng-pluralize> </body> </html> |
