From 458669de81ebd07129ed6599297b3343c037a4d9 Mon Sep 17 00:00:00 2001 From: Tim Macdonald <tim@metabase.com> Date: Thu, 5 Sep 2024 09:32:29 +0100 Subject: [PATCH] Use i18n-appropriate string interpolation for card copying (#47652) Come to find out languages like Turkish put the `X` first in "Copy of `X`" --- src/metabase/api/card.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/metabase/api/card.clj b/src/metabase/api/card.clj index 045f9f2fc57..633eb2381d7 100644 --- a/src/metabase/api/card.clj +++ b/src/metabase/api/card.clj @@ -495,7 +495,7 @@ [id] {id [:maybe ms/PositiveInt]} (let [orig-card (api/read-check Card id) - new-name (str (trs "Copy of ") (:name orig-card)) + new-name (trs "Copy of {0}" (:name orig-card)) new-card (assoc orig-card :name new-name)] (-> (card/create-card! new-card @api/*current-user*) hydrate-card-details -- GitLab