scotty/internal/translations/catalog.go

81 lines
2.7 KiB
Go

// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
package translations
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{
"de": &dictionary{index: deIndex, data: deData},
"en": &dictionary{index: enIndex, data: enData},
}
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{
"During the import the following errors occurred:": 7,
"Error: %v\n": 8,
"From timestamp: %v (%v)": 4,
"Import failed, last reported timestamp was %v (%v)": 5,
"Imported %v of %v %s into %v.": 6,
"Latest timestamp: %v (%v)\n": 9,
"Transferring %s from %s to %s...": 3,
"done": 2,
"exporting": 0,
"importing": 1,
}
var deIndex = []uint32{ // 11 elements
0x00000000, 0x0000000b, 0x00000016, 0x0000001d,
0x00000046, 0x00000064, 0x000000a4, 0x000000cf,
0x00000106, 0x00000119, 0x00000142,
} // Size: 68 bytes
const deData string = "" + // Size: 322 bytes
"\x02exportiere\x02importiere\x02fertig\x02Übertrage %[1]s von %[2]s nach" +
" %[3]s...\x02Ab Zeitstempel: %[1]v (%[2]v)\x02Import fehlgeschlagen, der" +
" letzte Zeitstempel war %[1]v (%[2]v)\x02%[1]v von %[2]v %[3]s in %[4]v " +
"importiert.\x02Während des Imports sind folgende Fehler aufgetreten:\x04" +
"\x00\x01\x0a\x0e\x02Fehler: %[1]v\x04\x00\x01\x0a$\x02Neuester Zeitstemp" +
"el: %[1]v (%[2]v)"
var enIndex = []uint32{ // 11 elements
0x00000000, 0x0000000a, 0x00000014, 0x00000019,
0x00000043, 0x00000061, 0x0000009a, 0x000000c4,
0x000000f5, 0x00000107, 0x0000012c,
} // Size: 68 bytes
const enData string = "" + // Size: 300 bytes
"\x02exporting\x02importing\x02done\x02Transferring %[1]s from %[2]s to %" +
"[3]s...\x02From timestamp: %[1]v (%[2]v)\x02Import failed, last reported" +
" timestamp was %[1]v (%[2]v)\x02Imported %[1]v of %[2]v %[3]s into %[4]v" +
".\x02During the import the following errors occurred:\x04\x00\x01\x0a" +
"\x0d\x02Error: %[1]v\x04\x00\x01\x0a \x02Latest timestamp: %[1]v (%[2]v)"
// Total table size 758 bytes (0KiB); checksum: D85383CE