From 6b3fc3d492f5d03dd801ba1bf5fdd81674e6037d Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Fri, 23 Jun 2023 13:09:26 +0100 Subject: [PATCH] lang: correct language names Low German/Saxon (NDS) is empty entirely, which caused discord lang registration to error, so i've just filled in the name. Somebody directly translated "English (US)" into italian instead of putting Italian in italian, corrected that. Use some common sense! --- discord.go | 1 + lang/common/it-it.json | 4 ++-- lang/email/it-it.json | 4 ++-- lang/form/it-it.json | 4 ++-- lang/setup/nds.json | 2 +- lang/telegram/it-it.json | 4 ++-- lang/telegram/nds.json | 2 +- 7 files changed, 11 insertions(+), 10 deletions(-) diff --git a/discord.go b/discord.go index 607696c..da949ef 100644 --- a/discord.go +++ b/discord.go @@ -342,6 +342,7 @@ func (d *DiscordDaemon) registerCommands() { commands[1].Options[0].Choices = make([]*dg.ApplicationCommandOptionChoice, len(d.app.storage.lang.Telegram)) i := 0 for code := range d.app.storage.lang.Telegram { + d.app.debug.Printf("Registering choice \"%s\":\"%s\"\n", d.app.storage.lang.Telegram[code].Meta.Name, code) commands[1].Options[0].Choices[i] = &dg.ApplicationCommandOptionChoice{ Name: d.app.storage.lang.Telegram[code].Meta.Name, Value: code, diff --git a/lang/common/it-it.json b/lang/common/it-it.json index 452585f..58d5021 100644 --- a/lang/common/it-it.json +++ b/lang/common/it-it.json @@ -1,6 +1,6 @@ { "meta": { - "name": "Inglese (US)" + "name": "Italiano (IT)" }, "strings": { "username": "Username", @@ -28,4 +28,4 @@ }, "notifications": {}, "quantityStrings": {} -} \ No newline at end of file +} diff --git a/lang/email/it-it.json b/lang/email/it-it.json index b51e5ae..fe844bc 100644 --- a/lang/email/it-it.json +++ b/lang/email/it-it.json @@ -1,6 +1,6 @@ { "meta": { - "name": "Inglese (US)" + "name": "Italiano (IT)" }, "strings": { "ifItWasNotYou": "Se non sei stato tu, puoi ignorare questa email.", @@ -49,4 +49,4 @@ "clickBelow": "", "confirmEmail": "" } -} \ No newline at end of file +} diff --git a/lang/form/it-it.json b/lang/form/it-it.json index 4247b4e..aace6a0 100644 --- a/lang/form/it-it.json +++ b/lang/form/it-it.json @@ -1,6 +1,6 @@ { "meta": { - "name": "Inglese (US)" + "name": "Italiano (IT)" }, "strings": { "pageTitle": "Crea Un Account Jellyfin", @@ -48,4 +48,4 @@ "plural": "Deve avere almeno {n} caratteri speciali" } } -} \ No newline at end of file +} diff --git a/lang/setup/nds.json b/lang/setup/nds.json index 55f5c97..d45cc97 100644 --- a/lang/setup/nds.json +++ b/lang/setup/nds.json @@ -1,6 +1,6 @@ { "meta": { - "name": "" + "name": "Nedderdütsch (NDS)" }, "strings": { "pageTitle": "", diff --git a/lang/telegram/it-it.json b/lang/telegram/it-it.json index cbd945b..3273db0 100644 --- a/lang/telegram/it-it.json +++ b/lang/telegram/it-it.json @@ -1,6 +1,6 @@ { "meta": { - "name": "Inglese (US)" + "name": "Italiano (IT)" }, "strings": { "startMessage": "", @@ -13,4 +13,4 @@ "languageSet": "", "discordDMs": "" } -} \ No newline at end of file +} diff --git a/lang/telegram/nds.json b/lang/telegram/nds.json index 5840bfc..2b8ad0a 100644 --- a/lang/telegram/nds.json +++ b/lang/telegram/nds.json @@ -1,6 +1,6 @@ { "meta": { - "name": "" + "name": "Nedderdütsch (NDS)" }, "strings": { "startMessage": "",