diff --git a/modules/@angular/compiler/test/i18n/extractor_merger_spec.ts b/modules/@angular/compiler/test/i18n/extractor_merger_spec.ts
index dcb36154c7..88605c39b5 100644
--- a/modules/@angular/compiler/test/i18n/extractor_merger_spec.ts
+++ b/modules/@angular/compiler/test/i18n/extractor_merger_spec.ts
@@ -155,27 +155,27 @@ export function main() {
() => { expect(extract('{count, plural, =0 {text}}')).toEqual([]); });
it('should ignore nested ICU messages', () => {
- expect(extract('
{count, plural, =0 { {sex, gender, =m {m}} }}
'))
+ expect(extract('{count, plural, =0 { {sex, select, male {m}} }}
'))
.toEqual([
- [['{count, plural, =0 {[{sex, gender, =m {[m]}}, ]}}'], 'm', 'd'],
+ [['{count, plural, =0 {[{sex, select, male {[m]}}, ]}}'], 'm', 'd'],
]);
});
it('should ignore implicit elements in non translatable ICU messages', () => {
expect(
extract(
- '{count, plural, =0 { {sex, gender, =m {
ignore
}} }}
',
+ '{count, plural, =0 { {sex, select, male {
ignore
}} }}
',
['p']))
.toEqual([[
[
- '{count, plural, =0 {[{sex, gender, =m {[ignore]}}, ]}}'
+ '{count, plural, =0 {[{sex, select, male {[ignore]}}, ]}}'
],
'm', 'd'
]]);
});
it('should ignore implicit elements in non translatable ICU messages', () => {
- expect(extract('{count, plural, =0 { {sex, gender, =m {ignore
}} }}', ['p']))
+ expect(extract('{count, plural, =0 { {sex, select, male {ignore
}} }}', ['p']))
.toEqual([]);
});
});
diff --git a/modules/@angular/compiler/test/i18n/i18n_parser_spec.ts b/modules/@angular/compiler/test/i18n/i18n_parser_spec.ts
index 1c6ae89403..451f1770aa 100644
--- a/modules/@angular/compiler/test/i18n/i18n_parser_spec.ts
+++ b/modules/@angular/compiler/test/i18n/i18n_parser_spec.ts
@@ -186,16 +186,16 @@ export function main() {
it('should not extract nested ICU messages', () => {
expect(_humanizeMessages(
- 'b{count, plural, =0 {{sex, gender, =m {m}}}}a
'))
+ 'b{count, plural, =0 {{sex, select, male {m}}}}a
'))
.toEqual([
[
[
- 'b', '{count, plural, =0 {[{sex, gender, =m {[m]}}]}}',
+ 'b', '{count, plural, =0 {[{sex, select, male {[m]}}]}}',
'a'
],
'm', 'd'
],
- [['{count, plural, =0 {[{sex, gender, =m {[m]}}]}}'], '', ''],
+ [['{count, plural, =0 {[{sex, select, male {[m]}}]}}'], '', ''],
]);
});
});
diff --git a/modules/@angular/compiler/test/i18n/serializers/xmb_spec.ts b/modules/@angular/compiler/test/i18n/serializers/xmb_spec.ts
index 89a5daa75c..021cfb5772 100644
--- a/modules/@angular/compiler/test/i18n/serializers/xmb_spec.ts
+++ b/modules/@angular/compiler/test/i18n/serializers/xmb_spec.ts
@@ -18,7 +18,7 @@ export function main(): void {
translatable element with placeholders {{ interpolation}}
{ count, plural, =0 {test
}}
foo
-{ count, plural, =0 { { sex, gender, other {
deeply nested
}} }}`;
+{ count, plural, =0 { { sex, select, other {
deeply nested
}} }}`;
const XMB = `
translatable element <b>with placeholders</b>
{ count, plural, =0 {<p>test</p>} }
foo
- { count, plural, =0 {{ sex, gender, other {<p>deeply nested</p>} } } }
+ { count, plural, =0 {{ sex, select, other {<p>deeply nested</p>} } } }
`;
diff --git a/modules/@angular/compiler/test/i18n/serializers/xtb_spec.ts b/modules/@angular/compiler/test/i18n/serializers/xtb_spec.ts
index f096b0863d..3acf5ee0db 100644
--- a/modules/@angular/compiler/test/i18n/serializers/xtb_spec.ts
+++ b/modules/@angular/compiler/test/i18n/serializers/xtb_spec.ts
@@ -7,7 +7,6 @@
*/
import {escapeRegExp} from '@angular/core/src/facade/lang';
-import {beforeEach, describe, expect, it} from '@angular/core/testing/testing_internal';
import {MessageBundle} from '../../../src/i18n/message_bundle';
import {Xtb} from '../../../src/i18n/serializers/xtb';
@@ -101,22 +100,22 @@ export function main(): void {
foo bar {{ a + b }}
{ count, plural, =0 {
bar
}}
foo
-{ count, plural, =0 {{ sex, gender, other {
bar
}} }}
`;
+{ count, plural, =0 {{ sex, select, other {
bar
}} }}
`;
const XTB = `
rab oof
{ count, plural, =1 {rab}}
oof
- { count, plural, =1 {{ sex, gender, male {rab}} }}
+ { count, plural, =1 {{ sex, select, other {rab}} }}
`;
expect(loadAsText(HTML, XTB)).toEqual({
'7103b4b13b616270a0044efade97d8b4f96f2ca6': `{{ a + b }}rab oof`,
'fc92b9b781194a02ab773129c8c5a7fc0735efd7': `{ count, plural, =1 {rab
}}`,
'db3e0a6a5a96481f60aec61d98c3eecddef5ac23': `oof`,
- 'e3bf2d706c3da16ce05658e07f62f0519f7c561c':
- `{ count, plural, =1 {{ sex, gender, male {rab
}} }}`,
+ '8fb569d3dd83e92eff2551b24f5290d3035ce61b':
+ `{ count, plural, =1 {{ sex, select, other {rab
}} }}`,
});
});
diff --git a/modules/@angular/compiler/test/ml_parser/ast_serializer_spec.ts b/modules/@angular/compiler/test/ml_parser/ast_serializer_spec.ts
index 129e2e7658..7338f030f0 100644
--- a/modules/@angular/compiler/test/ml_parser/ast_serializer_spec.ts
+++ b/modules/@angular/compiler/test/ml_parser/ast_serializer_spec.ts
@@ -51,7 +51,7 @@ export function main() {
{{ interpolation }}
- {number, plural, =0 {{sex, gender, other {?}}}}
+ {number, plural, =0 {{sex, select, other {?}}}}
`;
const ast = parser.parse(html, 'url', true);
diff --git a/modules/@angular/compiler/test/ml_parser/html_parser_spec.ts b/modules/@angular/compiler/test/ml_parser/html_parser_spec.ts
index f70a87a1e0..f3edeb4e91 100644
--- a/modules/@angular/compiler/test/ml_parser/html_parser_spec.ts
+++ b/modules/@angular/compiler/test/ml_parser/html_parser_spec.ts
@@ -306,7 +306,7 @@ export function main() {
it('should parse out nested expansion forms', () => {
let parsed = parser.parse(
- `{messages.length, plural, =0 { {p.gender, gender, =m {m}} }}`, 'TestComp', true);
+ `{messages.length, plural, =0 { {p.gender, select, male {m}} }}`, 'TestComp', true);
expect(humanizeDom(parsed)).toEqual([
[html.Expansion, 'messages.length', 'plural', 0],
[html.ExpansionCase, '=0', 1],
@@ -315,8 +315,8 @@ export function main() {
let firstCase = (parsed.rootNodes[0]).cases[0];
expect(humanizeDom(new ParseTreeResult(firstCase.expression, []))).toEqual([
- [html.Expansion, 'p.gender', 'gender', 0],
- [html.ExpansionCase, '=m', 1],
+ [html.Expansion, 'p.gender', 'select', 0],
+ [html.ExpansionCase, 'male', 1],
[html.Text, ' ', 0],
]);
});
diff --git a/modules/@angular/compiler/test/ml_parser/icu_ast_expander_spec.ts b/modules/@angular/compiler/test/ml_parser/icu_ast_expander_spec.ts
index 2d015f42e3..c9e9ccb870 100644
--- a/modules/@angular/compiler/test/ml_parser/icu_ast_expander_spec.ts
+++ b/modules/@angular/compiler/test/ml_parser/icu_ast_expander_spec.ts
@@ -37,7 +37,7 @@ export function main() {
});
it('should handle nested expansion forms', () => {
- const res = expand(`{messages.length, plural, =0 { {p.gender, gender, =m {m}} }}`);
+ const res = expand(`{messages.length, plural, =0 { {p.gender, select, =m {m}} }}`);
expect(humanizeNodes(res.nodes)).toEqual([
[html.Element, 'ng-container', 0],
diff --git a/modules/@angular/compiler/test/template_parser/template_parser_spec.ts b/modules/@angular/compiler/test/template_parser/template_parser_spec.ts
index c2551f716b..1969d8bbb3 100644
--- a/modules/@angular/compiler/test/template_parser/template_parser_spec.ts
+++ b/modules/@angular/compiler/test/template_parser/template_parser_spec.ts
@@ -1787,8 +1787,8 @@ The pipe 'test' could not be found ("[ERROR ->]{{a | test}}"): TestComp@0:0`);
const shortForm = '{ count, plural, =0 {small} many {big} }';
const expandedForm = '' +
'small' +
- 'big' + i
- '';
+ 'big' +
+ '';
expect(humanizeTplAst(parse(shortForm, [
]))).toEqual(humanizeTplAst(parse(expandedForm, [])));