🌐 Regenerate locales

This commit is contained in:
Maxim Lebedev 2022-01-21 00:50:50 +05:00
parent 3fc1eeb4a7
commit 879ea598a6
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
5 changed files with 152 additions and 35 deletions

View File

@ -39,22 +39,36 @@ func init() {
} }
var messageKeyToIndex = map[string]int{ var messageKeyToIndex = map[string]int{
"Allow": 1, "Allow": 4,
"Deny": 0, "Authorize %s": 0,
"Sign In": 2, "Authorize application": 1,
"Choose your scopes": 2,
"Deny": 3,
"Recipient": 7,
"Resource": 8,
"Send": 9,
"Sign In": 5,
"TicketAuth": 6,
} }
var enIndex = []uint32{ // 4 elements var enIndex = []uint32{ // 11 elements
0x00000000, 0x00000005, 0x0000000b, 0x00000013, 0x00000000, 0x00000010, 0x00000026, 0x00000039,
} // Size: 40 bytes 0x0000003e, 0x00000044, 0x0000004c, 0x00000057,
0x00000061, 0x0000006a, 0x0000006f,
} // Size: 68 bytes
const enData string = "\x02Deny\x02Allow\x02Sign In" const enData string = "" + // Size: 111 bytes
"\x02Authorize %[1]s\x02Authorize application\x02Choose your scopes\x02De" +
"ny\x02Allow\x02Sign In\x02TicketAuth\x02Recipient\x02Resource\x02Send"
var ruIndex = []uint32{ // 4 elements var ruIndex = []uint32{ // 11 elements
0x00000000, 0x00000011, 0x00000024, 0x0000002f, 0x00000000, 0x0000001f, 0x0000004d, 0x0000008e,
} // Size: 40 bytes 0x0000009f, 0x000000b2, 0x000000bd, 0x000000bd,
0x000000bd, 0x000000bd, 0x000000bd,
} // Size: 68 bytes
const ruData string = "" + // Size: 47 bytes const ruData string = "" + // Size: 189 bytes
"\x02Отказать\x02Разрешить\x02Войти" "\x02Авторизовать %[1]s\x02Авторизовать приложение\x02Выбери предоставляе" +
"мые разрешения\x02Отказать\x02Разрешить\x02Войти"
// Total table size 146 bytes (0KiB); checksum: 9261221B // Total table size 436 bytes (0KiB); checksum: BBD74FCF

View File

@ -2,18 +2,18 @@
"language": "en", "language": "en",
"messages": [ "messages": [
{ {
"id": "Authorize {ClientName}", "id": "Authorize {Name}",
"message": "Authorize {ClientName}", "message": "Authorize {Name}",
"translation": "Authorize {ClientName}", "translation": "Authorize {Name}",
"translatorComment": "Authorization page header with the name of the application", "translatorComment": "Copied from source.",
"placeholders": [ "placeholders": [
{ {
"id": "ClientName", "id": "Name",
"string": "%[1]s", "string": "%[1]s",
"type": "string", "type": "string",
"underlyingType": "string", "underlyingType": "string",
"argNum": 1, "argNum": 1,
"expr": "p.ClientName" "expr": "p.Client.GetName()"
} }
], ],
"fuzzy": true "fuzzy": true
@ -26,10 +26,10 @@
"fuzzy": true "fuzzy": true
}, },
{ {
"id": "Check your scopes", "id": "Choose your scopes",
"message": "Check your scopes", "message": "Choose your scopes",
"translation": "Check your scopes", "translation": "Choose your scopes",
"translatorComment": "Name of the section with the set of access rights checkboxes on the login page", "translatorComment": "Copied from source.",
"fuzzy": true "fuzzy": true
}, },
{ {
@ -54,4 +54,4 @@
"fuzzy": true "fuzzy": true
} }
] ]
} }

View File

