Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 033b110

Browse files
authored
Merge pull request #1929 from matrix-org/luke/cookie-bar-update
Cookie bar update
2 parents 023c4e2 + fd8d501 commit 033b110

File tree

2 files changed

+21
-8
lines changed

2 files changed

+21
-8
lines changed

src/components/views/globals/CookieBar.js

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ export default class CookieBar extends React.Component {
5454
<img className="mx_MatrixToolbar_warning" src="img/warning.svg" width="24" height="23" alt="Warning" />
5555
<div className="mx_MatrixToolbar_content">
5656
{ this.props.policyUrl ? _t(
57-
"Help improve Riot by sending <UsageDataLink>usage data</UsageDataLink>? " +
58-
"This will use a cookie. " +
59-
"(See our <PolicyLink>cookie and privacy policies</PolicyLink>).",
57+
"Please help improve Riot.im by sending <UsageDataLink>anonymous usage data</UsageDataLink>. " +
58+
"This will use a cookie " +
59+
"(please see our <PolicyLink>Cookie Policy</PolicyLink>).",
6060
{},
6161
{
6262
'UsageDataLink': (sub) => <a
@@ -76,10 +76,23 @@ export default class CookieBar extends React.Component {
7676
</a>
7777
,
7878
},
79-
) : _t("Help improve Riot by sending usage data? This will use a cookie.") }
79+
) : _t(
80+
"Please help improve Riot.im by sending <UsageDataLink>anonymous usage data</UsageDataLink>. " +
81+
"This will use a cookie.",
82+
{},
83+
{
84+
'UsageDataLink': (sub) => <a
85+
className="mx_MatrixToolbar_link"
86+
href="javascript:;"
87+
onClick={this.onUsageDataClicked}
88+
>
89+
{ sub }
90+
</a>,
91+
},
92+
) }
8093
</div>
8194
<AccessibleButton element='button' className="mx_MatrixToolbar_action" onClick={this.onAccept}>
82-
{ _t("Yes please") }
95+
{ _t("Yes, I want to help!") }
8396
</AccessibleButton>
8497
<AccessibleButton className="mx_MatrixToolbar_close" onClick={this.onReject}>
8598
<img src="img/cancel.svg" width="18" height="18" />

src/i18n/strings/en_EN.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -636,9 +636,9 @@
636636
"Something went wrong when trying to get your communities.": "Something went wrong when trying to get your communities.",
637637
"Display your community flair in rooms configured to show it.": "Display your community flair in rooms configured to show it.",
638638
"You're not currently a member of any communities.": "You're not currently a member of any communities.",
639-
"Help improve Riot by sending <UsageDataLink>usage data</UsageDataLink>? This will use a cookie. (See our <PolicyLink>cookie and privacy policies</PolicyLink>).": "Help improve Riot by sending <UsageDataLink>usage data</UsageDataLink>? This will use a cookie. (See our <PolicyLink>cookie and privacy policies</PolicyLink>).",
640-
"Help improve Riot by sending usage data? This will use a cookie.": "Help improve Riot by sending usage data? This will use a cookie.",
641-
"Yes please": "Yes please",
639+
"Please help improve Riot.im by sending <UsageDataLink>anonymous usage data</UsageDataLink>. This will use a cookie (please see our <PolicyLink>Cookie Policy</PolicyLink>).": "Please help improve Riot.im by sending <UsageDataLink>anonymous usage data</UsageDataLink>. This will use a cookie (please see our <PolicyLink>Cookie Policy</PolicyLink>).",
640+
"Please help improve Riot.im by sending <UsageDataLink>anonymous usage data</UsageDataLink>. This will use a cookie.": "Please help improve Riot.im by sending <UsageDataLink>anonymous usage data</UsageDataLink>. This will use a cookie.",
641+
"Yes, I want to help!": "Yes, I want to help!",
642642
"You are not receiving desktop notifications": "You are not receiving desktop notifications",
643643
"Enable them now": "Enable them now",
644644
"What's New": "What's New",

0 commit comments

Comments
 (0)