From 3a1fbbc5332ad347e326cb16c569c9f6bf18536c Mon Sep 17 00:00:00 2001 From: George Gevoian Date: Mon, 27 Mar 2023 14:28:40 -0400 Subject: [PATCH] (core) Un-escape names in HomeIntro Summary: Characters such as & were mistakenly being escaped in the site name during translation. Test Plan: Tested manually. Reviewers: jarek Differential Revision: https://phab.getgrist.com/D3836 --- app/client/ui/HomeIntro.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/client/ui/HomeIntro.ts b/app/client/ui/HomeIntro.ts index 8f1dd578..c34426d7 100644 --- a/app/client/ui/HomeIntro.ts +++ b/app/client/ui/HomeIntro.ts @@ -64,7 +64,7 @@ function makeViewerTeamSiteIntro(homeModel: HomeModel) { return [ css.docListHeader( dom.autoDispose(personalOrg), - t("Welcome to {{orgName}}", {orgName: homeModel.app.currentOrgName}), + t("Welcome to {{- orgName}}", {orgName: homeModel.app.currentOrgName}), productPill(homeModel.app.currentOrg, {large: true}), testId('welcome-title') ), @@ -85,7 +85,7 @@ function makeTeamSiteIntro(homeModel: HomeModel) { const sproutsProgram = cssLink({href: commonUrls.sproutsProgram, target: '_blank'}, t("Sprouts Program")); return [ css.docListHeader( - t("Welcome to {{orgName}}", {orgName: homeModel.app.currentOrgName}), + t("Welcome to {{- orgName}}", {orgName: homeModel.app.currentOrgName}), productPill(homeModel.app.currentOrg, {large: true}), testId('welcome-title') ), @@ -102,7 +102,7 @@ function makeTeamSiteIntro(homeModel: HomeModel) { function makePersonalIntro(homeModel: HomeModel, user: FullUser) { return [ - css.docListHeader(t("Welcome to Grist, {{name}}!", {name: user.name}), testId('welcome-title')), + css.docListHeader(t("Welcome to Grist, {{- name}}!", {name: user.name}), testId('welcome-title')), cssIntroLine(t("Get started by creating your first Grist document.")), (shouldHideUiElement('helpCenter') ? null : cssIntroLine(t("Visit our {{link}} to learn more.", { link: helpCenterLink() }),