Skip to content

Commit 3c72fa4

Browse files
BenLubarmpvl
authored andcommitted
design: fix some formatting inconsistencies in 12750-localization.md
Change-Id: Ia5a9f0b65c60403e494edffd67282cdfc1bdb1b1 Reviewed-on: https://go-review.googlesource.com/19753 Reviewed-by: Marcel van Lohuizen <[email protected]>
1 parent c13bb46 commit 3c72fa4

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

design/12750-localization.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ are lists of respectively hosts and guests, and data:
654654
```go
655655
map[string]interface{}{
656656
"Hosts": []gender.String{
657-
gender.Male.String("Andy"),
657+
gender.Male.String("Andy"),
658658
gender.Female.String("Sheila"),
659659
},
660660
"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.
677677
"female", "%[1]s invites %[2]s to her party.",
678678
"other ", "%[1]s invites %[2]s to his party."),
679679
"=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."),
682682
"other", gender.Select(1, // Hosts
683683
"female", "%[1]s invites %#[2]s and %[3]d other people to her party.",
684684
"other ", "%[1]s invites %#[2]s and %[3]d other people to his party.")),
685685
"other", plural.Select(2, // Guests,
686686
"=0 ", "%[1]s do not give a party.",
687687
"other", plural.Select(3, // Other guests count
688688
"=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."))))
691691
```
692692

693693
<!-- ```go
@@ -737,9 +737,9 @@ and add another select block at the start of the list:
737737

738738

739739
```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,
743743
"=0", `There is no party. Move on!`,
744744
745745
```
@@ -773,7 +773,7 @@ message.SetSelect(en, "%[1]s invite %[2]s and %[3]d other guests to their party.
773773
feature.Var("guests", plural.Select(3, // other guests
774774
"=0", "%[2]s",
775775
"=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"),
777777
feature.String("%[1]s %[invite]s %[guests]s to %[their]s party."))
778778
```
779779

@@ -940,18 +940,18 @@ func init() {
940940
}
941941
}
942942
type entry struct {
943-
key string
944-
value feature.Value
943+
key string
944+
value feature.Value
945945
}
946946
var entries = []struct{
947-
lang language.Tag
948-
entry []entry
947+
lang language.Tag
948+
entry []entry
949949
}{
950-
{ language.French, []entry{
950+
{ language.French, []entry{
951951
{ "Hello", feature.String("Bonjour") },
952952
{ "%s went to %s", feature.Select{ … } },
953-
...
954-
}
953+
954+
},
955955
}
956956

957957
```

0 commit comments

Comments
 (0)