From 6d20cb0e8e45a3dd35c42e66482075127e714f27 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Sun, 23 Feb 2020 11:01:06 +0100 Subject: l18n: add Japanese translation stub Signed-off-by: Simon Rozman --- zgotext.go | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 57 insertions(+), 1 deletion(-) (limited to 'zgotext.go') diff --git a/zgotext.go b/zgotext.go index 539f9add..2fdac0c2 100644 --- a/zgotext.go +++ b/zgotext.go @@ -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}, + "ja": &dictionary{index: jaIndex, data: jaData}, "sl": &dictionary{index: slIndex, data: slData}, } fallback := language.MustParse("en") @@ -355,6 +356,61 @@ const enData string = "" + // Size: 5179 bytes "itten frame\x02http2: Framer %[1]p: wrote %[2]v\x02http2: Framer %[1]p: " + "read %[2]v\x02http2: decoded hpack field %+[1]v" +var jaIndex = []uint32{ // 176 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, 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 60 - 7F + 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 80 - 9F + 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 A0 - BF + 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, +} // Size: 716 bytes + +const jaData string = "" + var slIndex = []uint32{ // 176 elements // Entry 0 - 1F 0x00000000, 0x00000007, 0x00000058, 0x00000070, @@ -507,4 +563,4 @@ const slData string = "" + // Size: 6016 bytes "kvirja\x02http2: Framer %[1]p: zapisano %[2]v\x02http2: Framer %[1]p: pr" + "ebrano %[2]v\x02http2: dekodirano polje hpack %+[1]v" - // Total table size 12627 bytes (12KiB); checksum: F9DAA9A7 + // Total table size 13343 bytes (13KiB); checksum: BA0DC4B9 -- cgit v1.2.3-59-g8ed1b