Improve token import error copy

This commit is contained in:
Xavier Julian 2025-07-04 12:21:20 +02:00 committed by Xaviju
parent 0a7d6d98e1
commit 8f840daa91
3 changed files with 5 additions and 7 deletions

View file

@ -44,7 +44,7 @@
(defn- show-unknown-types-warning [unknown-tokens] (defn- show-unknown-types-warning [unknown-tokens]
(let [type->tokens (group-by-value unknown-tokens)] (let [type->tokens (group-by-value unknown-tokens)]
(ntf/show {:content (tr "workspace.tokens.unknown-token-type") (ntf/show {:content (tr "workspace.tokens.unknown-token-type-message")
:detail (->> (for [[token-type tokens] type->tokens] :detail (->> (for [[token-type tokens] type->tokens]
(tr "workspace.tokens.unknown-token-type-section" token-type (count tokens))) (tr "workspace.tokens.unknown-token-type-section" token-type (count tokens)))
(str/join "\n")) (str/join "\n"))

View file

@ -7548,8 +7548,8 @@ msgid "workspace.tokens.tools"
msgstr "Tools" msgstr "Tools"
#: src/app/main/data/workspace/tokens/import_export.cljs:45 #: src/app/main/data/workspace/tokens/import_export.cljs:45
msgid "workspace.tokens.unknown-token-type" msgid "workspace.tokens.unknown-token-type-message"
msgstr "The import was successful, but some tokens were skipped. " msgstr "Import was successful. Some tokens may not be included."
#: src/app/main/data/workspace/tokens/import_export.cljs:47 #: src/app/main/data/workspace/tokens/import_export.cljs:47
msgid "workspace.tokens.unknown-token-type-section" msgid "workspace.tokens.unknown-token-type-section"

View file

@ -7483,10 +7483,8 @@ msgid "workspace.tokens.tools"
msgstr "Herramientas" msgstr "Herramientas"
#: src/app/main/data/workspace/tokens/import_export.cljs:45 #: src/app/main/data/workspace/tokens/import_export.cljs:45
msgid "workspace.tokens.unknown-token-type" msgid "workspace.tokens.unknown-token-type-message"
msgstr "" msgstr "La importación se ha realizado correctamente. Es posible que no se incluyan algunos tokens."
"La importación se ha realizado correctamente pero se omitieron algunos "
"tokens."
#: src/app/main/data/workspace/tokens/import_export.cljs:47 #: src/app/main/data/workspace/tokens/import_export.cljs:47
msgid "workspace.tokens.unknown-token-type-section" msgid "workspace.tokens.unknown-token-type-section"