auth/catalog_gen.go

104 lines
4.6 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
package main
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{
"en": &dictionary{index: enIndex, data: enData},
"ru": &dictionary{index: ruIndex, data: ruData},
}
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{
"%sProof of Key Code Exchange%s is a mechanism that protects against attackers in the middle hijacking your application's authentication process. You can still authorize this application without this protection, but you must independently verify the security of this connection. If you have any doubts - stop the process and contact the developers.": 4,
"Allow": 8,
"Authorize %s": 0,
"Authorize application": 1,
"Deny": 7,
"Error": 10,
"How do I fix it?": 11,
"No scopes is requested: the application will only get your profile URL.": 6,
"Recipient": 14,
"Resource": 15,
"Scopes": 5,
"Send": 16,
"Sign In": 12,
"This client does not use %sPKCE%s!": 3,
"This client uses %sPKCE%s with the %s%s%s method.": 2,
"TicketAuth": 13,
"You will be redirected to %s%s%s": 9,
}
var enIndex = []uint32{ // 18 elements
0x00000000, 0x00000010, 0x00000026, 0x00000067,
0x00000090, 0x000001f3, 0x000001fa, 0x00000242,
0x00000247, 0x0000024d, 0x00000277, 0x0000027d,
0x0000028e, 0x00000296, 0x000002a1, 0x000002ab,
0x000002b4, 0x000002b9,
} // Size: 96 bytes
const enData string = "" + // Size: 697 bytes
"\x02Authorize %[1]s\x02Authorize application\x02This client uses %[1]sPK" +
"CE%[2]s with the %[3]s%[4]s%[5]s method.\x02This client does not use %[1" +
"]sPKCE%[2]s!\x02%[1]sProof of Key Code Exchange%[2]s is a mechanism that" +
" protects against attackers in the middle hijacking your application's a" +
"uthentication process. You can still authorize this application without " +
"this protection, but you must independently verify the security of this " +
"connection. If you have any doubts - stop the process and contact the d" +
"evelopers.\x02Scopes\x02No scopes is requested: the application will onl" +
"y get your profile URL.\x02Deny\x02Allow\x02You will be redirected to %[" +
"1]s%[2]s%[3]s\x02Error\x02How do I fix it?\x02Sign In\x02TicketAuth\x02R" +
"ecipient\x02Resource\x02Send"
var ruIndex = []uint32{ // 18 elements
0x00000000, 0x0000001f, 0x0000004d, 0x000000a1,
0x000000d8, 0x00000343, 0x00000352, 0x000003e9,
0x000003fa, 0x0000040d, 0x00000451, 0x0000045e,
0x00000480, 0x0000048b, 0x00000496, 0x000004ab,
0x000004b8, 0x000004cb,
} // Size: 96 bytes
const ruData string = "" + // Size: 1227 bytes
"\x02Авторизовать %[1]s\x02Авторизовать приложение\x02Клиент использует %" +
"[1]sPKCE%[2]s с методом %[3]s%[4]s%[5]s.\x02Клиент не использует %[1]sPK" +
"CE%[2]s!\x02%[1]sProof of Key Code Exchange%[2]s это механизм, защищающи" +
"й от злоумышленников, перехватывающих процесс аутентификации вашего при" +
"ложения. Вы можете авторизовать данное приложение и без этой защиты, но" +
" при этом вы должны самостоятельно проверить безопасность этого соединен" +
"ия. Если у вас есть сомнения - прервите процесс и свяжитесь с разработч" +
"иками.\x02Области\x02Никакие разрешения не запрашиваются: приложение по" +
"лучит только URL вашего профиля.\x02Отказать\x02Разрешить\x02Вы будете " +
"перенаправлены на %[1]s%[2]s%[3]s\x02Ошибка\x02Как исправить это?\x02Во" +
"йти\x02TicketAuth\x02Получатель\x02Ресурс\x02Отправить"
// Total table size 2116 bytes (2KiB); checksum: 848DD07E