🌐 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{
"Allow": 1,
"Deny": 0,
"Sign In": 2,
"Allow": 4,
"Authorize %s": 0,
"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
0x00000000, 0x00000005, 0x0000000b, 0x00000013,
} // Size: 40 bytes
var enIndex = []uint32{ // 11 elements
0x00000000, 0x00000010, 0x00000026, 0x00000039,
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
0x00000000, 0x00000011, 0x00000024, 0x0000002f,
} // Size: 40 bytes
var ruIndex = []uint32{ // 11 elements
0x00000000, 0x0000001f, 0x0000004d, 0x0000008e,
0x0000009f, 0x000000b2, 0x000000bd, 0x000000bd,
0x000000bd, 0x000000bd, 0x000000bd,
} // Size: 68 bytes
const ruData string = "" + // Size: 47 bytes
"\x02Отказать\x02Разрешить\x02Войти"
const ruData string = "" + // Size: 189 bytes
"\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",
"messages": [
{
"id": "Authorize {ClientName}",
"message": "Authorize {ClientName}",
"translation": "Authorize {ClientName}",
"translatorComment": "Authorization page header with the name of the application",
"id": "Authorize {Name}",
"message": "Authorize {Name}",
"translation": "Authorize {Name}",
"translatorComment": "Copied from source.",
"placeholders": [
{
"id": "ClientName",
"id": "Name",
"string": "%[1]s",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "p.ClientName"
"expr": "p.Client.GetName()"
}
],
"fuzzy": true
@ -26,10 +26,10 @@
"fuzzy": true
},
{
"id": "Check your scopes",
"message": "Check your scopes",
"translation": "Check your scopes",
"translatorComment": "Name of the section with the set of access rights checkboxes on the login page",
"id": "Choose your scopes",
"message": "Choose your scopes",
"translation": "Choose your scopes",
"translatorComment": "Copied from source.",
"fuzzy": true
},
{
@ -54,4 +54,4 @@
"fuzzy": true
}
]
}
}

View File

@ -1,6 +1,37 @@
{
"language": "en",
"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",
"message": "Deny",
@ -21,6 +52,34 @@
"translation": "Sign In",
"translatorComment": "The name of the button in the site address entry form to start the login process",
"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",
"messages": [
{
"id": "Authorize {ClientName}",
"message": "Authorize {ClientName}",
"translation": "Авторизовать {ClientName}",
"translatorComment": "Заголовок страницы авторизации с именем приложения",
"id": "Authorize {Name}",
"message": "Authorize {Name}",
"translation": "Авторизовать {Name}",
"placeholders": [
{
"id": "ClientName",
"id": "Name",
"string": "%[1]s",
"type": "string",
"underlyingType": "string",
"argNum": 1,
"expr": "p.ClientName"
"expr": "p.Client.GetName()"
}
]
},
@ -24,10 +23,9 @@
"translatorComment": "Заголовок страницы авторизации безымянного приложения"
},
{
"id": "Check your scopes",
"message": "Check your scopes",
"translation": "Проверь права доступа",
"translatorComment": "Имя секции с набором чекбоксов прав доступа на странице авторизации"
"id": "Choose your scopes",
"message": "Choose your scopes",
"translation": "Выбери предоставляемые разрешения"
},
{
"id": "Deny",
@ -48,4 +46,4 @@
"translatorComment": "Название кнопки в форме ввода адреса сайта для начала процесса входа"
}
]
}
}

View File

@ -1,6 +1,32 @@
{
"language": "ru",
"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",
"message": "Deny",
@ -18,6 +44,26 @@
"message": "Sign In",
"translation": "Войти",
"translatorComment": "Название кнопки в форме ввода адреса сайта для начала процесса входа"
},
{
"id": "TicketAuth",
"message": "TicketAuth",
"translation": ""
},
{
"id": "Recipient",
"message": "Recipient",
"translation": ""
},
{
"id": "Resource",
"message": "Resource",
"translation": ""
},
{
"id": "Send",
"message": "Send",
"translation": ""
}
]
}