@ -1,6 +1,37 @@
{ {
"language": "en", "language": "en",
"messages": [ "messages": [
{
"id": "Authorize {Name}",
"message": "Authorize {Name}",
"translation": "Authorize {Name}",
"translatorComment": "Copied from source.",
"placeholders": [
{
"id": "Name",
"string": "%[1]s",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "p.Client.GetName()"
}
],
"fuzzy": true
},
{
"id": "Authorize application",
"message": "Authorize application",
"translation": "Authorize application",
"translatorComment": "Authorization page header for an unnamed application",
"fuzzy": true
},
{
"id": "Choose your scopes",
"message": "Choose your scopes",
"translation": "Choose your scopes",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{ {
"id": "Deny", "id": "Deny",
"message": "Deny", "message": "Deny",
@ -21,6 +52,34 @@
"translation": "Sign In", "translation": "Sign In",
"translatorComment": "The name of the button in the site address entry form to start the login process", "translatorComment": "The name of the button in the site address entry form to start the login process",
"fuzzy": true "fuzzy": true
},
{
"id": "TicketAuth",
"message": "TicketAuth",
"translation": "TicketAuth",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"id": "Recipient",
"message": "Recipient",
"translation": "Recipient",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"id": "Resource",
"message": "Resource",
"translation": "Resource",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
"id": "Send",
"message": "Send",
"translation": "Send",
"translatorComment": "Copied from source.",
"fuzzy": true
} }
] ]
} }

View File

@ -2,18 +2,17 @@
"language": "ru", "language": "ru",
"messages": [ "messages": [
{ {
"id": "Authorize {ClientName}", "id": "Authorize {Name}",
"message": "Authorize {ClientName}", "message": "Authorize {Name}",
"translation": "Авторизовать {ClientName}", "translation": "Авторизовать {Name}",
"translatorComment": "Заголовок страницы авторизации с именем приложения",
"placeholders": [ "placeholders": [
{ {
"id": "ClientName", "id": "Name",
"string": "%[1]s", "string": "%[1]s",
"type": "string", "type": "string",
"underlyingType": "string", "underlyingType": "string",
"argNum": 1, "argNum": 1,
"expr": "p.ClientName" "expr": "p.Client.GetName()"
} }
] ]
}, },
@ -24,10 +23,9 @@
"translatorComment": "Заголовок страницы авторизации безымянного приложения" "translatorComment": "Заголовок страницы авторизации безымянного приложения"
}, },
{ {
"id": "Check your scopes", "id": "Choose your scopes",
"message": "Check your scopes", "message": "Choose your scopes",
"translation": "Проверь права доступа", "translation": "Выбери предоставляемые разрешения"
"translatorComment": "Имя секции с набором чекбоксов прав доступа на странице авторизации"
}, },
{ {
"id": "Deny", "id": "Deny",
@ -48,4 +46,4 @@
"translatorComment": "Название кнопки в форме ввода адреса сайта для начала процесса входа" "translatorComment": "Название кнопки в форме ввода адреса сайта для начала процесса входа"
} }
] ]
} }

View File

@ -1,6 +1,32 @@
{ {
"language": "ru", "language": "ru",
"messages": [ "messages": [
{
"id": "Authorize {Name}",
"message": "Authorize {Name}",
"translation": "Авторизовать {Name}",
"placeholders": [
{
"id": "Name",
"string": "%[1]s",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "p.Client.GetName()"
}
]
},
{
"id": "Authorize application",
"message": "Authorize application",
"translation": "Авторизовать приложение",
"translatorComment": "Заголовок страницы авторизации безымянного приложения"
},
{
"id": "Choose your scopes",
"message": "Choose your scopes",
"translation": "Выбери предоставляемые разрешения"
},
{ {
"id": "Deny", "id": "Deny",
"message": "Deny", "message": "Deny",
@ -18,6 +44,26 @@
"message": "Sign In", "message": "Sign In",
"translation": "Войти", "translation": "Войти",
"translatorComment": "Название кнопки в форме ввода адреса сайта для начала процесса входа" "translatorComment": "Название кнопки в форме ввода адреса сайта для начала процесса входа"
},
{
"id": "TicketAuth",
"message": "TicketAuth",
"translation": ""
},
{
"id": "Recipient",
"message": "Recipient",
"translation": ""
},
{
"id": "Resource",
"message": "Resource",
"translation": ""
},
{
"id": "Send",
"message": "Send",
"translation": ""
} }
] ]
} }