@@ -654,7 +654,7 @@ are lists of respectively hosts and guests, and data:
654
654
``` go
655
655
map [string ]interface {}{
656
656
" Hosts" : []gender.String {
657
- gender.Male .String (" Andy" ),
657
+ gender.Male .String (" Andy" ),
658
658
gender.Female .String (" Sheila" ),
659
659
},
660
660
" Guests" : []string { " Andy" , " Mary" , " Bob" , " Linda" , " Carl" , " Danny" },
@@ -677,17 +677,17 @@ message.SetSelect(en, "%[1]s invite %[2]s and %[3]d other guests to their party.
677
677
" female" , " % [1]s invites % [2]s to her party." ,
678
678
" other " , " % [1]s invites % [2]s to his party." ),
679
679
" =1" , gender.Select (1 , // Hosts
680
- " female" , " % [1]s invites % [2]s and one other person to her party." ,
681
- " other " , " % [1]s invites % [2]s and one other person to his party." ),
680
+ " female" , " % [1]s invites % # [2]s and one other person to her party." ,
681
+ " other " , " % [1]s invites % # [2]s and one other person to his party." ),
682
682
" other" , gender.Select (1 , // Hosts
683
683
" female" , " % [1]s invites % #[2]s and % [3]d other people to her party." ,
684
684
" other " , " % [1]s invites % #[2]s and % [3]d other people to his party." )),
685
685
" other" , plural.Select (2 , // Guests,
686
686
" =0 " , " % [1]s do not give a party." ,
687
687
" other" , plural.Select (3 , // Other guests count
688
688
" =0" , " % [1]s invite % [2]s to their party." ,
689
- " =1" , " % [1]s invite % #[2] and one other person to their party." ,
690
- " other " , " % [1]s invite % #[2]v and % [3]d other people to their party." )))
689
+ " =1" , " % [1]s invite % #[2]s and one other person to their party." ,
690
+ " other " , " % [1]s invite % #[2]s and % [3]d other people to their party." ) )))
691
691
```
692
692
693
693
<!-- ```go
@@ -737,9 +737,9 @@ and add another select block at the start of the list:
737
737
738
738
739
739
``` go
740
- message.SetSelect (en, " % [1]s invite % [2]s and % [3] other guests to their party." ,
741
- plural.Select (" .Guests " , " =0" , ` There is no party. Move on!` ),
742
- plural.Select (" .Hosts " ,
740
+ message.SetSelect (en, " % [1]s invite % [2]s and % [3]d other guests to their party." ,
741
+ plural.Select (2 , " =0" , ` There is no party. Move on!` ),
742
+ plural.Select (1 ,
743
743
" =0" , ` There is no party. Move on!` ,
744
744
…
745
745
```
@@ -773,7 +773,7 @@ message.SetSelect(en, "%[1]s invite %[2]s and %[3]d other guests to their party.
773
773
feature.Var (" guests" , plural.Select (3 , // other guests
774
774
" =0" , " % [2]s" ,
775
775
" =1" , " % #[2]s and one other person" ,
776
- " other" , " % #[2]v and % [3]d other people" ),
776
+ " other" , " % #[2]s and % [3]d other people" ),
777
777
feature.String (" % [1]s % [invite]s % [guests]s to % [their]s party." ))
778
778
```
779
779
@@ -940,18 +940,18 @@ func init() {
940
940
}
941
941
}
942
942
type entry struct {
943
- key string
944
- value feature.Value
943
+ key string
944
+ value feature.Value
945
945
}
946
946
var entries = []struct {
947
- lang language.Tag
948
- entry []entry
947
+ lang language.Tag
948
+ entry []entry
949
949
}{
950
- { language.French , []entry{
950
+ { language.French , []entry{
951
951
{ " Hello" , feature.String (" Bonjour" ) },
952
952
{ " %s went to %s " , feature.Select { … } },
953
- ...
954
- }
953
+ …
954
+ },
955
955
}
956
956
957
957
` ` `
0 commit comments