From 46fe90c867831741e26f6f75bd1e8e181fdccced Mon Sep 17 00:00:00 2001 From: jordi fita mas Date: Sat, 15 Apr 2023 20:45:19 +0200 Subject: [PATCH] Remove the fuzzy tag of a Catalan translation --- pkg/form.go | 3 +++ po/ca.po | 3 +-- po/es.po | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pkg/form.go b/pkg/form.go index 0d206f2..7ae4498 100644 --- a/pkg/form.go +++ b/pkg/form.go @@ -270,6 +270,9 @@ type ToggleField struct { func (field *ToggleField) FillValue(r *http.Request) { field.Selected = strings.TrimSpace(r.FormValue(field.Name)) + if field.Selected != field.FirstOption.Value && field.Selected != field.SecondOption.Value { + field.Selected = field.FirstOption.Value + } } type FormValidator struct { diff --git a/po/ca.po b/po/ca.po index 4b32038..021a115 100644 --- a/po/ca.po +++ b/po/ca.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: numerus\n" "Report-Msgid-Bugs-To: jordi@tandem.blog\n" -"POT-Creation-Date: 2023-04-15 04:00+0200\n" +"POT-Creation-Date: 2023-04-15 20:39+0200\n" "PO-Revision-Date: 2023-01-18 17:08+0100\n" "Last-Translator: jordi fita mas \n" "Language-Team: Catalan \n" @@ -640,7 +640,6 @@ msgid "To Date" msgstr "Fins la data" #: pkg/invoices.go:191 -#, fuzzy msgctxt "input" msgid "Tags Condition" msgstr "CondiciĆ³ de les etiquetes" diff --git a/po/es.po b/po/es.po index 2f6ed84..a14f215 100644 --- a/po/es.po +++ b/po/es.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: numerus\n" "Report-Msgid-Bugs-To: jordi@tandem.blog\n" -"POT-Creation-Date: 2023-04-15 04:00+0200\n" +"POT-Creation-Date: 2023-04-15 20:39+0200\n" "PO-Revision-Date: 2023-01-18 17:45+0100\n" "Last-Translator: jordi fita mas \n" "Language-Team: Spanish \n"