diff --git a/CHANGES.md b/CHANGES.md index 5df97e14f..c43ccac1b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -5,6 +5,7 @@ ### :sparkles: New features - Add option to interactively scale text [Taiga #1527](https://tree.taiga.io/project/penpot/us/1527) +- Translate automatic names of new files and projects. ### :bug: Bugs fixed diff --git a/frontend/src/app/main/data/dashboard.cljs b/frontend/src/app/main/data/dashboard.cljs index e69e39fe2..8f48fd498 100644 --- a/frontend/src/app/main/data/dashboard.cljs +++ b/frontend/src/app/main/data/dashboard.cljs @@ -433,7 +433,7 @@ (ptk/reify ::create-project ptk/WatchEvent (watch [_ state stream] - (let [name (name (gensym "New Project ")) + (let [name (name (gensym (str (tr "dashboard.new-project-prefix") " "))) team-id (:current-team-id state) params {:name name :team-id team-id} @@ -624,7 +624,7 @@ :or {on-success identity on-error rx/throw}} (meta params) - name (name (gensym "New File ")) + name (name (gensym (str (tr "dashboard.new-file-prefix") " "))) params (assoc params :name name)] (->> (rp/mutation! :create-file params) diff --git a/frontend/translations/en.po b/frontend/translations/en.po index f3bd4316e..a683b5504 100644 --- a/frontend/translations/en.po +++ b/frontend/translations/en.po @@ -290,10 +290,18 @@ msgstr "Move to other team" msgid "dashboard.new-file" msgstr "+ New File" +#: src/app/main/data/dashboard.cljs +msgid "dashboard.new-file-prefix" +msgstr "New File" + #: src/app/main/ui/dashboard/projects.cljs msgid "dashboard.new-project" msgstr "+ New project" +#: src/app/main/data/dashboard.cljs +msgid "dashboard.new-project-prefix" +msgstr "New Project" + #: src/app/main/ui/dashboard/search.cljs msgid "dashboard.no-matches-for" msgstr "No matches found for ā€œ%sā€œ" diff --git a/frontend/translations/es.po b/frontend/translations/es.po index f8f8e956f..197837509 100644 --- a/frontend/translations/es.po +++ b/frontend/translations/es.po @@ -305,10 +305,18 @@ msgstr "Mover a otro equipo" msgid "dashboard.new-file" msgstr "+ Nuevo Archivo" +#: src/app/main/data/dashboard.cljs +msgid "dashboard.new-file-prefix" +msgstr "Nuevo Archivo" + #: src/app/main/ui/dashboard/projects.cljs msgid "dashboard.new-project" msgstr "+ Nuevo proyecto" +#: src/app/main/data/dashboard.cljs +msgid "dashboard.new-project-prefix" +msgstr "Nuevo Proyecto" + #: src/app/main/ui/dashboard/search.cljs msgid "dashboard.no-matches-for" msgstr "No se encuentra ā€œ%sā€œ"