Merge branch 'feature/esperanto' into develop
/ docker (push) Has been cancelled
Details
/ docker (push) Has been cancelled
Details
This commit is contained in:
commit
2d0fad9ac4
|
@ -0,0 +1,68 @@
|
|||
{
|
||||
"language": "eo",
|
||||
"messages": [
|
||||
{
|
||||
"id": "Donate ${Amount__100} to {Toby3d}",
|
||||
"message": "Donate ${Amount__100} to {Toby3d}",
|
||||
"translation": "Donacu ${Amount__100} al {Toby3d}",
|
||||
"placeholders": [
|
||||
{
|
||||
"id": "Amount__100",
|
||||
"string": "%[1]d",
|
||||
"type": "uint64",
|
||||
"underlyingType": "uint64",
|
||||
"argNum": 1,
|
||||
"expr": "ctx.amount / 100"
|
||||
},
|
||||
{
|
||||
"id": "Toby3d",
|
||||
"string": "%[2]s",
|
||||
"type": "string",
|
||||
"underlyingType": "string",
|
||||
"argNum": 2,
|
||||
"expr": "\"toby3d\""
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "Donate",
|
||||
"message": "Donate",
|
||||
"translation": "Donacu"
|
||||
},
|
||||
{
|
||||
"id": "dollar amount",
|
||||
"message": "dollar amount",
|
||||
"translation": "dolara kvanto"
|
||||
},
|
||||
{
|
||||
"id": "contribution frequency",
|
||||
"message": "contribution frequency",
|
||||
"translation": "ofteco de kontribuo"
|
||||
},
|
||||
{
|
||||
"id": "one time",
|
||||
"message": "one time",
|
||||
"translation": "unufoje"
|
||||
},
|
||||
{
|
||||
"id": "weekly",
|
||||
"message": "weekly",
|
||||
"translation": "ĉiusemajne"
|
||||
},
|
||||
{
|
||||
"id": "monthly",
|
||||
"message": "monthly",
|
||||
"translation": "monate"
|
||||
},
|
||||
{
|
||||
"id": "annually",
|
||||
"message": "annually",
|
||||
"translation": "ĉiujare"
|
||||
},
|
||||
{
|
||||
"id": "from Russia",
|
||||
"message": "from Russia",
|
||||
"translation": "el Rusio"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,68 @@
|
|||
{
|
||||
"language": "eo",
|
||||
"messages": [
|
||||
{
|
||||
"id": "Donate ${Amount__100} to {Toby3d}",
|
||||
"message": "Donate ${Amount__100} to {Toby3d}",
|
||||
"translation": "Donacu ${Amount__100} al {Toby3d}",
|
||||
"placeholders": [
|
||||
{
|
||||
"id": "Amount__100",
|
||||
"string": "%[1]d",
|
||||
"type": "uint64",
|
||||
"underlyingType": "uint64",
|
||||
"argNum": 1,
|
||||
"expr": "ctx.amount / 100"
|
||||
},
|
||||
{
|
||||
"id": "Toby3d",
|
||||
"string": "%[2]s",
|
||||
"type": "string",
|
||||
"underlyingType": "string",
|
||||
"argNum": 2,
|
||||
"expr": "\"toby3d\""
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "Donate",
|
||||
"message": "Donate",
|
||||
"translation": "Donacu"
|
||||
},
|
||||
{
|
||||
"id": "dollar amount",
|
||||
"message": "dollar amount",
|
||||
"translation": "dolara kvanto"
|
||||
},
|
||||
{
|
||||
"id": "contribution frequency",
|
||||
"message": "contribution frequency",
|
||||
"translation": "ofteco de kontribuo"
|
||||
},
|
||||
{
|
||||
"id": "one time",
|
||||
"message": "one time",
|
||||
"translation": "unufoje"
|
||||
},
|
||||
{
|
||||
"id": "weekly",
|
||||
"message": "weekly",
|
||||
"translation": "ĉiusemajne"
|
||||
},
|
||||
{
|
||||
"id": "monthly",
|
||||
"message": "monthly",
|
||||
"translation": "monate"
|
||||
},
|
||||
{
|
||||
"id": "annually",
|
||||
"message": "annually",
|
||||
"translation": "ĉiujare"
|
||||
},
|
||||
{
|
||||
"id": "from Russia",
|
||||
"message": "from Russia",
|
||||
"translation": "el Rusio"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -28,6 +28,7 @@ func (d *dictionary) Lookup(key string) (data string, ok bool) {
|
|||
func init() {
|
||||
dict := map[string]catalog.Dictionary{
|
||||
"en": &dictionary{index: enIndex, data: enData},
|
||||
"eo": &dictionary{index: eoIndex, data: eoData},
|
||||
"ru": &dictionary{index: ruIndex, data: ruData},
|
||||
}
|
||||
fallback := language.MustParse("en")
|
||||
|
@ -62,6 +63,16 @@ const enData string = "" + // Size: 170 bytes
|
|||
"ount\x02contribution frequency\x02one time\x02weekly\x02monthly\x02annua" +
|
||||
"lly\x02from Russia"
|
||||
|
||||
var eoIndex = []uint32{ // 10 elements
|
||||
0x00000000, 0x00000017, 0x0000001e, 0x0000002c,
|
||||
0x00000040, 0x00000048, 0x00000054, 0x0000005b,
|
||||
0x00000064, 0x0000006d,
|
||||
} // Size: 64 bytes
|
||||
|
||||
const eoData string = "" + // Size: 109 bytes
|
||||
"\x02Donacu $%[1]d al %[2]s\x02Donacu\x02dolara kvanto\x02ofteco de kontr" +
|
||||
"ibuo\x02unufoje\x02ĉiusemajne\x02monate\x02ĉiujare\x02el Rusio"
|
||||
|
||||
var ruIndex = []uint32{ // 10 elements
|
||||
0x00000000, 0x0000007f, 0x00000098, 0x000000b7,
|
||||
0x000000d5, 0x000000ec, 0x00000103, 0x00000118,
|
||||
|
@ -74,4 +85,4 @@ const ruData string = "" + // Size: 315 bytes
|
|||
"ма в долларах\x02частота взносов\x02единоразово\x02еженедельно\x02ежеме" +
|
||||
"сячно\x02ежегодно\x02из России"
|
||||
|
||||
// Total table size 613 bytes (0KiB); checksum: 7E1ACFAA
|
||||
// Total table size 786 bytes (0KiB); checksum: 3A225519
|
||||
|
|
2
main.go
2
main.go
|
@ -1,7 +1,7 @@
|
|||
//go:generate go install github.com/valyala/quicktemplate/qtc@master
|
||||
//go:generate qtc -dir=web
|
||||
//go:generate go install golang.org/x/text/cmd/gotext@master
|
||||
//go:generate gotext -srclang=en update -lang=en,ru -out=locales_gen.go
|
||||
//go:generate gotext -srclang=en update -lang=en,ru,eo -out=locales_gen.go
|
||||
package main
|
||||
|
||||
import (
|
||||
|
|
Loading…
Reference in New Issue