From c5076d3bb6bbc4d6d196e8388dbd15ae39dc55c4 Mon Sep 17 00:00:00 2001 From: Eugene Sotski Date: Sun, 27 Apr 2025 03:24:07 +0300 Subject: [PATCH] Update localization files: refactor review prompts for Frigate Plus across multiple languages --- web/public/locales/de/components/dialog.json | 24 +++++++------------ web/public/locales/es/components/dialog.json | 14 +++-------- web/public/locales/fr/components/dialog.json | 12 ++-------- web/public/locales/it/components/dialog.json | 12 ++-------- .../locales/nb-NO/components/dialog.json | 10 ++------ web/public/locales/nl/components/dialog.json | 12 +++------- web/public/locales/pl/components/dialog.json | 12 ++-------- web/public/locales/pt/components/dialog.json | 12 ++-------- web/public/locales/ro/components/dialog.json | 12 ++-------- web/public/locales/ru/components/dialog.json | 12 ++-------- web/public/locales/tr/components/dialog.json | 24 +++++++------------ .../locales/zh-CN/components/dialog.json | 10 ++------ 12 files changed, 40 insertions(+), 126 deletions(-) diff --git a/web/public/locales/de/components/dialog.json b/web/public/locales/de/components/dialog.json index a21ac8d4dd..0ae529c458 100644 --- a/web/public/locales/de/components/dialog.json +++ b/web/public/locales/de/components/dialog.json @@ -10,24 +10,18 @@ }, "explore": { "plus": { - "review": { - "true": { - "label": "Bestätigen Sie das Label für Frigate Plus", - "true_one": "Das ist ein/eine {{label}}", - "true_other": "Dies sind {{label}}" - }, - "state": { - "submitted": "Übermittelt" - }, - "false": { - "false_one": "Das ist kein(e) {{label}}", - "false_other": "Das sind kein(e) {{label}}", - "label": "Bestätige dieses Label nicht für Frigate Plus" - } - }, "submitToPlus": { "label": "An Frigate+ übermitteln", "desc": "Objekte an Orten die du vermeiden möchtest, sind keine Fehlalarme. Wenn du sie als Fehlalarme meldest, verwirrst du das Modell." + }, + "review": { + "question": { + "label": "Bestätigen Sie das Label für Frigate Plus", + "ask_full": "Dies sind {{untranslatedLabel}} ({{translatedLabel}})?" + }, + "state": { + "submitted": "Übermittelt" + } } }, "video": { diff --git a/web/public/locales/es/components/dialog.json b/web/public/locales/es/components/dialog.json index 1f16824d3d..8aeafc1d28 100644 --- a/web/public/locales/es/components/dialog.json +++ b/web/public/locales/es/components/dialog.json @@ -15,17 +15,9 @@ "desc": "Los objetos en ubicaciones que deseas evitar no son falsos positivos. Enviarlos como falsos positivos confundirá al modelo." }, "review": { - "false": { - "label": "No confirmar esta etiqueta para Frigate Plus", - "false_one": "Esto no es un {{label}}", - "false_many": "Esto no es un {{label}}", - "false_other": "Esto no es un {{label}}" - }, - "true": { - "true_one": "Esto es un {{label}}", - "true_many": "Esto es un {{label}}", - "true_other": "Esto es un {{label}}", - "label": "Confirmar esta etiqueta para Frigate+" + "question": { + "label": "Confirmar esta etiqueta para Frigate+", + "ask_full": "Esto es un {{untranslatedLabel}} ({{translatedLabel}})?" }, "state": { "submitted": "Enviado" diff --git a/web/public/locales/fr/components/dialog.json b/web/public/locales/fr/components/dialog.json index 7bcf40a078..2c395cacd1 100644 --- a/web/public/locales/fr/components/dialog.json +++ b/web/public/locales/fr/components/dialog.json @@ -15,17 +15,9 @@ "desc": "Les objets situés dans des endroits que vous souhaitez éviter ne sont pas des faux positifs. Les soumettre comme faux positifs perturberait le modèle." }, "review": { - "true": { + "question": { "label": "Confirmez cette étiquette pour Frigate Plus", - "true_one": "C'est un {{label}}", - "true_many": "Ce sont des {{label}}", - "true_other": "Ce sont des {{label}}" - }, - "false": { - "false_one": "Ceci n'est pas un {{label}}", - "false_many": "Ceux-ci ne sont pas des {{label}}", - "false_other": "Ceux-ci ne sont pas des {{label}}", - "label": "Ne pas confirmer cette étiquette pour Frigate Plus" + "ask_full": "Ce sont des {{untranslatedLabel}} ({{translatedLabel}})?" }, "state": { "submitted": "Soumis" diff --git a/web/public/locales/it/components/dialog.json b/web/public/locales/it/components/dialog.json index 2e95248c18..b7aec87289 100644 --- a/web/public/locales/it/components/dialog.json +++ b/web/public/locales/it/components/dialog.json @@ -15,17 +15,9 @@ "desc": "Gli oggetti in posizioni che si desidera evitare non sono falsi positivi. Inviarli come falsi positivi confonderà il modello." }, "review": { - "false": { - "label": "Non confermare questa etichetta per Frigate Plus", - "false_one": "Questo non è un {{label}}", - "false_many": "Questi non sono un {{label}}", - "false_other": "Questi non sono un {{label}}" - }, - "true": { + "question": { "label": "Conferma questa etichetta per Frigate Plus", - "true_one": "Questo è un {{label}}", - "true_many": "Questi sono {{label}}", - "true_other": "Questi sono {{label}}" + "ask_full": "Questi sono {{untranslatedLabel}} ({{translatedLabel}})?" }, "state": { "submitted": "Inviato" diff --git a/web/public/locales/nb-NO/components/dialog.json b/web/public/locales/nb-NO/components/dialog.json index ad8865774e..f50452727f 100644 --- a/web/public/locales/nb-NO/components/dialog.json +++ b/web/public/locales/nb-NO/components/dialog.json @@ -15,18 +15,12 @@ "desc": "Objekter på steder du vil unngå er ikke falske positiver. Å sende dem som falske positiver vil forvirre modellen." }, "review": { - "true": { + "question": { "label": "Bekreft denne merkelappen for Frigate Plus", - "true_one": "Dette er en {{label}}", - "true_other": "Dette er en {{label}}" + "ask_full": "Dette er en {{untranslatedLabel}} ({{translatedLabel}})?" }, "state": { "submitted": "Sendt inn" - }, - "false": { - "label": "Ikke bekreft denne merkelappen for Frigate Plus", - "false_one": "Dette er ikke en {{label}}", - "false_other": "Dette er ikke en {{label}}" } } }, diff --git a/web/public/locales/nl/components/dialog.json b/web/public/locales/nl/components/dialog.json index 9a55c97aa7..711c2dcc37 100644 --- a/web/public/locales/nl/components/dialog.json +++ b/web/public/locales/nl/components/dialog.json @@ -15,15 +15,9 @@ "desc": "Objecten op locaties die je wilt vermijden, zijn geen valspositieven. Als je ze als valspositieven indient, brengt dit het model in verwarring." }, "review": { - "true": { - "true_one": "Dit is een {{label}}", - "true_other": "Dit zijn {{label}}", - "label": "Bevestig dit label voor Frigate Plus" - }, - "false": { - "false_one": "Dit is geen {{label}}", - "false_other": "Dit zijn geen {{label}}", - "label": "Bevestig dit label niet voor Frigate Plus" + "question": { + "label": "Bevestig dit label voor Frigate Plus", + "ask_full": "Dit zijn {{untranslatedLabel}} ({{translatedLabel}})?" }, "state": { "submitted": "Ingediend" diff --git a/web/public/locales/pl/components/dialog.json b/web/public/locales/pl/components/dialog.json index 3d02678b3e..bf532cb88f 100644 --- a/web/public/locales/pl/components/dialog.json +++ b/web/public/locales/pl/components/dialog.json @@ -15,17 +15,9 @@ "desc": "Obiekty w miejscach, których chcesz unikać, nie są fałszywymi alarmami. Zgłaszanie ich jako fałszywe alarmy zdezorientuje model." }, "review": { - "true": { + "question": { "label": "Potwierdź tę etykietę dla Frigate Plus", - "true_one": "To jest {{label}}", - "true_few": "To są {{label}}", - "true_many": "To są {{label}}" - }, - "false": { - "label": "Nie potwierdzaj tej etykiety dla Frigate Plus", - "false_one": "To nie jest {{label}}", - "false_few": "To nie są {{label}}", - "false_many": "To nie są {{label}}" + "ask_full": "To są {{untranslatedLabel}} ({{translatedLabel}})?" }, "state": { "submitted": "Przesłano" diff --git a/web/public/locales/pt/components/dialog.json b/web/public/locales/pt/components/dialog.json index a7fc2c8bc6..8c3c93f5da 100644 --- a/web/public/locales/pt/components/dialog.json +++ b/web/public/locales/pt/components/dialog.json @@ -15,20 +15,12 @@ "desc": "Objetos em locais que você quer evitar não são falsos positivos. Enviá-los como falsos positivos confundirá o modelo." }, "review": { - "true": { + "question": { "label": "Confirme esta etiqueta para Frigate Plus", - "true_one": "Este é um {{label}}", - "true_many": "Estes são muitos {{label}}", - "true_other": "Estão são {{label}}" + "ask_full": "Estão são {{untranslatedLabel}} ({{translatedLabel}})?" }, "state": { "submitted": "Enviado" - }, - "false": { - "label": "Não confirmar esta etiqueta para Frigate Plus", - "false_one": "Este não é um {{label}}", - "false_many": "Estes não são muitos {{label}}", - "false_other": "Estes não são {{label}}" } } }, diff --git a/web/public/locales/ro/components/dialog.json b/web/public/locales/ro/components/dialog.json index 203cb5424e..e9bde99d83 100644 --- a/web/public/locales/ro/components/dialog.json +++ b/web/public/locales/ro/components/dialog.json @@ -11,17 +11,9 @@ "explore": { "plus": { "review": { - "true": { + "question": { "label": "Confirma aceasta eticheta pentru Frigate Plus", - "true_one": "Asta e o {{label}}", - "true_few": "Astea sunt {{label}}", - "true_other": "Astea sunt {{label}}" - }, - "false": { - "label": "Nu confirma aceasta eticheta pentru Frigate Plus", - "false_one": "Asta nu este {{label}}", - "false_few": "Astea nu sunt {{label}}", - "false_other": "Astea nu sunt {{label}}" + "ask_full": "Astea sunt {{untranslatedLabel}} ({{translatedLabel}})?" }, "state": { "submitted": "Trimis" diff --git a/web/public/locales/ru/components/dialog.json b/web/public/locales/ru/components/dialog.json index 531ee4b667..9bde11cf80 100644 --- a/web/public/locales/ru/components/dialog.json +++ b/web/public/locales/ru/components/dialog.json @@ -15,17 +15,9 @@ "desc": "Объекты в местах, которых вы хотите избежать, не являются ложными срабатываниями. Отправка их как ложных срабатываний запутает модель." }, "review": { - "true": { + "question": { "label": "Подтвердите метку для Frigate Plus", - "true_one": "Это {{label}}", - "true_few": "Это {{label}}", - "true_many": "Это {{label}}" - }, - "false": { - "label": "Не подтверждать эту метку для Frigate Plus", - "false_one": "Это не {{label}}", - "false_few": "Это не {{label}}", - "false_many": "Это не {{label}}" + "ask_full": "Это {{untranslatedLabel}} ({{translatedLabel}})?" }, "state": { "submitted": "Отправлено" diff --git a/web/public/locales/tr/components/dialog.json b/web/public/locales/tr/components/dialog.json index 254e94f1fc..c7ec5c12ba 100644 --- a/web/public/locales/tr/components/dialog.json +++ b/web/public/locales/tr/components/dialog.json @@ -10,24 +10,18 @@ }, "explore": { "plus": { - "review": { - "state": { - "submitted": "Gönderildi" - }, - "true": { - "true_one": "Bu bir {{label}}", - "true_other": "Bu bir {{label}}", - "label": "Frigate+ için bu etiketi onaylayın" - }, - "false": { - "label": "Bu etiketi Frigate+ için onaylamaktan vazgeç", - "false_one": "Bu bir {{label}} değil", - "false_other": "Bu bir {{label}} değil" - } - }, "submitToPlus": { "label": "Frigate+'ya Gönder", "desc": "Görülmesini istemediğiniz yerlerdeki nesneler yanlış pozitif değildir. Bunları yanlış pozitif olarak göndermek modeli yanıltacaktır." + }, + "review": { + "question": { + "label": "Frigate+ için bu etiketi onaylayın", + "ask_full": "Bu bir {{untranslatedLabel}} ({{translatedLabel}})?" + }, + "state": { + "submitted": "Gönderildi" + } } }, "video": { diff --git a/web/public/locales/zh-CN/components/dialog.json b/web/public/locales/zh-CN/components/dialog.json index 92c574f12a..6146abcff8 100644 --- a/web/public/locales/zh-CN/components/dialog.json +++ b/web/public/locales/zh-CN/components/dialog.json @@ -15,15 +15,9 @@ "desc": "您希望避开的地点中的物体不应被视为误报。若将其作为误报提交,可能会导致AI模型容易混淆相关物体的识别。" }, "review": { - "true": { + "question": { "label": "为 Frigate Plus 确认此标签", - "true_one": "这是 {{label}}", - "true_other": "这是 {{label}}" - }, - "false": { - "label": "不为 Frigate Plus 确认此标签", - "false_one": "这不是 {{label}}", - "false_other": "这不是 {{label}}" + "ask_full": "这是 {{untranslatedLabel}} ({{translatedLabel}})?" }, "state": { "submitted": "已提交"