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

Commit 483b53c

Browse files
authored
Translate credits in help about section (#10676)
1 parent 2cec8b5 commit 483b53c

File tree

2 files changed

+90
-47
lines changed

2 files changed

+90
-47
lines changed

src/components/views/settings/tabs/user/HelpUserSettingsTab.tsx

+87-47
Original file line numberDiff line numberDiff line change
@@ -137,57 +137,97 @@ export default class HelpUserSettingsTab extends React.Component<IProps, IState>
137137
<span className="mx_SettingsTab_subheading">{_t("Credits")}</span>
138138
<ul className="mx_SettingsTab_subsectionText">
139139
<li>
140-
The{" "}
141-
<a href="themes/element/img/backgrounds/lake.jpg" rel="noreferrer noopener" target="_blank">
142-
default cover photo
143-
</a>{" "}
144-
is ©&nbsp;
145-
<a href="https://www.flickr.com/golan" rel="noreferrer noopener" target="_blank">
146-
Jesús Roncero
147-
</a>{" "}
148-
used under the terms of&nbsp;
149-
<a
150-
href="https://creativecommons.org/licenses/by-sa/4.0/"
151-
rel="noreferrer noopener"
152-
target="_blank"
153-
>
154-
CC-BY-SA 4.0
155-
</a>
156-
.
140+
{_t(
141+
"The <photo>default cover photo</photo> is © " +
142+
"<author>Jesús Roncero</author> used under the terms of <terms>CC-BY-SA 4.0</terms>.",
143+
{},
144+
{
145+
photo: (sub) => (
146+
<a
147+
href="themes/element/img/backgrounds/lake.jpg"
148+
rel="noreferrer noopener"
149+
target="_blank"
150+
>
151+
{sub}
152+
</a>
153+
),
154+
author: (sub) => (
155+
<a href="https://www.flickr.com/golan" rel="noreferrer noopener" target="_blank">
156+
{sub}
157+
</a>
158+
),
159+
terms: (sub) => (
160+
<a
161+
href="https://creativecommons.org/licenses/by-sa/4.0/"
162+
rel="noreferrer noopener"
163+
target="_blank"
164+
>
165+
{sub}
166+
</a>
167+
),
168+
},
169+
)}
157170
</li>
158171
<li>
159-
The{" "}
160-
<a href="https://github.com/matrix-org/twemoji-colr" rel="noreferrer noopener" target="_blank">
161-
twemoji-colr
162-
</a>{" "}
163-
font is ©&nbsp;
164-
<a href="https://mozilla.org" rel="noreferrer noopener" target="_blank">
165-
Mozilla Foundation
166-
</a>{" "}
167-
used under the terms of&nbsp;
168-
<a href="https://www.apache.org/licenses/LICENSE-2.0" rel="noreferrer noopener" target="_blank">
169-
Apache 2.0
170-
</a>
171-
.
172+
{_t(
173+
"The <colr>twemoji-colr</colr> font is © <author>Mozilla Foundation</author> " +
174+
"used under the terms of <terms>Apache 2.0</terms>.",
175+
{},
176+
{
177+
colr: (sub) => (
178+
<a
179+
href="https://github.com/matrix-org/twemoji-colr"
180+
rel="noreferrer noopener"
181+
target="_blank"
182+
>
183+
{sub}
184+
</a>
185+
),
186+
author: (sub) => (
187+
<a href="https://mozilla.org" rel="noreferrer noopener" target="_blank">
188+
{sub}
189+
</a>
190+
),
191+
terms: (sub) => (
192+
<a
193+
href="https://www.apache.org/licenses/LICENSE-2.0"
194+
rel="noreferrer noopener"
195+
target="_blank"
196+
>
197+
{sub}
198+
</a>
199+
),
200+
},
201+
)}
172202
</li>
173203
<li>
174-
The{" "}
175-
<a href="https://twemoji.twitter.com/" rel="noreferrer noopener" target="_blank">
176-
Twemoji
177-
</a>{" "}
178-
emoji art is ©&nbsp;
179-
<a href="https://twemoji.twitter.com/" rel="noreferrer noopener" target="_blank">
180-
Twitter, Inc and other contributors
181-
</a>{" "}
182-
used under the terms of&nbsp;
183-
<a
184-
href="https://creativecommons.org/licenses/by/4.0/"
185-
rel="noreferrer noopener"
186-
target="_blank"
187-
>
188-
CC-BY 4.0
189-
</a>
190-
.
204+
{_t(
205+
"The <twemoji>Twemoji</twemoji> emoji art is © " +
206+
"<author>Twitter, Inc and other contributors</author> used under the terms of " +
207+
"<terms>CC-BY 4.0</terms>.",
208+
{},
209+
{
210+
twemoji: (sub) => (
211+
<a href="https://twemoji.twitter.com/" rel="noreferrer noopener" target="_blank">
212+
{sub}
213+
</a>
214+
),
215+
author: (sub) => (
216+
<a href="https://twemoji.twitter.com/" rel="noreferrer noopener" target="_blank">
217+
{sub}
218+
</a>
219+
),
220+
terms: (sub) => (
221+
<a
222+
href="https://creativecommons.org/licenses/by/4.0/"
223+
rel="noreferrer noopener"
224+
target="_blank"
225+
>
226+
{sub}
227+
</a>
228+
),
229+
},
230+
)}
191231
</li>
192232
</ul>
193233
</div>

src/i18n/strings/en_EN.json

+3
Original file line numberDiff line numberDiff line change
@@ -1568,6 +1568,9 @@
15681568
"Olm version:": "Olm version:",
15691569
"Legal": "Legal",
15701570
"Credits": "Credits",
1571+
"The <photo>default cover photo</photo> is © <author>Jesús Roncero</author> used under the terms of <terms>CC-BY-SA 4.0</terms>.": "The <photo>default cover photo</photo> is © <author>Jesús Roncero</author> used under the terms of <terms>CC-BY-SA 4.0</terms>.",
1572+
"The <colr>twemoji-colr</colr> font is © <author>Mozilla Foundation</author> used under the terms of <terms>Apache 2.0</terms>.": "The <colr>twemoji-colr</colr> font is © <author>Mozilla Foundation</author> used under the terms of <terms>Apache 2.0</terms>.",
1573+
"The <twemoji>Twemoji</twemoji> emoji art is © <author>Twitter, Inc and other contributors</author> used under the terms of <terms>CC-BY 4.0</terms>.": "The <twemoji>Twemoji</twemoji> emoji art is © <author>Twitter, Inc and other contributors</author> used under the terms of <terms>CC-BY 4.0</terms>.",
15711574
"For help with using %(brand)s, click <a>here</a>.": "For help with using %(brand)s, click <a>here</a>.",
15721575
"For help with using %(brand)s, click <a>here</a> or start a chat with our bot using the button below.": "For help with using %(brand)s, click <a>here</a> or start a chat with our bot using the button below.",
15731576
"Chat with %(brand)s Bot": "Chat with %(brand)s Bot",

0 commit comments

Comments
 (0)