diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-08-10 22:50:19 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-08-10 22:51:18 +0200 |
commit | dd0a5245abe98b71f3283411c5555897591325f9 (patch) | |
tree | 110053833c0aedbf399e81174a68bd089268de76 | |
parent | 2c2f850a29b2e896f640679ed9fcec523ccfdb2d (diff) |
Remove more autogenerated files
-rw-r--r-- | .exrc | 4 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | i18n/catalog.go | 226 |
3 files changed, 3 insertions, 228 deletions
@@ -26,5 +26,5 @@ autocmd FileType templ autocmd BufWritePre <buffer> nnoremap <silent> gM :wall \| make all-i18n<CR> nnoremap <silent> <LocalLeader>t :vimgrep /\CTODO/ **/*<CR> -let &wildignore = netrw_gitignore#Hide() . ',*_templ.go,.git/*,vendor/*' -let g:netrw_list_hide .= ",.*_templ\\.go$" +let &wildignore = netrw_gitignore#Hide() . ',catalog.go,*_templ.go,.git/*,vendor/*' +let g:netrw_list_hide .= ",catalog.go,.*_templ\\.go$" @@ -1,4 +1,5 @@ euro-cash.eu +i18n/catalog.go mfmt !cmd/mfmt out.gotext.json diff --git a/i18n/catalog.go b/i18n/catalog.go deleted file mode 100644 index 6bcbb90..0000000 --- a/i18n/catalog.go +++ /dev/null @@ -1,226 +0,0 @@ -// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. - -package i18n - -import ( - "golang.org/x/text/language" - "golang.org/x/text/message" - "golang.org/x/text/message/catalog" -) - -type dictionary struct { - index []uint32 - data string -} - -func (d *dictionary) Lookup(key string) (data string, ok bool) { - p, ok := messageKeyToIndex[key] - if !ok { - return "", false - } - start, end := d.index[p], d.index[p+1] - if start == end { - return "", false - } - return d.data[start:end], true -} - -func init() { - dict := map[string]catalog.Dictionary{ - "el": &dictionary{index: elIndex, data: elData}, - "en": &dictionary{index: enIndex, data: enData}, - "nl": &dictionary{index: nlIndex, data: nlData}, - } - fallback := language.MustParse("en") - cat, err := catalog.NewFromMap(dict, catalog.Fallback(fallback)) - if err != nil { - panic(err) - } - message.DefaultCatalog = cat -} - -var messageKeyToIndex = map[string]int{ - "About": 59, - "About Us": 25, - "Andorra": 0, - "Austria": 1, - "Banknotes": 56, - "Belgium": 2, - "British- & American English": 34, - "Coin Collecting": 54, - "Coins": 55, - "Contact Us": 28, - "Croatia": 10, - "Cyprus": 3, - "Designs": 42, - "Development": 31, - "Discord": 58, - "Estonia": 5, - "Euro Coin Designs": 38, - "Euro Coins": 40, - "Eurozone Languages": 50, - "Feel free to contact us!": 37, - "Finland": 7, - "Found a mistake or want to contribute missing information?": 36, - "France": 8, - "Germany": 4, - "Greece": 9, - "Here you’ll be able to view all the coin designs for each country in the Eurozone. This section of the site doesn’t include minor varieties such as different mintmarks or errors; those are on the %svarieties%s page.": 39, - "Home": 52, - "Icelandic": 35, - "Ireland": 11, - "Italy": 12, - "Jargon": 57, - "Language": 60, - "Latvia": 15, - "Lithuania": 13, - "Luxembourg": 14, - "Malta": 17, - "Mintages": 44, - "Monaco": 16, - "Netherlands": 18, - "News": 53, - "On this section of the site you can find everything there is to know about the coins of the Eurozone. For the latest news on coin- and design releases, check out the %snews%s tab!": 41, - "Open Source": 26, - "Other Languages": 51, - "Page not found": 24, - "Portugal": 19, - "Research": 32, - "San Marino": 22, - "Select Your Language": 48, - "Select your preferred language to use on the site.": 49, - "Slovakia": 21, - "Slovenia": 20, - "Spain": 6, - "Special Thanks": 30, - "The Euro Cash Compendium": 61, - "This website is an open project, and a collaboration between developers, translators, and researchers. All source code, data, images, and more for the website are open source and can be found %shere%s. This site is licensed under the BSD 0-Clause license giving you the full freedom to do whatever you would like with any of the content on this site.": 27, - "Translations": 33, - "United in": 62, - "Varieties": 46, - "Vatican City": 23, - "View all the known Euro varieties!": 47, - "View the 600+ different Euro-coin designs!": 43, - "View the mintage figures of all the Euro coins!": 45, - "Welcome to the Euro Cash Compendium. This sites aims to be a resource for you to discover everything there is to know about the coins and banknotes of the Euro, a currency that spans 26 countries and 350 million people. We also have dedicated sections of the site for collectors.": 65, - "While we try to stay as up-to-date as possible and to fact check our information, it is always possible that we get something wrong, lack a translation, or are missing some piece of data you may have. In such a case don’t hesitate to contact us; we’ll try to get the site updated or fixed as soon as possible. You are always free to contribute via a git patch if you are more technically included, but if not you can always send an email to %s or contact ‘@onetruemangoman’ on Discord.": 29, - "cash": 64, - "diversity": 63, -} - -var elIndex = []uint32{ // 67 elements - // Entry 0 - 1F - 0x00000000, 0x0000000d, 0x0000001c, 0x00000029, - 0x00000036, 0x00000047, 0x00000056, 0x00000065, - 0x00000078, 0x00000085, 0x00000092, 0x000000a1, - 0x000000b2, 0x000000bf, 0x000000d2, 0x000000eb, - 0x000000fa, 0x00000107, 0x00000112, 0x00000123, - 0x00000138, 0x00000149, 0x0000015a, 0x0000016e, - 0x0000017f, 0x0000017f, 0x0000017f, 0x0000017f, - 0x0000017f, 0x0000017f, 0x0000017f, 0x0000017f, - // Entry 20 - 3F - 0x0000017f, 0x0000017f, 0x0000017f, 0x0000017f, - 0x0000017f, 0x0000017f, 0x0000017f, 0x0000017f, - 0x0000017f, 0x0000017f, 0x0000017f, 0x0000017f, - 0x0000017f, 0x0000017f, 0x0000017f, 0x0000017f, - 0x0000017f, 0x0000017f, 0x0000017f, 0x0000017f, - 0x0000017f, 0x0000017f, 0x0000017f, 0x0000017f, - 0x0000017f, 0x0000017f, 0x0000017f, 0x0000017f, - 0x0000017f, 0x0000017f, 0x0000017f, 0x0000017f, - // Entry 40 - 5F - 0x0000017f, 0x0000017f, 0x0000017f, -} // Size: 292 bytes - -const elData string = "" + // Size: 383 bytes - "\x02Ανδόρα\x02Αυστρία\x02Βέλγιο\x02Κύπρος\x02Γερμανία\x02Εσθονία\x02Ισπα" + - "νία\x02Φινλανδία\x02Γαλλία\x02Ελλάδα\x02Κροατία\x02Ιρλανδία\x02Ιταλία" + - "\x02Λιθουανία\x02Λουξεμβούργο\x02Λετονία\x02Μονακό\x02Μάλτα\x02Ολλανδία" + - "\x02Πορτογαλία\x02Σλοβενία\x02Σλοβακία\x02Σαν Μαρίνο\x02Βατικανό" - -var enIndex = []uint32{ // 67 elements - // Entry 0 - 1F - 0x00000000, 0x00000008, 0x00000010, 0x00000018, - 0x0000001f, 0x00000027, 0x0000002f, 0x00000035, - 0x0000003d, 0x00000044, 0x0000004b, 0x00000053, - 0x0000005b, 0x00000061, 0x0000006b, 0x00000076, - 0x0000007d, 0x00000084, 0x0000008a, 0x00000096, - 0x0000009f, 0x000000a8, 0x000000b1, 0x000000bc, - 0x000000c9, 0x000000d8, 0x000000e1, 0x000000ed, - 0x00000252, 0x0000025d, 0x0000044e, 0x0000045d, - // Entry 20 - 3F - 0x00000469, 0x00000472, 0x0000047f, 0x0000049b, - 0x000004a5, 0x000004e0, 0x000004f9, 0x0000050b, - 0x000005ed, 0x000005f8, 0x000006b2, 0x000006ba, - 0x000006e5, 0x000006ee, 0x0000071e, 0x00000728, - 0x0000074b, 0x00000760, 0x00000793, 0x000007a6, - 0x000007b6, 0x000007bb, 0x000007c0, 0x000007d0, - 0x000007d6, 0x000007e0, 0x000007e7, 0x000007ef, - 0x000007f5, 0x000007fe, 0x00000817, 0x00000821, - // Entry 40 - 5F - 0x0000082b, 0x00000830, 0x00000948, -} // Size: 292 bytes - -const enData string = "" + // Size: 2376 bytes - "\x02Andorra\x02Austria\x02Belgium\x02Cyprus\x02Germany\x02Estonia\x02Spa" + - "in\x02Finland\x02France\x02Greece\x02Croatia\x02Ireland\x02Italy\x02Lith" + - "uania\x02Luxembourg\x02Latvia\x02Monaco\x02Malta\x02Netherlands\x02Portu" + - "gal\x02Slovenia\x02Slovakia\x02San Marino\x02Vatican City\x02Page not fo" + - "und\x02About Us\x02Open Source\x02This website is an open project, and a" + - " collaboration between developers, translators, and researchers. All sou" + - "rce code, data, images, and more for the website are open source and can" + - " be found %[1]shere%[2]s. This site is licensed under the BSD 0-Clause l" + - "icense giving you the full freedom to do whatever you would like with an" + - "y of the content on this site.\x02Contact Us\x02While we try to stay as " + - "up-to-date as possible and to fact check our information, it is always p" + - "ossible that we get something wrong, lack a translation, or are missing " + - "some piece of data you may have. In such a case don’t hesitate to contac" + - "t us; we’ll try to get the site updated or fixed as soon as possible. Yo" + - "u are always free to contribute via a git patch if you are more technica" + - "lly included, but if not you can always send an email to %[1]s or contac" + - "t ‘@onetruemangoman’ on Discord.\x02Special Thanks\x02Development\x02Res" + - "earch\x02Translations\x02British- & American English\x02Icelandic\x02Fou" + - "nd a mistake or want to contribute missing information?\x02Feel free to " + - "contact us!\x02Euro Coin Designs\x02Here you’ll be able to view all the " + - "coin designs for each country in the Eurozone. This section of the site " + - "doesn’t include minor varieties such as different mintmarks or errors; t" + - "hose are on the %[1]svarieties%[2]s page.\x02Euro Coins\x02On this secti" + - "on of the site you can find everything there is to know about the coins " + - "of the Eurozone. For the latest news on coin- and design releases, check" + - " out the %[1]snews%[2]s tab!\x02Designs\x02View the 600+ different Euro-" + - "coin designs!\x02Mintages\x02View the mintage figures of all the Euro co" + - "ins!\x02Varieties\x02View all the known Euro varieties!\x02Select Your L" + - "anguage\x02Select your preferred language to use on the site.\x02Eurozon" + - "e Languages\x02Other Languages\x02Home\x02News\x02Coin Collecting\x02Coi" + - "ns\x02Banknotes\x02Jargon\x02Discord\x02About\x02Language\x02The Euro Ca" + - "sh Compendium\x02United in\x02diversity\x02cash\x02Welcome to the Euro C" + - "ash Compendium. This sites aims to be a resource for you to discover eve" + - "rything there is to know about the coins and banknotes of the Euro, a cu" + - "rrency that spans 26 countries and 350 million people. We also have dedi" + - "cated sections of the site for collectors." - -var nlIndex = []uint32{ // 67 elements - // Entry 0 - 1F - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - // Entry 20 - 3F - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - 0x00000000, 0x00000000, 0x00000000, 0x00000000, - // Entry 40 - 5F - 0x00000000, 0x00000000, 0x00000000, -} // Size: 292 bytes - -const nlData string = "" - -// Total table size 3635 bytes (3KiB); checksum: 7ECD21C9 |