diff --git a/locales/en/messages.gotext.json b/locales/en/messages.gotext.json index 76d81c1..9317ac8 100644 --- a/locales/en/messages.gotext.json +++ b/locales/en/messages.gotext.json @@ -2,9 +2,50 @@ "language": "en", "messages": [ { - "id": "I want to donate", - "message": "I want to donate", - "translation": "I want to donate", + "id": "Donate ${Amount__100} to {Toby3d}", + "message": "Donate ${Amount__100} to {Toby3d}", + "translation": { + "select": { + "feature": "plural", + "arg": "Amount__100", + "cases": { + "=0": { + "msg": "Donate to {Toby3d}" + }, + "=1": { + "msg": "Donate onedollar™ to {Toby3d}" + }, + "other": { + "msg": "Donate ${Amount__100} to {Toby3d}" + } + } + } + }, + "translatorComment": "Copied from source.", + "placeholders": [ + { + "id": "Amount__100", + "string": "%.2[1]f", + "type": "float64", + "underlyingType": "float64", + "argNum": 1, + "expr": "ctx.amount / 100" + }, + { + "id": "Toby3d", + "string": "%[2]s", + "type": "string", + "underlyingType": "string", + "argNum": 2, + "expr": "\"toby3d\"" + } + ], + "fuzzy": true + }, + { + "id": "Donate", + "message": "Donate", + "translation": "Donate", "translatorComment": "Copied from source.", "fuzzy": true }, @@ -56,54 +97,6 @@ "translation": "from Russia", "translatorComment": "Copied from source.", "fuzzy": true - }, - { - "id": "Europe", - "message": "Europe", - "translation": "Europe", - "translatorComment": "Copied from source.", - "fuzzy": true - }, - { - "id": "Donate ${Amount__100} to {Toby3d}", - "message": "Donate ${Amount__100} to {Toby3d}", - "translation": { - "select": { - "feature": "plural", - "arg": "Amount__100", - "cases": { - "=0": { - "msg": "Donate to {Toby3d}" - }, - "=1": { - "msg": "Donate onedollar™ to {Toby3d}" - }, - "other": { - "msg": "Donate ${Amount__100} to {Toby3d}" - } - } - } - }, - "translatorComment": "Copied from source.", - "placeholders": [ - { - "id": "Amount__100", - "string": "%.2[1]f", - "type": "float64", - "underlyingType": "float64", - "argNum": 1, - "expr": "ctx.amount / 100" - }, - { - "id": "Toby3d", - "string": "%[2]s", - "type": "string", - "underlyingType": "string", - "argNum": 2, - "expr": "\"toby3d\"" - } - ], - "fuzzy": true } ] } \ No newline at end of file diff --git a/locales/en/out.gotext.json b/locales/en/out.gotext.json index 76d81c1..9317ac8 100644 --- a/locales/en/out.gotext.json +++ b/locales/en/out.gotext.json @@ -2,9 +2,50 @@ "language": "en", "messages": [ { - "id": "I want to donate", - "message": "I want to donate", - "translation": "I want to donate", + "id": "Donate ${Amount__100} to {Toby3d}", + "message": "Donate ${Amount__100} to {Toby3d}", + "translation": { + "select": { + "feature": "plural", + "arg": "Amount__100", + "cases": { + "=0": { + "msg": "Donate to {Toby3d}" + }, + "=1": { + "msg": "Donate onedollar™ to {Toby3d}" + }, + "other": { + "msg": "Donate ${Amount__100} to {Toby3d}" + } + } + } + }, + "translatorComment": "Copied from source.", + "placeholders": [ + { + "id": "Amount__100", + "string": "%.2[1]f", + "type": "float64", + "underlyingType": "float64", + "argNum": 1, + "expr": "ctx.amount / 100" + }, + { + "id": "Toby3d", + "string": "%[2]s", + "type": "string", + "underlyingType": "string", + "argNum": 2, + "expr": "\"toby3d\"" + } + ], + "fuzzy": true + }, + { + "id": "Donate", + "message": "Donate", + "translation": "Donate", "translatorComment": "Copied from source.", "fuzzy": true }, @@ -56,54 +97,6 @@ "translation": "from Russia", "translatorComment": "Copied from source.", "fuzzy": true - }, - { - "id": "Europe", - "message": "Europe", - "translation": "Europe", - "translatorComment": "Copied from source.", - "fuzzy": true - }, - { - "id": "Donate ${Amount__100} to {Toby3d}", - "message": "Donate ${Amount__100} to {Toby3d}", - "translation": { - "select": { - "feature": "plural", - "arg": "Amount__100", - "cases": { - "=0": { - "msg": "Donate to {Toby3d}" - }, - "=1": { - "msg": "Donate onedollar™ to {Toby3d}" - }, - "other": { - "msg": "Donate ${Amount__100} to {Toby3d}" - } - } - } - }, - "translatorComment": "Copied from source.", - "placeholders": [ - { - "id": "Amount__100", - "string": "%.2[1]f", - "type": "float64", - "underlyingType": "float64", - "argNum": 1, - "expr": "ctx.amount / 100" - }, - { - "id": "Toby3d", - "string": "%[2]s", - "type": "string", - "underlyingType": "string", - "argNum": 2, - "expr": "\"toby3d\"" - } - ], - "fuzzy": true } ] } \ No newline at end of file diff --git a/locales/ru/messages.gotext.json b/locales/ru/messages.gotext.json index 340caf1..97359fd 100644 --- a/locales/ru/messages.gotext.json +++ b/locales/ru/messages.gotext.json @@ -1,51 +1,6 @@ { "language": "ru", "messages": [ - { - "id": "I want to donate", - "message": "I want to donate", - "translation": "Хочу пожертвовать" - }, - { - "id": "dollar amount", - "message": "dollar amount", - "translation": "сумма в долларах" - }, - { - "id": "contribution frequency", - "message": "contribution frequency", - "translation": "частота взносов" - }, - { - "id": "one time", - "message": "one time", - "translation": "единоразово" - }, - { - "id": "weekly", - "message": "weekly", - "translation": "еженедельно" - }, - { - "id": "monthly", - "message": "monthly", - "translation": "ежемесячно" - }, - { - "id": "annually", - "message": "annually", - "translation": "ежегодно" - }, - { - "id": "from Russia", - "message": "from Russia", - "translation": "из России" - }, - { - "id": "Europe", - "message": "Europe", - "translation": "Европы" - }, { "id": "Donate ${Amount__100} to {Toby3d}", "message": "Donate ${Amount__100} to {Toby3d}", @@ -84,6 +39,46 @@ "expr": "\"toby3d\"" } ] + }, + { + "id": "Donate", + "message": "Donate", + "translation": "Пожертвовать" + }, + { + "id": "dollar amount", + "message": "dollar amount", + "translation": "сумма в долларах" + }, + { + "id": "contribution frequency", + "message": "contribution frequency", + "translation": "частота взносов" + }, + { + "id": "one time", + "message": "one time", + "translation": "единоразово" + }, + { + "id": "weekly", + "message": "weekly", + "translation": "еженедельно" + }, + { + "id": "monthly", + "message": "monthly", + "translation": "ежемесячно" + }, + { + "id": "annually", + "message": "annually", + "translation": "ежегодно" + }, + { + "id": "from Russia", + "message": "from Russia", + "translation": "из России" } ] -} +} \ No newline at end of file diff --git a/locales/ru/out.gotext.json b/locales/ru/out.gotext.json index 4989004..97359fd 100644 --- a/locales/ru/out.gotext.json +++ b/locales/ru/out.gotext.json @@ -1,51 +1,6 @@ { "language": "ru", "messages": [ - { - "id": "I want to donate", - "message": "I want to donate", - "translation": "Хочу пожертвовать" - }, - { - "id": "dollar amount", - "message": "dollar amount", - "translation": "сумма в долларах" - }, - { - "id": "contribution frequency", - "message": "contribution frequency", - "translation": "частота взносов" - }, - { - "id": "one time", - "message": "one time", - "translation": "единоразово" - }, - { - "id": "weekly", - "message": "weekly", - "translation": "еженедельно" - }, - { - "id": "monthly", - "message": "monthly", - "translation": "ежемесячно" - }, - { - "id": "annually", - "message": "annually", - "translation": "ежегодно" - }, - { - "id": "from Russia", - "message": "from Russia", - "translation": "из России" - }, - { - "id": "Europe", - "message": "Europe", - "translation": "Европы" - }, { "id": "Donate ${Amount__100} to {Toby3d}", "message": "Donate ${Amount__100} to {Toby3d}", @@ -84,6 +39,46 @@ "expr": "\"toby3d\"" } ] + }, + { + "id": "Donate", + "message": "Donate", + "translation": "Пожертвовать" + }, + { + "id": "dollar amount", + "message": "dollar amount", + "translation": "сумма в долларах" + }, + { + "id": "contribution frequency", + "message": "contribution frequency", + "translation": "частота взносов" + }, + { + "id": "one time", + "message": "one time", + "translation": "единоразово" + }, + { + "id": "weekly", + "message": "weekly", + "translation": "еженедельно" + }, + { + "id": "monthly", + "message": "monthly", + "translation": "ежемесячно" + }, + { + "id": "annually", + "message": "annually", + "translation": "ежегодно" + }, + { + "id": "from Russia", + "message": "from Russia", + "translation": "из России" } ] } \ No newline at end of file diff --git a/locales_gen.go b/locales_gen.go index 2dc7a45..681fd0d 100644 --- a/locales_gen.go +++ b/locales_gen.go @@ -39,40 +39,39 @@ func init() { } var messageKeyToIndex = map[string]int{ - "Donate $%.2f to %s": 9, - "Europe": 8, - "I want to donate": 0, - "annually": 6, - "contribution frequency": 2, - "dollar amount": 1, - "from Russia": 7, - "monthly": 5, - "one time": 3, - "weekly": 4, + "Donate": 1, + "Donate $%.2f to %s": 0, + "annually": 7, + "contribution frequency": 3, + "dollar amount": 2, + "from Russia": 8, + "monthly": 6, + "one time": 4, + "weekly": 5, } -var enIndex = []uint32{ // 11 elements - 0x00000000, 0x00000011, 0x0000001f, 0x00000036, - 0x0000003f, 0x00000046, 0x0000004e, 0x00000057, - 0x00000063, 0x0000006a, 0x000000bd, -} // Size: 68 bytes +var enIndex = []uint32{ // 10 elements + 0x00000000, 0x00000053, 0x0000005a, 0x00000068, + 0x0000007f, 0x00000088, 0x0000008f, 0x00000097, + 0x000000a0, 0x000000ac, +} // Size: 64 bytes -const enData string = "" + // Size: 189 bytes - "\x02I want to donate\x02dollar amount\x02contribution frequency\x02one t" + - "ime\x02weekly\x02monthly\x02annually\x02from Russia\x02Europe\x14\x01" + - "\x81\x01\x02=\x00\x10\x02Donate to %[2]s=\x01\x1d\x02Donate onedollar™ t" + - "o %[2]s\x00\x19\x02Donate $%.2[1]f to %[2]s" +const enData string = "" + // Size: 172 bytes + "\x14\x01\x81\x01\x02=\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 " + + "amount\x02contribution frequency\x02one time\x02weekly\x02monthly\x02ann" + + "ually\x02from Russia" -var ruIndex = []uint32{ // 11 elements - 0x00000000, 0x00000022, 0x00000041, 0x0000005f, - 0x00000076, 0x0000008d, 0x000000a2, 0x000000b3, - 0x000000c5, 0x000000d2, 0x00000153, -} // Size: 68 bytes +var ruIndex = []uint32{ // 10 elements + 0x00000000, 0x00000081, 0x0000009a, 0x000000b9, + 0x000000d7, 0x000000ee, 0x00000105, 0x0000011a, + 0x0000012b, 0x0000013d, +} // Size: 64 bytes -const ruData string = "" + // Size: 339 bytes - "\x02Хочу пожертвовать\x02сумма в долларах\x02частота взносов\x02единораз" + - "ово\x02еженедельно\x02ежемесячно\x02ежегодно\x02из России\x02Европы\x14" + - "\x01\x81\x01\x02=\x00\x1f\x02Пожертвовать %[2]s=\x01-\x02Пожертвовать до" + - "лор™ %[2]s\x00(\x02Пожертвовать $%.2[1]f %[2]s" +const ruData string = "" + // Size: 317 bytes + "\x14\x01\x81\x01\x02=\x00\x1f\x02Пожертвовать %[2]s=\x01-\x02Пожертвоват" + + "ь долор™ %[2]s\x00(\x02Пожертвовать $%.2[1]f %[2]s\x02Пожертвовать\x02с" + + "умма в долларах\x02частота взносов\x02единоразово\x02еженедельно\x02еже" + + "месячно\x02ежегодно\x02из России" - // Total table size 664 bytes (0KiB); checksum: 624A29EB + // Total table size 617 bytes (0KiB); checksum: 21DFB24C