🍱 Regenerated templates with fixed locale string for amount
/ docker (push) Successful in 1m4s Details

This commit is contained in:
Maxim Lebedev 2023-12-14 16:31:12 +06:00
parent 171ac40914
commit 83b0750151
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
7 changed files with 28 additions and 28 deletions

View File

@ -25,9 +25,9 @@
"placeholders": [ "placeholders": [
{ {
"id": "Amount__100", "id": "Amount__100",
"string": "%.2[1]f", "string": "%[1]d",
"type": "float64", "type": "uint64",
"underlyingType": "float64", "underlyingType": "uint64",
"argNum": 1, "argNum": 1,
"expr": "ctx.amount / 100" "expr": "ctx.amount / 100"
}, },

View File

@ -25,7 +25,7 @@
"placeholders": [ "placeholders": [
{ {
"id": "Amount__100", "id": "Amount__100",
"string": "%.2[1]f", "string": "%[1]d",
"type": "uint64", "type": "uint64",
"underlyingType": "uint64", "underlyingType": "uint64",
"argNum": 1, "argNum": 1,

View File

@ -24,9 +24,9 @@
"placeholders": [ "placeholders": [
{ {
"id": "Amount__100", "id": "Amount__100",
"string": "%.2[1]f", "string": "%[1]d",
"type": "float64", "type": "uint64",
"underlyingType": "float64", "underlyingType": "uint64",
"argNum": 1, "argNum": 1,
"expr": "ctx.amount / 100" "expr": "ctx.amount / 100"
}, },

View File

@ -24,7 +24,7 @@
"placeholders": [ "placeholders": [
{ {
"id": "Amount__100", "id": "Amount__100",
"string": "%.2[1]f", "string": "%[1]d",
"type": "uint64", "type": "uint64",
"underlyingType": "uint64", "underlyingType": "uint64",
"argNum": 1, "argNum": 1,

View File

@ -40,7 +40,7 @@ func init() {
var messageKeyToIndex = map[string]int{ var messageKeyToIndex = map[string]int{
"Donate": 1, "Donate": 1,
"Donate $%.2f to %s": 0, "Donate $%d to %s": 0,
"annually": 7, "annually": 7,
"contribution frequency": 3, "contribution frequency": 3,
"dollar amount": 2, "dollar amount": 2,
@ -51,27 +51,27 @@ var messageKeyToIndex = map[string]int{
} }
var enIndex = []uint32{ // 10 elements var enIndex = []uint32{ // 10 elements
0x00000000, 0x00000053, 0x0000005a, 0x00000068, 0x00000000, 0x00000051, 0x00000058, 0x00000066,
0x0000007f, 0x00000088, 0x0000008f, 0x00000097, 0x0000007d, 0x00000086, 0x0000008d, 0x00000095,
0x000000a0, 0x000000ac, 0x0000009e, 0x000000aa,
} // Size: 64 bytes } // Size: 64 bytes
const enData string = "" + // Size: 172 bytes const enData string = "" + // Size: 170 bytes
"\x14\x01\x81\x01\x02=\x00\x10\x02Donate to %[2]s=\x01\x1d\x02Donate oned" + "\x14\x01\x81\x01\x00=\x00\x10\x02Donate to %[2]s=\x01\x1d\x02Donate oned" +
"ollar™ to %[2]s\x00\x19\x02Donate $%.2[1]f to %[2]s\x02Donate\x02dollar " + "ollar™ to %[2]s\x00\x17\x02Donate $%[1]d to %[2]s\x02Donate\x02dollar am" +
"amount\x02contribution frequency\x02one time\x02weekly\x02monthly\x02ann" + "ount\x02contribution frequency\x02one time\x02weekly\x02monthly\x02annua" +
"ually\x02from Russia" "lly\x02from Russia"
var ruIndex = []uint32{ // 10 elements var ruIndex = []uint32{ // 10 elements
0x00000000, 0x00000081, 0x0000009a, 0x000000b9, 0x00000000, 0x0000007f, 0x00000098, 0x000000b7,
0x000000d7, 0x000000ee, 0x00000105, 0x0000011a, 0x000000d5, 0x000000ec, 0x00000103, 0x00000118,
0x0000012b, 0x0000013d, 0x00000129, 0x0000013b,
} // Size: 64 bytes } // Size: 64 bytes
const ruData string = "" + // Size: 317 bytes const ruData string = "" + // Size: 315 bytes
"\x14\x01\x81\x01\x02=\x00\x1f\x02Пожертвовать %[2]s=\x01-\x02Пожертвоват" + "\x14\x01\x81\x01\x00=\x00\x1f\x02Пожертвовать %[2]s=\x01-\x02Пожертвоват" +
"ь долор™ %[2]s\x00(\x02Пожертвовать $%.2[1]f %[2]s\x02Пожертвовать\x02с" + "ь долор™ %[2]s\x00&\x02Пожертвовать $%[1]d %[2]s\x02Пожертвовать\x02сум" +
"умма в долларах\x02частота взносов\x02единоразово\x02еженедельно\x02еже" + "ма в долларах\x02частота взносов\x02единоразово\x02еженедельно\x02ежеме" +
"месячно\x02ежегодно\x02из России" "сячно\x02ежегодно\x02из России"
// Total table size 617 bytes (0KiB); checksum: 21DFB24C // Total table size 613 bytes (0KiB); checksum: 7E1ACFAA

View File

@ -53,7 +53,7 @@ func NewContext(processors domain.ConfigProcessors, lang language.Tag, amount ui
<h1>{%= ctx.title() %}</h1> <h1>{%= ctx.title() %}</h1>
<noscript> <noscript>
<h1>{%= ctx.t(`Donate $%.2f to %s`, ctx.amount/100, "toby3d") %}</h1> <h1>{%= ctx.t(`Donate $%d to %s`, ctx.amount/100, "toby3d") %}</h1>
</noscript> </noscript>
<p class="[ cluster ][ form ][ js-enabled ]" hidden> <p class="[ cluster ][ form ][ js-enabled ]" hidden>
<span>{%= ctx.t(`Donate`) %}</span> <span>{%= ctx.t(`Donate`) %}</span>

View File

@ -149,7 +149,7 @@ func (ctx Context) streambody(qw422016 *qt422016.Writer) {
//line web/template/template.qtpl:53 //line web/template/template.qtpl:53
qw422016.N().S(`</h1><noscript><h1>`) qw422016.N().S(`</h1><noscript><h1>`)
//line web/template/template.qtpl:56 //line web/template/template.qtpl:56
ctx.streamt(qw422016, `Donate $%.2f to %s`, ctx.amount/100, "toby3d") ctx.streamt(qw422016, `Donate $%d to %s`, ctx.amount/100, "toby3d")
//line web/template/template.qtpl:56 //line web/template/template.qtpl:56
qw422016.N().S(`</h1></noscript><p class="[ cluster ][ form ][ js-enabled ]" hidden><span>`) qw422016.N().S(`</h1></noscript><p class="[ cluster ][ form ][ js-enabled ]" hidden><span>`)
//line web/template/template.qtpl:59 //line web/template/template.qtpl:59