From 879ea598a6e636763dab9d0e569f81e285a4ca85 Mon Sep 17 00:00:00 2001 From: Maxim Lebedev Date: Fri, 21 Jan 2022 00:50:50 +0500 Subject: [PATCH] :globe_with_meridians: Regenerate locales --- catalog_gen.go | 40 ++++++++++++++-------- locales/en/messages.gotext.json | 22 ++++++------ locales/en/out.gotext.json | 59 +++++++++++++++++++++++++++++++++ locales/ru/messages.gotext.json | 20 +++++------ locales/ru/out.gotext.json | 46 +++++++++++++++++++++++++ 5 files changed, 152 insertions(+), 35 deletions(-) diff --git a/catalog_gen.go b/catalog_gen.go index 6d90f6c..a719630 100644 --- a/catalog_gen.go +++ b/catalog_gen.go @@ -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 diff --git a/locales/en/messages.gotext.json b/locales/en/messages.gotext.json index 10165cd..f1475b6 100644 --- a/locales/en/messages.gotext.json +++ b/locales/en/messages.gotext.json @@ -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 } ] -} +} \ No newline at end of file diff --git a/locales/en/out.gotext.json b/locales/en/out.gotext.json index 69333ba..6920416 100644 --- a/locales/en/out.gotext.json +++ b/locales/en/out.gotext.json @@ -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 } ] } \ No newline at end of file diff --git a/locales/ru/messages.gotext.json b/locales/ru/messages.gotext.json index 1e868a9..38d4349 100644 --- a/locales/ru/messages.gotext.json +++ b/locales/ru/messages.gotext.json @@ -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": "Название кнопки в форме ввода адреса сайта для начала процесса входа" } ] -} +} \ No newline at end of file diff --git a/locales/ru/out.gotext.json b/locales/ru/out.gotext.json index 90168f7..9de77a9 100644 --- a/locales/ru/out.gotext.json +++ b/locales/ru/out.gotext.json @@ -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": "" } ] } \ No newline at end of file